Tracking Truth Through Layers: Temporal Dynamics of Fact Representations for Hallucination Detection in LLMs

Yanqiang Zhang, Feng Dawei, Bo Ding, Yuanzhao Zhai, Huaimin Wang


Abstract
While large language models (LLMs) have exhibited remarkable performance across diverse natural language processing tasks, their inherent propensity to generate hallucinations poses a critical challenge to reliable deployment in high-stakes scenarios. Existing hallucination detection methods often rely on static single-layer representations or aggregated features across all layers, which often fail to capture fine-grained factual inconsistencies and thus exhibit limited generalization capability. To address this limitation, this paper proposes TemHal (Temporal Hallucination Detector), a novel detection framework that models the cross-layer evolutionary trajectory of internal representations. Specifically, TemHal tracks the dynamic representational progression of key factual tokens across selected intermediate MLP activations and employs a bidirectional temporal modeling network to identify representational patterns that differentiate factually consistent outputs from hallucinated ones. Extensive experimental results demonstrate that the proposed method achieves consistent performance improvements across multiple mainstream model architectures and diverse benchmark datasets, while also exhibiting robust cross-dataset generalization across multiple LLM backbones. Furthermore, ablation studies validate the contribution of each architectural component and confirm the importance of temporal modeling and intermediate-layer focusing for detection performance.
Anthology ID:
2026.findings-emnlp.297
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
6295–6311
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.297/
DOI:
Bibkey:
Cite (ACL):
Yanqiang Zhang, Feng Dawei, Bo Ding, Yuanzhao Zhai, and Huaimin Wang. 2026. Tracking Truth Through Layers: Temporal Dynamics of Fact Representations for Hallucination Detection in LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 6295–6311, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Tracking Truth Through Layers: Temporal Dynamics of Fact Representations for Hallucination Detection in LLMs (Zhang et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.297.pdf