Abstract
State-of-the-art language models can exhibit impressive reasoning refinement capabilities on math, science or coding tasks. However, recent work demonstrates that even the best models struggle to identify when and where to refine without access to external feedback. Outcome-based Reward Models (ORMs), trained to predict correctness of the final answer indicating when to refine, offer one convenient solution for deciding when to refine. Process Based Reward Models (PRMs), trained to predict correctness of intermediate steps, can then be used to indicate where to refine. But they are expensive to train, requiring extensive human annotations. In this paper, we propose Stepwise ORMs (SORMs) which are trained, only on synthetic data, to approximate the expected future reward of the optimal policy or $V^{\star}$. Our experiments show that SORMs can more accurately detect incorrect reasoning steps compared to ORMs, thus improving downstream accuracy when doing refinements. We then train global refinement models and local refinement models. We find combining global and local refinements, using the ORM as a reranker, significantly outperforms either one individually. With this strategy we can improve the accuracy of a LLaMA-2 13B model on GSM8K from 53% to 65% when greedily sampled.
Introduction
Self-correction is a hallmark of human intelligence. When solving complex problems, humans often revisit their steps to identify and rectify errors. Large Language Models (LLMs), despite their reasoning prowess, often lack this internal compass. They frequently "hallucinate" that correct answers are wrong or fail to detect logical fallacies in their own reasoning. The GLoRe (Global and Local Refinement) framework addresses these limitations by teaching models when, where, and how to refine their reasoning using purely synthetic data.
Methodology: The GLoRe Pipeline
The GLoRe framework consists of a three-stage pipeline designed to build robust refinement capabilities without human-annotated step-level data.
Stage 1: Student Fine-tuning
The process begins with a base model (e.g., Llama-2) fine-tuned via Expert Iteration (EI). The model generates multiple solutions for training prompts; correct solutions are used for supervised fine-tuning (SFT), creating a strong "student" baseline.
Stage 2: Stepwise ORM (SORM) Training
A critical challenge in refinement is identifying where an error occurred. While standard Outcome Reward Models (ORMs) predict final correctness, they are often overly pessimistic about intermediate steps. GLoRe introduces the Stepwise ORM (SORM), which approximates the optimal value function ($V^*$). By sampling the model multiple times from an intermediate step, the SORM labels a step as "valid" if the model can reach the correct answer at least once in $K$ attempts. This synthetic labeling provides a more objective measure of a step's potential.
Stage 3: Refinement Training
Using data from the SORM, two types of refinement models are trained:
- Global Refinement (GR): Takes the question and the full incorrect draft to generate a corrected solution.
- Local Refinement (LR): Uses the SORM to pinpoint the first incorrect step (marked with a
[BAD]token) and generates a correction from that point forward.
Refinement Strategies in Action
The synergy between global and local refinement allows the system to handle different types of errors effectively. Global refinement is often better for fundamental misunderstandings, while local refinement excels at fixing specific calculation errors.
Results and Discussion
The GLoRe framework was evaluated on the GSM8K and SVAMP benchmarks. Key findings include:
- Significant Accuracy Gains: A Llama-2 13B model's accuracy on GSM8K improved from 53% to 65% using the GLoRe strategy.
- SORM Effectiveness: The SORM outperformed standard ORMs by 8% in error detection accuracy, proving that approximating $V^*$ is superior to predicting the current policy's outcome.
- Efficiency: The combined refinement approach (draft + 2 refinements) significantly outperformed a "Best-of-3" sampling baseline, demonstrating the value of targeted correction over redundant generation.
While the current SORM relies on a finite number of samples ($K=8$), which may still under-approximate the true value function, the results demonstrate that synthetic PRMs are a viable and scalable alternative to expensive human annotations. Future work may explore verbal critiques to further enhance the "how" of refinement.
Summary updated