TL;DR
Large Language Models (LLMs) struggle with accumulating errors in multi-step reasoning. This paper introduces a "Self-Evaluation Guided Beam Search" that uses an LLM's own self-assessment to guide its reasoning process, significantly improving accuracy on complex tasks. This approach enhances robustness and pinpoints logical failures, offering a more reliable way to extract accurate answers from LLMs.
What Problem Does This Paper Address?
LLMs have shown impressive capabilities in reasoning by breaking down problems into intermediate steps, often called "reasoning chains." However, as these chains get longer and more complex, errors can accumulate, leading to inaccurate final answers. This problem is exacerbated by the exponentially large search space of possible reasoning paths. Existing methods like self-consistency help by aggregating multiple reasoning chains, but they don't directly address the quality of individual steps. This paper aims to tackle the uncertainty and error accumulation in multi-step reasoning by introducing a mechanism that guides the LLM's reasoning process at each step.
Methods
The core innovation is a stepwise self-evaluation mechanism integrated into a stochastic beam search decoding algorithm. Instead of just generating tokens, each step in the reasoning process is treated as a semantic unit. An LLM is prompted to evaluate the correctness of each reasoning step, generating a "correctness confidence" score. This score, combined with the LLM's generation probability, forms a new decoding objective function that guides the search.
The stochastic beam search balances exploring new reasoning paths (exploration) with refining promising ones (exploitation) using temperature-controlled randomness. This allows the model to consider a diverse set of reasoning chains and select the best ones based on the self-evaluation guidance. The self-evaluation itself is framed as a multiple-choice question, where the LLM's probability of selecting the "correct" option serves as the confidence score.
Datasets
The authors evaluate their approach on a variety of benchmarks:
- Arithmetic Reasoning: GSM8K, AQUA, SVAMP, ASDiv, TabMWP
- Symbolic Reasoning: BIG-Bench (Date Understanding, Object Counting)
- Commonsense Reasoning: CommonsenseQA, StrategyQA, Sports Understanding from BIG-Bench
Key Insights and Ideas
- Self-evaluation as a calibrated guide: The LLM's own assessment of its reasoning steps acts as a more reliable criterion than raw generation probabilities, especially for identifying logical flaws.
- Stepwise calibration is crucial: Guiding the reasoning at each intermediate step prevents the accumulation of errors that plague longer reasoning chains.
- Stochastic beam search for diversity and quality: Balancing exploration and exploitation is key to finding high-quality reasoning paths within a vast search space.
- Correctness confidence is more discriminatory than generation confidence: The self-evaluation score is better at identifying logical errors than the LLM's inherent generation probability, which is more focused on text fluency.
- Longer reasoning chains benefit more: The gains from this method are more pronounced on tasks requiring more reasoning steps, highlighting its effectiveness in tackling complex problems.
Key Results
- Improved Accuracy: The proposed method achieved significant accuracy improvements over baselines. For example, it surpassed corresponding Codex-backboned baselines by 6.34% on GSM8K, 9.56% on AQuA, and 5.46% on StrategyQA.
- Comparable Computational Budgets: Experiments with Llama-2 demonstrated that the method outperforms baselines with similar computational costs.
- Pinpointing Logic Failures: Further analysis showed that the self-evaluation guidance effectively identifies logic failures, leading to higher consistency and robustness.
- Effectiveness on Longer Chains: Performance gains increased with the length of reasoning chains, indicating the method's strength in handling complexity.
Limitations and Future Work
- LLM Logit Requirement: The approach requires access to LLM logits to calculate self-evaluation scores, limiting its applicability to models that provide this information (e.g., GPT-4's API does not directly provide token likelihoods).
- Computational Cost: Multi-step decoding inherently incurs additional costs due to candidate sampling and self-evaluation. The authors suggest that the approach is best applied to longer reasoning chains where the cumulative calibration effect is most significant.
- Future Work: The authors plan to investigate how to utilize external tools to further enhance calibration and explore its generalizability to other multi-step tasks, including multi-hop question answering and scenarios involving multi-modal understanding, reasoning, and planning. They also aim to explore how to synergistically combine their method with more powerful LLMs like GPT-4.
Summary updated