Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
By: Felix Dobslaw , Robert Feldt , Juyeon Yoon and more
Potential Business Impact:
Tests AI to make sure it works right.
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 both the research literature, our experience, and open-source tools that represent the state of practice. 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 mapping indicates that current tools insufficiently account for these variability points, highlighting the need for closer collaboration between academia and practitioners to improve the reliability and reproducibility of LLM testing.
Similar Papers
Large Language Models for Unit Test Generation: Achievements, Challenges, and the Road Ahead
Software Engineering
Helps computers write better code tests automatically.
Large Language Models for Software Testing: A Research Roadmap
Software Engineering
Helps computers find mistakes in programs.
Large Language Models for Unit Testing: A Systematic Literature Review
Software Engineering
Helps computers write and check their own code.