Hallucination

34 beliefs (34 IN, 0 OUT)

The topic of hallucination in AI covers the phenomenon of language models producing outputs that are factually incorrect or fabricated, and the theoretical, mechanistic, and practical dimensions of that failure. Historically, the term was not born in NLP or chatbot research; Eric Mjolsness introduced "hallucination" in his 1986 PhD thesis in the context of computer vision, specifically face hallucination (ai-hallucination-term-coined-1986-mjolsness-computer-vision). The practical stakes are substantial: by mid-2026, over 1,300 documented AI hallucination incidents appeared in U.S. legal filings, with hundreds more in Canadian and Israeli courts (us-legal-filing-ai-hallucinations-over-1300-by-2026), and the Stanford Alpaca model—once the flagship of the open fine-tuning ecosystem—was taken offline partly over hallucination concerns (alpaca-first-llama-community-finetune-march-2023). At the mechanistic level, Anthropic's 2025 research on Claude identified internal "answer-gating" circuits that normally suppress output when information is insufficient, with hallucination emerging when that inhibition fails (anthropic-2025-answer-gating-circuit-hallucination).

Two major theoretical frameworks dominate the formal treatment of hallucination, and they operate at different levels of abstraction. The Kalai-Vempala (2023) result, published as arXiv:2311.14648v3 with Kalai at OpenAI (work done at Microsoft Research) and Vempala at Georgia Tech (kalai-venue-and-affiliations), establishes a statistical lower bound: any semantically calibrated language model must hallucinate at a rate bounded below by the monofact rate (the fraction of factoids appearing exactly once in training data) minus miscalibration and vanishing terms (kalai-vempala-calibrated-lm-must-hallucinate-monofacts-bound, kalai-2023-corollary1-lower-bound-formula). Crucially, this bound is architecture-independent, following from calibration and combinatorial counting alone rather than from transformer specifics (kalai-hallucination-architecture-independent, kalai-2023-lower-bound-is-architecture-independent), and it holds even under ideal assumptions of perfectly factual training data, single-fact documents, and no adversarial prompting (kalai-2023-hallucination-inevitable-under-perfect-conditions, kalai-ideal-data-assumption). The monofact rate is the tight bound, as shown by an explicit construction achieving that rate while maintaining calibration (kalai-2023-tightness-construction-algorithm, kalai-2023-dmf-is-tight-hallucination-lower-bound). The framework also draws a sharp distinction between arbitrary singleton facts, which are subject to the bound, and systematic or frequently recurring facts (arithmetic, rule-governed logic, popular citations), for which no such lower bound applies (kalai-two-hallucination-regimes, kalai-2023-monofact-rate-distinguishes-hallucination-types, hallucination-bound-applies-only-to-arbitrary-facts-not-systematic). A related foundational point is that the calibration requirement is genuinely distinct from KL divergence or raw accuracy: a model can be well-calibrated yet hallucinate, or hallucinate while having small KL divergence (kalai-2023-calibration-distinct-from-kl-divergence), and the semantic-level calibration metric itself is computationally intractable to evaluate on large models (kalai-2023-semantic-calibration-computationally-intractable). Separately, the document log-likelihood decomposition shows that hallucination is not merely a statistical artifact of autoregressive next-token training (document-log-likelihood-equals-sum-of-next-token-log-likelihoods).

The Xu et al. (2024) framework approaches the problem from computability and complexity theory rather than probability calibration. They formally define hallucination as a computable inconsistency between the model output and a ground-truth function on the same input, requiring both to be computable (hallucination-formal-definition-computable-inconsistency), and frame the impossibility as a universal-existential statement: for every training stage, some input is answered incorrectly (xu-2024-hallucination-formal-quantifier-structure). The proof proceeds via Cantor's diagonalization, constructing a ground-truth function by flipping diagonal entries of the model's output table, rather than through probabilistic or complexity lower-bound methods (xu-2024-proof-by-cantor-diagonalization). This yields unconditional impossibility—no computably enumerable set of LLMs is hallucination-free across all computable worlds—logically distinct from PAC unlearnability, which requires bounded-error and polynomial-time assumptions (xu-2024-unconditional-vs-pac-distinction). The framework identifies specific hallucination-prone problem classes with complexity-theoretic guarantees, including combinatorial listing, Subset Sum/SAT under P≠NP, Presburger arithmetic, and first-order logic entailment (xu-2024-hallucination-prone-problem-classes), and maps causes to three stages of the pipeline: data, training, and inference (xu-2024-three-stage-cause-mapping). A positive result states that for any computably enumerable set of well-structured task classes, a sufficiently trained LLM can be hallucination-free on that set (xu-2024-theorem-e3-positive-result), while the set of functions on which a computable LLM can be fully reliable is itself bounded by a computably enumerable set, leaving fundamentally unreachable targets such as the halting problem (xu-2024-theorem-e2-ce-set-bound).

In terms of mitigations, the knowledge base treats several approaches as partial rather than complete. RAG, introduced by Lewis et al. in 2020 (rag-lewis-2020), operates at the prompting layer to augment context with retrieved information (rag-addresses-knowledge-currency-at-prompting-layer), but it does not eliminate hallucination because the model can still misinterpret retrieved material or fabricate around it (rag-does-not-eliminate-hallucination). RLHF alignment reduces hallucination in practice but at the cost of increased Expected Calibration Error, as shown by GPT-4's ECE rising from 0.007 to 0.074 post-training (gpt4-ece-rises-0007-to-0074-post-rlhf). Per Xu et al., the only methods that genuinely bypass the impossibility theorem are those injecting information beyond the training samples—programmable guardrails, external knowledge bases, retrieval augmentation, symbolic reasoning, and human oversight—because they render the formal theorem inapplicable (xu-2024-only-external-aids-bypass-inevitability). Prompt injection and adversarial ML are noted as related but distinct security concerns alongside hallucination (prompt-injection-adversarial-ml-security-concerns). All beliefs in this group are marked IN; none have been retracted, indicating the knowledge base currently holds a consistent and unrevised picture of the hallucination landscape. The foundational premises in this cluster are the formal definitions and idealized assumptions (computability requirements, calibration definitions, ideal-data assumptions), from which the derived results—the statistical lower bounds, diagonalization proofs, and problem-class impossibility guarantees—logically follow.