Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
Felix Dobslaw, Robert Feldt, Juyeon Yoon, Shin Yoo
Mid Sweden University · Chalmers University of Technology
Key points
From the paper's conclusion- We identify key variation points that impact test correctness and highlight open challenges that the research, industry, and open-source communities must address as LLMs become integral to software systems.
Abstract
Large Language Models (LLMs) and Multi-Agent LLMs (MALLMs) introduce non-determinism, unlike traditional or machine learning software, where models typically produce deterministic outputs for given inputs. LLM-based software requires new approaches to verifying correctness that account for variability within individual test cases, not just across different inputs. This paper presents a taxonomy for LLM test case design, informed by research literature and our experience. Each facet is exemplified, and we conduct an LLM-assisted analysis of six open-source testing frameworks, perform a sensitivity study of an agent-based system across different model configurations, and provide working examples contrasting atomic and aggregated test cases. We identify key variation points that impact test correctness and highlight open challenges that the research, industry, and open-source communities must address as LLMs become integral to software systems. Our taxonomy defines four facets of LLM test case design, addressing ambiguity in both inputs and outputs while establishing best practices. It distinguishes variability in goals, the system under test, and inputs, and introduces two key oracle types: atomic and aggregated. Our findings reveal that current tools treat test executions as isolated events, lack explicit aggregation mechanisms, and inadequately capture variability across model versions, configurations, and repeated runs. This highlights the need for viewing correctness as a distribution of outcomes rather than a binary property, requiring closer collaboration between academia and practitioners to establish mature, variability-aware testing methodologies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Diversity-Guided Search-Based Testing of Large Language Model ApplicationsarXiv · 2026
- ReqTestAgent: execution-grounded language-model agents for acceptance testing under requirement ambiguity.Frontiers in artificial intelligence · 2026
- STLC Manager: Benchmarking LLM-Driven Model-to-Test Transformation and Test Case OptimizationApplied Sciences · 2026
- Micro Operational Robustness of LLMs on Code GenerationarXiv · 2026
- Predicting LLM Performance from Prompt Linguistic Features: An Empirical Study in Requirements EngineeringarXiv · 2026
- Maat: Independent Deterministic Contract-Based Governance for Multi-Agent LLM WorkflowsarXiv · 2026