Efficient Hallucination Detection for LLMs Using Uncertainty-Aware Attention Heads
Not on the map. Why?
Abstract (arXiv)
While large language models (LLMs) have become highly capable, they remain prone to factual inaccuracies, commonly referred to as "hallucinations." Uncertainty quantification (UQ) offers a promising way to mitigate this issue, but most existing methods are computationally intensive and/or require supervision. In this work, we propose Recurrent Attention-based Uncertainty Quantification (RAUQ), an unsupervised and efficient framework for identifying hallucinations. The method leverages an observation about transformer attention behavior: when incorrect information is generated, certain "uncertainty-aware" attention heads tend to reduce their focus on preceding tokens. RAUQ automatically detects these attention heads and combines their activation patterns with token-level confidence measures in a recurrent scheme, producing a sequence-level uncertainty estimate in just a single forward pass. Through experiments on twelve datasets spanning question answering, summarization, and translation across nine different LLMs, we show that RAUQ consistently outperforms state-of-the-art UQ baselines. Importantly, it incurs minimal overhead, requiring less than 1% additional computation. Since it requires neither labeled data nor extensive parameter tuning, RAUQ serves as a lightweight, plug-and-play solution for real-time hallucination detection in white-box LLMs.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 45 of its 61 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
45 of 61 references.
References · 45
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
33 more
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
- 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 913
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2018CoQA: A Conversational Question Answering Challengecited by 683
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 535
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 323
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
- 2023AlignScore: Evaluating Factual Consistency with a Unified Alignment Functioncited by 288
- 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
- 2020Unsupervised Quality Estimation for Neural Machine Translationcited by 211
- 2024Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantificationcited by 162
- 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 150
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
- 2019A Question-Entailment Approach to Question Answeringcited by 134
- 2024Benchmarking Uncertainty Quantification Methods for Large Language Models with LM-Polygraphcited by 105
- 2023Enhancing Uncertainty-Based Hallucination Detection with Stronger Focuscited by 99
- 2024Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Modelscited by 86
- 2024LUQ: Long-text Uncertainty Quantification for LLMscited by 81
- 2023Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Modelscited by 67
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
- 2019Mitigating Uncertainty in Document Classificationcited by 22
- 2024Rethinking Uncertainty Estimation in LLMs: A Principled Single-Sequence Measurecited by 18
- 2025Token-Level Density-Based Uncertainty Quantification Methods for Eliciting Truthfulness of Large Language Modelscited by 18
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2024Contextualized Sequence Likelihood: Enhanced Confidence Scores for Natural Language Generationcited by 16
- 2023Uncertainty Estimation on Sequential Labeling via Uncertainty Transmissioncited by 10
- 2024Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Modelscited by 9
Built on by
Citing papers per year: 2025: 2; 2026: 14.
16 papers.
Sort:
By area:
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoningcited by 10
- 2025Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generationcited by 7
- 2026Uncertainty Propagation in LLM-Based Systemscited by 3
- 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answeringcited by 2
- 2026Detecting Contextual Hallucinations in LLMs with Frequency-Aware Attentioncited by 2
- 2026The Origins of Stochasticity: Comprehensive Investigations on Uncertainty Quantification for Large Language Modelscited by 2
- 2026Leveraging LLM Parametric Knowledge for Fact Checking without Retrievalcited by 1
- 2026Learning Uncertainty from Sequential Internal Dispersion in Large Language Modelscited by 1
- 2026Evolutionary Search for Automated Design of Uncertainty Quantification Methodscited by 0
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectoriescited by 0
- 2026Uncertainty Quantification for Large Language Diffusion Modelscited by 0
- 2026How Do Uncertainty Estimators Align with Hallucination Occurrence in LLMs?cited by 0
4 more
- 2026Integrating Local and Global Entropy for Uncertainty Quantification in LLMscited by 0
- 2026SIRIN: A Unified Toolkit for Detecting Contextual Hallucinations in Retrieval-Augmented and Memory-Grounded LLM Systemscited by 0
- 2026ActMap: Single-Pass Uncertainty Quantification from Generation-Time Activation Mapscited by 0
- 2026Efficiency Hallucination: Formalizing and Measuring Behavioral Calibration in LLM-Based Code Optimizationcited by 0
- 2026Efficiency Hallucination: Formalizing and Measuring Behavioral Calibration in LLM-Based Code Optimization13 Sep 2026
- 2026ActMap: Single-Pass Uncertainty Quantification from Generation-Time Activation Maps10 Sep 2026
- 2026SIRIN: A Unified Toolkit for Detecting Contextual Hallucinations in Retrieval-Augmented and Memory-Grounded LLM Systems20 Jul 2026
- 2026The Origins of Stochasticity: Comprehensive Investigations on Uncertainty Quantification for Large Language Models22 Jun 2026
- 2026Integrating Local and Global Entropy for Uncertainty Quantification in LLMs2 Jun 2026
- 2026How Do Uncertainty Estimators Align with Hallucination Occurrence in LLMs?26 May 2026
- 2026Uncertainty Quantification for Large Language Diffusion Models14 May 2026
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectories30 Apr 2026
- 2026Uncertainty Propagation in LLM-Based Systems26 Apr 2026
- 2026Learning Uncertainty from Sequential Internal Dispersion in Large Language Models17 Apr 2026
- 2026Evolutionary Search for Automated Design of Uncertainty Quantification Methods3 Apr 2026
- 2026Leveraging LLM Parametric Knowledge for Fact Checking without Retrieval5 Mar 2026
4 more
- 2026Detecting Contextual Hallucinations in LLMs with Frequency-Aware Attention20 Feb 2026
- 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answering24 Jan 2026
- 2025Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generation2 Oct 2025
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoning2 Sep 2025
- 2025Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generationcited by 7
- 2026Uncertainty Propagation in LLM-Based Systemscited by 3
- 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answeringcited by 2
- 2026Detecting Contextual Hallucinations in LLMs with Frequency-Aware Attentioncited by 2
- 2026Learning Uncertainty from Sequential Internal Dispersion in Large Language Modelscited by 1
- 2026Evolutionary Search for Automated Design of Uncertainty Quantification Methodscited by 0
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectoriescited by 0
- 2026How Do Uncertainty Estimators Align with Hallucination Occurrence in LLMs?cited by 0
- 2026Integrating Local and Global Entropy for Uncertainty Quantification in LLMscited by 0
- 2026ActMap: Single-Pass Uncertainty Quantification from Generation-Time Activation Mapscited by 0
- 2026Efficiency Hallucination: Formalizing and Measuring Behavioral Calibration in LLM-Based Code Optimizationcited by 0
- 2026Efficiency Hallucination: Formalizing and Measuring Behavioral Calibration in LLM-Based Code Optimization13 Sep 2026
- 2026ActMap: Single-Pass Uncertainty Quantification from Generation-Time Activation Maps10 Sep 2026
- 2026Integrating Local and Global Entropy for Uncertainty Quantification in LLMs2 Jun 2026
- 2026How Do Uncertainty Estimators Align with Hallucination Occurrence in LLMs?26 May 2026
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectories30 Apr 2026
- 2026Uncertainty Propagation in LLM-Based Systems26 Apr 2026
- 2026Learning Uncertainty from Sequential Internal Dispersion in Large Language Models17 Apr 2026
- 2026Evolutionary Search for Automated Design of Uncertainty Quantification Methods3 Apr 2026
- 2026Detecting Contextual Hallucinations in LLMs with Frequency-Aware Attention20 Feb 2026
- 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answering24 Jan 2026
- 2025Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generation2 Oct 2025