DiffGate:面向同策略蒸馏的难度门控教师指导

·

研究论文 · 2026/10/07

在策略蒸馏(OPD)通过在学生模型自身生成的轨迹上进行监督,减少了传统蒸馏的训练-测试不匹配,但现有OPD目标大多是token局部且与结果无关的,在每个前缀上优化师生一致性,而推理质量是由轨迹级别决定的。带可验证奖励的强化学习(RLVR),特别是组相对策略优化(GRPO),提供了互补的结果级监督,但面临奖励稀疏和信用分配粗糙的问题。我们表明OPD和RLVR表现出互补的盲点:教师信号提供密集的局部指导,但与 rollout 正确性对齐较弱;而组相对奖励捕捉任务成功,但提供粗糙的token级信用,并在全失败组上消失。我们提出DiffGate,一种结果门控目标,将GRPO与选择性、有界的教师指导相结合。教师监督仅应用于失败的轨迹,按组难度缩放,并平滑有界以防止极端的师生差异主导优化。因此,验证器决定哪些轨迹接受教师指导,而教师在这些轨迹内提供密集的token级更新方向。在Qwen3-0.6B和Qwen3-1.7B学生模型上,DiffGate在代码任务上相比匹配的GRPO将avg@8提高了+1.7和+1.8分,pass@8提高了+1.6和+5.7分。在数学任务上,avg@8与GRPO相差在0.5分以内,而pass@8提高了+1.1和+3.9分。总体而言,DiffGate在所有四个模型-领域设置中提高了pass@8,表明在我们的评估协议下解决方案覆盖范围有所改善。

该工作精准识别了在策略蒸馏与强化学习在监督信号上的互补缺陷,并提出简洁有效的结果门控机制,在多个模型和任务上一致提升解决方案覆盖率,对后训练大语言模型的研究具有直接参考价值。

On-policy distillation (OPD) has emerged as a widely used paradigm for post-training large language models, reducing the train--test mismatch of conventional distillation by supervising the student on its own generated trajectories. However, existing OPD objectives remain largely token-local and outcome-agnostic, optimizing teacher--student agreement at each prefix despite reasoning quality being determined at the trajectory level. Reinforcement learning with verifiable rewards (RLVR), particularly Group Relative Policy Optimization (GRPO), provides complementary outcome-level supervision but suffers from sparse rewards and coarse credit assignment. We show that OPD and RLVR exhibit complementary blind spots: teacher signals provide dense local guidance but are weakly aligned with rollout correctness, whereas group-relative rewards capture task success but provide coarse token-level credit and vanish on all-failure groups. We introduce DiffGate, an outcome-gated objective that combines GRPO with selective, bounded teacher guidance. Teacher supervision is applied only to failed trajectories, scaled by group difficulty, and smoothly bounded to prevent extreme teacher--student discrepancies from dominating optimization. The verifier therefore determines which trajectories receive teacher guidance, while the teacher provides dense token-level update directions within those trajectories. Across Qwen3-0.6B and Qwen3-1.7B students, DiffGate improves code avg@8 over matched GRPO by +1.7 and +1.8 points and pass@8 by +1.6 and +5.7 points, respectively. On mathematics, avg@8 remains within 0.5 points of GRPO while pass@8 improves by +1.1 and +3.9 points. Overall, DiffGate improves pass@8 across all four model--domain settings, demonstrating improved solution coverage under our evaluation protocol.

阅读原文

参与讨论