The Teacher Is a Direction, Not a Destination: Extrapolating RL-Induced Representation Residuals in On-Policy Distillation
Hao Li, MeiJia Chen, Weijie Ren, Donghan Li, Zijun Tian, Jingchun Huang, Naibo Wang
Abstract
On-policy distillation (OPD) trains a student to match the teacher's next-token distributions on the student's own trajectories and has yielded substantial empirical gains. Generalized variants allow the student to surpass the teacher by extrapolating an implicit reward in output space. The language-model head, however, attenuates this change anisotropically: much of the change encoded in the teacher's hidden states reaches the logits at a small fraction of its weight, and the sampled-token log-probability ratios on which output-space extrapolation relies inject noise that the extrapolation amplifies, making training unstable. We observe that reinforcement learning (RL) shifts a model's internal representations relative to its base checkpoint, and that the direction of this shift can be measured at every layer. Motivated by this observation, we propose RIDE (RL-Induced Direction Extrapolation), which extrapolates the RL-induced change directly in representation space: at every layer and token position, RIDE computes the residual between the teacher and its pre-RL checkpoint and regresses the student's hidden states toward targets displaced beyond the teacher along this residual. Conditioned on a sampled trajectory, this regression is equivalent to maximizing a linear directional reward defined by the residual under a quadratic penalty centered at the teacher, which makes explicit how the objective moves the student along the RL-induced direction while limiting its deviation from the teacher. Across four base/RL-teacher pairs spanning different scales, architectures, and pre-training lineages, RIDE approaches or exceeds the RL-trained teacher on every pair and is the only method whose mean does so, and it consistently outperforms output-space extrapolation, which degrades the student whenever the teacher is close to its base. Project page: https://github.com/xixixixixxxx/RIDE.
Create a lesson
Metadata
- Comments
- 19 pages; revised related-work discussion
Related papers
ReTaCo: Residual-Target Control for On-Policy Distillation
Shared title terminologycs.LGZixiang Ni, Zhuo Hu, Renjie Cao et al.
On the Off-Policy Teacher in On-Policy Distillation
Shared title terminologycs.LGLanglin Huang, Hao Liu, Mononito Goswami et al.
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.
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.
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.