SYNTHESIS NOTE
Topics›Flaws›this note

Can any computable LLM truly avoid hallucinating?

Explores whether formal theorems prove hallucination is mathematically inevitable for all computable language models, regardless of their design or training approach.

Synthesis note · 2026-02-23 · sourced from Flaws

The empirical observation that LLMs hallucinate has a formal foundation. Using results from learning theory, three theorems establish hallucination as mathematically inevitable:

  1. Theorem 1 — For any enumerable set of LLMs, there exists a computable ground truth function such that all states of all LLMs will hallucinate
  2. Theorem 2 — The hallucination occurs on infinitely many inputs, not just edge cases
  3. Theorem 3 — For any individual computable LLM, hallucination is inevitable; extends to infinitely many inputs

Corollary: LLMs cannot prevent themselves from hallucinating. Internal mechanisms — self-correction, chain-of-thought prompting, self-verification — are provably insufficient.

The proof operates in a formal world where hallucination is defined as inconsistency between a computable LLM and a computable ground truth function. Since this formal world is a subset of the real world, the result applies a fortiori to real LLMs.

This has a precise practical consequence: the entire class of approaches trying to "solve hallucination" by making the model better at self-checking is provably limited. External safeguards — retrieval augmentation, human verification, formal verification systems — are not nice-to-haves but mathematical necessities.

The connection to Should we call LLM errors hallucinations or fabrications? is instructive: the formal inevitability result applies regardless of what we call it. Whether termed hallucination, fabrication, or confabulation, the mathematical constraint is the same. But the fabrication framing better suggests the right response — external grounding rather than internal improvement.

Partial mitigation via entity recognition self-knowledge: While hallucination cannot be eliminated, the discovery that entity recognition is a self-knowledge mechanism in base models that causally steers hallucination suggests a partial internal mitigation path. SAE analysis on Gemma 2 reveals features that the model uses to detect whether it "knows" an entity — and chat finetuning repurposes this mechanism for both hallucination control and refusal decisions. This does not contradict formal inevitability (the mechanism reduces frequency, not eliminates it), but it shows the internal landscape is richer than the formal proof implies. See Do models know what they don't know?.

Strengthened formalization (Comprehensive Hallucination Taxonomy, 2508.01781): A later paper extends the inevitability framework with an orthogonal taxonomy and stronger theorems. The taxonomy organizes hallucinations along two independent axes: intrinsic (contradicting input context) versus extrinsic (inconsistent with training data or reality), and factuality (absolute correctness against verified sources) versus faithfulness (adherence to provided input). These axes cross to produce four categories that existing hallucination mitigation techniques treat unevenly. The paper also strengthens the formal result with three theorems that jointly give:

The corollary is the sharpest practical result. The entire class of "make the model better at self-checking" approaches is provably insufficient. This now applies not just to factual inaccuracy (the traditional hallucination frame) but to newer subtypes like prompt-induced conceptual-blending hallucinations — see Do language models evaluate semantic legitimacy when fusing concepts?, which shows that hallucination extends beyond factual inaccuracy into semantic-legitimacy failure, and that no internal mechanism will eliminate it there either.

Inquiring lines that read this note 89

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Do language models genuinely exhibit psychological understanding or simulate it? What drives human overreliance on confident but inaccurate LLM outputs? Why do language models systematically fail at ambiguity recognition? How susceptible are language models to adopting and maintaining false beliefs? How do LLMs perform reasoning effectively despite gaps between process and output? Can AI systems formally evaluate design quality and taste? What limits language models' ability to retrieve information reliably across longer contexts? Does RLHF training compromise truthfulness in pursuit of user satisfaction? How do humans and AI develop accurate mental models of each other? How do architectural constraints limit monolithic LLM performance on complex tasks? How well do model explanations reveal their actual knowledge and reasoning? Do language models learn genuine linguistic structure or just surface patterns? Why does model self-revision amplify confidence in incorrect answers? Why does expressing understanding diverge from achieving genuine comprehension? Do language models learn true linguistic principles or just surface patterns? Do reasoning traces accurately represent how models actually compute their answers? How reliably do confidence signals indicate reasoning quality in language models? Can looped computation enable reasoning beyond fixed transformer depth? What are the fundamental limits of prompt-based debiasing? What mechanistic structures underlie the reasoning traces that language models produce? What limits AI's ability to verify its own generation? Can neural networks achieve compositionality without explicit mechanisms? Why does iterative refinement amplify reasoning errors instead of correcting them? Does model reflection genuinely improve reasoning or just confirm beliefs? How important is reward engineering relative to pretraining for reasoning? How do parameter-efficient methods maintain performance while reducing training cost? What limits the reliability of retrieval-augmented generation? How does AI disclosure affect audience skepticism and persuasiveness? Can systems reliably detect and distinguish LLM-generated text? Does formal verification preserve the understanding value of AI-generated proofs? How can we verify and prevent fabricated AI citations? Does language meaning require embodied interaction to properly emerge? How can we reliably detect when AI outputs are deceptive? Why do multi-agent LLM systems struggle with coordination and genuine deliberation? Does polished AI output mislead people about content accuracy? Can visual rendering-based rewards effectively improve code and layout quality? Why do agents report success despite failing to complete actions? Does extended thinking consistently improve accuracy or exhibit diminishing returns? What mechanisms ensure safety in deployed AI agents despite compositional risks?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
19 direct connections · 179 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

hallucination is formally inevitable for any computable LLM regardless of architecture or training