理解同策略蒸馏:基于稀疏交叉编码器的机制可解释性视角
研究论文 · 2026/09/30
在策略蒸馏(OPD)是一种广泛用于LLM推理的后训练技术,通常被认为是从更强的教师模型迁移知识,但OPD实际蒸馏到学生模型内部表示中的内容尚不清楚。我们使用稀疏交叉编码器研究这个问题,该编码器学习一个由OPD前后学生模型和教师模型共享的特征字典。然而,标准交叉编码器分析能识别模型特定特征,但无法说明模型如何使用其特征发生了变化,因为所有模型都被编码到同一组特征激活中。因此,我们提出了交换读出(swap readout),它独立读取每个学生检查点的特征激活,测量训练如何改变学生对每个特征的使用,即使对于交叉编码器未见过的检查点也有效。在三种OPD设置中,我们发现OPD既不创建特征,也不传递教师自身的特征,并且使学生超过98%的常用特征激活率变化在20%以内。我们进一步研究了通常在OPD之前进行并使其更有效的教师轨迹上的SFT预热。预热不是添加特征,而是以两种方式重新加权共享特征。首先,它已经提高和降低了许多OPD后来提高和降低的特征,提前完成了OPD的部分工作。其次,它改变了仅靠OPD不会改变的特征,特别是对话格式、推理风格和数学符号相关的特征,这些变化在OPD过程中持续存在。在不改变权重的情况下,将这种重新加权施加到直接蒸馏的学生特征上,使其准确率接近预热学生,而对打乱的特征进行相同改变则不会。总之,这些发现表明OPD重新加权现有特征而非获取新特征:学生从教师那里学习如何使用它们已经共享的特征。
该研究通过机制可解释性视角,澄清了在策略蒸馏的实际作用机制,挑战了传统认知,并为优化蒸馏过程提供了新见解。
On-policy distillation (OPD) is a widely adopted post-training technique for LLM reasoning. It is commonly believed to transfer knowledge from a stronger teacher, yet what OPD actually distills into the student's internal representations remains unclear. We study this question with sparse crosscoders, which learn one feature dictionary shared by the student before and after OPD and the teacher. Standard crosscoder analyses, however, identify model-specific features but cannot tell how a model's use of its features changes, since all models are encoded into one set of feature activations. We therefore propose the swap readout, which reads each student checkpoint's feature activations on its own, measuring how training changes the student's use of each feature, even for checkpoints unseen by the crosscoder. Across three OPD settings, we find that OPD neither creates features nor passes on the teacher's own, and leaves the firing rates of over 98% of the student's frequently used features within 20%. We further examine the SFT warm-up on the teacher's rollouts that commonly precedes OPD and makes it more effective. Rather than adding features, the warm-up reweights the shared ones in two ways. First, it already raises and lowers many of the features that OPD later raises and lowers, doing part of OPD's work in advance. Second, it changes features that OPD alone would not, notably those for conversation format, reasoning style, and mathematical notation, and these changes persist through OPD. Imposing this reweighting on a directly distilled student's features, without changing its weights, brings its accuracy close to that of the warmed-up student, whereas the same change on shuffled features does not. Together, these findings suggest that OPD reweights existing features rather than acquiring new ones: the student learns from the teacher how to use the features they already share.