面向数学推理的偏差约束前缀表示微调
Bias-Restrained Prefix Representation Finetuning for Mathematical Reasoning
AI总结:
针对表示微调(ReFT)在数学推理任务上性能下降的问题,本文提出BREP ReFT方法,通过优化初始推理前缀生成、干预早期推理、约束干预向量模长提升性能,实验证明其优于现有PEFT和标准ReFT方法。
摘要:
参数高效微调(PEFT)通过更新极小子集的参数来提升模型在下游任务上的性能。表示微调(ReFT)方法通过冻结模型权重、用比PEFT更少的参数优化内部表示进一步提升了效率,在多个任务上表现优于PEFT。然而,ReFT在数学推理任务上出现了显著的性能下降。为解决该问题,本文证明ReFT在数学任务上表现不佳主要源于其难以在推理早期阶段生成有效的推理前缀;此外,ReFT会干扰数值编码,且误差会在思维链(CoT)阶段累积。基于这些观察,本文提出偏差约束前缀表示微调(Bias-REstrained Prefix Representation FineTuning,BREP ReFT),该方法通过截断训练数据优化初始推理前缀的生成、对推理早期阶段进行干预以防止误差累积、约束干预向量的模长避免干扰数值编码,以此增强ReFT的数学推理能力。在多种模型架构上开展的大量实验证明了BREP优异的有效性、效率和鲁棒泛化能力,在数学推理任务上表现优于标准ReFT和基于权重的PEFT方法。源代码可在https://github.com/LiangThree/BREP获取。
英文摘要:
Parameter-Efficient finetuning (PEFT) enhances model performance on downstream tasks by updating a minimal subset of parameters. Representation finetuning (ReFT) methods further improve efficiency by freezing model weights and optimizing internal representations with fewer parameters than PEFT, outperforming PEFT on several tasks. However, ReFT exhibits a significant performance decline on mathematical reasoning tasks. To address this problem, the paper demonstrates that ReFT's poor performance on mathematical tasks primarily stems from its struggle to generate effective reasoning prefixes during the early inference phase. Moreover, ReFT disturbs the numerical encoding and the error accumulats during the CoT stage. Based on these observations, this paper proposes Bias-REstrained Prefix Representation FineTuning (BREP ReFT), which enhances ReFT's mathematical reasoning capability by truncating training data to optimize the generation of initial reasoning prefixes, intervening on the early inference stage to prevent error accumulation, and constraining the intervention vectors' magnitude to avoid disturbing numerical encoding. Extensive experiments across diverse model architectures demonstrate BREP's superior effectiveness, efficiency, and robust generalization capability, outperforming both standard ReFT and weight-based PEFT methods on the task of mathematical reasoning. The source code is available at https://github.com/LiangThree/BREP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。