HallucinationDetector.ai

What Is an AI Hallucination? Causes, Types, and Real Examples

A plain-language, primary-sourced guide to why large language models fabricate facts, how intrinsic and extrinsic hallucinations differ, and how to catch them.

EX-03 · CORE GUIDE
Short Answer

An AI hallucination is a confident, syntactically fluent output from a generative AI model that is factually false, fabricated, or unsupported by its source context. According to the National Institute of Standards and Technology (NIST AI 600-1, 2024), confabulations occur because language models predict probable token sequences rather than consulting a verified database of ground truth.

Hallucination TypeDefinitionTypical ExamplePrimary Countermeasure
Intrinsic (Context Contradiction)Output directly contradicts supplied source textSummary says profit fell 10% when table shows +10%NLI entailment check against source chunks
Extrinsic (Unsupported Addition)Output adds unverified facts absent from contextRAG answer invents regional split not in retrieved docStrict abstention prompt + faithfulness score
Citation FabricationModel invents non-existent DOI, paper, or court caseVarghese v. China Southern Airlines (Mata v. Avianca)Deterministic Crossref / docket lookup
Factuality / Recall ErrorWrong date, quote, or statistic from parametric memoryIncorrect statutory deadline or misquoted executiveLive retrieval + primary-source verification
Open legal folio ledger with red editorial pencil and metal binder clip
AI hallucinations look fluent and authoritative on the surface; only claim-level verification exposes fabricated details.

Why Language Models Hallucinate

Large language models do not store a structured, indexed ledger of facts the way a relational database or library catalog does. During pretraining, a transformer model adjusts billions of numerical weights to predict the most statistically likely next token given the preceding context. When you ask a model about a widely documented historical event such as the signing of the U.S. Constitution, thousands of overlapping training passages reinforce the exact date and facts. When you ask about a narrow appellate ruling, a niche journal article, or a specific company's 2026 pricing tier, the statistical signal is sparse, yet the model's decoding loop must still output the next token.

Post-training alignment (reinforcement learning from human feedback, or RLHF) can unintentionally amplify the problem. Human raters tend to prefer thorough, confident, well-formatted answers over terse refusals. As a result, models learn to bridge knowledge gaps with smooth, authoritative prose rather than stopping to say they do not know. In its Generative AI Profile (NIST AI 600-1, July 2024), the National Institute of Standards and Technology refers to this phenomenon as confabulation, noting that fabricated claims are particularly hazardous because they carry the exact linguistic register of verified expertise.

Importantly, hallucinations are not software bugs in the traditional sense that can be patched out with a single line of code. Theoretical work by researchers including Kalai and Vempala (STOC 2024) demonstrates that calibrated generative models trained on finite samples will inevitably hallucinate on arbitrary facts that appear rarely or only once in the training corpus. That mathematical reality explains why reliable organizations treat verification as a separate architectural layer rather than expecting the base model to self-police.

CAUSE 01Next-Token LossTrained to predict fluent textCAUSE 02Memory GapsRare facts blur in weightsCAUSE 03No AbstentionRLHF rewards helpful answersRESULTConfabulationPlausible but false output
Four-stage claim extraction, identifier lookup, grounding check, and human sign-off sequence.

Intrinsic vs Extrinsic Hallucinations

Researchers evaluating natural language generation split hallucinations into two operational classes first formalized in survey literature such as Ji et al. (ACM Computing Surveys, 2023). Recognizing which class you are dealing with determines which detection tool will actually work.

An intrinsic hallucination directly contradicts the source material supplied in the prompt. For example, if you paste a clinical trial abstract stating that 14 of 120 patients experienced side effects and the model summarizes that '40% of participants experienced side effects,' the error is intrinsic because the ground truth needed to refute it is already sitting inside the input window. Intrinsic errors often occur when models misread dense tables, lose track of negations, or blend two adjacent rows.

An extrinsic hallucination introduces information that cannot be verified or refuted from the supplied prompt context. In a retrieval-augmented generation (RAG) customer-support bot, an extrinsic hallucination happens when the retrieved policy document covers standard shipping and the model invents an overnight express refund guarantee on its own. Extrinsic errors are harder to spot by casual readers because the extra detail sounds helpful and consistent with the surrounding tone. You can inspect a live extrinsic RAG drift example in our Hallucination Detector workbench or read our RAG hallucination detector guide.

Real-World Consequences in Law, Medicine, and Publishing

For casual brainstorming, a hallucinated detail is an annoyance. In regulated and high-trust professions, it creates immediate legal, financial, and reputational harm. The watershed legal case was Mata v. Avianca, Inc., 678 F. Supp. 3d 443 (S.D.N.Y. 2023), where federal Judge P. Kevin Castel sanctioned attorneys $5,000 after they filed a brief containing six non-existent judicial opinions invented by ChatGPT. Less than a year later, in Moffatt v. Air Canada, 2024 BCCRT 149 (February 2024), the British Columbia Civil Resolution Tribunal ordered Air Canada to honor a fabricated bereavement-fare discount promised by its website chatbot, rejecting the airline's defense that the chatbot was a separate legal entity.

Academic publishing and journalism have experienced parallel incidents. Peer reviewers across major scientific publishers have documented manuscripts containing valid-looking DOIs that resolve to HTTP 404 or unrelated papers, leading to desk rejections and retractions. Newsrooms that experimented with automated local-news summaries or reading lists have been forced to publish public corrections after AI tools invented book titles attributed to real authors. Explore full primary dockets in our real AI hallucination examples and court cases report.

Software engineering faces its own variant known as package hallucination (or slopsquatting): coding assistants occasionally recommend plausible-sounding open-source package names that do not exist in npm or PyPI. Security researchers have demonstrated that attackers can register those frequently hallucinated names to deliver malicious code when developers run install commands without verifying the publisher.

How Hallucinations Differ From Ordinary Human Errors

Human experts make mistakes too, but human errors and AI hallucinations exhibit very different failure profiles. When a human researcher forgets a citation, they usually leave a bracketed placeholder like '[find Smith 2021 citation]' or admit uncertainty. An AI model instead fabricates a complete, properly formatted APA citation with a plausible DOI, page numbers, and confident surrounding commentary.

Second, human errors tend to correlate with task difficulty: a lawyer who knows federal civil procedure rarely invents a fake Supreme Court case out of thin air. Language models can solve graduate-level math problems in one paragraph and invent a fake statute in the next. That uneven competence makes human-style trust heuristics ('this section was brilliant, so the citations must be solid') dangerously unreliable.

To build a dependable workflow, treat every AI output as an unverified first draft. Run structured claim extraction via our AI hallucination detector workflow, verify every bibliographic identifier with our AI citation checker, and apply the six-step audit checklist in how to detect AI hallucinations before anything goes public.

How Organizations Detect and Reduce Hallucinations

No single technique eliminates hallucinations, so mature teams stack prevention and detection together. On the prevention side, retrieval-augmented generation grounds responses in verified documents, explicit abstention instructions tell the model to decline when context is missing, and structured outputs constrain fields to valid enums. Read the full engineering playbook in how to reduce AI hallucinations.

On the detection side, teams layer deterministic checks (Crossref DOI resolution, court docket lookup, URL status checks) with probabilistic faithfulness scorers such as Vectara HHEM, Patronus Lynx, or NLI cross-encoders. Compare published error rates across models in AI hallucination rates ranked and evaluate commercial tools in best AI hallucination detectors compared.

Sources and Primary Records

  1. NIST AI 600-1: Artificial Intelligence Risk Management Framework, Generative AI Profile (July 2024) (Primary government definition of confabulation and risk controls)
  2. Ji et al., Survey of Hallucination in Natural Language Generation, ACM Computing Surveys (2023) (Canonical taxonomy of intrinsic vs extrinsic hallucinations)
  3. Kalai & Vempala, Calibrated Language Models Must Hallucinate, STOC 2024 (Theoretical proof of statistical hallucination lower bounds)
  4. Mata v. Avianca, Inc., 678 F. Supp. 3d 443 (S.D.N.Y. 2023) (Primary federal court sanction order)

Related Reading

Frequently Asked Questions

Why is it called an AI hallucination?
The term borrows from psychology to describe when a model generates confident perceptions or statements that are not grounded in input data or real-world facts; NIST also uses the term confabulation.
Can AI hallucinations be eliminated completely?
No. Mathematical results (Kalai & Vempala, 2024) and empirical benchmarks show hallucinations can be reduced substantially through retrieval grounding and verification, but not reduced to zero.
What is the difference between intrinsic and extrinsic hallucinations?
Intrinsic hallucinations contradict the source text supplied in the prompt, while extrinsic hallucinations add unverified claims that do not appear in the source text.
Do newer reasoning models still hallucinate?
Yes. Newer models reduce errors on many structured tasks, yet benchmarks like SimpleQA and Vectara HHEM confirm that all frontier models still fabricate facts on a measurable share of queries.
What is the best first step to check an AI draft for hallucinations?
Split the draft into atomic claims, verify every citation or DOI deterministically against Crossref or public dockets, and confirm every statistic in its primary source.