Skip to content
Article Issue #5173

AI Hallucination

What to know

AI Hallucination refers to outputs from a language model that are syntactically fluent and plausible-sounding but factually wrong or entirely invented; LLMs are trained to predict probable token sequences, not to retrieve verified facts; Builders deploying LLMs in high-stakes contexts should architect systems that ground model outputs in verifiable sources, use retrieval augmentation, and expose citation links to users

AI Hallucination, WikiWalls Glossary illustration

« Back to Glossary Index

AI Hallucination refers to outputs from a language model that are syntactically fluent and plausible-sounding but factually wrong or entirely invented. The model does not have a mechanism to distinguish between facts it learned reliably and patterns it is extrapolating; it generates the statistically likely continuation regardless of ground truth.

How it works

LLMs are trained to predict probable token sequences, not to retrieve verified facts. When asked about low-frequency or ambiguous topics, the model may generate outputs that match the expected format of a correct answer but contain incorrect details. Hallucination rates vary by model, topic domain, and prompt design.

Key facts

  • Types: Factual errors, invented citations, made-up code APIs, and confabulated event details are common categories.
  • Confidence correlation: Models often express hallucinations with the same confident tone as accurate statements, making detection difficult.
  • Mitigation: RAG, grounding outputs against retrieved documents, and self-consistency checks reduce hallucination rates.
  • Evaluation: Automated hallucination detection benchmarks include TruthfulQA and FActScore.

For builders

Builders deploying LLMs in high-stakes contexts should architect systems that ground model outputs in verifiable sources, use retrieval augmentation, and expose citation links to users. Adding a verification step using an LLM-as-judge or deterministic fact-checker pipeline before surfacing answers to users can meaningfully reduce hallucination-driven failures in production.

Sources

« Back to Definition Index
Administrator · 41 published guides · Joined 2016

Welcome to wikiwalls

The WikiWalls Journal · Free, weekly

One careful fix in your inbox each Wednesday.

No affiliate links inside the diagnosis. No sponsored "top 10". One careful fix per week — unsubscribe in one click.

No tracking pixels · No spam · Edited by a human.