TRANSMISSION // 2610.33667v2
A staged training recipe for AI software repair
Source published
SWE-Ladder trains a coding agent to learn repair in stages, giving its teacher different evidence for locating, reproducing, and patching a bug. In one benchmark setup, it improved the agent’s score—but the evidence is limited to a particular model and evaluation setting.

Fixing a bug in an unfamiliar codebase is more than writing a patch: an agent must find the relevant code, understand how the failure appears, and check whether its change works. A new preprint proposes teaching those abilities in sequence rather than showing a training-time teacher the whole answer at every step.
Why teach repair in stages?
A software-repair agent may need to search a repository, run tests, edit files, and then verify its changes. Yet a training reward often arrives only at the end: did the final patch pass the required tests? That single result gives limited guidance about which intermediate decisions helped or hurt.
On-policy self-distillation offers another signal. In broad terms, a teacher model sees information the student does not, then provides token-level guidance while the student works through its own generated interaction. For code repair, the teacher might see the verified patch. But that patch can reveal where to edit and what to change even when the student is supposed to be searching or reproducing a bug.
The authors of SWE-Ladder ask whether guidance works better when the teacher sees only evidence relevant to the current repair stage—and when those stages are taught in a useful order.
Three kinds of evidence
The method divides repair into localization, reproduction, and patching. For localization, the teacher sees information such as changed file paths, affected line ranges, and the corresponding original source lines, without the replacement code. For reproduction, it sees failing tests and, where available, test code or candidate changes that help describe the failure. For patching, it sees the verified repair diff.
A rule-based router labels steps in the agent’s interaction according to tool calls. The teacher receives the evidence for the active training stage, and distillation applies to the response tokens assigned to that stage. Meanwhile, reinforcement learning with a group-relative policy optimization objective continues to train on the full trajectory. The stages are introduced in order: localization, then reproduction, then patch generation. The agent is not forced to follow a fixed sequence of actions at deployment; the staging controls teacher supervision during training.
The experiments used Qwen3-4B-Instruct-2507 on SWE-bench Verified, a set of 500 repository issue-resolution tasks, with the R2E-Gym agent scaffold for the main comparisons. Training used 1,149 issues drawn from four repair datasets. The authors also evaluated the approach with the OpenHands scaffold.
What the study reports
On SWE-bench Verified with R2E-Gym, the reported pass@1—the share of tasks solved in a single attempt—was 16.4% for SWE-Ladder. The base model scored 9.6%; reinforcement learning alone reached 10.4%, and a comparison that gave the teacher the full patch at every step reached 12.4%. With OpenHands, SWE-Ladder scored 17.6%, compared with 13.0% for the base model.
The authors also tracked intermediate behaviors, not just final task success. Their measures included whether the agent edited reference-patch files, ran a script that produced a failure signal, and reran a reproduction script successfully after its last edit. They report that the staged method ended above the base model on these diagnostics as well as on pass@1. However, the measures capture particular behaviors, not a complete account of an agent’s reasoning or code quality.
Ablations support the proposed schedule within this experimental setup. Training all stages at once reached 12.4% pass@1, while reversing the stage order reached 11.4%; removing any one stage also reduced the score relative to the full method. These results suggest that both the evidence selection and its order mattered in the tested configuration. They do not establish that the same schedule will help every model or software task.
What remains uncertain
The authors describe the work as bounded to one Qwen3 model, SWE-bench Verified, and two agent scaffolds. The main stage-wise diagnostics and ablations used R2E-Gym. They report no independent random-seed repeats or confidence intervals, so the results do not show how much scores might vary across repeated training runs. The router also depends on rules that may mishandle unfamiliar tools or unusual interaction patterns.
The findings therefore provide evidence that staged privileged guidance can improve performance under the reported benchmark conditions, not proof of broad real-world reliability. SWE-Ladder is presented in an arXiv preprint, which may not have undergone peer review. Its claims should be read as research results awaiting further testing across models, benchmarks, and training runs.
- AI coding agents
- software repair
- reinforcement learning
- self-distillation
- SWE-bench
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can visual AI learn to work without its tools?
Shared method: Both papers use on-policy self-distillation with privileged evidence: SWE-Ladder’s frozen teacher receives evidence matched to the active software-repair stage, while Tool-to-Self distills from actual visual-tool observations in a privileged branch. This is a shared training component, not a direct comparison of methods or results; their tasks and evidence differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2610.33667v2 — Original paper
Excerpt reference:
static/papers/2610.33667v2.md:363-527
Basis: Paper text
Source SHA-256:2c66a6ded8d034078a90831a85355b8001f7c3ae7c24d928c5b8c50e839508182611.28564v1 — Original paper
Excerpt reference:
static/papers/2611.28564v1.md:83-137
Basis: Paper text
Source SHA-256:89152de20c57bce4f4da155a9efdd3b4040a33d00fe357013d1eb14e8bd7904e2611.28564v1 — Original paper
Excerpt reference:
static/papers/2611.28564v1.md:138-184
Basis: Paper text
Source SHA-256:89152de20c57bce4f4da155a9efdd3b4040a33d00fe357013d1eb14e8bd7904e
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A Coding Agent Learns from Its Own Failed Fixes
Source published
Shared keywords: ai coding agents, reinforcement learning
What makes a software repair hard for an AI coding agent?
Source published
Shared keywords: swe bench
When Coding Benchmarks Reject Valid Fixes
Source published
Shared keywords: ai coding agents, swe bench
A debugger did not beat a second shell-based AI repair attempt
Source published
Shared keywords: ai coding agents
Why Passing Tests May Not Prove an AI Patch Is Correct
Source published
Shared keywords: ai coding agents