{"id":1179143,"date":"2026-07-20T06:41:50","date_gmt":"2026-07-20T13:41:50","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/publication\/multi-turn-on-policy-distillation-with-prefix-replay\/"},"modified":"2026-07-21T14:48:41","modified_gmt":"2026-07-21T21:48:41","slug":"multi-turn-on-policy-distillation-with-prefix-replay","status":"publish","type":"msr-research-item","link":"https:\/\/www.microsoft.com\/en-us\/research\/publication\/multi-turn-on-policy-distillation-with-prefix-replay\/","title":{"rendered":"Multi-Turn On-Policy Distillation with Prefix Replay"},"content":{"rendered":"\n\n\n
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