Understanding Regression in Code Self-Refinement: A Study of Refinement Protocols Without Execution Feedback
Jindae Kim
Key points
From the paper's conclusion- These results suggest that, without execution feedback, refinement designs should prioritize preserving already correct code over adding reasoning stages.
Abstract
Self-refinement can improve generated code without additional training, but without execution feedback, revision can also turn already correct code into incorrect code. We study how self-refinement protocol design affects code correctness using six locally deployable open-weight models, three Python code-generation benchmarks, and 9984 model-task pairs. Using the same initial code for each protocol, we compare direct revision with refinement that adds critique and planning, test whether asking the model if revision is needed before refining affects correctness, and compare separate calls with a single response. Among the evaluated refinement protocols, direct revision achieved the highest overall correctness, whereas adding separate Critique and Planning stages increased repairs but caused substantially more regressions. Direct revision produced 55 repairs and 20 regressions; adding Critique produced 220 repairs and 605 regressions, and adding Planning after Critique produced 206 repairs and 719 regressions. Decision filtering and Single-call organization improved the regression-prone protocols by reducing harmful changes. They improved pass rate by 3.89 to 5.10 and 3.22 to 3.92 percentage points, respectively, but neither approach surpassed direct revision. Repeated direct generation produced many repairs simply by generating another candidate, while direct revision maintained a much more favorable repair-regression balance. These results suggest that, without execution feedback, refinement designs should prioritize preserving already correct code over adding reasoning stages.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Inducing Code Change in LLM Self-Debugging: Effects on Program RepairAI · 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
- Opera: A Verbal Critic Framework for Long-horizon Coding AgentsarXiv · 2026
- Verification-Gated Redraw and Repair for Local Small Language Models: A Paired EvaluationarXiv · 2026
- Rethinking Self-Repair in Code-as-Policy Agents: What Drives Retry Success?arXiv · 2026
- Accepted but Wrong: Silent Failures of LLM Code Repairs after API MigrationsarXiv · 2026