Abstract
Large Language Models (LLMs) often struggle with multi-step reasoning due to logical "divergence," where a single early misstep derails the entire solution. We present Reasoning Paths Optimization (RPO), a training framework that teaches models to contrast successful reasoning branches with specific errors. By isolating divergence points and applying a dual-objective loss, RPO achieves significant performance gains—up to 4.3% on MMLU-STEM—without requiring expensive human-annotated data.
Introduction: The Challenge of Multi-Step Reasoning
Chain-of-Thought (CoT) prompting has significantly improved LLM logic, yet models remain prone to "losing the plot" during complex tasks. Current preference optimization methods, such as Direct Preference Optimization (DPO), typically treat entire reasoning chains as single units of success or failure. This coarse-grained approach fails to address the specific junctions where reasoning actually fails. There is a critical need for a "step-aware" method that explores diverse reasoning paths and explicitly trains models to avoid the specific logical branches that lead to incorrect conclusions.
Methodology: Reasoning Paths Optimization (RPO)
The RPO framework addresses reasoning divergence through a three-stage process designed to provide granular feedback at the step level.
- Reasoning Generation: The model generates a "reference" reasoning path using few-shot CoT prompting. This path serves as a self-derived gold standard.
- Reasoning Exploration: At each intermediate step of the reference path, the model samples multiple new branches. It identifies "branch pairs" consisting of a favorable branch (leading to the correct answer) and an unfavorable branch (leading to an error).
- Reasoning Optimization: The model is fine-tuned using a dual-objective loss function. A Reference Loss (standard causal language modeling) ensures the model retains its core reasoning ability, while an Exploration Loss (a contrastive odds-ratio objective) penalizes the specific unfavorable branches discovered during exploration.
By focusing on these "divergence points," RPO provides more precise training signals than standard alignment techniques, effectively teaching the model to recognize and avoid its own typical pitfalls.
Experimental Results
We evaluated RPO on several challenging benchmarks, including GSM8K (math), MATH (competition-level math), and MMLU-STEM (science and technology). RPO consistently outperformed strong baselines such as Supervised Fine-Tuning (SFT), Rejection Sampling (RFT), and standard preference optimization (DPO/ORPO).
Key findings include:
- Significant Accuracy Gains: On Mistral-7B, RPO improved performance by 3.1% on GSM8K and 4.3% on MMLU-STEM over the best baseline.
- Model Agnostic Benefits: The method proved effective across different architectures and even improved the performance of already-aligned models like LLaMA-3-8B-Instruct.
- Long-Chain Stability: RPO showed the greatest benefits for problems requiring five or more reasoning steps, indicating improved logical "stamina."
Conclusion and Future Work
Reasoning Paths Optimization demonstrates that isolating local reasoning errors is more effective than global feedback. By leveraging a model's own solution space to find personalized "unfavorable branches," RPO creates a robust self-correction mechanism. Future work will explore extending RPO to code generation—where compilers can provide automated verification—and more specialized domains like automated theorem proving. While the exploration phase introduces computational overhead, the resulting gains in logical coherence and accuracy represent a significant step forward for autonomous LLM reasoning.
Summary updated