SWE-Ladder: Learning to Localize, Reproduce, and Patch via Progressive Privileged Self-Distillation
On the map: Knowledge distillation → On-policy and self-distillation for LLMs
Abstract (arXiv)
Resolving a repository-level issue typically requires a software-engineering (SWE) agent to localize the faulty code, reproduce the failure, and patch the code. Reinforcement learning trains such agents from a single test result on the final patch, while on-policy self-distillation (OPSD) adds token-level supervision from a teacher with privileged evidence, exposing the full reference patch at every step. Neither provides stage-specific guidance for localization or reproduction. We propose SWE-Ladder, which turns the verified repair of each training instance into stage-specific evidence: the changed files and lines for localization, the fail-to-pass tests for reproduction, and the diff for patching. A rule-based router assigns each step of an end-to-end rollout to a stage based on its tool call, a frozen teacher sees only the matching evidence, and the stages are distilled in repair order while GRPO optimizes the full trajectory. With Qwen3-4B-Instruct-2507 on SWE-bench Verified under the R2E-Gym scaffold, SWE-Ladder improves pass@1 from 9.6% to 16.4%, compared with 10.4% for GRPO and 12.4% for OPSD with the full patch. Under the OpenHands scaffold, it improves pass@1 from 13.0% to 17.6%. Reversing the stage order under R2E-Gym reduces pass@1 to 11.4%.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in On-policy and self-distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 22 of its 29 references that are in the map. Submitted 24 Oct 2026.
Builds on
22 of 29 references.
Closest ancestors · 5
Same direction, newest first
- 2026EviSD: Evidence-Conditioned Self-Distillation for Search-Augmented Agents2 Aug
- 2026Beyond Absolute Imitation: Anchored Residual Guidance for Privileged On-Policy Distillation9 Jun
- 2026Adaptive Teacher Exposure for Self-Distillation in LLM Reasoning12 May
- 2026TCOD: Exploring Temporal Curriculum in On-Policy Distillation for Multi-turn Autonomous Agents27 Apr
- 2026Reinforcement Learning via Self-Distillation28 Jan
Other references · 17
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 414
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 287
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 193
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 183
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 153
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 96
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agentscited by 47
5 more
- 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learningcited by 44
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuningcited by 31
- 2025LADDER: Self-Improving LLMs Through Recursive Problem Decompositioncited by 30
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 24
- 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 14
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?
- 2026Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
- 2026SWE-OPD: On-Policy Distillation for Agentic Coding
- 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling
- 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
- 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks