SimpleOPD:面向长上下文推理的简单分词器无关在线策略蒸馏

·

研究论文 · 2026/08/17

本文研究了从长上下文推理教师模型向短上下文学生模型进行在线策略蒸馏(OPD)的实践挑战,包括分词器不匹配、分布不匹配、响应长度爆炸和训练不稳定。通过在共享文本空间中进行OPD,并仅对齐在两种分词器下占据相同文本跨度的token,解决了分词器差异。引入学生参考KL损失并屏蔽终止token的优势,以缓解长度爆炸和分布不匹配问题。实验在多个学生模型(如Qwen3、Intern-S2等)上显示数学推理能力显著提升,其中Intern-S2-Preview在ProofBench上提升21.2分,达到55.2,超过Gemini-2.5-Pro,并在科学基准上也有改进,表明OPD可迁移泛化能力。

该文针对长上下文推理蒸馏的实际工程问题提出了创新解决方案,实验证明其有效性,且结果具有泛化性,对推理模型蒸馏领域有重要参考价值。

On-policy distillation (OPD) offers a promising way to transfer reasoning capabilities from stronger teacher models, but applying it to long-context reasoning teachers and short-context students introduces practical challenges, including tokenizer mismatch, teacher-student distribution mismatch, response length explosion, and training instability. In this work, we study this setting by transferring proof-reasoning capabilities from the long-context reasoning model SU-01 to short-context student models. To handle tokenizer differences, we perform OPD in a shared text space and align only tokens that occupy identical text spans under the student and teacher tokenizers. To mitigate the problem of excessive generation length and frequent truncation, we introduce a student reference KL loss and mask the advantages of special termination tokens such as and <|im_end|>. This strategy constrains the student from drifting excessively from its initial policy, thereby mitigating the teacher-student distribution mismatch problem and fostering steady length growth. Experiments on both same-family and different-family student models, including Qwen3, Qwen3.5, Intern-S2, GLM-4.7, Gemma-4, show consistent gains in mathematical reasoning, especially natural-language math proving. Notably, Intern-S2-Preview improves by 21.2 points on ProofBench, reaching 55.2 and surpassing Gemini-2.5-Pro. It also improves on science benchmarks such as HLE and HiPhO, suggesting that OPD transfers reasoning capabilities that generalize beyond the mathematical training domain.

阅读原文

参与讨论