Full-Step-DPO: Self-Supervised Preference Optimization with Step-wise Rewards for Mathematical Reasoning
Huimin Xu, Xin Mao, Feng-Lin Li, Xiaobao Wu, Wang Chen, Wei Zhang, Anh Tuan Luu
TL;DR
Full-Step-DPO addresses the limitation of prior preference-based methods in mathematical reasoning by optimizing every step in a reasoning chain using step-wise rewards. It introduces a self-supervised Process Reward Model (PRM) to score each step and a Step-wise DPO Loss that dynamically weights per-step gradients by these rewards, enabling true step-wise optimization. The method is trained via a three-stage pipeline and evaluated across multiple open-source backbones on GSM8K, MATH, and out-of-domain datasets GK2023 and OCW, consistently surpassing DPO and Step-DPO baselines and demonstrating stronger, more robust reasoning capabilities. The results suggest significant practical impact for improving reasoning in LLMs and indicate avenues for extending step-wise reward frameworks to other complex reasoning tasks.
Abstract
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.
