In the early days of Large Language Models (LLMs), hallucinations—outputs that are factually incorrect or logically nonsensical—were treated as "bugs." The prevailing engineering intuition was that with enough high-quality data and sufficient parameter scaling, these errors would eventually vanish.
However, a growing body of theoretical research suggests that hallucination is not a temporary flaw, but a fundamental structural property of the architectures we use. By applying principles from computability theory, formal logic, and statistics, researchers have begun to map the "computational boundaries" that make perfect factual accuracy mathematically impossible for current models.
The Limits of Computable Functions
At their core, LLMs are modeled as total computable functions. This mathematical framing, explored by Ziwei Xu and Sanjay Jain in Hallucination is Inevitable: An Innate Limitation of Large Language Models, reveals a hard ceiling. Because these models must produce an output for any given input (they are "total"), they cannot represent every possible computable truth.
There will always exist "blind spots"—specific logic patterns or ground truths—that the model’s internal mapping cannot accurately capture. As Shi Hong Fu and colleagues note in A Theoretical Survey on Foundation Models, for any countable set of foundation models, there are always ground truths that force the model to produce incorrect outputs. In this view, hallucination is an inescapable byproduct of the model's finite computational framework attempting to map an infinite space of potential truths.
Logic and the Paradox of Consistency
The problem deepens when we consider how we want models to reason. We expect "consistent reasoning"—the ability to provide the same logical answer even if a question is phrased differently.
In On the consistent reasoning paradox of intelligence and optimal trust in AI, Alexander Bastounis and Anders C. Hansen prove the Consistent Reasoning Paradox (CRP). They demonstrate that any AI striving for human-like consistency across equivalent inputs must inevitably hallucinate. To be perfectly reliable, a model would need to implement a mathematically grounded "I don’t know" function, signaling when a problem falls outside its logical reach, rather than attempting to force a consistent answer.
Furthermore, Chenxu Wang and Zheng Liu argue in Loki's Dance of Illusions that hallucinations are a consequence of undecidability. Drawing on Gödel’s Incompleteness Theorems and the Turing Halting Problem, they suggest that any sufficiently complex formal system (like an LLM) will contain statements that cannot be self-validated. When a model encounters these undecidable queries, it has no choice but to generate an unvalidatable—and often false—statement.
Statistical Floors and Training Objectives
Even if we ignore formal logic, the statistical nature of how we train these models creates a "hallucination floor." Weijie J Su argues in Do Large Language Models (Really) Need Statistical Foundations? that because LLMs operate on probabilistic next-token prediction, there is a theoretical lower bound on error probability. Under certain calibration conditions, factual errors are a statistical certainty.
The training objective itself may be the culprit. In Are Hallucinations Bad Estimations?, Hude Liu and Zhao Song prove that standard loss functions force models to "average" across data distributions. When a model encounters complex or conflicting data, the mathematically optimal strategy to minimize loss is often to produce an interpolation—a "middle ground" that might be physically or logically impossible in reality. This suggests that scaling parameters won't help if the training goal itself incentivizes implausible interpolations.
Navigating the Computational Boundary
If hallucinations are inevitable, does that mean LLMs are fundamentally broken? Not necessarily. Atsushi Suzuki and Yulan He suggest in Hallucinations are inevitable but statistically negligible that while errors are mathematically guaranteed over an infinite set of inputs, they can be reduced to a level that is practically negligible for real-world use.
To bypass these theoretical limits, researchers like Wang Xi propose an "Oracle Escape" in Hallucination as a Computational Boundary. Since a standalone model cannot self-validate undecidable statements, it must rely on external tools like Retrieval-Augmented Generation (RAG) or formal verification.
The shift in the field is clear: we are moving from trying to "fix" hallucinations through scale to accepting them as a fundamental boundary of computable intelligence, necessitating new architectures that know when to stop guessing and start verifying.