TL;DR
This paper introduces LECO, a novel framework that enables Large Language Models (LLMs) to improve their reasoning abilities by learning from their own correct reasoning steps, rather than focusing on errors. This approach eliminates the need for external feedback, tools, or complex prompt engineering, leading to more efficient and accurate reasoning with reduced computational cost.
What Problem Does This Paper Address?
Large Language Models (LLMs) have shown impressive capabilities but still struggle with issues like hallucinations, unfaithful reasoning, and generating toxic content. While learning from feedback (human or external) and self-correction methods have been explored to address these limitations, they often rely on expensive data collection, external tools, or intricate prompt engineering. Existing self-correction methods primarily focus on learning from errors, which can be challenging for LLMs to identify and rectify effectively. This paper aims to bridge this gap by proposing a method that leverages the LLM's ability to learn from its own successful reasoning steps, making the process more intrinsic and efficient.
Methods
The core of the proposed method, LECO (Learning from Correctness), is a multi-step reasoning paradigm that focuses on accumulating correct reasoning steps. Instead of learning from errors, LECO identifies and reinforces correct steps to guide the model towards the final answer.
The key innovation lies in how LECO measures the "confidence" of each reasoning step. This is done using a novel, prompt-free method that analyzes the generation logits of the LLM. Specifically, it combines three factors:
- Average Token Score: The average probability of tokens within a step.
- Step Divergence Score: Measures the uniformity of token probabilities within a step, aiming to capture the distribution of confidence across tokens.
- Inter-step Transition Score: Quantifies the confidence of the initial tokens in a step, reflecting how well it transitions from the previous step.
These scores are combined to form an overall step confidence score. Steps with the lowest confidence are identified as potential error points, and the preceding steps are considered "correctness." These correct steps are then appended to the input for the next reasoning iteration, progressively refining the search space and improving the final answer.
Datasets
The paper evaluates LECO on various multi-step reasoning tasks, categorized into:
- Arithmetic Reasoning: GSM8K, MATH, AQuA, SVAMP
- Commonsense Reasoning: CSQA, StrategyQA
- Logical Reasoning: Date Understanding
The evaluation uses both off-the-shelf models (GPT-3.5-Turbo, GPT-4) and open-source models (DeepSeekMath-RL-7B).
Key Insights and Ideas
- Learning from Correctness is More Efficient than Learning from Errors: The paper argues that by focusing on what works (correct steps), LLMs can achieve better reasoning performance with less computational effort compared to methods that try to identify and fix errors.
- Intrinsic Confidence Measurement is Key: Developing a method to measure step confidence solely from generation logits, without external tools or prompts, is crucial for LECO's effectiveness and efficiency.
- Progressive Accumulation of Correctness: The iterative process of identifying and appending correct steps acts like building blocks, guiding the LLM towards a more robust solution.
- Robustness to Hyperparameters: The method shows consistent improvement across different datasets and models, indicating a degree of insensitivity to hyperparameter tuning.
Key Results
- Improved Reasoning Performance: LECO consistently improves reasoning accuracy across various tasks, particularly in arithmetic reasoning benchmarks like MATH. For instance, LECO+Complex shows significant gains over standard CoT and other baselines.
- Reduced Token Consumption: LECO significantly reduces token consumption (e.g., by 80%/20% compared to SC/RCI) by efficiently reaching the final answer with fewer iterations.
- Effectiveness on Open-Source Models: The framework demonstrates its utility by improving the performance of open-source models like DeepSeekMath-RL-7B.
- Comparable to Oracle Performance: In oracle tests, where correct steps are provided, LECO achieves performance comparable to human-annotated correct steps, outperforming random selection.
Limitations and Future Work
- Limitations:
- While LECO shows improvements, it doesn't completely eliminate errors, especially in commonsense reasoning tasks that require deep world knowledge.
- The paper notes that the "early stop" strategy, while reducing token consumption, might lead to slight performance drops by filtering out potentially correctable instances.
- Future Work:
- The authors suggest that LECO's confidence score algorithm could be integrated with more complex reasoning structures like Tree-of-Thoughts and Graph-of-Thoughts to further enhance their capabilities.
- Exploring LECO's potential for pruning complex reasoning structures is a promising avenue.
Summary updated