Multi-Turn On-Policy Distillation with Prefix Replay
Summary
ReOPD replays teacher-forced prefixes, lets the student act at the supervised step, and samples positions with step-decay κ=0.6. Formalizes a prefix trap: student-on-policy histories are relevant but can query the teacher where it is unreliable. On math (Python-tool, 6 benches) a Qwen3-4B student with a 4B teacher averages 57.2 vs OPD 55.1 / SFT 46.1; with an 8B teacher 53.7 vs OPD 51.0. Search essentially matches OPD (40.5 vs 40.6). Zero tool calls during student training and at least 4× faster per rollout. A joint math+search student stays on par with OPD. 8×H100; authors report training under 3 hours.
- Venue
- arXiv / Microsoft Research
- Source
- arxiv
- Access
- free
- License
- arXiv perpetual non-exclusive license 1.0
- License family
- Other
- Language
- en
- Purpose
- Distill multi-turn agents from teacher trajectories without live environment rollouts during student training
- Scale
- Math eval 1,547 problems (AIME24/25, AMC23, Minerva, Olympiad, MATH500); search 51,713 (NQ/TriviaQA/PopQA/HotpotQA/2Wiki/Musique/Bamboogle); teacher GRPO 6.4K math / 6.5K search prompts; 200 distill steps; Qwen3 4B/8B/30B-A3B teachers
- Used for
- Unknown
- Time period
- 2026-07-06 (arXiv 2607.04763 v1); last revised 2026-07-26 (v3)
- Author type
- human
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Jul 6, 2026
- Last revised
- Jul 26, 2026
- arXiv categories
- cs.LG, cs.AI, cs.CL, stat.ML
- Citations
- 11 (1 influential)
- References
- 78
Abstract (from arXiv)
We study on-policy distillation (OPD) for agentic tasks, where an LLM agent interacts with an environment over multiple turns and a student imitates a teacher over these multi-turn interaction histories. Fully online OPD is costly because each update requires fresh student rollouts through the environment and teacher queries at visited histories. We propose Replayed-Prefix On-Policy Distillation (ReOPD), an off-environment alternative that reuses pre-collected teacher trajectories as replayed prefixes: the student acts at selected steps, while the teacher provides dense per-step supervision without executing new environment interactions. We show that multi-turn OPD introduces a prefix trap: making histories more student-on-policy improves relevance to the student, but can query the teacher on histories where its target is unreliable. This creates a two-sided distribution shift between student occupancy and teacher reliability. ReOPD addresses this by treating multi-turn OPD as a reliability-aware prefix distribution design and implements it with a simple step-decaying sampling schedule that emphasizes early, lower-shift prefixes. Across mathematical reasoning with Python and search environments over multiple teacher and student model scales, ReOPD preserves or improves OPD-level accuracy, uses zero tool calls during student training, and is at least 4$\times$ faster per rollout than OPD. ReOPD therefore turns expensive agent-environment interaction into a reusable offline resource, enabling scalable distillation across tools, tasks, and environments.
Tags
Topics
LLM distillation, agentic training, on-policy distillation
Research notes
- Primary: arxiv abs (default nonexclusive-distrib 1.0, cs.LG). Code MIT https://github.com/BaohaoLiao/ReOPD (23 stars at check). Project https://baohaoliao.github.io/ReOPD/. Paper lists Model & Data baohao/reopd; HF API returned 401 so public access was not confirmed; no datasets_local row. HF paper page 12 upvotes. Microsoft Research / University of Amsterdam (Liao interned at Microsoft). Discord posted abs link.
Cites, within this collection
Similar entries
- Paper Trajectory-Refined Distillation
- Paper PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents
- Paper Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation
- Post SFT, RL, and On-Policy Distillation Through a Distributional Lens
- Paper DAPD: Dual-Anchored Policy Distillation
- Paper When Do Larger Batches Help Scale LLM Reinforcement Learning?