arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.34183cs.CL
收藏

通过思维链向量投影实现轻量级推理迁移

Lightweight Reasoning Transfer via Chain-of-Thought Vector Projection

Yulin Qi, Shuo Xu, Shuxia Lin, Qingjian Ni, Xu Yang, Xin Geng

AI总结:

本文提出轻量级思维链向量投影方法,在冻结模型的情况下,通过线性投影器将教师模型的推理向量迁移至学生模型,在数学推理和代码生成任务中显著提升小型模型性能。

摘要:

将推理能力从大型语言模型迁移至小型模型通常需要大量教师监督或高昂的学生适配成本。本文研究投影跨模型思维链(CoT)向量迁移,这是一种两阶段方法,可保持两个模型均处于冻结状态。首先,利用数据集提供的解题轨迹和最终答案监督,在教师模型中学习任务级CoT向量;随后训练一个轻量级线性投影器,将该固定向量映射到小型学生模型的残差空间。学生侧训练仅使用任务训练示例的小子集上的最终答案交叉熵,既不需要教师输出,也不需要中间解题轨迹。我们在标记支持集上选择学生注入层和干预规模,并在各评估拆分的不相交剩余部分报告结果。在GSM8K和MATH数据集上,投影向量在所有评估的教师-学生设置中将基础学生模型的准确率提升了10.37至21.98个百分点;在四个代码生成基准上,Qwen2.5-7B-Instruct学生模型获得3.23至4.67的pass@1指标提升,而基础Qwen2.5-7B学生模型的提升最高达9.65个百分点。这些结果表明,教师侧的推理向量可仅通过投影器适配,在具有不同残差维度的小型学生模型之间复用。

英文摘要:

Transferring reasoning capabilities from large language models to smaller ones often requires extensive teacher supervision or costly student adaptation. We study projected cross-model Chain-of-Thought (CoT) Vector transfer, a two-stage approach that keeps both models frozen. First, we learn a task-level CoT Vector in the teacher using dataset-provided solution traces and final-answer supervision. We then train a lightweight linear projector to map the fixed vector into a smaller student's residual space. Student-side training uses only final-answer cross-entropy on a small subset of task training examples; it requires neither teacher outputs nor intermediate solution traces. We select the student injection layer and intervention scale on a labeled support set and report results on the disjoint remainder of each evaluation split. On GSM8K and MATH, the projected vector improves base students by 10.37-21.98 accuracy points across the evaluated teacher-student settings. On four code-generation benchmarks, the Qwen2.5-7B-Instruct student gains 3.23-4.67 pass@1 points, while the base Qwen2.5-7B student gains up to 9.65 points. These results show that a teacher-side reasoning vector can be reused across smaller students with different residual dimensions through projector-only adaptation.

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

↑