# AdaOPD: Multi-Turn Adaptive On-Policy Distillation of LLM Agents with Prefix Replay

arXiv: https://arxiv.org/abs/2612.00078 · HTML: https://mlsanity.com/paper/2612.00078/

## Key facts

- No citing papers in the map yet (data through 2 Dec 2026).
- Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use.
- Submitted 30 Nov 2026, announced 2 Dec 2026.

## Placed in

- LLM agents and tool use / [Reinforcement learning for LLM agents](https://mlsanity.com/agents/reinforcement-learning-for-llm-agents/)
- Knowledge distillation / [On-policy and self-distillation for LLMs](https://mlsanity.com/distill/on-policy-and-self-distillation-for-llms/)

## Abstract (arXiv)

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.
