重新思考跨分词器在线策略蒸馏:从对齐覆盖到监督可靠性

·

研究论文 · 2026/10/07

在策略蒸馏(OPD)利用教师反馈在学生的自生成文本上训练学生。当分词器不同时,比较教师和学生的预测需要在序列和词汇两个层面进行对齐。本文检验扩大这种对齐覆盖范围是否能改善学习。在数学推理和代码生成任务上的三对异构教师-学生模型中,尽管词汇差异很大,严格的1:1对齐组已经覆盖了学生生成的大部分词元。在蒸馏前从学生采样的回复上,共享词汇在严格对齐位置平均保留了几乎所有的教师和学生概率质量。将反向KL限制在每个严格位置的学生选择的共享词汇前16子集上,其准确率与全共享词汇OPD相当,且优于所评估的跨分词器基线。在不匹配组中对跨度对数概率添加均方误差监督可实现完全监督覆盖,但会降低准确率。在仅使用严格损失训练的检查点上,跨度梯度与严格梯度的方向一致性较弱或为负,且相对于严格梯度幅度增大。这些诊断可能有助于解释添加跨度监督导致的准确率下降。我们的发现促使从最大化对齐覆盖转向优先考虑监督可靠性:在严格位置进行紧凑监督可能比引入弱对齐或冲突训练信号的更广泛覆盖更有效。

本文挑战了跨分词器蒸馏中扩大对齐覆盖的直觉,通过实证表明紧凑的严格位置监督更可靠,为设计更有效的蒸馏方法提供了新视角。

On-Policy Distillation (OPD) trains a student on its own generations using teacher feedback. With different tokenizers, comparing teacher and student predictions requires alignment at both sequence and vocabulary levels. In this paper, we examine whether expanding this alignment coverage improves learning. Across three heterogeneous teacher--student pairs on mathematical reasoning and code generation, strict 1:1 groups already cover most student-generated tokens despite substantial vocabulary mismatch. On responses sampled from the students before distillation, the shared vocabulary retains nearly all teacher and student probability mass at strictly aligned positions on average. Restricting reverse KL to a student-selected top-16 subset of the shared vocabulary at each strict position achieves accuracy comparable to full shared-vocabulary OPD, outperforming the evaluated cross-tokenizer baselines. Adding mean squared error supervision on span log-probabilities in mismatch groups gives complete supervision coverage, yet reduces accuracy. At checkpoints from training with only the strict loss, the span gradients show weak or negative directional agreement with the strict gradients and grow in magnitude relative to them. These diagnostics may help explain the accuracy drop from adding span supervision. Our findings motivate a shift from maximizing alignment coverage to prioritizing supervision reliability: compact supervision at strict positions can be more effective than broader coverage that introduces weakly aligned or conflicting training signals.

阅读原文

参与讨论