The Map of Misbelief: Tracing Intrinsic and Extrinsic Hallucinations Through Attention Patterns
Elyes Hajji, Aymen Bouguerra, Fabio Arnez
TL;DR
The paper tackles hallucination detection in large language models by distinguishing intrinsic from extrinsic errors and proposing a principled evaluation framework. It introduces RAUQ, an attention-based uncertainty propagation method with multiple token- and head-aggregation variants to estimate confidence efficiently. A structured benchmark and extensive experiments across six open-source LLMs show that attention-based methods excel at intrinsic hallucination detection, while sampling-based methods remain strong for extrinsic cases, highlighting a type-aware approach. The results advocate for deploying lightweight, attention-driven uncertainty signals in safety-critical settings and chart directions for future research on grounding and detection strategies.
Abstract
Large Language Models (LLMs) are increasingly deployed in safety-critical domains, yet remain susceptible to hallucinations. While prior works have proposed confidence representation methods for hallucination detection, most of these approaches rely on computationally expensive sampling strategies and often disregard the distinction between hallucination types. In this work, we introduce a principled evaluation framework that differentiates between extrinsic and intrinsic hallucination categories and evaluates detection performance across a suite of curated benchmarks. In addition, we leverage a recent attention-based uncertainty quantification algorithm and propose novel attention aggregation strategies that improve both interpretability and hallucination detection performance. Our experimental findings reveal that sampling-based methods like Semantic Entropy are effective for detecting extrinsic hallucinations but generally fail on intrinsic ones. In contrast, our method, which aggregates attention over input tokens, is better suited for intrinsic hallucinations. These insights provide new directions for aligning detection strategies with the nature of hallucination and highlight attention as a rich signal for quantifying model uncertainty.
