mlsanityData to 7 Oct 2026

Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy

arXiv 2503.00481 ↗First posted 1 Mar 2025cs.SE cs.AIcited by 8

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large Language Models (LLMs) and Multi-Agent LLMs (MALLMs) introduce non-determinism unlike traditional or machine learning software, requiring new approaches to verifying correctness beyond simple output comparisons or statistical accuracy over test datasets. 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.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 20 of its 60 references that are in the map. First posted on arXiv 1 Mar 2025.

Builds on

20 of 60 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024GoNoGo: An Efficient LLM-based Multi-Agent System for Streamlining Automotive Software Release Decision-Making19 Aug

Other references · 19

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  4. 2024A Survey on LLM-as-a-Judgecited by 1,384
  5. 2023A Survey on Evaluation of Large Language Modelscited by 1,227
  6. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
  7. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
  8. 2024Non-Determinism of "Deterministic" LLM Settingscited by 84
  9. 2024RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Modelscited by 84
  10. 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
  11. 2018On Testing Machine Learning Programscited by 48
  12. 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
7 more
  1. 2023An Integrative Survey on Mental Health Conversational Agents to Bridge Computer Science and Medical Perspectivescited by 16
  2. 2023Evaluating Diverse Large Language Models for Automatic and General Bug Reproductioncited by 12
  3. 2024Test Oracle Automation in the era of LLMscited by 11
  4. 2022Generating and Detecting True Ambiguity: A Forgotten Danger in DNN Supervision Testingcited by 8
  5. 2025Automating a Complete Software Test Process Using LLMs: An Automotive Case Studycited by 8
  6. 2024A Software Engineering Perspective on Testing Large Language Models: Research, Practice, Tools and Benchmarkscited by 5
  7. 2024Assessing the Robustness of LLM-based NLP Software via Automated Testingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 7.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol
  2. 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
  3. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
  4. 2026Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows
  5. 2023Towards Autonomous Testing Agents via Conversational Large Language Models
  6. 2024The Potential of LLMs in Automating Software Testing: From Generation to Reporting
  7. 2026Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
  8. 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Language