# Multi-Turn On-Policy Distillation with Prefix Replay

- **ID:** 472
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2607.04763
- **Authors:** Baohao Liao, Hanze Dong, Christof Monz, Xinxing Xu, Li Dong, Furu Wei
- **Venue:** arXiv / Microsoft Research
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** arXiv perpetual non-exclusive license 1.0
- **License family:** Other (auto-classified)
- **Tags:** reopd, on-policy-distillation, prefix-replay, qwen3, microsoft, agent-distillation
- **Topics:** LLM distillation, agentic training, on-policy distillation
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/472

## 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.

## Attributes

- **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

## From the source (fetched 2026-10-03)

- **Published:** Jul 6, 2026 (arXiv)
- **Last revised:** Jul 26, 2026 (arXiv)
- **arXiv categories:** cs.LG, cs.AI, cs.CL, stat.ML (arXiv)
- **Citations:** 11 (1 influential) (Semantic Scholar)
- **References:** 78 (Semantic Scholar)

## Abstract

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.

## 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

- [STaR: Bootstrapping Reasoning With Reasoning](https://papers.projxon.ai/entries/912) (paper 2022, #912)
- [Speculative Knowledge Distillation: Bridging the Teacher-Student Gap Through Interleaved Sampling](https://papers.projxon.ai/entries/914) (paper 2024, #914)
- [DAPO: An Open-Source LLM Reinforcement Learning System at Scale](https://papers.projxon.ai/entries/919) (paper 2025, #919)
- [ReTool: Reinforcement Learning for Strategic Tool Use in LLMs](https://papers.projxon.ai/entries/970) (paper 2025, #970)

## Similar entries

- [Trajectory-Refined Distillation](https://papers.projxon.ai/entries/1121) (paper, #1121)
- [PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents](https://papers.projxon.ai/entries/832) (paper, #832)
- [Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation](https://papers.projxon.ai/entries/798) (paper, #798)
- [SFT, RL, and On-Policy Distillation Through a Distributional Lens](https://papers.projxon.ai/entries/1095) (post, #1095)
- [DAPD: Dual-Anchored Policy Distillation](https://papers.projxon.ai/entries/451) (paper, #451)
- [When Do Larger Batches Help Scale LLM Reinforcement Learning?](https://papers.projxon.ai/entries/1041) (paper, #1041)
