Seedlabs
Source research

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

Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, Yankai Lin · 2026 · 231 citationsRead the paper

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.

What the full text shows

Working prototype
  • Reward extrapolation (ExOPD) with a scaling factor $\lambda=1.25$ consistently outperforms standard OPD and domain teachers in single-teacher distillation. — +2.0% avg accuracy in math, +0.9% avg accuracy in code vs. teacher (Same-sized student and teacher (Qwen3-4B-Non-Thinking))
  • ExOPD enables a unified student to surpass multiple domain-specific teachers in multi-teacher distillation. — +1.7% avg accuracy in math, +0.8% avg accuracy in code vs. OPD (Merging math and code domain experts into Qwen3-4B-Non-Thinking)
  • ExOPD significantly improves strong-to-weak distillation compared to standard OPD. — +2.3% avg accuracy improvement for 1.7B student, +2.7% for 4B student (Distilling from Qwen3-30B-A3B-Instruct-2507 on math reasoning)
  • Reward correction (using teacher's pre-RL model as reference) further boosts ExOPD performance in strong-to-weak distillation. — +1.2% to +1.0% avg accuracy increase over default ExOPD (Student Qwen3-1.7B, Teacher Qwen3-4B-RL-Math/Code)
  • Reward interpolation ($0 < \lambda < 1$) allows for budget-controlled reasoning by monotonically increasing performance and response length as $\lambda$ grows. (Same-sized student and teacher)
Setup
Experiments used Qwen3 models (1.7B, 4B, 30B) on DeepMath (57K samples) and Eurus-RL-Code (25K samples) datasets, evaluated on AIME, HMMT, HumanEval+, MBPP+, and LiveCodeBench.
How
The authors proposed Generalized On-Policy Distillation (G-OPD), which introduces a reward scaling factor $\lambda$ and a flexible reference model to the OPD objective. They implemented this using Group Relative Policy Optimization (GRPO) and token-level rollout correction.
Limitations
Excessive reward extrapolation ($\lambda=1.5$) can lead to instability and performance degradation. · Reward correction requires access to the teacher's pre-RL variant and increases computational overhead. · Potential for 'reward hacking' where the student fits the peak of the log ratio.

Summarized by Gemma 4 from the open-access full text · 29 Nov 2026. Read it