mlsanityData to 14 Oct 2026

Efficient Hallucination Detection for LLMs Using Uncertainty-Aware Attention Heads

arXiv 2505.20045 ↗First posted 26 May 2025cs.CLcited by 16

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2024Qwen2.5 Technical Reportcited by 4,942
  6. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  7. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  8. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  9. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  11. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  12. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
33 more
  1. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  2. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  3. 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
  4. 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
  5. 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 913
  6. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  7. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  8. 2018CoQA: A Conversational Question Answering Challengecited by 683
  9. 2023The Internal State of an LLM Knows When It's Lyingcited by 659
  10. 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 535
  11. 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 323
  12. 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
  13. 2023AlignScore: Evaluating Factual Consistency with a Unified Alignment Functioncited by 288
  14. 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
  15. 2020Unsupervised Quality Estimation for Neural Machine Translationcited by 211
  16. 2024Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantificationcited by 162
  17. 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 150
  18. 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
  19. 2019A Question-Entailment Approach to Question Answeringcited by 134
  20. 2024Benchmarking Uncertainty Quantification Methods for Large Language Models with LM-Polygraphcited by 105
  21. 2023Enhancing Uncertainty-Based Hallucination Detection with Stronger Focuscited by 99
  22. 2024Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Modelscited by 86
  23. 2024LUQ: Long-text Uncertainty Quantification for LLMscited by 81
  24. 2023Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Modelscited by 67
  25. 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
  26. 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
  27. 2019Mitigating Uncertainty in Document Classificationcited by 22
  28. 2024Rethinking Uncertainty Estimation in LLMs: A Principled Single-Sequence Measurecited by 18
  29. 2025Token-Level Density-Based Uncertainty Quantification Methods for Eliciting Truthfulness of Large Language Modelscited by 18
  30. 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
  31. 2024Contextualized Sequence Likelihood: Enhanced Confidence Scores for Natural Language Generationcited by 16
  32. 2023Uncertainty Estimation on Sequential Labeling via Uncertainty Transmissioncited by 10
  33. 2024Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Modelscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 14.

16 papers.

Sort:

By area:

  1. 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoningcited by 10
  2. 2025Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generationcited by 7
  3. 2026Uncertainty Propagation in LLM-Based Systemscited by 3
  4. 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answeringcited by 2
  5. 2026Detecting Contextual Hallucinations in LLMs with Frequency-Aware Attentioncited by 2
  6. 2026The Origins of Stochasticity: Comprehensive Investigations on Uncertainty Quantification for Large Language Modelscited by 2
  7. 2026Leveraging LLM Parametric Knowledge for Fact Checking without Retrievalcited by 1
  8. 2026Learning Uncertainty from Sequential Internal Dispersion in Large Language Modelscited by 1
  9. 2026Evolutionary Search for Automated Design of Uncertainty Quantification Methodscited by 0
  10. 2026Useful Features, Backward Scores: OOD in Language-Model Trajectoriescited by 0
  11. 2026Uncertainty Quantification for Large Language Diffusion Modelscited by 0
  12. 2026How Do Uncertainty Estimators Align with Hallucination Occurrence in LLMs?cited by 0
4 more
  1. 2026Integrating Local and Global Entropy for Uncertainty Quantification in LLMscited by 0
  2. 2026SIRIN: A Unified Toolkit for Detecting Contextual Hallucinations in Retrieval-Augmented and Memory-Grounded LLM Systemscited by 0
  3. 2026ActMap: Single-Pass Uncertainty Quantification from Generation-Time Activation Mapscited by 0
  4. 2026Efficiency Hallucination: Formalizing and Measuring Behavioral Calibration in LLM-Based Code Optimizationcited by 0