LastOPD:驯服潜在同策略蒸馏中的崩溃
研究论文 · 2026/09/29
在线策略蒸馏(OPD)根据学生模型生成的回答进行纠正,但其信号是教师模型的下一词元分布:它告诉学生教师说了什么,却忽略了教师如何思考。潜在监督通过将学生的潜在状态与教师对齐来弥补这一缺失。近期如OPRD等方法将这一信号引入在线策略蒸馏。然而,在将Qwen3-4B和Qwen3-8B蒸馏到Qwen3-1.7B-Base时,我们观察到该方法的两种失败模式:早期增益后晚期崩溃:仅潜在监督在10步内将MATH-500准确率从25提升至46,但后续训练性能降至11且无法恢复;对齐更好,行为更差:尽管对齐指标在崩溃过程中持续改善,但对齐最好的模型表现最差。进一步分析表明,潜在信号的应用方式存在不匹配:按深度配对的层在两个模型中扮演不同角色,因此持续对齐可能将学生拉向它无法理解的教师状态。为此,我们提出LastOPD,仅在最后一层状态(两个语言模型头读取的共同接口)应用潜在信号,并且仅在10步交叉淡入到词元级OPD期间应用。这保留了潜在信号的有用部分,并在崩溃发生前将学生交给词元级监督。大量实验表明,LastOPD使用4B和8B教师时,在MATH-500上比仅词元级OPD分别提升5.55和4.02分,在大多数留出数据集上领先,并以约一半的步数达到仅词元级OPD的最终分数。代码见https://github.com/Muyiiiii/LastOPD。
该研究识别了在线策略蒸馏中潜在监督的关键失败模式,并提出简单有效的解决方案LastOPD,显著提升性能并加速收敛,对模型蒸馏领域有重要实践意义。
On-policy distillation (OPD) corrects a student on the responses it writes, but its signal is the teacher's next-token distribution: it tells the student what the teacher says but misses how it thinks. Latent supervision promises the missing part by aligning the student's latent states to the teacher's. Recent methods such as OPRD bring this signal into on-policy distillation. However, we observe two failures of this recipe when distilling Qwen3-4B and Qwen3-8B into Qwen3-1.7B-Base. Early gain, late collapse: latent supervision alone lifts MATH-500 accuracy from 25 to 46 in 10 steps, but subsequent training degrades performance down to 11 with no recovery. Better alignment, worse behavior: although the alignment metric steadily improves throughout this collapse, the most aligned model turns out to be the worst performing. Further analysis suggests a mismatch in how the latent signal is applied: layers paired by depth play different roles in the two models, so continued alignment may pull the student toward teacher states it cannot understand. To address this, we propose LastOPD, which applies the latent signal only at the last-layer state, the common interface both LM heads read, and only during a 10-step crossfade into token-level OPD. This keeps the useful part of the latent signal and hands the student to token-level supervision before the collapse sets in. Extensive experiments show that LastOPD improves MATH-500 over token-only OPD by 5.55 and 4.02 points with the 4B and 8B teachers, leads on most held-out datasets, and reaches the final score of token-only OPD in about half the steps. Code is available at https://github.com/Muyiiiii/LastOPD.