研究显示 on-policy 蒸馏选老师:贴近学生比更强模型更有效
Proximity over Strength in On-Policy Distillation: Evidence from Teacher Swaps in Code and Math
做蒸馏的人该看看这篇:实验证明当老师的不一定要更强,“未来的自己”当老师比 32B 强模型效果还好,编程题均分从 7.10 涨到 13.55,换强老师反而跌到 4 以下。选老师前先测一下它给学生 token 的概率。
一篇新论文比较了 on-policy 蒸馏中两种选老师的方式:按老师自身基准分数选,或按老师给学生初始推理 token 分配的平均对数概率选。在 172 道竞赛编程题上,由学生“未来的自己”(经 RL 改进的初始模型副本)当老师,把学生平均分从 7.10 提到 13.55(满分 100);换用两个更强的老师模型,学生平均分反而跌破 4。
机制上,on-policy 蒸馏要求老师给学生的推理打分,包括老师自己很少会做的选择,因此老师对学生行为分布的“邻近度”比自身能力更重要。论文还发现 Flash 配方中先训练模仿示范再加程序执行奖励,相比最佳蒸馏检查点没有明显增益。
作者先在代码任务上回溯性验证了这一排序,再在竞赛数学上前瞻性测试:未来自己当老师的学生比由更强的 32B 模型教出的学生高出 7.0 个百分点。这对用 RL 后模型做蒸馏的团队有直接参考价值。
Proximity over Strength in On-Policy Distillation: Evidence from Teacher Swaps in Code and Math
In on-policy distillation, a teacher scores the reasoning its student writes, including choices the teacher would rarely make itself. We compared two ways to choose that teacher. One uses the teacher's own benchmark score. The other uses the mean log probability it assigns to the starting student's reasoning tokens. In each domain we trained a fresh copy of the same student with each teacher. One teacher was the student's future self, a copy of the starting model that had already improved through reinforcement learning. On 172 competitive programming problems, this teacher assigned the highest probability on average to the student's choices and raised its mean score from 7.10 to 13.55 out of 100. With either of two stronger teacher models, the student's mean score fell below 4. A separate Flash recipe first trained the student on demonstrations. Adding program execution rewards gave no clear gain over its best distillation checkpoint. We identified the ranking retrospectively on code and tested it prospectively on competition math. The future-self student finished 7.0 percentage points ahead of the student taught by a stronger 32B model.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include on-policy distillation, distillation, reinforcement learning, code generation.
Source attribution: curated from arXiv cs.LG (@Zhiyuan Ma).