Abstract
Language models (LMs) have recently shown remarkable performance on reasoning tasks by explicitly generating intermediate inferences, e.g., chain-of-thought prompting. However, these intermediate inference steps may be inappropriate deductions from the initial context and lead to incorrect final predictions. Here we introduce REFINER, a framework for finetuning LMs to explicitly generate intermediate reasoning steps while interacting with a critic model that provides automated feedback on the reasoning. Specifically, the critic provides structured feedback that the reasoning LM uses to iteratively improve its intermediate arguments. Empirical evaluations of REFINER on three diverse reasoning tasks show significant improvements over baseline LMs of comparable scale. Furthermore, when using GPT-3.5 or ChatGPT as the reasoner, the trained critic significantly improves reasoning without finetuning the reasoner. Finally, our critic model is trained without expensive human-in-the-loop data but can be substituted with humans at inference time.
Introduction
Large Language Models (LLMs) have demonstrated a growing capability for complex reasoning through "Chain-of-Thought" (CoT) prompting. By breaking down problems into sequential steps, these models can solve tasks that were previously out of reach. However, the reliability of these intermediate steps remains a significant hurdle; a single logical error early in the chain often cascades into an incorrect final conclusion.
Existing approaches to mitigate this, such as standard finetuning or Reinforcement Learning from Human Feedback (RLHF), often fall short. Finetuning requires vast amounts of high-quality human annotations, while RLHF typically relies on coarse scalar rewards that fail to pinpoint specific logical failures. REFINER addresses these limitations by introducing a dedicated "critic" model that provides fine-grained, structured textual feedback, allowing a "generator" model to iteratively refine its reasoning.
The REFINER Framework
The REFINER framework decouples the reasoning process into two distinct components: the Generator and the Critic.
- The Generator (θ): This model is responsible for solving the task by generating intermediate representations (e.g., mathematical equations or logical rules). It is trained to incorporate feedback from the critic to revise its previous hypotheses.
- The Critic (β): This model evaluates the generator's intermediate steps and provides structured feedback following a template:
<error_type, position, hint>. For instance, it might specify that an operator in a specific equation is incorrect.
Training Methodology
To ensure scalability without relying on expensive human-in-the-loop data, REFINER utilizes an automated training pipeline. The critic is trained on synthetic data created by perturbing correct reasoning chains (e.g., swapping operators or numbers) and pairing them with the corresponding error labels. The generator is then trained in an iterative loop where it learns to use this feedback to correct its mistakes.
Experimental Setup and Datasets
The authors evaluated REFINER across three diverse reasoning domains to test its versatility:
- Math Word Problems (MWP): Evaluated on SVAMP, MAWPS, and GSM8K datasets, where intermediate steps are mathematical equations.
- Synthetic Natural Language Reasoning (sNLR): A logic-based task requiring deduction from a set of rules and facts.
- Moral Stories (MS): A social reasoning task where the model must generate a moral norm and a corresponding action based on a given context.
Key Results and Insights
REFINER demonstrates substantial performance gains across all tested domains:
- Accuracy Improvements: REFINER outperformed comparably sized baselines by +13.1 points on SVAMP and +15 points on Moral Stories action generation.
- Cross-Model Utility: A small, specialized critic (e.g., a finetuned T5-base) was shown to improve the performance of much larger models like GPT-3.5 and ChatGPT by +3.5 to +6.8 points without any additional finetuning of the larger models.
- Superiority of Fine-Grained Feedback: The study confirms that structured textual hints are significantly more effective for model learning than simple scalar rewards. This feedback allows the model to understand why a step is wrong, rather than just knowing that it is wrong.
- Robustness: The generator model proved robust to minor noise in the critic's feedback during training, though high-quality feedback remains critical during the inference phase.
Conclusion
REFINER introduces a scalable and effective method for improving the reasoning capabilities of language models through iterative, structured feedback. By decoupling the critic from the reasoner and automating the critic's training, the framework provides a path toward more reliable and self-correcting AI systems. While iterative inference increases latency, the significant gains in accuracy and the ability to enhance large-scale models with small critics make REFINER a compelling approach for complex reasoning tasks.
Summary updated