Skip to main content
QUICK REVIEW

[Paper Review] To Believe or Not to Believe Your LLM

Yasin Abbasi Yadkori, Ilja Kuzborskij|arXiv (Cornell University)|Jun 4, 2024
Comparative and International Law StudiesSocial Sciences3 citations
TL;DR

This paper proposes a mutual-information-based uncertainty estimator that decouples epistemic and aleatoric uncertainty in large language models (LLMs), enabling reliable detection of hallucinations through iterative prompting. By modeling multiple responses to the same query as a joint distribution, the method identifies when epistemic uncertainty is high—indicating unreliable outputs—outperforming baseline methods on mixed single- and multi-label datasets.

ABSTRACT

We explore uncertainty quantification in large language models (LLMs), with the goal to identify when uncertainty in responses given a query is large. We simultaneously consider both epistemic and aleatoric uncertainties, where the former comes from the lack of knowledge about the ground truth (such as about facts or the language), and the latter comes from irreducible randomness (such as multiple possible answers). In particular, we derive an information-theoretic metric that allows to reliably detect when only epistemic uncertainty is large, in which case the output of the model is unreliable. This condition can be computed based solely on the output of the model obtained simply by some special iterative prompting based on the previous responses. Such quantification, for instance, allows to detect hallucinations (cases when epistemic uncertainty is high) in both single- and multi-answer responses. This is in contrast to many standard uncertainty quantification strategies (such as thresholding the log-likelihood of a response) where hallucinations in the multi-answer case cannot be detected. We conduct a series of experiments which demonstrate the advantage of our formulation. Further, our investigations shed some light on how the probabilities assigned to a given output by an LLM can be amplified by iterative prompting, which might be of independent interest.

Motivation & Objective

  • Address the challenge of detecting hallucinations in LLMs, where model responses are factually incorrect despite high confidence.
  • Decouple epistemic uncertainty (lack of knowledge about truth) from aleatoric uncertainty (inherent randomness in valid responses) to better assess truthfulness.
  • Develop a method that works effectively in multi-answer scenarios, where standard uncertainty quantification fails due to high aleatoric uncertainty in ground-truth responses.
  • Enable reliable abstention policies that avoid incorrect predictions when epistemic uncertainty is high, without modifying model training.
  • Provide a provable lower bound on epistemic uncertainty using only model outputs from iterative prompting, avoiding reliance on model calibration or retraining.

Proposed method

  • Use iterative prompting to generate multiple responses to the same query, forming a joint distribution over outputs.
  • Model the joint distribution of responses under the assumption of conditional independence given the query, leveraging the chain rule of probability.
  • Apply a mutual-information-based estimator to quantify epistemic uncertainty, derived from the deviation of the joint distribution from a product distribution.
  • Derive a provable lower bound on epistemic uncertainty using information-theoretic principles, ensuring reliability when the bound is large.
  • Calibrate abstention thresholds on a calibration set to control false positive rates (e.g., 5% for single-label, 15% for multi-label data).
  • Use the Efron-Stein lower bound (ESLB) to estimate the mutual information between responses, enabling robust uncertainty quantification without access to ground-truth labels.
Q: What is the capital of the UK? A: London ( $\approx 1.0$ ) and Paris ( $1.29\times 10^{-10}$ ).
Q: What is the capital of the UK? A: London ( $\approx 1.0$ ) and Paris ( $1.29\times 10^{-10}$ ).

Experimental results

Research questions

  • RQ1Can epistemic uncertainty be reliably estimated in LLMs without access to ground-truth labels or model retraining?
  • RQ2How can mutual information between multiple model responses be used to detect when only epistemic uncertainty is high—indicating potential hallucinations?
  • RQ3Does the proposed method outperform first-order uncertainty estimators (e.g., log-likelihood or entropy) in mixed single- and multi-label settings?
  • RQ4Can the method maintain high recall and low error rates on high-entropy queries where multiple valid answers exist?
  • RQ5Is the mutual-information-based estimator robust enough to serve as a reliable abstention mechanism in real-world LLM deployment?

Key findings

  • The proposed mutual-information-based method (M.E.) achieves significantly higher recall than the baseline semantic entropy (S.E.) method on high-entropy queries, with recall near zero for S.E. but substantial for M.E. on mixed datasets.
  • On the TriviaQA+WordNet dataset, the M.E. method maintains low error rates (under 5%) across all entropy levels, while S.E. shows increasing error rates as entropy rises.
  • On AmbigQA+WordNet, the M.E. method achieves a recall of 0.85 with an error rate of 0.08 at a target loss rate of 0.15, outperforming S.E. which fails to abstain meaningfully on high-entropy queries.
  • The method successfully detects hallucinations in both single- and multi-answer responses by identifying high epistemic uncertainty, even when aleatoric uncertainty is high.
  • The mutual information estimator provides a provable lower bound on epistemic uncertainty, enabling reliable uncertainty quantification without requiring model retraining or calibration data with labels.
  • Iterative prompting amplifies the probabilities assigned to outputs, a phenomenon observed independently and potentially useful for interpretability or calibration.
Q: Who was the first US president? A: George Washington ( $0.999$ ) and Abraham Lincoln ( $3.1\times 10^{-06}$ ).
Q: Who was the first US president? A: George Washington ( $0.999$ ) and Abraham Lincoln ( $3.1\times 10^{-06}$ ).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.