更好的监督就在附近:邻域同策略自蒸馏

·

研究论文 · 2026/10/02

在策略自蒸馏(OPSD)使用特权教师模型(可见参考解)监督学生采样的前缀。标准OPSD在每个状态使用固定参数设置,但邻近设置可能提供额外监督。我们发现局部参数扰动在相同参考上下文下能揭示互补的参考对齐修正。不同专家在不同参考位置提供这些修正,其池覆盖的位置比未扰动的特权教师更多。我们提出邻域OPSD(N-OPSD),在学生访问的状态将这些修正转化为监督。离线阶段,通过奖励过滤后的参考词元增益(超过池当前最佳)进行贪婪选择,构建紧凑的冻结专家池。最高峰值专家不一定提供最佳训练目标。在线路由因此将锚方向与其支持水平分离:MaxPeak选择锚词元,分位数选择在顶部词元匹配的专家中进行挑选。学生通过继承自OPSD的裁剪前向KL目标,从所选专家的完整下一词元分布中学习。我们在AIME 2024、AIME 2025和HMMT February 2025上评估。每种方法三次独立运行,邻域OPSD在Qwen3-1.7B、4B和8B上分别将三个基准的Average@12比OPSD提高了2.75、1.67和1.94分。学生前缀延续支持使用池超越用于选择的参考轨迹。匹配消融支持过滤后的参考词元增益作为选择标准。考虑池内重叠和按状态路由进一步提高了学生准确率。推理仅使用蒸馏后的学生模型。

该论文提出了一种改进的在线自蒸馏方法,通过邻域参数扰动和专家池路由,显著提升了数学推理模型的性能,且推理时无额外开销,具有实际应用价值。

On-policy self-distillation (OPSD) trains mathematical reasoning models using a privileged teacher that sees a reference solution and supervises student-sampled prefixes. Standard OPSD uses one fixed parameter setting at every state, but nearby settings may offer additional supervision. We find that local parameter perturbations reveal complementary reference-aligned corrections under the same reference context. Different experts supply these corrections at different reference positions. Their pool covers more such positions than the unperturbed privileged teacher. We introduce Neighborhood OPSD (N-OPSD) to turn these corrections into supervision at student-visited states. Offline, greedy selection builds a compact pool of frozen experts by rewarding filtered reference-token gains beyond the pool's current best at each position. The highest-peak expert need not provide the best training target. Online routing therefore separates the anchor direction from its level of support. MaxPeak selects the anchor token, and quantile selection chooses among experts whose top token matches it. The student learns from the chosen expert's full next-token distribution through the clipped forward-KL objective inherited from OPSD. We evaluate on AIME 2024, AIME 2025, and HMMT February 2025. Across three independent runs per method, Neighborhood OPSD improves the three-benchmark Average@12 over OPSD by 2.75, 1.67, and 1.94 points on Qwen3-1.7B, 4B, and 8B, respectively. Student-prefix continuations support using the pool beyond the reference trajectories used for selection. Matched ablations support filtered reference-token gains as a selection criterion. Accounting for overlap within the pool and routing by state further improve student accuracy. Inference uses only the distilled student.

阅读原文

参与讨论