Research map / Large language models / Agents, code and math
Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposure
Zheyuan Yang, Zexi Kuang, Xue Xia, Yilun Zhao
Tongji University · Northeastern University · Hong Kong University of Science and Technology · Yale University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
use chain-of-thought prompting instead of direct output · TestCase-Eval · fault exposure Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use reasoning models (Qwen3-32B) instead of general-purpose models | test-case generation · Task 1 Fault Coverage | Cov@1: 50.8 vs 47.8 (Llama-3.1-70B), 45.3 (GPT-4.1) | Improved |
| use Qwen3-32B instead of GPT-4.1 | test-case generation · Task 1 Fault Coverage | Cov@20: 80.0 -> 95.7 | Improved |
| use reasoning models (Qwen3-32B, R1-Distill-Qwen-32B) | test-case generation · Task 2 Fault Exposure | fault exposure rate: 43.8% and 41.6% vs 36.5% (GPT-4.1) | Improved |
| use chain-of-thought prompting instead of direct output (ablation) | LLM test-case generation · TestCase-Eval | fault exposure | Improved |
| compare model with human experts | best model Qwen3-32B · Task 2 Fault Exposure | fault exposure rate: 93.3% (human) vs 43.8% | Hurt |
| target Python rather than C++/Java faulty solutions | LLMs · Task 2 Fault Exposure | fault exposure rate | Improved |
| target resource faults (TLE/MLE) instead of WA/RE | LLMs · Task 2 Fault Exposure | fault exposure rate: e.g. Qwen3-32B WA 52.2 vs TLE 21.2 | Hurt |
| use proprietary instead of open-source models | test-case generation · Task 1 / Task 2 | Cov@1, fault exposure: GPT-4.1 45.3 cov@1 vs Qwen3-32B 50.8 | No clear effect |
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective (ICLR 2026 · similarity 0.90)
- TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark (ICLR 2025 · similarity 0.87)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.86)
- Property-Guided LLM Program Synthesis for Planning (NeurIPS 2026 · similarity 0.86)
- Rethinking Verification for LLM Code Generation: From Generation to Testing (NeurIPS 2025 · similarity 0.86)
- LeDex: Training LLMs to Better Self-Debug and Explain Code (NeurIPS 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.