Dr. OPD: Learning What to Follow for Optimal On-Policy Distillation of Large Language Models
Abstract
On-policy distillation (OPD) trains a student on its own generated responses using dense, token-level supervision from a stronger teacher. Vanilla OPD treats all teacher signals equally, assuming that the teacher's supervision is equally important for every token. However, teacher signals at different tokens may have very different effects on the student's performance: some correct important reasoning errors, while others have little effect on the final answer. Motivated by this observation, we introduce Dr. OPD (OPD Done Right), which defines the optimal weighted OPD to maximize the student's performance. We formulate Dr. OPD as a bilevel optimization problem in which the student learns from weighted teacher supervision, while the weights are selected to maximize the expected reward of the resulting student. To solve Dr. OPD, we develop an efficient iterative solver that updates the token weights and student policy alternatively. At each round, it updates weights in closed form and then takes one gradient step on the resulting weighted OPD objective. Under regularity conditions, we show that this weighted update achieves a higher expected reward than a vanilla OPD update. Empirically, across strong-to-weak and same-size distillation on math and code, Dr. OPD consistently outperforms all evaluated baselines. In particular, in the strong-to-weak distillation setting, Dr. OPD improves average math performance by points over vanilla OPD, and enables the smaller student to surpass its larger teacher.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL, math.OC
Related papers
No Task Vector Is an Island: A Comprehensive Study on the Composability of Task Vectors from On-Policy Distillation
Shared title terminologycs.LGJingang Zhou, Feiyu Han, Han Zhu et al.
ReTaCo: Residual-Target Control for On-Policy Distillation
Shared title terminologycs.LGZixiang Ni, Zhuo Hu, Renjie Cao et al.
OPMD: On-Policy Mechanism Distillation Beyond Output Supervision
Shared title terminologycs.LGYingdong Shi, Zhihong Li, Changming Li et al.
Understanding Off- vs On-Policy Distillation: A Tale of Distinct Training Objectives
Shared title terminologycs.LGQiwei Di, Xuheng Li, Kaixuan Ji et al.
On the Off-Policy Teacher in On-Policy Distillation
Shared title terminologycs.LGLanglin Huang, Hao Liu, Mononito Goswami et al.
Overcoming Scaling Limits in On-Policy Self-Distillation for LLM Reasoning
Shared title terminologycs.LGMd. Ismail Hossain, Humaira Kousar, Isidora Chara Tourni