Uncertainty Quantification for Hallucination Detection in Large Language Models: Foundations, Methodology, and Future Directions

Sungmin Kang, Yavuz Faruk Bakman, Duygu Nur Yaldiz, Baturalp Buyukates, Salman AvestimehrarXiv 2025 · OpenReview

Abstract

The rapid advancement of large language models (LLMs) has transformed the landscape of natural language processing, enabling breakthroughs across a wide range of areas including question answering, machine translation, and text summarization. Yet, their deployment in real-world applications has raised concerns over reliability and trustworthiness, as LLMs remain prone to hallucinations that produce plausible but factually incorrect outputs. Uncertainty quantification (UQ) has emerged as a central research direction to address this issue, offering principled measures for assessing the trustworthiness of model generations. We begin by introducing the foundations of UQ, from its formal definition to the traditional distinction between epistemic and aleatoric uncertainty, and then highlight how these concepts have been adapted to the context of LLMs. Building on this, we examine the role of UQ in hallucination detection, where quantifying uncertainty provides a mechanism for identifying unreliable generations and improving reliability. We systematically categorize a wide spectrum of existing methods along multiple dimensions and present empirical results for several representative approaches. Finally, we discuss current limitations and outline promising future research directions, providing a clearer picture of the current landscape of LLM UQ for hallucination detection.

Introduction

Large Language Models (LLMs) are increasingly integrated into critical workflows, yet they suffer from a persistent lack of reliability. They are famously overconfident, often delivering factually incorrect "hallucinations" with the same authoritative tone as a verified fact. In high-stakes fields like medicine or law, a "plausible but false" answer is worse than no answer at all.

Overview of the UQ for LLM Hallucination Detection framework.

To address this challenge, researchers have turned to Uncertainty Quantification (UQ). Unlike external verification methods that rely on web searches or knowledge graphs, UQ looks inward at the model's internal state or its distribution of possible answers to signal when it is merely guessing. This survey provides a comprehensive roadmap for measuring exactly how "uncertain" a model is about its own output.

Foundations of Uncertainty Quantification

The paper distinguishes between two primary types of uncertainty that contribute to model hallucinations:

  1. Aleatoric (Data) Uncertainty: This refers to inherent randomness in the data, such as a prompt that is genuinely ambiguous or has multiple valid interpretations.
  2. Epistemic (Model) Uncertainty: This stems from a lack of knowledge within the model itself. This is the "smoking gun" for hallucinations; if a model has not seen enough data about a specific topic during training, its epistemic uncertainty spikes, signaling a high risk of fabrication.

Methodological Framework

Existing UQ methods for LLMs can be categorized along four primary dimensions: conceptual approach, sampling requirements, model accessibility, and training reliance.

Taxonomy and categorization of UQ methods.

Conceptual Approaches

  • Token Probability-based: These methods analyze the raw log-probabilities of generated tokens. Examples include Length Normalized Scoring (LNS) and Semantic Entropy, which clusters similar meanings to avoid penalizing diverse phrasing (e.g., treating "Yes" and "Indeed" as identical).
  • Output Consistency-based: This "wisdom of the crowd" approach involves sampling the model multiple times for the same prompt. High variance in the answers indicates high uncertainty.
  • Internal State Examination: A "white-box" approach that probes hidden layer activations or attention weights to find patterns associated with guessing, such as SAPLMA or Lookback Lens.
  • Self-Checking: This involves prompting the model to estimate its own confidence or using a secondary "examiner" LLM to cross-reference the primary output.

Model Accessibility

Methods are further classified by the level of access required: Black-box (API only), Gray-box (access to output probabilities), and White-box (access to full internal weights).

Evaluation and Empirical Results

The authors evaluated these methods using the TruthTorchLM library across three distinct benchmarks: TriviaQA (short-form facts), GSM8K (mathematical reasoning), and FactScore-Bio (long-form biographical generation).

Key Findings

  • The Supervised Advantage: Methods that train a small auxiliary model on top of LLM features (like LARS) significantly outperform unsupervised methods, achieving AUROCs up to 0.86 on TriviaQA. However, these require labeled data and may struggle with domain generalization.
  • Short-form vs. Long-form: Performance drops significantly on long-form datasets like FactScore-Bio. Quantifying uncertainty for a full paragraph is vastly more complex than for a single word or phrase.
  • Verbalized Confidence: Interestingly, simply asking the model for a confidence score worked well for GPT-4o-mini but was less reliable for LLaMA-3, suggesting that RLHF (Reinforcement Learning from Human Feedback) may play a role in "teaching" models to estimate their own confidence.

Discussion and Future Directions

Despite rapid progress, several hurdles remain for the field of UQ in LLMs:

  • Temporal Knowledge: UQ is often static. If a model was certain about a fact that has since changed, UQ might still report high confidence in the now-outdated answer.
  • Interpretability: Most UQ scores are on arbitrary scales. Converting these into a human-understandable "probability of correctness" remains a major challenge.
  • Claim-level Decomposition: Future work must move toward "one score per claim" rather than "one score per response." A paragraph might be 90% certain and 10% hallucinated; current methods often blur this distinction.

Summary updated

BibTeX
@misc{kang2025uncertainty,
  author = {Sungmin Kang and Yavuz Faruk Bakman and Duygu Nur Yaldiz and Baturalp Buyukates and Salman Avestimehr},
  title = {{Uncertainty Quantification for Hallucination Detection in Large Language Models: Foundations, Methodology, and Future Directions}},
  year = {2025},
  eprint = {2510.12040},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.12040},
}
Figure