Skip to content
AI News HubLIVE
Original source2 min read

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

Summary

A new study investigates why large language models (LLMs) hallucinate on structured knowledge like graphs and tables, even when sufficient knowledge is provided. The research finds that hallucinations arise from systematic internal dynamics: attention disproportionately focuses on shortcut structural cues, and feed-forward representations fail to ground the provided knowledge, causing the model to revert to parametric memory. These patterns generalize across different structured knowledge formats, enabling effective hallucination detection.

SourcearXiv Computational LinguisticsAuthor: Shanghao Li, Jinda Han, Yibo Wang, Yuanjie Zhu, Zihe Song, Langzhou He, Kenan Kamel A Alghythee, Philip S. Yu
Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

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

[Submitted on 25 May 2026]

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

View a PDF of the paper titled Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations, by Shanghao Li and 7 other authors

View PDF HTML (experimental)

Abstract: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.

Comments: To appear in Proceedings of ACL 2026

Subjects:

Computation and Language (cs.CL); Artificial Intelligence (cs.AI)

Report number: ACL 2026

Cite as: arXiv:2605.26362 [cs.CL]

(or arXiv:2605.26362v1 [cs.CL] for this version)

https://doi.org/10.48550/arXiv.2605.26362

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Shanghao Li [view email] [v1] Mon, 25 May 2026 22:08:59 UTC (763 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations, by Shanghao Li and 7 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.CL

new | recent | 2026-05

Change to browse by:

cs cs.AI

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • Hallucinations in LLMs on structured knowledge stem from systematic internal dynamics, such as attention bias toward structural shortcuts and failure of semantic grounding in feed-forward layers.
  • Hallucination is consistently associated with failures in semantic grounding in feed-forward layers, while attention allocation shows task-dependent variability.
  • The mechanistic patterns generalize across single-hop, multi-hop, and tabular settings, offering new methods for hallucination detection.

Highlights and analysis are generated automatically and may contain errors. Check the original source.