用于在线策略学习的桥接自蒸馏

·

研究论文 · 2026/10/23

在线策略蒸馏可以将强教师的推理能力迁移给较小的学生模型。然而,从更强的教师模型蒸馏面临两个不匹配:其解决方案可能难以被较小的学生模仿,其词元级概率可能与学生不兼容甚至不可用。现有方法通过不同形式的监督来处理这些情况。为此,我们提出了桥接自蒸馏(BSD),一个用于从任何提供推理轨迹的教师模型进行蒸馏的统一框架。被蒸馏的模型称为外部教师,首先提供推理轨迹作为特权上下文,该上下文可以离线生成。学生模型在没有该上下文的情况下生成轨迹,而一个以该上下文为条件的学生副本作为自教师,在学生自己的词元空间中为相同的轨迹打分。BSD利用得到的词元级指导来调整对不成功轨迹的更新,并由验证器提供结果信号。由于外部教师仅被查询以生成文本,相同的训练过程适用于所有教师场景:共享分词器、跨分词器和闭源API教师。在这些场景中,BSD均优于基础模型,并超越了针对每种场景定制的基线方法,为蒸馏提供了一条新颖且统一的路径。代码见:https://github.com/TUMLegalTech/Bridged-Self-Distillation

该论文提出了一种统一的蒸馏框架,能够处理多种教师场景,且实验证明其有效性,对于模型压缩和知识迁移领域具有重要参考价值。

On-policy distillation can transfer the reasoning capabilities of a strong teacher to a smaller student. However, distillation from a stronger teacher model faces two mismatches: its solutions may be difficult for a smaller student to imitate, and its token-level probabilities may be incompatible with, or even unavailable to, the student. Existing methods handle these settings through different forms of supervision. To this end, we propose Bridged Self-Distillation (BSD), a unified framework for distilling from any teacher that provides reasoning traces. The model to be distilled from, termed the external teacher, first provides a reasoning trace as privileged context, which can be generated in an offline fashion. The student generates rollouts without this context, while a copy of the student conditioned on it, serving as the self-teacher, scores the same rollouts in the student's own token space. BSD uses the resulting token-level guidance to adjust updates on unsuccessful rollouts, with a verifier providing the outcome signal. As the external teacher is queried only to produce text, the same training procedure applies to all teacher scenarios: shared-tokenizer, cross-tokenizer, and closed API teachers. Across these scenarios, BSD improves over the base model and outperforms baselines tailored to each scenario, offering a novel and unified pathway for distillation. Code is available: https://github.com/TUMLegalTech/Bridged-Self-Distillation

阅读原文

参与讨论