SWE-OPD: On-Policy Distillation for Agentic Coding
On the map: LLM agents and tool use → Software engineering coding agents
also in 1 more
Abstract (arXiv)
In this work, we study on-policy distillation (OPD) for transferring agentic coding capabilities from a large teacher model to a smaller student model. Prior work has focused primarily on reasoning and short-horizon agentic tasks. We present SWE-OPD, a minimal OPD study for software engineering, where the student interacts with executable repositories and the teacher supervises the prefixes visited by the student. Across three teacher--student pairs, two training sources, and three SWE benchmarks, we find that on-policy supervision transfers coding capability: supervision from Qwen3.6-27B increases the SWE-bench Pro resolve rate of Qwen3.5-9B from 35.9% to 39.4%. Refreshing trajectories is not strictly required either, as an offline variant with cached teacher scores still improves over the student baselines while cutting end-to-end GPU-hours by 59.4%--72.6% and halving peak GPU allocation, at benchmark-dependent accuracy. Furthermore, we extend the offline variant to corss-tokenizer scenarios: distilling GLM-4.5-Air from DeepSeek-V4-Flash-0731 raises its SWE-bench Pro and Multilingual resolve rate from 35.8% to 39.7% and from 41.8% to 46.2%, around 4% and 4.6% improvement, respectively. We also find that a decreasing loss, however, does not necessarily indicate improved agent performance: under top-K reverse-KL loss, one student exhibits severe repetition despite a decreasing loss. We identify a support-mass gradient term as a potential mechanism underlying this failure.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 35 of its 48 references that are in the map. Submitted 16 Nov 2026.
Builds on
35 of 48 references.
Closest ancestors · 3
Same direction, newest first
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery10 Feb
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
Other references · 32
- 2015Distilling the Knowledge in a Neural Networkcited by 10,967
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2020Knowledge Distillation: A Surveycited by 1,645
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2016Sequence-Level Knowledge Distillationcited by 908
- 2026Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Modelscited by 573
- 2015Policy Distillationcited by 496
- 2026Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipecited by 369
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
- 2026Kimi K3: Open Frontier Intelligencecited by 233
- 2026Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolationcited by 224
20 more
- 2026MiMo-V2-Flash Technical Reportcited by 220
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 198
- 2024DistiLLM: Towards Streamlined Distillation for Large Language Modelscited by 193
- 2026A Survey of On-Policy Distillation for Large Language Modelscited by 189
- 2026Self-Distilled RLVRcited by 149
- 2026MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Trainingcited by 105
- 2020Autoregressive Knowledge Distillation through Imitation Learningcited by 90
- 2026Nemotron-Cascade 2: Post-Training LLMs with Cascade RL and Multi-Domain On-Policy Distillationcited by 76
- 2026TCOD: Exploring Temporal Curriculum in On-Policy Distillation for Multi-turn Autonomous Agentscited by 62
- 2026Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipecited by 60
- 2026Lightning OPD: Efficient Post-Training for Large Reasoning Models with Offline On-Policy Distillationcited by 43
- 2026Trust Region On-Policy Distillationcited by 35
- 2026MAD-OPD: Breaking the Ceiling in On-Policy Distillation via Multi-Agent Debatecited by 25
- 2026SAGE-OPD: Selective Agent-Guided Intervention for Multi-Turn On-Policy Distillationcited by 20
- 2026SimCT: Recovering Lost Supervision for Cross-Tokenizer On-Policy Distillationcited by 19
- 2026Breaking the Tokenizer Barrier: On-Policy Distillation across Model Familiescited by 15
- 2026Cross-Tokenizer On-Policy Distillation via Byte-Prefix Marginalizationcited by 11
- 2026MEnvAgent: Scalable Polyglot Environment Construction for Verifiable Software Engineeringcited by 9
- 2025Analyzing the Effects of Supervised Fine-Tuning on Model Knowledge from Token and Parameter Levelscited by 8
- 2026SimpleOPD: Simple Tokenizer-Agnostic On-Policy Distillation for Long-Context Reasoningcited by 8
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Graph-Conditioned On-Policy Agent Distillation from Off-the-Shelf Teachers
- 2026OPRD: On-Policy Reminder Distillation for Long-Horizon Coding Agents
- 2026Rethinking Offline On-Policy Distillation: From Scalar Advantages to Distributional Supervision
- 2026RE-0: Verified Recursive Improvement of Embodied Code-as-Policy Agents through Local On-Policy Distillation
- 2026Agentic On-Policy Distillation Implicitly Reshapes LLMs' ReAct Patterns
- 2026Fast and Effective On-policy Distillation from Reasoning Prefixes
- 2026Branching On-Policy Distillation
- 2026Multi-Turn On-Policy Distillation with Prefix Replay