Introduction
Large Language Models (LLMs) often struggle with "hallucinations"—generating confident but incorrect information. Determining when a model is "sure" versus when it is guessing is the core challenge of Uncertainty Quantification (UQ). Traditional state-of-the-art methods, such as Semantic Entropy (SE), rely on generating multiple responses and using discrete logic (bidirectional entailment) to check for consistency. However, these methods are often overly sensitive to minor phrasing differences and are computationally expensive due to the requirement for multiple sampling passes.
Proposed Methods: SEU and ASEU
This paper introduces two primary innovations to address the limitations of existing UQ techniques:
Semantic Embedding Uncertainty (SEU)
Instead of binary logic checks, SEU maps generated responses into a continuous high-dimensional vector space (embeddings). Uncertainty is calculated as the average pairwise cosine similarity between these vectors. This approach captures "shades of gray" in semantic meaning, making it robust to "correct noise"—extra information that is factually accurate but breaks rigid logical entailment rules.
Amortised SEU (ASEU)
To address the computational overhead of multi-sampling, the authors propose ASEU. By treating the semantic meaning of a response as a latent variable, the LLM is fine-tuned to predict these embeddings directly. This allows the model to estimate its own uncertainty in a single forward pass, significantly reducing latency for real-world applications.
Experimental Setup
The methods were evaluated on three open-domain question-answering benchmarks: TriviaQA, NQ Open, and Flan QA. Testing spanned three prominent open-source models: Llama-3.1-8B-Instruct, Mistral-7B-Instruct, and Phi-3.5-mini-instruct.
Key Results
The researchers found that SEU consistently outperforms Semantic Entropy and predictive entropy baselines across all tested models and datasets.
As shown in the figure above, SEU provides a more reliable measure of model confidence, effectively distinguishing between correct and incorrect outputs. Furthermore, the "amortised" version, ASEU, demonstrates strong performance even without multiple samples.
Discussion and Limitations
The shift from discrete logic to continuous embeddings allows for a more nuanced understanding of model certainty. While SEU is highly effective for short-answer QA, future work is needed to explore its application in long-form generation where semantic meaning is more complex. Additionally, while the 8B-parameter models showed significant improvement, scaling these methods to larger models remains an open area of research.
Summary updated