# From Architecture to Output: Testing the Structural Origins of Hallucination and the Amplifying Role of Data

DevFeed: [From Architecture to Output: Testing the Structural Origins of Hallucination and the Amplifying Role of Data](<https://devfeed.tech/articles/from-architecture-to-output-testing-the-structural-origins-of-hallucination-and-the-amplifying-role-of-data-128121.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.07537>)

Author: Md. Rejaul Korim Sadi, Toufiqur Rahman Tasin, Golam Mostofa Naeem

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [attention](<https://devfeed.tech/tags/attention.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [error](<https://devfeed.tech/tags/error.md>), [failure](<https://devfeed.tech/tags/failure.md>), [mamba](<https://devfeed.tech/tags/mamba.md>), [mixer](<https://devfeed.tech/tags/mixer.md>), [mixing](<https://devfeed.tech/tags/mixing.md>), [state-space-models](<https://devfeed.tech/tags/state-space-models.md>), [study](<https://devfeed.tech/tags/study.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

In these sampling-access experiments, model architecture affected whether a false statement planted in context became an output error, while long-tail errors in free recall appeared to stem from missing knowledge. With pretraining data, tokenizer and scale held fixed, attention models from 410M parameters upward repeated planted falsehoods more often than matched state-space models; at 2.8B, the counts were 650 versus 566 of 666 items. Both 2.8B models answered only 3 of 200 SimpleQA questions correctly, suggesting the mixer swap did not improve free recall. In a second study, replacing the first wrong fact reduced downstream errors, but a different wrong fact had a similar effect, and models answered correctly in isolation on just 2 of 111 items. The authors conclude that mixing influences whether contextual defects surface and early commitment affects how errors spread.

## Source excerpt

arXiv:2606.07537v3 Announce Type: replace-cross Abstract: Surveys of hallucination classify errors by how an output relates to its source, and often explain them by the model's structure: attention retrieves by association, the maximum-likelihood objective has no term for truth, and left-to-right decoding commits to early tokens. Data, on this account, makes these failures worse rather than causing them. The account is usually argued rather than tested. We test it with interventions that need only sampling access. Study 1 holds pretraining data, tokenizer and scale fixed and swaps attention for a state-space mixer, using five Pythia/Mamba pairs from 130M to 2.8B parameters and four further attention models, on 111 facts presented with a planted false or a planted true statement. Swapping the mixer leaves free-recall failure unchanged (both 2.8B models answer 3 of 200 SimpleQA questions), but it changes what happens to a defect in the input. From 410M upwards, every attention model repeats the planted falsehood more often than its matched state-space model (2.8B: 650 vs. 566 of 666 items, p = 2.5e-20), also on facts both models know, while the state-space models can still read planted facts they did not know. Study 2 replaces the first wrong fact in 111 erroneous answers from three instruction-tuned models. The correct fact cuts the share of answers with a downstream error from 92.5% to 48.1%, but a different wrong fact works as well (p = 0.38), and the models give the right answer in isolation on only 2 of 111 items. The structural account survives in a narrower form. The mixing component decides whether a defect in the context becomes an output error, commitment decides how an error spreads, and on long-tail questions the first error comes from missing knowledge, not from a suppressed truth.