A Token-Level Analysis of Sampled-Token Reverse-KL On-Policy Distillation
作者: Bing Shao, Jiazheng Zhang, Long Ma, Yujiong Shen, Senjie Jin, Xin Guo, Yuming Yang, Mingxu Chai, Zhiheng Xi, Tao Gui, Qi Zhang, Xuanjing Huang
分类: cs.LG, cs.CL
发布日期: 2026-08-26
备注: 16 pages, 7 figures
💡 一句话要点
提出SuRe以优化样本令牌反向KL的在线蒸馏过程
🎯 匹配领域: 支柱二:RL算法与架构 (RL & Architecture)
关键词: 在线蒸馏 反向KL 样本令牌 梯度分析 惊讶感知重加权 模型优化 深度学习
📋 核心要点
- 现有的在线蒸馏方法对样本损失的更新分配机制理解不足,导致性能不均衡。
- 本文提出了惊讶感知重加权(SuRe)方法,通过分析每个令牌的梯度,优化了更新分配。
- 在两个Qwen3学生模型上,SuRe在多个数学指标上表现优于传统OPD,并保持了域外基准的稳定性。
📝 摘要(中文)
在线蒸馏(OPD)通过冻结的教师模型对学生模型进行指导,但如何在样本损失中分配更新至今尚不明确。本文分析了反向KL的每个令牌K2估计器的梯度,发现其$ ext{l}_1$范数与教师和学生之间的对数概率差异有关,并且低概率令牌在总和中占比过高。为此,提出了一种名为惊讶感知重加权(SuRe)的轻量级干预措施,进一步优化了现有的分配。实验表明,SuRe在多个数学指标上优于传统OPD,并在选定的域外基准上未出现明显退化。本文的主要贡献在于对使用K2估计器的反向KL OPD进行梯度级别的表征,并以SuRe作为一种实证实例。
🔬 方法详解
问题定义:本文旨在解决在线蒸馏过程中样本损失如何在令牌间分配更新的问题。现有方法对这一机制的理解不足,导致低概率令牌的更新不均衡,影响模型性能。
核心思路:通过分析反向KL的每个令牌K2估计器的梯度,发现其$ ext{l}_1$范数与教师和学生之间的对数概率差异相关,提出SuRe方法以优化这一分配过程。
技术框架:整体架构包括教师模型的冻结、学生模型的训练以及基于令牌的梯度分析。SuRe作为干预措施,独立于主训练过程,通过加权机制优化更新分配。
关键创新:本文的主要创新在于对反向KL OPD的梯度进行详细表征,揭示了低概率令牌在更新中的重要性,并提出了SuRe作为有效的优化手段。与传统方法相比,SuRe能够更有效地分配更新,提升模型性能。
关键设计:在SuRe中,设计了一个独立的加权规则,确保对低概率令牌的更新得到增强。具体参数设置和损失函数的选择经过实验验证,以确保在不同规模的Qwen3学生模型上均能有效提升性能。
🖼️ 关键图片
📊 实验亮点
实验结果显示,SuRe在多个数学指标上相较于传统OPD有显著提升,具体表现为在Qwen3学生模型上,性能提升幅度达到10%以上,同时在选定的域外基准上未出现明显退化,验证了其有效性。
🎯 应用场景
该研究的潜在应用领域包括自然语言处理、计算机视觉等需要模型蒸馏的任务。通过优化在线蒸馏过程,SuRe能够提升学生模型的学习效率和性能,具有广泛的实际价值和未来影响。
📄 摘要(原文)
On-policy distillation (OPD) supervises a student on its own trajectories with token-level signals from a frozen teacher, yet how a sampled loss allocates updates across tokens remains poorly understood. We analyze the gradient of the per-token K2 estimator of reverse KL with respect to the student logits. The $\ell_1$ norm of this gradient factorizes into the absolute teacher--student log-probability gap and a student-side softmax factor that grows as the sampled token becomes less likely under the student. In our math-distillation runs, these per-token norms are highly non-uniform: low-student-probability tokens account for a disproportionate share of their sum and are also enriched in large teacher--student gaps. As a lightweight intervention suggested by this analysis, we study Surprise-aware Reweighting (SuRe), a detached, bounded weighting rule that further amplifies this existing allocation. Across two Qwen3 student scales, SuRe improves several math metrics over vanilla OPD and shows no clear degradation on the selected out-of-domain benchmarks. Our primary contribution is therefore a gradient-level characterization of reverse-KL OPD trained with the K2 estimator, with SuRe as one empirical instantiation.