mlsanityData to 7 Oct 2026

Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol

arXiv 2508.20737 ↗First posted 28 Aug 2025cs.SE cs.AIcited by 6

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Applications of Large Language Models~(LLMs) have evolved from simple text generators into complex software systems that integrate retrieval augmentation, tool invocation, and multi-turn interactions. Their inherent non-determinism, dynamism, and context dependence pose fundamental challenges for quality assurance. This paper decomposes LLM applications into a three-layer architecture: textbftextitSystem Shell Layer, textbftextitPrompt Orchestration Layer, and textbftextitLLM Inference Core. We then assess the applicability of traditional software testing methods in each layer: directly applicable at the shell layer, requiring semantic reinterpretation at the orchestration layer, and necessitating paradigm shifts at the inference core. A comparative analysis of Testing AI methods from the software engineering community and safety analysis techniques from the AI community reveals structural disconnects in testing unit abstraction, evaluation metrics, and lifecycle management. We identify four fundamental differences that underlie 6 core challenges. To address these, we propose four types of collaborative strategies (Retain, Translate, Integrate, and Runtime) and explore a closed-loop, trustworthy quality assurance framework that combines pre-deployment validation with runtime monitoring. Based on these strategies, we offer practical guidance and a protocol proposal to support the standardization and tooling of LLM application testing. We propose a protocol textbftextitAgent Interaction Communication Language (AICL) that is used to communicate between AI agents. AICL has the test-oriented features and is easily integrated in the current agent framework.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 25 of its 77 references that are in the map. First posted on arXiv 28 Aug 2025.

Builds on

25 of 77 references.

References · 25

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  3. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  5. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  6. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
  7. 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 683
  8. 2024A Survey on Large Language Models for Code Generationcited by 646
  9. 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
  10. 2025Survey on Evaluation of LLM-based Agentscited by 190
  11. 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 104
  12. 2024Assessing Adversarial Robustness of Large Language Models: An Empirical Studycited by 21
13 more
  1. 2024PDL: A Declarative Prompt Programming Languagecited by 14
  2. 2025The challenge of uncertainty quantification of large language models in medicinecited by 14
  3. 2018DeepRoad: GAN-based Metamorphic Autonomous Driving System Testingcited by 9
  4. 2024Brain-inspired Artificial Intelligence: A Comprehensive Reviewcited by 8
  5. 2024MORTAR: Multi-turn Metamorphic Testing for LLM-based Dialogue Systemscited by 7
  6. 2023Boosting Backdoor Attack with A Learnable Poisoning Sample Selection Strategycited by 5
  7. 2024Comparing Template-based and Template-free Language Model Probingcited by 5
  8. 2024Risks When Sharing LoRA Fine-Tuned Diffusion Model Weightscited by 5
  9. 2024Open Source Software Development Tool Installation: Challenges and Strategies For Novice Developerscited by 2
  10. 2024The Polynomial Stein Discrepancy for Assessing Moment Convergencecited by 2
  11. 2024Predicting Future States with Spatial Point Processes in Single Molecule Resolution Spatial Transcriptomicscited by 1
  12. 2025RT-DEMT: A hybrid real-time acupoint detection model combining mamba and transformercited by 1
  13. 2025Demystifying AI Agents: The Final Generation of Intelligencecited by 1

Built on by

Cited by year (2026 to 7 Oct)

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

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
  2. 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
  3. 2024The Potential of LLMs in Automating Software Testing: From Generation to Reporting
  4. 2023Towards Autonomous Testing Agents via Conversational Large Language Models
  5. 2026Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
  6. 2026Test-Oriented Programming: rethinking coding for the GenAI era
  7. 2026Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows
  8. 2026SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?