TL;DR: Self-Consistency—sampling multiple LLM responses and selecting the majority answer—is a highly effective way to boost reasoning accuracy, but it is computationally expensive. This paper introduces a Bayesian stopping rule that leverages prior knowledge to halt sampling as soon as a statistical "winner" emerges. The authors prove both theoretically and empirically that tracking just the top two answers ($L=3$) is sufficient to achieve optimal sampling efficiency, drastically reducing compute costs without sacrificing accuracy.
The Problem: The High Cost of Consensus
When Large Language Models (LLMs) tackle complex reasoning or math problems, they are prone to hallucinations and logical errors. The standard mitigation strategy is Self-Consistency (SC): prompting the model to answer the same question multiple times (often 40 to 100 iterations) and selecting the most frequent response.
While effective, this brute-force approach is incredibly wasteful. For many straightforward questions, the model reaches a clear consensus after just 3 to 5 samples, yet standard SC continues generating responses until a fixed budget is exhausted.
Existing Adaptive Self-Consistency (ASC) methods attempt to stop early, but they typically ignore "prior" information—historical knowledge about how the model behaves on similar tasks. Furthermore, calculating the exact Bayesian probability that a current leading answer is the true mode is a combinatorial nightmare with $O(K!)$ complexity, rendering it far too slow for real-time inference.
The Solution: $L$-Aggregated Bayesian Stopping
To resolve this computational bottleneck, the authors propose a Bayesian Framework for ASC that treats the stopping decision as a sequential hypothesis testing problem. They introduce the $L$-aggregated posterior approximation, which simplifies the math while preserving the stopping power:
- Aggregation: Instead of tracking the exact count of every unique answer generated, the system only tracks the counts of the $L-1$ most frequent answers. All remaining answers are grouped into a single "tail" category.
- The $L=3$ Policy: The research focuses heavily on $L=3$, meaning the algorithm only monitors the #1 answer, the #2 answer, and "everything else."
- Efficient Computation: By utilizing dynamic programming, the posterior probability can be calculated in $O(K^L)$ time. For $L=3$, this computation is fast enough to be executed in real-time during inference.
- Hierarchical Priors: Because the exact answer distribution for a novel question is unknown, the framework uses a "hyper-prior" learned from historical training data. This helps the system estimate whether a query's answer distribution is likely to be "peaked" (easy, high consensus) or "flat" (hard, low consensus).
Key Insights and Results
The researchers evaluated their method across synthetic datasets, the FEVAL-TTC benchmark, and real-world reasoning tasks (CommonsenseQA, DisambiguationQA, GSM8K) using state-of-the-art models like Qwen-2.5-72B, GPT-4o mini, and LLaMA-3.1-405B.
- "Three is All You Need": The paper's most striking theoretical result is that tracking just the top two answers ($L=3$) yields the same asymptotic sampling efficiency as tracking the full distribution ($L=K$). The statistical gap between the leader and the runner-up contains almost all the necessary "stopping power."
- Massive Speedups: By leveraging priors, the algorithm can stop much earlier. On the CommonsenseQA dataset, the "uncertain prior" method saved over 80% in sampling costs compared to standard ASC, while maintaining similar accuracy.
- The Computational Sweet Spot: Empirical tests demonstrated that $L=3$ incurs a mere 14.2 ms overhead, making it significantly faster than $L=4$ (37.4 ms) while providing nearly identical sample efficiency to the exact, computationally heavy posterior.
- Calibration and the "Runner-Up" Bonus: Unlike prior-free methods that tend to over-sample at high confidence levels, the Bayesian approach is tightly calibrated to the user's desired error tolerance. Interestingly, stopping early sometimes improves accuracy; in ambiguous cases where the model's mode is actually incorrect, the Bayesian stopping rule is more likely to select a correct runner-up than a conservative, fixed-budget approach.
Limitations and Future Work
While highly effective, the framework does have limitations. It suffers from the cold-start problem: because it relies on historical data to build priors, it must revert to standard prior-free methods when deployed in completely unseen domains until enough data is collected. Additionally, the theoretical guarantees are sensitive to the quality of the priors; heavily biased priors can degrade performance.
Finally, the method operates on the assumption that the model's most consistent answer is the correct one. If an LLM is confidently and consistently wrong—a known issue with certain model biases—this method will simply arrive at that incorrect answer faster. Extending the framework to handle scenarios where the mode diverges from the ground truth remains an open and vital research question.
Summary updated