Research map / Large language models / Agents, code and math
LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programs
Kaibo Liu, Zhenpeng Chen, Yiyang Liu, Jie M. Zhang, Mark Harman, Yudong Han, Yun Ma, Yihong Dong, Ge Li, Gang Huang
Peking University · Nanyang Technological University · King's College London · University College London · National Key Laboratory of Data Space Technology and System
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use TrickCatcher instead of Differential Prompting Plus | DPP baseline · TrickyBugs (C++) | F1: 24.95 -> 41.31 | Improved |
| use TrickCatcher instead of Differential Prompting Plus | DPP baseline · EvalPlus | F1: 35.76 -> 51.34 | Improved |
| use TrickCatcher instead of DPP | DPP baseline · TrickyBugs (Python) | recall: best-vs-best recall 10.61% down, precision 90.76% up, F1 16.99% up | Mixed |
| add diversity-driven differential testing (vs majority voting) (ablation) | TrickCatcher · TrickyBugs (C++), k=10 | F1: .24 -> .32 | Improved |
| add generator-based input generation (vs LLM-direct inputs) (ablation) | TrickCatcher · TrickyBugs (C++), k=10 | F1: .32 -> .41 | Improved |
| add PUT-guided program generation (vs filtered spec-only variants) (ablation) | TrickCatcher · TrickyBugs (C++), k=10 | F1: pattern 5 .38 (k=10) vs pattern 6 .41 | Mixed |
| filter spec-only variants with the existing test suite (ablation) | Differential Prompting (Basic PG) · TrickyBugs (C++), k=10 | F1: .25 -> .24 | No clear effect |
| increase number of program variants k from 2 to 10 (ablation) | TrickCatcher · TrickyBugs (C++) | F1: 36.90 -> 41.31 | Improved |
| increase number of program variants k from 2 to 10 (ablation) | DPP · TrickyBugs (C++) | recall: 20.96 -> 15.50 | Hurt |
| replace gpt-3.5-turbo with deepseek-v3 (ablation) | TrickCatcher · EvalPlus | F1: 50.39 -> 59.54 | Improved |
| use TrickCatcher on correct programs | DPP and CHAT · EvalPlus correct programs | false positives: up to 16x fewer | Improved |
Open problems this paper states
- “Evaluation uses only gpt-3.5-turbo and deepseek-v3 due to budget constraints.” → Only a few models were tested, and larger ones were left out. (an open problem in execution-based code verification)
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
- TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark (ICLR 2025 · similarity 0.86)
- LeDex: Training LLMs to Better Self-Debug and Explain Code (NeurIPS 2024 · similarity 0.86)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.85)
- Precise Debugging Benchmark: Is Your Model Debugging or Regenerating? (NeurIPS 2026 · similarity 0.84)
- DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation (NeurIPS 2026 · similarity 0.84)
- Property-Guided LLM Program Synthesis for Planning (NeurIPS 2026 · similarity 0.84)
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.