Reinforcement Learning

Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolation

WWenkai YangWWeijie LiuRRuobing XieKKai YangSSaiyong YangYYankai Lin
Published
February 12, 2026
Authors
6
Word Count
7,518
Code
Includes code

Make student models surpass teachers through reward extrapolation in distillation.

Abstract

On-policy distillation (OPD), which aligns the student with the teacher's logit distribution on student-generated trajectories, has demonstrated strong empirical gains in improving student performance and often outperforms off-policy distillation and reinforcement learning (RL) paradigms. In this work, we first theoretically show that OPD is a special case of dense KL-constrained RL where the reward function and the KL regularization are always weighted equally and the reference model can by any model. Then, we propose the Generalized On-Policy Distillation (G-OPD) framework, which extends the standard OPD objective by introducing a flexible reference model and a reward scaling factor that controls the relative weight of the reward term against the KL regularization. Through comprehensive experiments on math reasoning and code generation tasks, we derive two novel insights: (1) Setting the reward scaling factor to be greater than 1 (i.e., reward extrapolation), which we term ExOPD, consistently improves over standard OPD across a range of teacher-student size pairings. In particular, in the setting where we merge the knowledge from different domain experts, obtained by applying domain-specific RL to the same student model, back into the original student, ExOPD enables the student to even surpass the teacher's performance boundary and outperform the domain teachers. (2) Building on ExOPD, we further find that in the strong-to-weak distillation setting (i.e., distilling a smaller student from a larger teacher), performing reward correction by choosing the reference model as the teacher's base model before RL yields a more accurate reward signal and further improves distillation performance. However, this choice assumes access to the teacher's pre-RL variant and incurs more computational overhead. We hope our work offers new insights for future research on OPD.

Key Takeaways

  • 1

    On-policy distillation is equivalent to KL-constrained reinforcement learning with implicit rewards.

  • 2

    Reward extrapolation with lambda > 1 enables students to surpass teacher performance.

  • 3

    Generalized On-Policy Distillation unifies knowledge distillation and reinforcement learning frameworks.

Limitations

  • Reference model selection significantly impacts extrapolation effectiveness but lacks clear guidance.

  • Approach requires student to generate trajectories, increasing computational cost versus off-policy methods.

Keywords

on-policy distillationlogit distributiondense KL-constrained RLreward scaling factorreward extrapolationreward correctionteacher-student size pairingsdomain-specific RLstrong-to-weak distillation

More in Reinforcement Learning

View all
Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolation | Paperchime