Detecting Hallucination in LLMs: Tracing the Topological Signatures of Impaired Context Sharing
Amir Jalilifard, Anderson Rocha, Eric Wong, Marcos Medeiros Raimundo
Abstract
In this work, we examine the topology of information flow patterns within attention graphs to effectively distinguish hallucinated from non-hallucinated responses. We analyze the Forman-Ricci curvature to identify structural patterns indicating information bottlenecks in attention graphs. We then introduce a method that captures both semi-local and global information-flow characteristics of attention heads associated with hallucinated responses. We evaluate our approach extensively across several LLMs and established benchmarks. Empirical results demonstrate that our proposed single-pass approach provides consistent improvements over existing attention-based and multi-response baselines across two hallucination-detection benchmarks, while achieving competitive performance across diverse LLM architectures. Further analysis reveals that impaired context sharing among tokens during causal generation is strongly associated with hallucination occurrences in LLMs. In particular, hallucinated responses are consistently characterized by an over-reliance on self-attention, diffused context retrieval from earlier tokens, or information over-squashing, especially in the final transformer layer.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG
Related papers
Revisiting LLMs as Context Engineers
Shared title terminologycs.AIJunrui Zhang, Zeyu Xu, Runchuan Zhu et al.
Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs
Shared title terminologycs.AIKohsei Matsutani, Gouki Minegishi, Core Francisco Park et al.
Explainable Deep Learning for Malaria Parasite Detection and Species Differentiation in Thick Blood Smear Images: A Pilot Feasibility Study
Shared title terminologycs.AIHaimanot Bitew, Ayisheshim Almaw, Habtamu Zegeye et al.
TamperCert: A Benchmark for Detecting Text Tampering in Degree Certificates
Shared title terminologycs.AIChiFung Kwan, Kangzhong Wang, Youqian Zhang et al.
DMC-5: Dual-Model Collaboration with Cache-aware Context Compression for Long-horizon Agents
Shared title terminologycs.AIHaochen Li, Xiaobing Tu, Yinggui Wang et al.
PseuDRAGON: Knowledge-Guided Local LLMs for Financial-Data Pseudonymization in Closed Networks
Shared title terminologycs.AIGwangui Hong, Seonho An, Seonkyu Lim et al.