arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.12125cs.LGcs.AIcs.CL
收藏

超越教师的学习:基于奖励外推的通用在线蒸馏

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

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);LLM Department, Tencent(腾讯人工智能实验室)

Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, Yankai Lin

AI总结:

本文提出通用在线蒸馏框架,通过奖励外推和灵活参考模型提升学生性能,改进蒸馏效果并超越教师表现。

摘要:

在线蒸馏(OPD)通过在学生生成的轨迹上对齐学生与教师的logit分布,已在提升学生性能方面展示了强大的经验收益,通常优于离线蒸馏和强化学习(RL)范式。在本工作中,我们首先理论证明OPD是密集KL约束RL的特殊情形,其中奖励函数和KL正则化始终以相同权重进行加权,参考模型可以是任意模型。然后,我们提出了通用在线蒸馏(G-OPD)框架,该框架通过引入灵活的参考模型和奖励缩放因子来扩展标准OPD目标,该因子控制奖励项相对于KL正则化的相对权重。通过在数学推理和代码生成任务上的全面实验,我们得出两个新的见解:(1)将奖励缩放因子设置为大于1(即奖励外推),我们称之为ExOPD,在各种教师-学生大小配对中 consistently 改善了标准OPD。特别是,在将不同领域专家的知识通过将领域特定的RL应用于相同的学生模型后合并回原始学生模型的设置中,ExOPD使学生能够甚至超越教师的性能边界,并优于领域教师。 (2)基于ExOPD,我们进一步发现,在强到弱蒸馏设置(即从较大的教师蒸馏出较小的学生)中,通过在RL之前选择参考模型为教师的基础模型进行奖励校正,可以得到更准确的奖励信号,并进一步提高蒸馏性能。然而,这种选择假设能够访问教师的预RL变体,并导致更多的计算开销。我们希望我们的工作为未来OPD的研究提供新的见解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑