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

Step-Controlled DPO:利用逐步误差增强数学推理能力

Step-Controlled DPO: Leveraging Stepwise Error for Enhanced Mathematical Reasoning

Multimedia Laboratory (MMLab), The Chinese University of Hong Kong(多媒体实验室(MMLab),香港中文大学)

Zimu Lu, Aojun Zhou, Ke Wang, Houxing Ren, Weikang Shi, Junting Pan, Mingjie Zhan, Hongsheng Li

AI总结:

本研究提出步进控制DPO(SCDPO)方法,通过构造指定步骤出错的数学推理负样本提供逐步误差监督,在多类SFT模型上性能优于朴素DPO,应用于InternLM2-20B后取得媲美主流开源大模型的数学推理成绩。

摘要:

直接偏好优化(DPO)已被证明能有效提升大语言模型(LLM)在推理、对齐等下游任务上的性能。本文提出Step-Controlled DPO(SCDPO,步进控制DPO)方法,通过构造在指定步骤开始出错的数学推理解答负样本,自动提供逐步误差监督。将这类样本用于DPO训练后,SCDPO能更好地对齐模型,使其理解推理错误并输出准确推理步骤。我们将SCDPO应用于集成代码的解题方案和思维链解题方案,实验表明,在3种不同的SFT模型(包括1个现有SFT模型和2个我们微调的模型)上,该方法的性能均始终优于朴素DPO。对SCDPO与DPO的信用分配的定性分析,证明了SCDPO在识别数学解答错误方面的有效性。随后我们将SCDPO应用于InternLM2-20B模型,得到的20B规模模型在GSM8K上取得88.5%的高分,在MATH上取得58.1%的高分,可与所有其他开源LLM相媲美,展现了该方法的巨大潜力。

英文摘要:

Direct Preference Optimization (DPO) has proven effective at improving the performance of large language models (LLMs) on downstream tasks such as reasoning and alignment. In this work, we propose Step-Controlled DPO (SCDPO), a method for automatically providing stepwise error supervision by creating negative samples of mathematical reasoning rationales that start making errors at a specified step. By applying these samples in DPO training, SCDPO can better align the model to understand reasoning errors and output accurate reasoning steps. We apply SCDPO to both code-integrated and chain-of-thought solutions, empirically showing that it consistently improves the performance compared to naive DPO on three different SFT models, including one existing SFT model and two models we finetuned. Qualitative analysis of the credit assignment of SCDPO and DPO demonstrates the effectiveness of SCDPO at identifying errors in mathematical solutions. We then apply SCDPO to an InternLM2-20B model, resulting in a 20B model that achieves high scores of 88.5% on GSM8K and 58.1% on MATH, rivaling all other open-source LLMs, showing the great potential of our method.

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

↑