By Plainly Editorial

Updated

What is an AI hallucination?

Filed under AI & modern tech

What counts as an AI hallucination?

A hallucination is confident output that is not supported by reality or by the material the model was given. The term covers made-up facts, fabricated references, invented people or events, and answers that contradict a document you supplied.

Researchers often split hallucinations into two kinds. Factual errors are wrong about the world, such as an incorrect date. Faithfulness errors misrepresent the input, such as a summary that adds a claim the original never made. Both look equally fluent, which is what makes them dangerous.

A hallucination is different from a model refusing, being vague, or holding an opinion you disagree with. The defining feature is that it presents something false as fact.

Why do LLMs hallucinate?

A large language model (LLM) works by predicting the next token, a small chunk of text, based on patterns learned in training. It is very good at producing text that sounds right. It has no built-in step that checks a claim against a database before saying it.

Rare facts are the weak spot. Patterns that appear constantly in training data, like spelling and grammar, are learned reliably. A fact that appeared once or never, such as an obscure person’s birthday, cannot be inferred from patterns, so the model may produce a plausible guess instead.

Training incentives make guessing more likely. A 2025 paper from OpenAI researchers, “Why Language Models Hallucinate,” argues that common benchmarks score only accuracy, so a model that guesses earns more points than one that says “I don’t know.” Models learn to bluff because the tests reward it.

Context problems add to this. If the needed information is missing from the prompt, buried in a very long document, or contradicted by another source, the model fills the gap with its best guess.

What are the most common types of AI hallucination?

Fabricated citations are the best-known type: real-looking paper titles, case names, URLs or page numbers that do not exist. Invented quotes are close behind, where a real person is credited with words they never said.

Other common types include wrong numbers and dates, merged identities (attributing one person’s achievements to someone with a similar name), made-up product features or API functions in code, and summaries that slip in conclusions the source never reached.

Hallucinations cluster around niche topics, recent events after the model’s training cutoff, precise figures, and anything the user strongly implies should exist. Asking “What did the 2019 Smith study find?” can produce a confident description of a study that was never published.

How can you reduce AI hallucinations?

Ground the model in real sources. Retrieval-augmented generation (RAG) or simply pasting the relevant document into the prompt gives the model actual text to work from instead of relying on memory. Tell it to answer only from the supplied material.

Give it permission to be uncertain. Anthropic’s guidance notes that explicitly allowing the model to say “I don’t know” can sharply reduce false information. Ask it to quote the exact passage that supports each claim, and to drop any claim it cannot support with a quote.

Lower the temperature for factual tasks. Temperature controls how much randomness goes into word choice; a low setting makes the model stick to its most likely answer. This reduces creative drift but does not fix a wrong belief, so it is a supplement, not a cure.

Verify what matters. Run the same question several times and compare answers, since inconsistent answers are a warning sign. For anything with legal, medical, financial or reputational stakes, check claims against the original source.

How do you spot an AI hallucination?

Check every citation. Search for the exact title, look up the DOI or case number, and open the link. Fabricated references often have plausible authors and journals but no matching record.

Be suspicious of suspiciously precise details, such as exact percentages, page numbers or direct quotes, especially on obscure topics. Ask the model where a figure came from; if it cannot point to a specific source, treat the figure as unverified.

Watch for answers that match your question’s assumptions too neatly. If you ask about something that does not exist and get a detailed description, that is a red flag. Cross-check with a second source or a search engine.

Will AI hallucinations ever go away completely?

Rates have fallen as models improved and as products added web search, citations and better training that rewards admitting uncertainty. Newer models are noticeably more willing to abstain.

But no current technique eliminates hallucinations entirely, and providers say so in their own documentation. The realistic goal is to make them rarer and easier to catch, and to design workflows where a human or an automated check verifies anything important.

Ways to reduce hallucinations, and what each one does

TechniqueHow it helpsLimits
Provide source documents (grounding/RAG)Model answers from real text instead of memoryOnly as good as the documents retrieved
Allow “I don’t know”Removes pressure to guessModel may abstain more often
Require quotes or citations per claimMakes answers auditableCitations still need checking
Lower temperatureReduces random word choicesDoes not correct a confidently wrong belief
Ask the same question several timesInconsistency flags weak claimsCosts more; consistent errors still pass
Human or automated verificationCatches errors before they spreadTakes time and expertise
  • In the 2023 US case Mata v. Avianca, lawyers filed a brief citing court decisions that ChatGPT had invented; the judge sanctioned them.
  • Asked for sources on a niche topic, a chatbot lists five journal articles with real-sounding authors, but two titles return no results in any database.
  • A summary of a 40-page contract states a 30-day termination clause, while the contract actually says 60 days.
  • A coding assistant suggests a library function that does not exist, so the code fails when it runs.
  • A model attributes a famous quote to the wrong historical figure, merging two people with similar careers.

Common questions

Is hallucination the same as lying?

No. Lying implies intent to deceive. A model hallucinates because it generates likely-sounding text without a reliable internal fact check. The output can still mislead you, so the practical response is the same: verify claims that matter rather than trusting fluent wording.

Do AI models with web search still hallucinate?

Less often, but yes. Search gives the model real pages to read, which helps a lot. It can still misread a source, cite a page that does not say what it claims, or fill gaps when search results are thin. Click through to the cited page before relying on it.

Which AI model hallucinates the least?

It changes with each release and depends on the task, so any ranking dates quickly. Independent benchmarks measure factual accuracy on specific question sets, but results vary by topic. For important work, choose a model that cites sources and test it on questions from your own domain.

Can fine-tuning stop hallucinations?

Fine-tuning can teach a model a style, a format, or to say “I don’t know” more often, which can reduce some errors. It is a poor way to add new facts reliably. For accurate, up-to-date answers, retrieval of real documents usually works better than fine-tuning.

Why is it called a hallucination?

The word was borrowed from psychology, where it means perceiving something that is not there. Researchers used it for machine-generated text that looks fluent but is not grounded in reality or the input. Some people prefer “confabulation” because the model is filling gaps rather than perceiving anything.

Sources and further reading

  1. Why language models hallucinate — OpenAI
  2. Why Language Models Hallucinate (Kalai et al., 2025) — arXiv
  3. Survey of Hallucination in Natural Language Generation (Ji et al.) — arXiv
  4. Reduce hallucinations — Anthropic

Glossary terms

Keep reading