Skip to content
AI Guides

AI Hallucinations: Why AI Makes Things Up (And How to Catch It)

One of the most important things to understand before relying on AI for anything factual: it can be confidently, fluently wrong. This isn't a rare glitch — it's a predictable consequence of how these systems work, and understanding why makes it much easier to catch.

What a hallucination actually is

A "hallucination" is when an AI model generates information that's false, invented, or unsupported — a fake citation, a wrong date, a function that doesn't exist in a programming library — but presents it with the same fluent confidence as something true.

Why it happens

Language models are trained to predict statistically likely text, not to verify facts against a database. When a model doesn't actually "know" an answer, it doesn't have a built-in way to say "I'm not sure" by default — it generates the most plausible-sounding continuation of the text, which can be wrong while still reading perfectly naturally.

This is different from a person lying, which implies intent. The model isn't trying to deceive you; it's doing exactly what it was built to do — produce likely text — in a case where "likely-sounding" and "true" don't line up.

Where hallucinations show up most

  • Citations and sources. Fake paper titles, wrong authors, or URLs that don't resolve are especially common — the model knows what a citation looks like without necessarily having the real one memorized.
  • Specific numbers and dates. Precise statistics or dates are easy to state confidently and easy to get wrong.
  • Niche or recent topics. The less represented something was in training data, the more likely the model is to fill gaps with plausible-sounding guesses.
  • Code that "should" exist. Functions or library methods that sound like they ought to exist, but don't.

How to catch it

  • Ask for sources, then check them. Don't just accept a citation — click through or search for it independently.
  • Be more skeptical of specifics than generalities. A broad explanation of a concept is usually more reliable than an exact number, date, or quote.
  • Cross-check anything decision-critical. If a fact will affect a real decision — medical, legal, financial, or otherwise — verify it through a source you trust independently of the AI.
  • Notice unusual confidence on unusual questions. If a topic is obscure and the model answers instantly and precisely with no hedging, that's worth extra scrutiny.

It's a limitation, not a dealbreaker

Understanding hallucination isn't a reason to avoid AI tools — it's what lets you use them well. Treat AI output as a strong first draft or a well-read collaborator's guess, not a verified source, and you get the real benefit without the risk.

Related reading

See How Does AI Actually Work? for why prediction-based generation leads to this behavior, and the Hallucination entry in our AI Glossary for a quick definition.