TL;DR
Large Language Models (LLMs) can be surprisingly good at self-verification, a process akin to humans double-checking their work. This paper introduces a method where LLMs generate answers using Chain-of-Thought (CoT) prompting and then, critically, verify these answers by re-evaluating the reasoning steps. This self-verification process significantly boosts performance on complex reasoning tasks without requiring additional training data or human annotations.
What Problem Does This Paper Address?
While Chain-of-Thought (CoT) prompting has dramatically improved LLMs' ability to tackle complex reasoning tasks like arithmetic, commonsense, and logical reasoning, it's not without its flaws. CoT requires multi-step predictions, making it susceptible to error accumulation. A small mistake early on can cascade, leading to incorrect final answers. This vulnerability is particularly problematic for precise, multi-step reasoning. The authors highlight that humans naturally employ self-verification to catch such errors, and they propose that LLMs can also develop this capability. Existing methods for improving LLM reasoning often rely on external verifiers that require extensive human annotation and fine-tuning, limiting their applicability.
Methods
The proposed method, "Self-Verification," involves two main stages:
- Forward Reasoning: This stage is similar to standard CoT prompting. The LLM is given a question and generates a series of intermediate reasoning steps to arrive at a candidate answer. To encourage diversity, multiple candidate answers are generated using sampling decoding.
- Backward Verification: This is the core of the proposed method. For each candidate answer generated in the forward pass, the LLM performs a backward verification. This involves:
- Rewriting: The original question and the candidate answer are combined into a new declarative statement (a conclusion).
- Condition Masking: The original conditions (facts or premises) of the problem are masked, and the LLM is prompted to re-predict them based on the rewritten conclusion. Two main verification strategies are employed:
- True-False Item Verification (TFV): For general QA tasks, the LLM is asked to determine if the original conditions are mutually consistent with the conclusion.
- Condition Mask Verification (CMV): For arithmetic tasks, specific numerical conditions are masked, and the LLM is tasked with predicting their values.
- Score Calculation: A verification score is computed based on the consistency between the LLM's re-predicted conditions and the original ones. This score reflects the confidence in the candidate answer.
- Selection: The candidate answer with the highest verification score is selected as the final output.
This approach avoids the need for additional verifier models or fine-tuning, relying solely on the LLM's inherent capabilities through carefully crafted prompts.
Datasets
The paper evaluates its method on eight benchmark datasets across three reasoning categories:
- Arithmetic Reasoning: GSM8K, SingleEq, AddSub, MultiArith, AQUA-RAT, SVAMP.
- Commonsense Reasoning: CommonsenseQA (CSQA).
- Logical Reasoning: Date Understanding (DU).
No new datasets were introduced; the focus was on applying the self-verification technique to existing benchmarks.
Key Insights and Ideas
- LLMs as Self-Verifiers: The most significant insight is that LLMs can indeed perform self-verification, mirroring human cognitive processes for error checking. This capability is not just an add-on but an emergent property that can be elicited through prompting.
- Explainable Scores: The verification scores generated are interpretable, providing a measure of confidence in the LLM's reasoning without requiring external models.
- Beyond CoT: Self-verification acts as a crucial post-processing step that significantly enhances the reliability of CoT-generated answers, mitigating the issue of error accumulation.
- Parameter Size Matters: The effectiveness of self-verification appears to scale with model size, suggesting it's a capability that emerges in larger, more powerful LLMs.
- Robustness with Limited Data: The method shows promising results even with a small number of few-shot examples, highlighting its potential in low-data scenarios.
Key Results
The proposed self-verification method consistently improved performance across all eight datasets. Notably:
- It achieved new state-of-the-art (SOTA) performance on six of the eight datasets.
- An average increase of 2.33% was observed for the Instruct-GPT model, indicating that even models with strong reasoning capabilities benefit.
- The performance improvement for arithmetic reasoning tasks (average of 1.67% to 2.84%) was generally higher than for other reasoning tasks.
- Combining self-verification with other forward reasoning techniques like Self-Consistency or PAL further boosted performance.
- Even with minimal computational overhead (e.g., P=2 in backward verification), performance improvements were observed.
Limitations and Future Work
- Prompt Sensitivity: The method relies on artificially constructed prompts, which could introduce bias.
- Candidate Answer Quality: The effectiveness of self-verification is contingent on the presence of at least one correct answer among the LLM's generated candidates.
- Model Size Dependency: Smaller LLMs may not benefit as much, as their reasoning abilities are less robust.
- Focus on Conclusions: The current method verifies the final conclusion rather than the entire inference process, limiting its applicability for evaluating the reasoning procedure itself.
- Computational Cost: While minimal, generating multiple inference chains and conclusions does increase computational resources. The authors suggest a balance between performance and resource consumption, recommending a value of P=10 for backward verification.
Future work could explore more sophisticated condition selection and masking for diverse reasoning tasks, and further investigate the emergent properties of self-verification in LLMs.
Summary updated