LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have achieved impressive results on public benchmarks, often leading to claims of advanced reasoning and understanding. However, recent research in cognitive science reveals that these models sometimes rely on shallow heuristics and memorization, taking shortcuts rather than demonstrating genuine cognitive abilities. This paper investigates LLM behavior in automated test generation for software, contrasting performance on an open-source system (LevelDB) with SAP HANA, one of the most widely deployed commercial database systems worldwide, whose proprietary codebase is guaranteed to be absent from training data. We combine cognitive evaluation principles, drawing on Mitchell's mechanism-focused assessment methodology, with empirical software testing, employing mutation score and iterative compiler-feedback repair loops to assess both accuracy and underlying reasoning strategies. Results show that LLMs excel on familiar, open-source benchmarks but struggle with unseen, complex domains, often prioritizing compilability over semantic effectiveness. These findings provide independent software engineering evidence for the broader claim that current LLMs lack robust reasoning, and highlight the need for evaluation frameworks that penalize trivial shortcuts and reward true generalization.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 19 references that are in the map. First posted on arXiv 15 Apr 2026.
Builds on
9 of 19 references.
References · 9
- 2020Shortcut Learning in Deep Neural Networkscited by 1,928
- 2018Deep Learning: A Critical Appraisalcited by 214
- 2022The Debate Over Understanding in AI's Large Language Modelscited by 142
- 2023The ConceptARC Benchmark: Evaluating Understanding and Generalization in the ARC Domaincited by 97
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
- 2023Comparing Humans, GPT-4, and GPT-4V On Abstraction and Reasoning Taskscited by 54
- 2024Evaluating the Robustness of Analogical Reasoning in Large Language Modelscited by 31
- 2025Mutation-Guided LLM-based Test Generation at Metacited by 23
- 2025Do AI Models Perform Human-like Abstract Reasoning Across Modalities?cited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
- 2025Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol
- 2025Test Case Generation from Bug Reports via Large Language Models: A Cognitive Layered Evaluation Framework
- 2025Can LLMs Generate Reliable Test Case Generators? A Study on Competition-Level Programming Problems
- 2025LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road Ahead ↗
- 2026CodeContests-O: Powering LLMs via Feedback-Driven Iterative Test Case Generation
- 2024Large-scale, Independent and Comprehensive study of the power of LLMs for test case generation
- 2025LLM4VV: Evaluating Cutting-Edge LLMs for Generation and Evaluation of Directive-Based Parallel Programming Model Compiler Tests ↗