Coding Models Are Doing Too Much

nrehiew.github.io · article · 2026-04-20 source ↗ Reader 🖥️

Capability Provisioning (right-sizing to the task)Code QualityCoding AgentsEvalsLegacy & Organizational ForgettingScope Discipline
Current coding models systematically rewrite code beyond the minimal fix required — a widespread, measurable failure mode called over-editing — and reinforcement learning can train models to produce faithful minimal edits without degrading their general coding ability.

mixed · argumentative — An empirical research report structured as an argument. The author identifies a practical problem (over-editing by coding models), constructs a benchmark to measure it, evaluates frontier models, and proposes a training method (RL) to fix it. Argumentative in that the entire piece advances a thesis about a specific failure mode and its remedy, but grounded in experimental evidence.

Structure

PartRole
Problem definition: the Over-Editing problemNames and illustrates the phenomenon — models modify code far beyond what is necessary to fix a bug, making diffs unrecognizable and code review harder
Green-field vs brown-field framingExplains why over-editing matters: in brown-field work the existing code is deliberate, and the model's job is to fix only the issue
Benchmark construction and metricsCreates a dataset of 400 programmatically corrupted problems with known minimal fixes, and introduces token-level Levenshtein Distance and Added Cognitive Complexity as metrics
Evaluation of frontier modelsShows that all frontier models over-edit, with GPT-5.4 worst and Claude Opus 4.6 best; demonstrates that high Pass@1 does not imply minimal editing
Prompting experimentsShows that an explicit instruction to preserve original code reduces over-editing across all models, especially reasoning models
Reasoning vs non-reasoning comparisonDemonstrates that reasoning models over-edit more by default but respond better to explicit constraints
Training experiments (SFT, rSFT, DPO, RL)Tests four training methods; SFT memorizes and collapses out-of-domain; RL generalizes, improves all metrics, and avoids catastrophic forgetting
LoRA and scaling experimentsShows RL with LoRA nearly matches full fine-tuning, and the recipe scales from 4B to 14B parameters

Key terms

Propositions

Arguments

All frontier coding models over-edit, with significant variation across model families
Explicit premises:
Implicit premises:
Inferences:
Pass@1 alone is an inadequate evaluation metric for coding models
Explicit premises:
Implicit premises:
Inferences:
Over-editing is a default behavior, not a capability limitation
Explicit premises:
Implicit premises:
Inferences:
Extended reasoning both causes and can cure over-editing
Explicit premises:
Implicit premises:
Inferences:
RL is the best training method for teaching minimal editing behavior
Explicit premises:
Implicit premises:
Inferences:
Catastrophic forgetting is proportional to distributional shift between training data and the model's original distribution
Explicit premises:
Implicit premises:
Inferences:
LoRA is sufficient for teaching minimal editing behavior
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents