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

Step-DPO:用于大型语言模型长链推理的逐步偏好优化

Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMs

The Chinese University of Hong Kong(香港中文大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));SmartMore(思谋科技)

Xin Lai, Zhuotao Tian, Yukang Chen, Senqiao Yang, Xiangru Peng, Jiaya Jia

AI总结:

针对LLM长链数学推理中DPO难以定位细粒度错误的问题,提出Step-DPO方法,以单个推理步骤为偏好优化单元,构建10K高质量数据集,显著提升模型在MATH和GSM8K上的准确率,超越多个闭源模型。

摘要:

数学推理对大型语言模型(LLMs)构成了重大挑战,因为准确性需要广泛且精确的推理链。确保每个推理步骤的正确性至关重要。为了解决这一问题,我们旨在通过学习人类反馈来增强LLMs的鲁棒性和事实性。然而,直接偏好优化(DPO)在长链数学推理中表现出有限的益处,因为采用DPO的模型难以识别错误答案中的详细错误。这一局限性源于缺乏细粒度的过程监督。我们提出了一种简单、有效且数据高效的方法,称为Step-DPO,它将单个推理步骤作为偏好优化的单元,而不是整体评估答案。此外,我们为Step-DPO开发了一个数据构建流程,能够创建包含10K逐步偏好对的高质量数据集。我们还观察到,在DPO中,自生成数据比人类或GPT-4生成的数据更有效,因为后者具有分布外的性质。我们的研究结果表明,仅需10K偏好数据对和不到500个Step-DPO训练步骤,即可在MATH上为超过70B参数的模型带来近3%的准确率提升。值得注意的是,Step-DPO应用于Qwen2-72B-Instruct时,在MATH和GSM8K的测试集上分别取得了70.8%和94.0%的分数,超越了一系列闭源模型,包括GPT-4-1106、Claude-3-Opus和Gemini-1.5-Pro。我们的代码、数据和模型可在https://github.com/dvlab-research/Step-DPO获取。

英文摘要:

Mathematical reasoning presents a significant challenge for Large Language Models (LLMs) due to the extensive and precise chain of reasoning required for accuracy. Ensuring the correctness of each reasoning step is critical. To address this, we aim to enhance the robustness and factuality of LLMs by learning from human feedback. However, Direct Preference Optimization (DPO) has shown limited benefits for long-chain mathematical reasoning, as models employing DPO struggle to identify detailed errors in incorrect answers. This limitation stems from a lack of fine-grained process supervision. We propose a simple, effective, and data-efficient method called Step-DPO, which treats individual reasoning steps as units for preference optimization rather than evaluating answers holistically. Additionally, we have developed a data construction pipeline for Step-DPO, enabling the creation of a high-quality dataset containing 10K step-wise preference pairs. We also observe that in DPO, self-generated data is more effective than data generated by humans or GPT-4, due to the latter's out-of-distribution nature. Our findings demonstrate that as few as 10K preference data pairs and fewer than 500 Step-DPO training steps can yield a nearly 3% gain in accuracy on MATH for models with over 70B parameters. Notably, Step-DPO, when applied to Qwen2-72B-Instruct, achieves scores of 70.8% and 94.0% on the test sets of MATH and GSM8K, respectively, surpassing a series of closed-source models, including GPT-4-1106, Claude-3-Opus, and Gemini-1.5-Pro. Our code, data, and models are available at https://github.com/dvlab-research/Step-DPO.

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

↑