Introduction
Large Language Models (LLMs) have become remarkably proficient at complex reasoning tasks. To maximize their accuracy, a common technique is Self-Consistency, where the model generates multiple reasoning paths for a single query, and the final answer is determined by a majority vote. While this significantly boosts performance, it is computationally expensive, often requiring a fixed budget of 40 or more inferences per question.
The Efficiency Challenge
The primary inefficiency in Self-Consistency lies in its uniform allocation of computational resources. Whether a question is a simple arithmetic problem or a complex logical puzzle, the system generates the same number of samples. This "fixed budget" approach is wasteful; if the first few samples already show a strong consensus, additional inferences are unlikely to change the final majority answer.
Adaptive-Consistency: A Dynamic Approach
Researchers from IIT Delhi and Carnegie Mellon University have introduced Adaptive-Consistency, a model-agnostic method that dynamically decides when to stop sampling. By replacing the fixed budget with a lightweight statistical stopping criterion, the system can halt as soon as it is confident that the current leader will remain the majority winner.
Statistical Stopping Criteria
The core of Adaptive-Consistency is a mathematical model of answer stability:
- Dirichlet Distribution: The distribution of unique answers is modeled to quantify the probability that the current leader is the true majority answer.
- Beta Distribution Approximation: To ensure the stopping check itself is computationally negligible, the authors use a Beta distribution to approximate the probability that the top answer ($p_1$) is more likely than the runner-up ($p_2$).
- Dynamic Halting: Sampling continues until this confidence probability exceeds a predefined threshold (typically $C_{thresh} = 0.95$).
Experimental Results
The researchers evaluated Adaptive-Consistency across 17 diverse datasets using models like Vicuna-13B and GPT-3.5-Turbo. The evaluation spanned mathematical, commonsense, and symbolic reasoning, as well as code generation.
Key Findings
- Substantial Efficiency Gains: On average, Adaptive-Consistency required 3.3x fewer samples than standard Self-Consistency. In specific tasks like "Boolean Expressions," the sample budget was reduced by up to 7.9x.
- High Fidelity: These efficiency gains were achieved with a negligible impact on quality, showing an average accuracy drop of only 0.07%.
- Model Agnostic: The technique works effectively without requiring access to the model's internal weights or log-probabilities, making it applicable to proprietary APIs.
Conclusion
Adaptive-Consistency provides a robust framework for making LLM reasoning more efficient. By intelligently distributing computational effort based on task difficulty, it achieves the high accuracy of majority voting at a fraction of the cost. This approach paves the way for more sustainable and scalable deployment of reasoning-heavy AI applications.
Summary updated