Introduction
Chain-of-Thought (CoT) prompting has significantly advanced the ability of Large Language Models (LLMs) to perform multi-step reasoning. However, this approach remains fundamentally "open-loop" and fragile; a single logical or arithmetic error in an early step often cascades, resulting in an incorrect final answer. While previous research has attempted to mitigate this by training separate "verifier" models, such solutions are computationally expensive and require vast amounts of human-annotated data.
This paper introduces a novel "Self-Verification" framework that enables LLMs to verify their own reasoning without additional training or human intervention. By mimicking the human practice of double-checking a math problem by working backward from the result, the model can effectively score and rank its own candidate outputs.
The Self-Verification Framework
The proposed method operates in two distinct phases: Forward Reasoning and Backward Verification.
In the Forward Reasoning phase, the LLM generates multiple candidate answers ($K$) for a given prompt using sampling decoding. This diversity ensures that the correct answer is likely present within the set of candidates, even if it is not the top-ranked one initially.
In the Backward Verification phase, the model treats each candidate answer as a premise and attempts to re-derive the original conditions of the question. The authors highlight two primary techniques for this:
- Condition Mask Verification (CMV): Specifically designed for arithmetic tasks, the model masks a numerical condition in the original prompt (replacing it with 'X') and incorporates the candidate answer as a known fact. The LLM is then asked to solve for 'X'. If the predicted value matches the original masked condition, the candidate answer is deemed highly reliable.
- True-False Item Verification (TFV): For general reasoning tasks, the model is prompted to judge the logical consistency between the premises and the conclusion, outputting a "True" or "False" assessment.
Experimental Evaluation
The framework was evaluated across eight reasoning benchmarks, including arithmetic (GSM8K, SVAMP, MultiArith), commonsense (CSQA), and logical reasoning (Date Understanding). Using code-davinci-002, the researchers observed consistent performance gains. For instance, on the GSM8K dataset, accuracy improved from 60.8% to 65.1%. On SingleEq, performance reached 93.40%.
One of the most notable findings is the method's robustness to few-shot samples. Even with only a 2-shot prompt, the self-verification approach achieved nearly the same performance as an 8-shot CoT model, suggesting that the verification process compensates for less extensive prompting.
Key Insights and Scaling Behavior
A critical discovery of this research is that self-verification is an emergent property of scale. The ability to work backward and verify logic requires a high level of linguistic and logical competence that is absent in smaller models.
As shown in the scaling analysis, models with 0.4B or 1.3B parameters often perform worse when attempting self-verification, as they struggle to follow the verification prompts correctly. The benefits only become positive and significant as model size increases toward 7B and 175B parameters. This suggests that the inherent knowledge required for self-correction is already present in large models but requires a structured "backward" path to be effectively utilized.
Conclusion and Future Directions
Self-verification provides a training-free, interpretable way to improve LLM reasoning. Unlike "black-box" neural verifiers, this method generates a reasoning chain for the verification itself, allowing users to inspect why a model accepted or rejected a specific answer.
While the method increases inference costs due to multiple generation cycles, its synergy with other techniques like Self-Consistency (SC) and Program-Aided Language models (PAL) makes it a powerful tool for high-stakes reasoning tasks. Future work will focus on automating condition selection for non-mathematical tasks and optimizing the computational overhead of the verification process.
Summary updated