在线策略蒸馏中的收益与崩溃:强化学习视角

·

研究论文 · 2026/10/08

在线策略蒸馏(OPD)已成为语言模型后训练的重要方法。然而,尽管OPD能带来性能提升,它也可能崩溃为过度冗长和重复的生成,且这些不同结果背后的机制尚不清楚。我们从强化学习的角度解释这些结果:教师模型隐式地奖励学生行为,即使这些行为教师自身很少展现。从这个视角出发,我们的实验表明,OPD在不扩展学生能力的情况下提升了性能。当隐式奖励模型可靠时,OPD使正确响应更容易被采样。相反,当偏好与质量不一致时,会发生奖励黑客行为:隐式奖励模型放大学生过度冗长、重复的生成,尽管教师自身很少生成此类文本。基于这一诊断,我们发现训练时屏蔽不健康响应以及使用SFT初始化都能有效缓解崩溃。总之,这些发现表明OPD放大了教师隐式反馈所偏好的学生行为,将焦点从教师生成得有多好转移到它评估学生生成有多可靠。我们的代码可在https://github.com/HancCui/opd_hacking获取。

本文从强化学习角度深入剖析了在线策略蒸馏中性能提升与崩溃的双重现象,揭示了隐式奖励模型导致奖励黑客的机制,并提出了有效的缓解策略,对语言模型后训练具有重要理论和实践意义。

On-policy distillation (OPD) has become an important approach to language model post-training. However, despite its performance gains, OPD can also collapse into excessively long and repetitive generation, and the mechanism underlying these divergent outcomes remains poorly understood. We explain these outcomes through a reinforcement learning perspective: the teacher implicitly rewards student behaviors, even those it rarely exhibits itself. From this perspective, our experiments show that OPD improves performance without expanding the student's capabilities. When the implicit reward model is reliable, OPD makes correct responses easier to sample. In contrast, when the preference misaligns with quality, reward hacking happens: the implicit reward model amplifies overlong, repetitive student rollouts, even though it rarely generates such text itself. Guided by this diagnosis, we find that masking unhealthy responses during training and using SFT initialization can each effectively mitigate the collapse. Together, these findings show that OPD amplifies student behaviors favored by the teacher's implicit feedback, shifting the focus from how well the teacher generates to how reliably it evaluates student rollouts. Our code is available at https://github.com/HancCui/opd_hacking.

阅读原文

参与讨论