AdaOPD: Multi-Turn Adaptive On-Policy Distillation of LLM Agents with Prefix Replay
arXiv:2612.00078v1 Announce Type: new Abstract: On-policy distillation (OPD) trains a student on its own samples with dense supervision from a teacher, but for multi-turn agents every update must interact with the environment. Prefix replay avoids this cost. It replays histories recorded by the teacher, lets the student generate output for the current turn only, and queries the teacher at each token position. Each replayed state, however, joins two segments from different sources: the replayed history may be one the student would rarely reach, and the teacher may assign low probability to the tokens the student has already generated in that turn. We propose AdaOPD, an adaptive on-policy distillation method for multi-turn agents trained with prefix replay. Its adaptivity has two components: adaptive history sampling decides which replayed histories the student trains on, and adaptive token weighting scales supervision at each position in the student's output for the current turn. Both components follow from a KL projection over states that pair a replayed history with the tokens already generated in the current turn, whose solution factorizes into a history weight, a tempered student-to-teacher likelihood ratio on recorded teacher outputs, and a token-prefix weight, a tempered teacher-to-student ratio on the student's preceding tokens. The history weight decides which records are replayed and the token-prefix weight scales per-token KL supervision. We evaluate AdaOPD on mathematical reasoning with a Python interpreter, distilling Qwen3-30B-A3B-Instruct into Qwen3-8B. AdaOPD achieves a state-of-the-art macro-average accuracy across six benchmarks. Including the amortized cost of replay-pool scoring, AdaOPD reduces rollout time per update by an estimated 75% compared with fully online OPD.