Hallucination Detection in LLMs with Topological Divergence on Attention Graphs
Not on the map. Why?
Abstract (arXiv)
Hallucination, i.e., generating factually incorrect content, remains a critical challenge for large language models (LLMs). We introduce TOHA, a TOpology-based HAllucination detector in the RAG setting, which leverages a topological divergence metric to quantify the structural properties of graphs induced by attention matrices. Examining the topological divergence between prompt and response subgraphs reveals consistent patterns: higher divergence values in specific attention heads correlate with hallucinated outputs, independent of the dataset. Extensive experiments - including evaluation on question answering and summarization tasks - show that our approach achieves state-of-the-art or competitive results on several benchmarks while requiring minimal annotated data and computational resources. Our findings suggest that analyzing the topological structure of attention matrices can serve as an efficient and robust indicator of factual reliability in LLMs.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 40 of its 71 references that are in the map. First posted on arXiv 14 Apr 2025.
Builds on
40 of 71 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2023The Internal State of an LLM Knows When It's Lyingcited by 644
- 2018Deep learning for time series classification: a reviewcited by 575
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
28 more
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 317
- 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Modelscited by 272
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2024LLMs instead of Human Judges? A Large Scale Empirical Study across 20 NLP Evaluation Taskscited by 236
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 230
- 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 193
- 2017An introduction to Topological Data Analysis: fundamental and practical aspects for data scientistscited by 171
- 2024Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantificationcited by 159
- 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 156
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 140
- 2021Hallucinated but Factual! Inspecting the Factuality of Hallucinations in Abstractive Summarizationcited by 128
- 2025Why do LLMs attend to the first token?cited by 122
- 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 111
- 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 100
- 2024A Comprehensive Survey of Hallucination in Large Language, Image, Video and Audio Foundation Modelscited by 98
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2021Artificial Text Detection via Examining the Topology of Attention Mapscited by 49
- 2025Hallucination Detection in LLMs Using Spectral Features of Attention Mapscited by 42
- 2021Manifold Topology Divergence: a Framework for Comparing Data Manifoldscited by 31
- 2020GPU-Accelerated Computation of Vietoris-Rips Persistence Barcodescited by 26
- 2025The Dual-Route Model of Inductioncited by 22
- 2024A Probabilistic Framework for LLM Hallucination Detection via Belief Tree Propagationcited by 21
- 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
- 2021On the Distribution, Sparsity, and Inference-time Quantization of Attention Values in Transformerscited by 14
- 2022Topological Data Analysis for Speech Processingcited by 9
- 2023Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matricescited by 8
- 2023Can BERT eat RuCoLA? Topological Data Analysis to Explaincited by 5
Built on by
Citing papers per year: 2025: 4; 2026: 14.
18 papers.
Sort:
By area:
- 2025Large Language Models Hallucination: A Comprehensive Surveycited by 45
- 2025Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMscited by 9
- 2026HALT: Hallucination Assessment via Log-probs as Time seriescited by 8
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detectioncited by 5
- 2026Student Guides Teacher: Weak-to-Strong Inference via Spectral Orthogonal Explorationcited by 3
- 2026HalluZig: Hallucination Detection using Zigzag Persistencecited by 2
- 2025Probabilistic distances-based hallucination detection in LLMs with RAGcited by 1
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probingcited by 1
- 2026Enhancing the Reliability of Medical AI through Expert-guided Uncertainty Modelingcited by 0
- 2026Uncertainty Estimation for the Open-Set Text Classification systemscited by 0
- 2026Attention Sinks as Internal Signals for Hallucination Detection in Large Language Modelscited by 0
- 2026Topology-Aware Layer Pruning for Large Vision-Language Modelscited by 0
6 more
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnosticscited by 0
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Languagecited by 0
- 2026SIRIN: A Unified Toolkit for Detecting Contextual Hallucinations in Retrieval-Augmented and Memory-Grounded LLM Systemscited by 0
- 2026CodeTD: Topology of Attention Detects Hallucinations in Code LLMscited by 0
- 2026Detecting Hallucination in LLMs: Tracing the Topological Signatures of Impaired Context Sharingcited by 0
- 2026Mixed-Prior Decision Risk for Open-Set Recognitioncited by 0
- 2026Mixed-Prior Decision Risk for Open-Set Recognition28 Sep 2026
- 2026Detecting Hallucination in LLMs: Tracing the Topological Signatures of Impaired Context Sharing17 Sep 2026
- 2026CodeTD: Topology of Attention Detects Hallucinations in Code LLMs7 Sep 2026
- 2026SIRIN: A Unified Toolkit for Detecting Contextual Hallucinations in Retrieval-Augmented and Memory-Grounded LLM Systems20 Jul 2026
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Language17 Jul 2026
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probing20 Jun 2026
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnostics6 May 2026
- 2026Topology-Aware Layer Pruning for Large Vision-Language Models14 Apr 2026
- 2026Attention Sinks as Internal Signals for Hallucination Detection in Large Language Models12 Apr 2026
- 2026Enhancing the Reliability of Medical AI through Expert-guided Uncertainty Modeling2 Apr 2026
- 2026Uncertainty Estimation for the Open-Set Text Classification systems17 Mar 2026
- 2026HALT: Hallucination Assessment via Log-probs as Time series2 Feb 2026
6 more
- 2026Student Guides Teacher: Weak-to-Strong Inference via Spectral Orthogonal Exploration6 Jan 2026
- 2026HalluZig: Hallucination Detection using Zigzag Persistence4 Jan 2026
- 2025Large Language Models Hallucination: A Comprehensive Survey5 Oct 2025
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detection29 Sep 2025
- 2025Probabilistic distances-based hallucination detection in LLMs with RAG11 Jun 2025
- 2025Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMs22 May 2025
- 2025Large Language Models Hallucination: A Comprehensive Surveycited by 45
- 2025Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMscited by 9
- 2026HALT: Hallucination Assessment via Log-probs as Time seriescited by 8
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detectioncited by 5
- 2026HalluZig: Hallucination Detection using Zigzag Persistencecited by 2
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probingcited by 1
- 2026Enhancing the Reliability of Medical AI through Expert-guided Uncertainty Modelingcited by 0
- 2026Uncertainty Estimation for the Open-Set Text Classification systemscited by 0
- 2026Attention Sinks as Internal Signals for Hallucination Detection in Large Language Modelscited by 0
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnosticscited by 0
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Languagecited by 0
- 2026CodeTD: Topology of Attention Detects Hallucinations in Code LLMscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Mixed-Prior Decision Risk for Open-Set Recognition28 Sep 2026
- 2026Detecting Hallucination in LLMs: Tracing the Topological Signatures of Impaired Context Sharing17 Sep 2026
- 2026CodeTD: Topology of Attention Detects Hallucinations in Code LLMs7 Sep 2026
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Language17 Jul 2026
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probing20 Jun 2026
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnostics6 May 2026
- 2026Attention Sinks as Internal Signals for Hallucination Detection in Large Language Models12 Apr 2026
- 2026Enhancing the Reliability of Medical AI through Expert-guided Uncertainty Modeling2 Apr 2026
- 2026Uncertainty Estimation for the Open-Set Text Classification systems17 Mar 2026
- 2026HALT: Hallucination Assessment via Log-probs as Time series2 Feb 2026
- 2026HalluZig: Hallucination Detection using Zigzag Persistence4 Jan 2026
- 2025Large Language Models Hallucination: A Comprehensive Survey5 Oct 2025
12 newest of 14 All 14 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025HalluField: Detecting LLM Hallucinations via Field-Theoretic Modeling
- 2026Evidence Graph Consistency in Retrieval-Augmented Generation: A Model-Dependent Analysis of Hallucination Detection
- 2026TDGNet: Hallucination Detection in Diffusion Language Models via Temporal Dynamic Graphs
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions
- 2026Detecting Hallucinations for Large Language Model-based Knowledge Graph Reasoning
- 2026Unmasking Hallucinations: A Causal Graph-Attention Perspective on Factual Reliability in Large Language Models
- 2025D2HScore: Reasoning-Aware Hallucination Detection via Semantic Breadth and Depth Analysis in LLMs
- 2025SelfCheck-Eval: A Multi-Module Framework for Zero-Resource Hallucination Detection in Large Language Models