arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14022cs.LGcs.AI
收藏

OPMD:超越输出监督的在线策略机制蒸馏

OPMD: On-Policy Mechanism Distillation Beyond Output Supervision

ShanghaiTech University(上海科技大学)

Yingdong Shi, Zhihong Li, Changming Li, Jingyi Yu, Quan Li, Kan Ren

AI总结:

本文提出OPMD方法,通过构建与学生兼容的教师模型传递中间计算,在三类师生设置中获最高平均准确率,可推广至多教师蒸馏等任务,证明机制监督能提升推理效果。

摘要:

在线策略蒸馏(OPD)通过对学生模型在其自身策略采样的前缀上进行监督来改进语言模型,但其监督仍局限于输出空间。因此,OPD仅传递教师模型的预测结果,而不监督产生这些预测的中间计算。仅蒸馏中间表示(如表示匹配)是不够的,因为教师和学生的表示可能在几何上存在差异,即使对齐良好的隐藏状态也可能无法被学生的后续计算使用。我们提出在线策略机制蒸馏(OPMD),该方法在传递教师衍生的中间计算的同时,明确考虑其与学生模型的兼容性。OPMD首先构建与学生模型兼容的教师模型,将教师表示转换为学生下游计算可用的中间状态,然后从在线策略轨迹中内化这些状态。OPMD在所有三种师生设置中,在评估的蒸馏基线中实现了最高的平均准确率,并且可推广到多教师蒸馏和跨家族监督微调。进一步分析表明,机制监督能产生更有效的推理,显著改变学生模型的中间计算和解决策略,支持其传递了超出单纯输出监督的信息。这些结果共同确立了机制级监督是将在线策略蒸馏推向超越输出监督的有效方式,使学生模型能够学习并内化其可使用的内部机制。

英文摘要:

On-policy distillation (OPD) improves language-model by supervising a student on prefixes sampled from its own policy, but its supervision remains confined to the output space. Consequently, OPD transfers what a teacher predicts without supervising the intermediate computation that produces those predictions. Simply distilling intermediate representations like representation matching is insufficient since teacher and student representations may differ geometrically, and even well-aligned hidden states need not be usable by the student's subsequent computation. We introduce On-Policy Mechanism Distillation (OPMD), which transfers teacher-derived intermediate computation while explicitly accounting for its compatibility with the student. OPMD first constructs a student-compatible teacher that transforms teacher representations into intermediate states usable by the student's downstream computation, then it internalizes these states from on-policy trajectories. OPMD achieves the highest average accuracy among the evaluated distillation baselines in all three teacher--student settings, and generalizes to multi-teacher distillation and cross-family supervised fine-tuning. Further analyses show that mechanism supervision yields more effective reasoning and meaningfully alters the student's intermediate computation and solution strategies, supporting that it transfers information beyond output supervision alone. Together, these results establish mechanism-level supervision as an effective way to move on-policy distillation beyond output supervision, enabling students to learn inner mechanisms they can use and internalize.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑