Introduction
As Large Language Models (LLMs) are increasingly deployed in high-stakes domains like medicine and law, the ability to quantify their uncertainty is critical. One of the most effective methods for this is consistency-based Uncertainty Quantification (UQ), which involves generating multiple responses to the same prompt and measuring their agreement. High divergence among answers typically signals high model uncertainty or potential hallucination.
The Redundancy Problem in Short-Form QA
Traditionally, consistency-based UQ relies on multinomial sampling to generate diverse candidates. However, for short-form Question Answering (QA), LLM probability distributions are often highly peaked. This leads to significant redundancy; researchers found that 30-50% of samples generated via multinomial sampling for short texts are exact duplicates. This redundancy wastes computational resources and introduces noise, making uncertainty estimates less reliable.
Method: Importance-Weighted Beam Search
To address this, the authors propose replacing multinomial sampling with beam search. Beam search naturally explores distinct decoding paths, ensuring a diverse set of candidate outputs. To prevent low-probability "tail" answers from disproportionately affecting the UQ score, the authors introduce an importance-weighted estimator. This method weights each beam search candidate by its normalized sequence probability, accurately reflecting the model's true distribution.
This approach was applied to several consistency metrics:
- Dissimilarity: Measures semantic distance between candidates and the primary answer.
- Eccentricity: A graph-based metric identifying the "centroid" of the answer space.
- CoCoA: A hybrid metric combining semantic consistency with token-level likelihoods.
Experimental Results
The researchers evaluated the approach across six QA datasets (including TriviaQA, CoQA, and ARC-Challenge) using models such as Gemma 3 4B, Llama 3.1 8B, and Qwen 3 8B. Performance was assessed using the Prediction-Rejection Ratio (PRR), which measures how effectively an uncertainty score can identify and reject incorrect model outputs.
High Performance at Low Budgets
A key advantage of the beam search approach is its efficiency. While multinomial sampling requires many draws to stabilize, beam search provides highly accurate uncertainty estimates with as few as 2 to 5 candidates.
As shown in the figure above, beam search (orange) consistently outperforms multinomial sampling (blue) across various metrics, particularly when the sample budget is small. The performance of beam search saturates much faster, making it a highly efficient choice for real-time applications.
Impact of Output Length
The performance gap is most pronounced for short outputs (2-4 tokens), where the duplicate rate for multinomial sampling is highest. As output length increases (8+ tokens), the gap narrows because multinomial sampling naturally produces more diverse sequences, though beam search still maintains a competitive edge.
Conclusion and Future Work
By leveraging beam search instead of multinomial sampling, consistency-based UQ becomes more robust and computationally efficient. This method achieves state-of-the-art results on several benchmarks, particularly for short-form QA. Future work may explore extending this approach to long-form generation and developing methods that do not require internal model probabilities, enabling use with closed-box APIs.
Summary updated