Research map / Large language models / Agents, code and math
Revisit Self-Debugging with Self-Generated Tests for Code Generation
Xiancai Chen, Zhengwei Tao, Kechi Zhang, Changzhi Zhou, Xinyu Zhang, Wanli Gu, Yuanpeng He, Mengdi Zhang, Xunliang Cai, Haiyan Zhao, Zhi Jin
Peking University · Key Laboratory of High Confidence Software Technology · Beijing Institute of Technology · Meituan
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 oracle-test feedback (detail) for post-execution self-debugging, 2 iterations | GPT-4o · HumanEval Base | pass rate: 92.1 -> 95.1 | Improved |
| use self-generated-test detail feedback instead of oracle tests, 1 iteration (ablation) | GPT-4o · HumanEval Base | pass rate: 92.1 -> 89.0 | Hurt |
| post-execution self-debug with self-generated tests, detail feedback (ablation) | Claude-3.5-Sonnet · HumanEval Base | pass rate: 94.5 -> 87.2 | Hurt |
| post-execution self-debug with self-generated tests, label feedback (ablation) | LLaMA-3-70B-Instruct · HumanEval Plus | pass rate: 73.8 -> 65.2 | Hurt |
| post-execution self-debug with self-generated tests (ablation) | GPT-4o · MBPP Base | pass rate: 91.5 -> 92.9 (label, 2 it.); 92.6 (detail, 2 it.) | Mixed |
| post-execution self-debug with label feedback on LiveCodeBench (ablation) | GPT-4o · LiveCodeBench Overall | pass rate: 46.0 -> 49.3 | Improved |
| post-execution self-debug with detail feedback instead of label (ablation) | GPT-4o · LiveCodeBench Easy | pass rate: 89.3 -> 85.5 | Hurt |
| post-execution self-debug with detail feedback, 2 iterations (ablation) | Claude-3.5-Sonnet · LiveCodeBench Overall | pass rate: 55.8 -> 49.3 | Hurt |
| post-execution self-debug with detail feedback, 1 iteration (ablation) | LLaMA-3-70B-Instruct · LiveCodeBench Easy | pass rate: 72.3 -> 56.6 | Hurt |
| in-execution self-debug with execution trace, 2 iterations | GPT-4o · MBPP Plus | pass rate: 76.5 -> 79.1 | Improved |
| in-execution self-debug with execution trace | GPT-4o · LiveCodeBench Overall | pass rate: 46.0 -> 47.6 | Improved |
| in-execution self-debug with execution trace, 1 iteration | LLaMA-3-70B-Instruct · HumanEval Plus | pass rate: 73.8 -> 70.1 | Hurt |
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
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.95)
- Is Self-Repair a Silver Bullet for Code Generation? (ICLR 2024 · similarity 0.90)
- LeDex: Training LLMs to Better Self-Debug and Explain Code (NeurIPS 2024 · similarity 0.89)
- NExT: Teaching Large Language Models to Reason about Code Execution (ICML 2024 · similarity 0.88)
- EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization (NeurIPS 2024 · similarity 0.88)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.87)
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.