Detecting Hallucinations in Large Language Models via Internal Attention Divergence Signals

Gijs van Dijk


Abstract
We propose a lightweight and single-pass uncertainty quantification method for detecting hallucinations in Large Language Models. The method uses attention matrices to estimate uncertainty without requiring repeated sampling or external models. Specifically, we measure the Kullback–Leibler divergence between each attention head’s distribution and a uniform reference distribution, and use these features in a logistic regression probe. Across multiple datasets, task types, and model families, attention divergence is strongly predictive of answer correctness and performs competitively with existing uncertainty estimation methods. We find that this signal is concentrated in middle layers and on factual tokens such as named entities and numbers, suggesting that attention dynamics provides an efficient and interpretable white-box signal of model uncertainty.
Anthology ID:
2026.acl-srw.6
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Santosh T.Y.S.S., Juan Diego Rodriguez, Ona de Gibert
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
60–75
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-srw.6/
DOI:
Bibkey:
Cite (ACL):
Gijs van Dijk. 2026. Detecting Hallucinations in Large Language Models via Internal Attention Divergence Signals. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026), pages 60–75, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Detecting Hallucinations in Large Language Models via Internal Attention Divergence Signals (van Dijk, ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-srw.6.pdf