Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Shanghao, Han, Jinda, Wang, Yibo, Zhu, Yuanjie, Song, Zihe, He, Langzhou, Alghythee, Kenan Kamel A, Yu, Philip S.
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910257553342464
author Li, Shanghao
Han, Jinda
Wang, Yibo
Zhu, Yuanjie
Song, Zihe
He, Langzhou
Alghythee, Kenan Kamel A
Yu, Philip S.
author_facet Li, Shanghao
Han, Jinda
Wang, Yibo
Zhu, Yuanjie
Song, Zihe
He, Langzhou
Alghythee, Kenan Kamel A
Yu, Philip S.
contents In many reasoning tasks, large language models (LLMs) rely on structured external knowledge, such as graphs and tables, which is typically linearized into sequential token representations. However, even when sufficient knowledge is available, LLMs can still produce hallucinated outputs, and the underlying mechanisms behind such failures remain poorly understood. We investigate these mechanisms and find that hallucinations arise from systematic internal dynamics rather than random noise. First, attention disproportionately concentrates toward shortcut-like structural cues rather than distributing across the full context. Second, feed-forward representations fail to ground the provided knowledge, causing the model to revert to parametric memory. Moreover, our results indicate that hallucination is consistently associated with failures in semantic grounding within feed-forward layers, while attention allocation exhibits greater task-dependent variability. Finally, we show that these mechanistic patterns generalize beyond single-hop graphs to multi-hop and tabular settings, enabling effective hallucination detection across structured knowledge formats.
format Preprint
id arxiv_https___arxiv_org_abs_2605_26362
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations
Li, Shanghao
Han, Jinda
Wang, Yibo
Zhu, Yuanjie
Song, Zihe
He, Langzhou
Alghythee, Kenan Kamel A
Yu, Philip S.
Computation and Language
Artificial Intelligence
In many reasoning tasks, large language models (LLMs) rely on structured external knowledge, such as graphs and tables, which is typically linearized into sequential token representations. However, even when sufficient knowledge is available, LLMs can still produce hallucinated outputs, and the underlying mechanisms behind such failures remain poorly understood. We investigate these mechanisms and find that hallucinations arise from systematic internal dynamics rather than random noise. First, attention disproportionately concentrates toward shortcut-like structural cues rather than distributing across the full context. Second, feed-forward representations fail to ground the provided knowledge, causing the model to revert to parametric memory. Moreover, our results indicate that hallucination is consistently associated with failures in semantic grounding within feed-forward layers, while attention allocation exhibits greater task-dependent variability. Finally, we show that these mechanistic patterns generalize beyond single-hop graphs to multi-hop and tabular settings, enabling effective hallucination detection across structured knowledge formats.
title Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2605.26362