Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMs
Zeyu Wei, Shuo Wang, Xiaohui Rong, Xuemin Liu, He Li

TL;DR
This paper systematically investigates how incremental context injection causes internal-state drift in LLMs, leading to hallucinations, and identifies thresholds where hallucinations become resistant to correction, providing insights for mitigation.
Contribution
It introduces a novel framework linking context-induced internal-state drift to hallucination dynamics in LLMs, with empirical analysis across multiple models and context scenarios.
Findings
Hallucination frequency and representation drift grow monotonically and plateau after 5-7 rounds.
Relevant context causes high-confidence hallucinations through semantic assimilation.
Irrelevant context induces topic-drift errors via attention re-routing, with an attention-locking threshold at JS-Drift ~0.69.
Abstract
Hallucinations -- plausible yet erroneous outputs -- remain a critical barrier to reliable deployment of large language models (LLMs). We present the first systematic study linking hallucination incidence to internal-state drift induced by incremental context injection. Using TruthfulQA, we construct two 16-round "titration" tracks per question: one appends relevant but partially flawed snippets, the other injects deliberately misleading content. Across six open-source LLMs, we track overt hallucination rates with a tri-perspective detector and covert dynamics via cosine, entropy, JS and Spearman drifts of hidden states and attention maps. Results reveal (1) monotonic growth of hallucination frequency and representation drift that plateaus after 5--7 rounds; (2) relevant context drives deeper semantic assimilation, producing high-confidence "self-consistent" hallucinations, whereas…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSchizophrenia research and treatment · Mental Health via Writing · Psychedelics and Drug Studies
MethodsSoftmax · Attention Is All You Need
