Research map / Large language models / Agents, code and math
Debug or Regenerate? Test-Guided Selection for LLM Code Repair
Atharv Kulkarni, Archiki Prasad, Vivek Srikumar, Elias Stengel-Eskin, Hyunji Lee, Mohit Bansal
University of North Carolina at Chapel Hill · University of Utah · University of Texas at Austin
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 PATSSEL routing between debugged and regenerated candidates instead of two Debug attempts (gold tests) | Qwen3-8B · HE+Fix | accuracy: 93.7 -> 96.0 | Improved |
| use PATSSEL routing instead of two ReGen attempts (gold tests) | Qwen3-8B · LeetCodeDataset | accuracy: 71.4 -> 74.5 | Improved |
| use PATSSEL with RL test generator instead of ReGen | Qwen3-8B · LeetCodeDataset | accuracy: 71.0 -> 70.6 (-0.4%) | No clear effect |
| use RL-trained test generator instead of base test generator for routing (ablation) | PATSSEL (Qwen3-8B) · LiveCodeBench | accuracy: 24.5 -> 25.5 | Improved |
| use gold verifier tests instead of Base test gen (ablation) | PATSSEL (Qwen3-8B) · LiveCodeBench | accuracy: avg. improvement over single-strategy 2.2% -> 3.1% | Improved |
| add execution-based candidate selection instead of outcome-independent routers (ablation) | PATSSEL · LeetCodeDataset | accuracy: 67.5 (TF-IDF router) -> 70.4 (Base) / 70.6 (RL) | Improved |
| replace own debugger with stronger FrogMini-14B debugger (gold tests) (ablation) | PATSSEL · LeetCodeDataset | accuracy: PATSSEL 78.2 vs ReGen 71.4, Debug 69.4 | Improved |
| allocate two-candidate budget across both strategies instead of one strategy (ablation) | PATSSEL (Gold Tests) · LeetCodeDataset | accuracy: 74.5 vs 71.4 (ReGen x2), 64.4 (Debug x2) | Improved |
| regenerate instead of debug on lowest pass-rate bucket Q1 | Qwen3-8B base · LeetCodeDataset Q1 | accuracy: +25.8 points | Improved |
| debug instead of regenerate on highest pass-rate bucket Q4 | Qwen3-8B base · LeetCodeDataset Q4 | accuracy: +2.3 points | Improved |
| use RL-trained debugger in place of base debugger (ablation) | Qwen3-8B · LeetCodeDataset | accuracy: Q1 advantage of regeneration 18.9 points; Q4 debugger +1.2 | Mixed |
| use PATSSEL with Base test gen vs ReGen on LeetCodeDataset | Qwen3-8B · LeetCodeDataset | accuracy: -0.3% | No clear effect |
Open problems this paper states
- “Experiments cover only two 8B-scale repair models, Qwen3-8B and Llama3-8B, not a broader range of sizes.” → 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
- Code Repair with LLMs gives an Exploration-Exploitation Tradeoff (NeurIPS 2024 · similarity 0.91)
- Is Self-Repair a Silver Bullet for Code Generation? (ICLR 2024 · similarity 0.90)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.89)
- Precise Debugging Benchmark: Is Your Model Debugging or Regenerating? (NeurIPS 2026 · similarity 0.88)
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.88)
- Counterexample Guided Program Repair Using Zero-Shot Learning and MaxSAT-based Fault Localization (AAAI 2025 · similarity 0.88)
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.