DuoOPD:从联合师生结果中学习多任务同策略蒸馏
研究论文 · 2026/10/01
在线策略蒸馏(OPD)利用更强教师模型的token级反馈,在学生的自身回答上训练学生,但教师可能在学生已正确回答的问题上失败,且各模型在不同任务上的成功频率各异。OPD忽略这些结果,平均而言甚至会压低学生正确的回答;按学生正确性门控反馈可修正方向,但无论教师是否成功都同样使用教师。我们提出DuoOPD,其中学生的结果决定反馈方向,而师生联合结果决定教师如何支持:当仅教师成功时,其验证答案成为评分学生失败回答的上下文;当仅学生成功时,任务内共享的权重强化整个回答。单一规则覆盖所有四种结果组合,无需任务特定设置。在Qwen3和Llama上,DuoOPD在平均宏准确率上优于所有五个基线,比OPD提升2.58和5.98个百分点,并在涵盖科学计算、指令遵循和代码生成的另外两个任务混合上也领先。消融实验表明,仅基于结果的方向接近门控基线,而联合结果设计贡献了大部分增益。
该工作针对在线策略蒸馏中教师反馈的盲目性问题,提出基于师生联合结果的自适应反馈机制,在多个模型和任务上显著提升性能,且方法简洁通用,对蒸馏和模型对齐研究有重要参考价值。
On-policy distillation (OPD) trains a student on its own responses with token-level feedback from a stronger teacher, yet the teacher can fail on questions the student already answers correctly, and how often each model succeeds varies across tasks. OPD ignores these outcomes and, on average, pushes down even the student's correct responses; gating feedback by student correctness fixes the direction but uses the teacher in the same way whether or not it succeeded. We introduce DuoOPD, in which the student's outcome sets the direction of feedback and the joint teacher-student outcome decides how the teacher supports it: when only the teacher succeeds, its verified answer becomes context for scoring the student's failed response, and when only the student succeeds, a weight shared within the task reinforces the whole response. A single rule covers all four outcome combinations without task-specific settings. Across Qwen3 and Llama, DuoOPD outperforms all five baselines in mean macro accuracy, improving over OPD by 2.58 and 5.98 percentage points, and it also leads on two further task mixtures spanning scientific calculation, instruction following, and code generation. Ablations show that outcome-based direction alone stays near the gated baseline, while the joint-outcome designs supply most of the gain.