OPMD: On-Policy Mechanism Distillation Beyond Output Supervision
Yingdong Shi, Zhihong Li, Changming Li, Jingyi Yu, Quan Li, Kan Ren
Abstract
On-policy distillation (OPD) improves language-model by supervising a student on prefixes sampled from its own policy, but its supervision remains confined to the output space. Consequently, OPD transfers what a teacher predicts without supervising the intermediate computation that produces those predictions. Simply distilling intermediate representations like representation matching is insufficient since teacher and student representations may differ geometrically, and even well-aligned hidden states need not be usable by the student's subsequent computation. We introduce On-Policy Mechanism Distillation (OPMD), which transfers teacher-derived intermediate computation while explicitly accounting for its compatibility with the student. OPMD first constructs a student-compatible teacher that transforms teacher representations into intermediate states usable by the student's downstream computation, then it internalizes these states from on-policy trajectories. OPMD achieves the highest average accuracy among the evaluated distillation baselines in all three teacher--student settings, and generalizes to multi-teacher distillation and cross-family supervised fine-tuning. Further analyses show that mechanism supervision yields more effective reasoning and meaningfully alters the student's intermediate computation and solution strategies, supporting that it transfers information beyond output supervision alone. Together, these results establish mechanism-level supervision as an effective way to move on-policy distillation beyond output supervision, enabling students to learn inner mechanisms they can use and internalize.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- 21 pages, 6 figures
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.
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.
Dr. OPD: Learning What to Follow for Optimal On-Policy Distillation of Large Language Models
Shared title terminologycs.LGZhenyu Wang, Tianze Wang, Linjun Zhang et al.
Overcoming Scaling Limits in On-Policy Self-Distillation for LLM Reasoning
Shared title terminologycs.LGMd. Ismail Hossain, Humaira Kousar, Isidora Chara Tourni