Abstract
Improving the multi-step reasoning ability of large language models (LLMs) with offline reinforcement learning (RL) is essential for quickly adapting them to complex tasks. While Direct Preference Optimization (DPO) has shown promise in aligning LLMs with human preferences, it is less suitable for multi-step reasoning tasks because (1) DPO relies on paired preference data, which is not readily available for multi-step reasoning tasks, and (2) it treats all tokens uniformly, making it ineffective for credit assignment in multi-step reasoning tasks, which often come with sparse reward. In this work, we propose OREO (Offline REasoning Optimization), an offline RL method for enhancing LLM multi-step reasoning. Building on insights from maximum entropy reinforcement learning, OREO jointly learns a policy model and value function by optimizing the soft Bellman Equation. Empirically, OREO surpasses existing offline learning methods on multi-step reasoning benchmarks, including mathematical reasoning tasks (GSM8K, MATH), and embodied agent control (ALFWorld). The approach can be extended to a multi-iteration framework when additional resources are available. Furthermore, the learned value function can be leveraged to guide the tree search for free, which can further boost the performance during test time.
Introduction
While Large Language Models (LLMs) are increasingly used for complex tasks like math and robotics, training them to reason through multiple steps remains difficult. Current popular methods have significant drawbacks:
- Online RL (e.g., PPO): Prohibitively expensive due to the need for constant environment interaction or real-time data generation.
- Direct Preference Optimization (DPO): Requires paired "win/loss" data, which isn't always available for reasoning tasks where you usually just have a "correct" or "incorrect" final answer. Furthermore, DPO treats all tokens in a sequence equally, failing at credit assignment—the ability to identify exactly which step or token in a long chain of thought actually caused a mistake.
- Supervised Fine-Tuning (SFT): Simple and effective but ignores "failure" data, missing the chance to learn what not to do.
The authors aim to create an offline RL method that works with unpaired, sparse-reward data while providing the fine-grained feedback necessary for complex reasoning.
Methodology: OREO
The authors introduce OREO (Offline REasoning Optimization), which draws on maximum entropy reinforcement learning. Its core components include:
- Soft Bellman Equation: Instead of just looking at the final outcome, OREO optimizes a "soft" version of the Bellman equation. This allows the model to estimate the value of being in a specific state (a partial reasoning chain) while staying close to a reference model (KL-regularization).
- Joint Learning: OREO simultaneously trains a policy model (the LLM that generates text) and a value function (a separate head that predicts future rewards).
- Token-Level Credit Assignment: Unlike DPO, which looks at the whole response, OREO operates at the token level. This allows the model to learn which specific parts of a reasoning chain are high-value.
- Iterative Refinement: OREO can be used in an iterative loop: the model generates new trajectories, evaluates them, and then retrains on this expanded dataset to continuously improve.
- Value-Guided Search: At inference time, the learned value function is used to guide "beam search," where the model explores multiple possible next steps and picks the one the value function deems most likely to lead to a correct answer.
Experimental Evaluation
The researchers evaluated OREO on three major benchmarks:
- GSM8K: Grade school math word problems.
- MATH: Challenging competition-level mathematics.
- ALFWorld: A synthetic environment where an embodied agent must follow natural language instructions to complete household tasks (e.g., "put a clean sponge in the cabinet").
Key Results and Insights
OREO consistently outperformed SFT, Rejection Sampling, DPO, and KTO across different model sizes (1.5B to 7B parameters):
- Math Performance: A Qwen-1.5B model trained with OREO achieved 52.5% accuracy on the MATH dataset, a significant jump over the SFT baseline (47.5%).
- Embodied AI: On ALFWorld, OREO achieved a 79.1% success rate in unseen environments, compared to just 69.4% for DPO and 67.2% for SFT.
- Iterative Gains: While Rejection Sampling tended to plateau after a few rounds of data collection, OREO showed steady, consistent improvement over multiple iterations.
- Explicit vs. Implicit Values: In DPO, the policy model is the value function (implicit). OREO argues for an explicit value function. Because of the "softmax bottleneck," a policy model's internal representations are often too constrained to accurately distinguish between subtle errors. An explicit value function head can look at the entire text sequence and provide a much richer assessment.
- "Free" Test-Time Scaling: The value function learned during training can be used at test time to perform tree searches. This allows a smaller model to act "smarter" by spending more computation on searching for the best path rather than just decoding greedily.
Conclusion
OREO is a new offline reinforcement learning framework that boosts the multi-step reasoning capabilities of LLMs without requiring expensive online interaction or paired preference data. By jointly learning a policy and an explicit value function, OREO achieves superior credit assignment and enables high-performance test-time search. Future work includes testing OREO on frontier-scale models (70B+) and extending it to other structured reasoning domains like code generation and web browsing.
Summary updated