Fast and Effective On-policy Distillation from Reasoning Prefixes
Dongxu Zhang, Zhichao Yang, Sepehr Janghorbani, Jun Han, Andrew Ressler, Qian Qian, Gregory D. Lyng, Sanjit Singh Batra, Robert E. Tillman
TL;DR
This paper introduces on-policy prefix distillation, a simple modification of on-policy distillation (OPD) that supervises only the initial prefix of each student trajectory and gradually increases the trained prefix length via a linear schedule. By focusing training signals on early tokens where learning is most impactful for reasoning, prefix distillation achieves comparable performance to full OPD while reducing training FLOP by a factor of 2x–47x on AI-for-Math and out-of-domain benchmarks. The approach preserves the on-policy nature, uses a lightweight prefix strategy, and integrates a minimal special-token design to align teacher-student behavior. Empirical results across MATH, AIME, GPQA, and MMLU-Pro show that scheduled prefix OPD maintains strong accuracy with lower compute, offering practical advantages for scalable reasoning tasks while highlighting the importance of early-token supervision and careful tail handling. Limitations include potential tail-safety calibration concerns and the need for further exploration of adaptive schedulers and broader task domains.
Abstract
On-policy distillation (OPD), which samples trajectories from the student model and supervises them with a teacher at the token level, avoids relying solely on verifiable terminal rewards and can yield better generalization than off-policy distillation. However, OPD requires expensive on-the-fly sampling of the student policy during training, which substantially increases training cost, especially for long responses. Our initial analysis shows that, during OPD, training signals are often concentrated in the prefix of each output, and that even a short teacher-generated prefix can significantly help the student produce the correct answer. Motivated by these observations, we propose a simple yet effective modification of OPD: we apply the distillation objective only to prefixes of student-generated outputs and terminate each sampling early during distillation. Experiments on a suite of AI-for-Math and out-of-domain benchmarks show that on-policy prefix distillation matches the performance of full OPD while reducing training FLOP by 2x-47x.
