数据源与状态仍在导航菜单中
arxiv.org·2026/10/22
跨tokenizer蒸馏的难点是词表与切分不同,现有logits方法常限制共享词表、需按tokenizer对选损失或只匹配观测chunk。CSD统一构造共享支持:one-to-one用解码相同的common-token pairs;one-to-many/many-to-one固定观测前缀、只变末尾token,用链式法则求成对序列概率;残差事件吸收其余概率保归一化,所有chunk共用同一匹配目标。作者报告,四个1B设置(Llama-3.2-1B/Gemma3-1B-PT学生,Qwen3-4B/Phi-4-mini教师)中CSD平均分均最高,比X-Token高0.66–5.38点,并超继续预训练与同tokenizer蒸馏;Llama-3.1-8B上较最强基线平均提升最高4.2点(base)和1.6点(instruct)。消融显示one-to-many/many-to-one用全支持、many-to-many保留观测对,教师top-k截断几乎不损精度却显著降步时。局限主要是英文任务,残差事件不区分支持外teacher偏好。
为什么重要 让 Llama/Gemma 学生从 Qwen/Phi 教师直接拿 logits 暗知识,无需手工选 tokenizer-pair 损失,适合多模型蒸馏流水线。适合 做跨架构模型蒸馏、多 tokenizer 对齐、或大模型知识迁移的工程与研究人员。
跨分词器 logits 蒸馏能够实现跨模型族的知识迁移,使学生模型从更强或更专门化的教师模型中学习。然而,词表和切分差异使教师与学生的下一个 token 分布难以对齐。现有基于 logits 的方法易于集成到标准蒸馏流程中,但往往依赖限制性启发式或针对特定分词器对的选择。
这些方法可能把监督限制在共享词表子集上,要求为不同分词器对人工选择不同目标,或者只匹配观察到的片段及其补集,而不是单个替代续写。我们提出 Common-Support Distillation(CSD),这是一个统一的基于 logits 的框架,在每个对齐的输入片段处构建教师与学生之间的共享支撑,并用单一目标匹配诱导分布。对于一对一的对齐,CSD 使用显式的公共 token 对作为共享支撑。
对于其他对齐,它构建一个虚拟支撑,其概率使用自回归链式法则计算。残差事件捕获显式支撑之外的概率质量,确保两个诱导分布保持归一化。
在包含 Llama-3.2-1B 与 Gemma3-1B-PT 学生、Qwen 与 Phi 教师的四个教师-学生设置中,CSD 在评估的跨分词器方法中始终取得最高平均性能,比最强替代方法最多高 1.8 分,并超过继续预训练和同分词器蒸馏。对于 Llama-3.1-8B,CSD 将平均准确率相对最强评估基线最多提升 4.2 分(基础学生)和 1.6 分(指令微调学生)。
Cross-tokenizer logits distillation enables knowledge transfer across model families, allowing students to learn from stronger or more specialized teachers.
However, differences in vocabulary and segmentation make teacher and student next-token distributions difficult to align.
Existing logits-based methods are easy to integrate into standard distillation pipelines, but often rely on restrictive heuristics or tokenizer-pair-specific choices.
They may restrict supervision to shared vocabulary subsets, require manually selecting different objectives for different tokenizer pairs, or match only the observed chunk and its complement rather than individual alternative continuations.
We introduce Common-Support Distillation (CSD), a unified logits-based framework that constructs a shared support between the teacher and student at each aligned input chunk and matches the induced distributions with a single objective.
For one-to-one alignments, CSD uses explicit common-token pairs as the shared support.
For other alignments, it constructs a virtual support whose probabilities are computed using the autoregressive chain rule.
A residual event captures probability mass outside the explicit support, ensuring that both induced distributions remain normalized.
Across four teacher-student settings comprising Llama-3.2-1B and Gemma3-1B-PT students with Qwen and Phi teachers, CSD consistently achieves the highest average performance among the evaluated cross-tokenizer methods, outperforming the strongest alternative by up to 1.8 points and surpassing both continued pretraining and same-tokenizer distillation.
For Llama-3.1-8B, CSD improves average accuracy over the strongest evaluated baseline by up to 4.2 points for the base student and 1.6 points for the instruction-tuned student.
注释 · 分数为 MMLU、WinoGrande、GSM8K、MATH、MBPP 的 3-shot 平均;X-Token 选 P-KL。出自 表 1 / §4.2
full logits
7.45s/步
k=128
3.66s/步,2.04×
k=16
3.60s/步
k=8192
4.03s/步
注释 · Qwen3-4B → Llama-3.2-1B;full logit 为 33.84/7.45s。出自 图 2 / §4.4


EVIDENCE / METHODS
表格
Gemma3-1B-PT 学生下,CSD 对 Phi 教师 Avg-5 达 28.98,比 X-Token 高 5.38 分。
| 教师 | ALM Avg-5 | X-Token Avg-5 | CSD Avg-5 |
|---|---|---|---|
| Qwen3-4B | 26.38 | 27.04 | 27.71 |
| Phi-4-mini | 27.17 | 23.60 | 28.98 |
注释 · X-Token 两种教师均选 P-KL;GOLD 在 MBPP 得 0 分,数学弱。出自 表 2 / §4.2
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。