Abstract
Large Language Models (LLMs) frequently exhibit "hallucinations," where they confidently assert factually incorrect information. A significant hurdle in detecting these errors is distinguishing between epistemic uncertainty (a lack of knowledge) and aleatoric uncertainty (the existence of multiple valid answers). We present a novel approach from Google DeepMind that utilizes iterative prompting and an information-theoretic metric based on Mutual Information (MI) to decouple these uncertainties. By measuring the model's dependence on its own previous context versus its internal knowledge, the proposed approach reliably flags hallucinations in complex, ambiguous scenarios.
What Problem Does This Paper Address?
The core challenge in LLM reliability is hallucination: the model confidently stating something false. Traditionally, researchers have used uncertainty quantification to catch these errors, assuming that if a model is "uncertain," it should not be trusted.
However, there are two very different types of uncertainty:
- Epistemic Uncertainty: The model lacks knowledge about the facts (e.g., it didn't see enough data during training). This is the "true" source of hallucinations.
- Aleatoric Uncertainty: The randomness is inherent to the question (e.g., "Name a city in the UK" has many valid answers).
Standard methods, like measuring the entropy (randomness) of the output, often fail because they cannot distinguish between these two. A high-entropy response might be a perfectly valid list of options, or it might be a total guess.
This paper aims to decouple these uncertainties to specifically target and detect hallucinations.
Methods
The authors propose a method based on iterative prompting and Mutual Information (MI).
The Iterative Prompting Trick
The researchers observed that if you repeat a potential answer (even a wrong one) multiple times in a prompt, a model that "knows" the truth will stick to its guns. However, a model with high epistemic uncertainty is easily swayed and will start "copying" the repeated answer from the prompt.
Mutual Information (MI) as a Metric
They derive an information-theoretic metric that measures the gap between the LLM’s internal distribution and the "ground truth" distribution. They prove that this gap is lower-bounded by the Mutual Information of the model's responses.
- The Logic: If the model’s responses are independent of each other (conditioned on the query), the MI is low, suggesting the model is drawing from solid "in-weight" knowledge. If the responses become highly dependent on the previous context (the iterative prompts), the MI spikes, signaling a hallucination.
Key Insights and Ideas
- Independence is the Signal: In a perfect world, if you ask a model for an answer multiple times, each answer should be an independent draw from the truth. Hallucinating models violate this independence because they become "anchored" to their own previous mistakes or the suggestions in the prompt.
- Mechanistic Explanation: The authors analyzed self-attention heads and found that if a query is well-represented in the training data ("in-weight"), the model ignores the prompt's influence. If the query is unfamiliar, the "in-context" repetitions in the prompt dominate the attention mechanism, forcing the model to copy.
- Decoupling works: Unlike simple entropy, MI specifically measures how much the answers depend on each other. This allows the system to stay quiet when there are many valid answers (low dependence) but flag a hallucination when the model is just following a prompt-induced trail of breadcrumbs.
Key Results
The study evaluated the method across several benchmarks, including TriviaQA (factual), AmbigQA (ambiguous), and a new WordNet-based multi-label dataset.
- Superiority in Ambiguity: On datasets containing both single and multi-answer questions, the MI-based method significantly outperformed standard entropy baselines.
- High Recall: The method achieved a much higher recall rate for hallucinations in high-entropy samples, catching "guesses" without accidentally flagging valid lists of options.
- Single-Label Parity: On simple factual tasks, the method performed as well as the best existing baselines, proving it maintains accuracy on easy tasks while gaining it on hard ones.
Limitations and Future Work
The primary limitation is computational overhead, as the method requires sampling multiple responses (typically $k=10$) and performing iterative prompting. Additionally, the experiments focused on short answers due to the limitations of semantic similarity metrics for long-form text. Future directions include exploring how this "probability amplification" via prompting could be used to actively improve model knowledge rather than just detecting its absence.
Summary updated