AI summary · arXiv: 2609.04061v1 · cs.SE

When Models Edit Too Much: On the Fidelity of Minimal Code Edits

Tongyao Zhu, Wei Hern Lim, Min-Yen Kan

Original paper · DOI Submitted to arXiv on 03 Sep. 2026 EMNLP 2026 (Main) License: CC BY 4.0

The essentials

  • Correctness alone is not sufficient in code editing
  • Focus traditionally on functional success metrics like Pass@1 or Pass@k
  • Repairs should be minimal, reviewable, and faithful to original implementation (edit fidelity)
  • Over-editing phenomenon identified in large language models (LLMs) like GPT-5.5
  • Preservation instruction introduced to mitigate over-editing behavior
  • Importance of edit fidelity as a distinct dimension of code-repair quality emphasized
  • Shift towards encompassing edit fidelity for evaluating code repairs opens new avenues for enhancing software systems

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Code Editing Functional Success Metrics Edit Fidelity Over-editing Code-repair Quality

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
In the realm of code editing, there is a growing recognition that correctness alone is not sufficient. The focus has traditionally been on functional success metrics such as Pass@1 or Pass@k, which assess whether a model can successfully fix bugs in code. However, repairs should also be minimal, reviewable, and faithful to the original implementation. This concept of edit fidelity is crucial in ensuring that code edits are not only correct but also maintain the integrity and coherence of the existing codebase. A recent study delves into the phenomenon of over-editing where models tend to make unnecessary changes to code beyond what is required to address a bug. By analyzing over 400 BigCodeBench problems and injecting controlled AST-level corruptions into reference solutions, researchers were able to quantify the extent of over-editing in large language models (LLMs), even among advanced models like GPT-5.5. Despite achieving high Pass@1 scores, these models exhibited a tendency towards unnecessarily large edits and increased cognitive complexity. To mitigate over-editing behavior, a preservation instruction was introduced resulting in significant reduction in excess Levenshtein distance and added cognitive complexity while improving Pass@1 performance. Interestingly, these improvements were not solely attributed to larger reasoning budgets or model sizes but rather stemmed from deliberate focus on edit fidelity during post-training. Further exploration into learning minimal editing directly post-training revealed that supervised fine-tuning tended to overfit to known corruption patterns. In contrast,reinforcement learning offered a more balanced trade-off between out-of-domain edit fidelity and performance retention. These findings underscore the importance of edit fidelity as a distinct dimension of code-repair quality that can be both measured and learned systematically.By shifting the emphasis from mere functional success to encompassing edit fidelity as an essential criterion for evaluating code repairs,this research opens up new avenues for enhancing the overall quality and maintainability of software systems through more precise and faithful editing practices.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 3 free rewrites left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero
Citation alerts
Journal club Premium+ Slides to present it
For journalists Premium+ Press kit and hype check

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.