Inducing Code Change in LLM Self-Debugging: Effects on Program Repair
Jindae Kim
Key points
From the paper's conclusion- Overall, the results identify complementary ways to improve LLM self-debugging: a simple code-change instruction can reduce unchanged revisions and provide modest repair gains, while concrete execution feedback helps direct changed code toward repair, and repeated reevaluation provides further but diminishing opportunities for repair.
Abstract
Execution-guided self-debugging can return unchanged code when revision is requested, and even a changed program may still fail to repair the observed failure. A final pass/fail result alone does not distinguish these different outcomes. We study them using 9790 Python programs generated by six open-weight models on three benchmarks. The models generally classified programs as PASS or FAIL from benchmark evaluation records and selected PRESERVE or REVISE in separate judgment tasks, but separate revision requests changed only 57.39% of 4168 initially failing programs and repaired 16.34% under the same benchmark test suite. Because many revision requests returned unchanged code, we tested a minimal intervention that simply added an instruction stating that the returned code must change. This instruction increased the rate of structural code changes, measured as differences between the labeled ASTs of the initial and revised programs, by 7.92–31.86 percentage points and produced modest repair gains of 0.82–1.87 points across the tested failure-information settings. Most code changes nevertheless remained unsuccessful, and concrete execution feedback provided a substantial additional benefit: providing the first reported failure instead of only a failure status increased repair by 12.93–13.43 points across four revision prompts, while providing all reported failures yielded a further benefit on BigCodeBench-Instruct when multiple failures were reported. Repeating revision after reevaluation recovered additional repairs, but the incremental gain decreased sharply over successive turns. Prompts that explicitly required a code change generally retained a small repair advantage across repeated turns even as the benefit of each additional turn diminished. Overall, the results identify complementary ways to improve LLM self-debugging: a simple code-change instruction can reduce unchanged revisions and provide modest repair gains, while concrete execution feedback helps direct changed code toward repair, and repeated reevaluation provides further but diminishing opportunities for repair.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Understanding Regression in Code Self-Refinement: A Study of Refinement Protocols Without Execution FeedbackAI · 2026
- On the Limits of Execution Traces for Repairing Assertion Failures in LLM-Generated CodearXiv · 2026
- InspectCoder: Dynamic Analysis-Driven Self Repair through Interactive LLM-Debugger CollaborationProceedings of the ACM on Programming Languages · 2026
- To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program RepairProceedings of the ACM on software engineering. · 2026
- Verification-Gated Redraw and Repair for Local Small Language Models: A Paired EvaluationarXiv · 2026
- Accepted but Wrong: Silent Failures of LLM Code Repairs after API MigrationsarXiv · 2026