TL;DR
This paper introduces AutoPSV, a novel method that automatically annotates the reasoning steps of Large Language Models (LLMs) by analyzing changes in a verifier's confidence scores. This allows for more efficient training of LLMs for reasoning tasks, reducing the need for expensive manual annotations and improving performance on math and commonsense reasoning benchmarks.
What Problem Does This Paper Address?
Large Language Models (LLMs) have shown impressive capabilities in various reasoning tasks. However, improving their reasoning often relies on techniques like few-shot prompting with intermediate steps or instruction tuning, which can be labor-intensive and require extensive, manually annotated data (e.g., chain-of-thought examples). Existing verification methods also face challenges: outcome supervision (checking only the final answer) is less informative, while process supervision (checking each step) is annotation-heavy. Model-induced process annotations can be computationally expensive. This paper addresses the need for an efficient and scalable method to automatically generate high-quality process annotations for LLM reasoning, enabling better training of verifiers and ultimately improving LLM reasoning abilities.
Methods
The core of AutoPSV is a two-stage process:
- Outcome-Supervised Verifier (OSV) Training: First, a verification model is trained using standard outcome supervision. This means it learns to predict the correctness of the final answer based on the LLM's generated reasoning steps. This OSV model is trained using Mean Squared Error (MSE) loss on the final answer's correctness.
- Automated Process Annotation and PSV Training: The trained OSV model is then used to generate "process annotations." It assigns a confidence score to each intermediate reasoning step, indicating the likelihood of that step leading to a correct final answer. AutoPSV identifies errors by detecting relative changes in these confidence scores between consecutive steps. A significant drop in confidence suggests an error in that step. These detected "errors" are then used to automatically label reasoning steps as correct or incorrect, creating process supervision data. This automatically generated data is then used to train an enhanced verifier, referred to as the Process-Supervised Verifier (PSV) or OSV+PSV, which leverages both outcome and process supervision signals.
Datasets
The paper evaluates AutoPSV on five datasets across two domains:
- Mathematics Reasoning:
- GSM8K: A dataset of grade-school math word problems.
- MATH: A dataset of high school math competition problems.
- Commonsense Reasoning:
- HellaSwag: A dataset for physically situated commonsense reasoning.
- Winogrande: A dataset for commonsense pronoun resolution.
- ANLI: A dataset for natural language understanding and reasoning.
The paper also mentions using an additional 7,000 unlabeled math problems generated using the Evol-Instruct method from WizardLM for evaluating performance in unlabeled settings.
Key Insights and Ideas
- Confidence Change as an Error Signal: The most significant insight is that relative changes in an LLM verifier's confidence scores across reasoning steps can effectively signal errors, even without ground truth step-by-step annotations. This is a clever way to leverage the verifier's internal state.
- Bridging Outcome and Process Supervision: AutoPSV elegantly combines the ease of outcome supervision (less annotation effort) with the richness of process supervision (fine-grained error detection) by using an OSV to generate process labels.
- Efficiency and Scalability: By automating process annotation, AutoPSV drastically reduces the need for manual labeling or computationally expensive methods like Monte Carlo Tree Search (MCTS) for generating process supervision data. This makes it highly scalable.
- Leveraging Unlabeled Data: A key advantage highlighted is AutoPSV's ability to utilize unlabeled data for enhanced performance, a capability that MCTS-based methods lack.
Key Results
- Improved Reasoning: The OSV+PSV model, trained with AutoPSV's automatically generated process annotations, consistently outperforms baseline methods (Self-Consistency and OSV) on both mathematical and commonsense reasoning benchmarks.
- Substantial Gains: For example, on the GSM8K benchmark, OSV+PSV achieves higher Pass@5 scores than OSV and Self-Consistency across various response generators (e.g., Mistral-Instruct, Mixtral-Instruct, Qwen).
- Computational Efficiency: AutoPSV requires significantly fewer tokens for process labeling compared to MCTS-based methods, making it more computationally efficient.
- Error Detection Accuracy: The method for detecting calculation errors using step-level confidence changes achieves high precision and recall, with F1-scores around 0.88 across various thresholds.
- Unlabeled Data Benefits: The addition of unlabeled data further boosts performance, demonstrating AutoPSV's flexibility.
Limitations and Future Work
- Annotation Accuracy: While AutoPSV aims to reduce manual annotation, there's still a risk of inaccurate process annotations. The confidence change is an estimation and might not perfectly reflect actual correctness.
- Verifier Performance Dependency: The quality of AutoPSV's annotations is directly tied to the accuracy of the underlying verifier model. If the verifier's step-level scores are poor, the generated annotations will also be compromised.
- Task Specificity: AutoPSV is designed to enhance multi-step reasoning tasks. Its applicability to tasks that don't involve intensive reasoning is less clear and warrants further investigation.
- Future Work: The authors suggest using the automatically constructed PSV to supervise the generator directly via step-wise proximal policy optimization to enhance the generator's output accuracy without needing subsequent reranking.
Summary updated