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

Full-Step-DPO:利用逐步奖励进行数学推理的自监督偏好优化

Full-Step-DPO: Self-Supervised Preference Optimization with Step-wise Rewards for Mathematical Reasoning

Nanyang Technological University(南洋理工大学);Shopee Pte. Ltd(Shopee私人有限公司);SEA Group(SEA集团)

Huimin Xu, Xin Mao, Feng-Lin Li, Xiaobao Wu, Wang Chen, Wei Zhang, Anh Tuan Luu

AI总结:

本文提出 Full-Step-DPO,通过自监督过程奖励模型对整条推理链逐步评分,并设计基于逐步奖励动态更新梯度的 DPO 损失,显著提升语言模型的数学推理能力。

摘要:

直接偏好优化(DPO)在处理长链数学推理时常常遇到困难。现有方法(如 Step-DPO)通常通过关注推理链中的第一个错误步骤来改进这一点。然而,它们忽视了所有其他步骤,并且严重依赖人类或 GPT-4 来识别错误步骤。为解决这些问题,我们提出 Full-Step-DPO,这是一种专为数学推理定制的新型 DPO 框架。它并非只优化第一个错误步骤,而是利用来自整个推理链的逐步奖励。这是通过训练一个自监督过程奖励模型实现的,该模型自动为每个步骤评分,在提供奖励的同时避免依赖外部信号。此外,我们提出一种新的逐步 DPO 损失,它根据这些逐步奖励动态更新梯度。这为语言模型赋予了更强的推理能力。在多种基础语言模型上,对域内和域外数学推理基准进行的大量评估表明,与最先进的基线相比,Full-Step-DPO 取得了更优的性能。

英文摘要:

Direct Preference Optimization (DPO) often struggles with long-chain mathematical reasoning. Existing approaches, such as Step-DPO, typically improve this by focusing on the first erroneous step in the reasoning chain. However, they overlook all other steps and rely heavily on humans or GPT-4 to identify erroneous steps. To address these issues, we propose Full-Step-DPO, a novel DPO framework tailored for mathematical reasoning. Instead of optimizing only the first erroneous step, it leverages step-wise rewards from the entire reasoning chain. This is achieved by training a self-supervised process reward model, which automatically scores each step, providing rewards while avoiding reliance on external signals. Furthermore, we introduce a novel step-wise DPO loss, which dynamically updates gradients based on these step-wise rewards. This endows stronger reasoning capabilities to language models. Extensive evaluations on both in-domain and out-of-domain mathematical reasoning benchmarks across various base language models, demonstrate that Full-Step-DPO achieves superior performance compared to state-of-the-art baselines.

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

↑