Explainer
What is an AI hallucination?
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
| Technique | How it helps | Limits |
|---|---|---|
| Provide source documents (grounding/RAG) | Model answers from real text instead of memory | Only as good as the documents retrieved |
| Allow “I don’t know” | Removes pressure to guess | Model may abstain more often |
| Require quotes or citations per claim | Makes answers auditable | Citations still need checking |
| Lower temperature | Reduces random word choices | Does not correct a confidently wrong belief |
| Ask the same question several times | Inconsistency flags weak claims | Costs more; consistent errors still pass |
| Human or automated verification | Catches errors before they spread | Takes time and expertise |
Examples
- 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
Glossary terms
- Hallucination
An AI hallucination is when a language model produces information that sounds confident and plausible but is false, invented or unsupported by its sources, such as a fake citation, a wrong date or a quote nobody said. The model is not lying; it is generating likely-sounding text.
- RAG
RAG (retrieval-augmented generation) is a technique where an AI system first searches a collection of documents for passages relevant to a question, then gives those passages to a language model to write the answer. It lets a model use current or private information it was never trained on.
Keep reading
- What is RAG?
RAG (retrieval-augmented generation) is a technique where an AI system first searches a set of documents for passages relevant to your question, then gives those passages to a language model to write the answer. It lets the model use current, private, or specialized information it was never trained on, and makes answers easier to check against sources.
- What does temperature mean in AI?
Temperature is a setting that controls how random a language model’s word choices are. Low temperature makes the model pick its most likely next word almost every time, giving focused, repeatable answers. High temperature spreads the choice across less likely words, giving more varied and creative, but also more error-prone, output.
- What is an LLM?
An LLM (large language model) is an AI system trained on huge amounts of text to predict the next piece of a sentence. By doing that prediction billions of times, it learns grammar, facts, and patterns of reasoning well enough to answer questions, write, summarize, translate, and generate code. Chatbots like ChatGPT and Claude are built on LLMs.
- LLM vs search engine
An LLM (large language model) writes a new answer word by word from patterns learned in training. A search engine finds existing web pages in its index and ranks them for your query. Use an LLM to explain, summarize, or draft; use search to find current information and primary sources you can check yourself.
- What is a context window in AI?
A context window is the maximum amount of text, measured in tokens, that a language model can consider at once. It covers everything in a single request: the system prompt, the conversation so far, any pasted documents or tool results, and the answer the model writes. Anything outside the window is invisible to the model.
- RAG vs fine-tuning
RAG (retrieval-augmented generation) gives a model new information at question time by searching your documents and pasting the relevant passages into the prompt. Fine-tuning changes the model itself by training it further on example inputs and outputs. Use RAG to change what the model knows; use fine-tuning to change how it behaves.