A laptop showing a blurred chat window on a dark desk, with a magnifying glass beside it

Why AI Chatbots ‘Hallucinate’: What Causes Made-Up Answers and How to Spot Them

Header image: illustration, AI-generated.

Explainer

Ask an AI chatbot a question and you will usually get a fluent, confident answer. Most of the time it is useful. Sometimes, though, the answer is simply wrong: a book that was never written, a court case that never happened, a date pulled from thin air. Researchers call these confident falsehoods hallucinations. They are one of the main reasons AI tools still need checking, and understanding why they happen makes them much easier to catch.

What counts as a hallucination

OpenAI describes hallucinations as plausible but false statements generated by language models. The important word is plausible. A hallucination is not gibberish. It reads exactly like a correct answer, in the same tone and with the same apparent certainty, which is why it is easy to miss.

The term is borrowed loosely from human psychology, and some researchers prefer “confabulation” for the cases where a model invents details. Whatever the label, the problem is the same: the system produces something that sounds right but is not supported by fact.

Two cases that made headlines

The lawyers and the invented cases. In 2023, lawyers in a personal-injury case against the airline Avianca filed a brief in a New York federal court that cited court decisions which did not exist. The citations and quotations had been produced by ChatGPT. One lawyer told the court he had believed the tool could not fabricate cases. In June 2023, Judge P. Kevin Castel found that the lawyers had acted in bad faith, partly because they stood by the fake opinions after their existence was questioned, and imposed a $5,000 penalty on them and their firm.

The airline chatbot. In November 2022, a customer named Jake Moffatt asked Air Canada’s website chatbot about bereavement fares after his grandmother died. The chatbot said he could apply for the reduced fare retroactively, within 90 days of buying his ticket. The airline’s actual policy did not allow this. When the dispute reached British Columbia’s Civil Resolution Tribunal in 2024, Air Canada argued, in effect, that the chatbot was responsible for its own statements. The tribunal called this “a remarkable submission”, found the airline liable for negligent misrepresentation and ordered it to pay about CA$812 in damages, interest and fees.

The sums were small. The lessons were not: an AI answer can be confidently wrong, and the person or organisation using it is still responsible for what it says.

Why language models make things up

A large language model is trained on huge amounts of text to predict what comes next. It learns the patterns of language extremely well – grammar, style, typical facts and the shape of a good answer. What it does not have is a built-in database of verified facts that it looks up before replying. (For how these models are built, see our explainer on the 2017 paper behind today’s AI.)

A 2025 research paper by Adam Tauman Kalai and colleagues at OpenAI and Georgia Tech offers a clear account of why this leads to hallucinations. It makes two main points.

  • Some facts cannot be learned from patterns. Common facts, such as the capital of France, appear many times in training text and are learned reliably. Rare, arbitrary facts – an individual’s birthday, the title of an obscure thesis – may appear once or not at all. The authors compare this to trying to predict a pet’s birthday from its photo: no amount of skill can find a pattern that is not there. When a model is asked about such facts, errors are statistically likely.
  • Training and testing reward guessing. Most benchmarks used to compare AI models score only whether an answer is right. Saying “I don’t know” earns nothing, just like leaving a multiple-choice question blank. A model that guesses will sometimes be lucky and climb the leaderboard, while a more cautious model that admits uncertainty looks worse. The paper argues that this scoring system quietly encourages confident guessing.

The authors illustrate the problem with their own lead author. When they asked widely used chatbots for the title of Kalai’s PhD dissertation, the systems gave confident answers that were all wrong. Asked for his birthday, one chatbot offered three different dates, none correct.

The paper’s proposed fix is not exotic: change how models are evaluated so that confident errors are penalised more than honest expressions of uncertainty, much as some exams deduct marks for wrong answers. OpenAI says its newer models hallucinate less, especially when reasoning, but that hallucinations still occur and remain a fundamental challenge for all large language models.

Can hallucinations be detected?

Researchers are working on ways to flag likely errors automatically. One approach, published in Nature in 2024 by Sebastian Farquhar and colleagues at the University of Oxford, focuses on a subset of hallucinations they call confabulations: cases where a model gives different, arbitrary answers each time the same question is asked.

Their method, called semantic entropy, asks the model the same question several times, groups the answers by meaning rather than exact wording, and measures how scattered those meanings are. If the answers all say the same thing in different words, the model is probably on firm ground. If they point in different directions, the answer is likely to be made up. The approach does not catch every kind of error – a model can be consistently wrong – but it shows that uncertainty can be measured.

Another widely used technique is retrieval-augmented generation, in which the system first searches a set of documents and then bases its answer on what it finds. Grounding answers in sources reduces invented facts, although the model can still misread or misquote what it retrieves.

How to spot a hallucination

You do not need technical tools to protect yourself. A few habits catch most problems:

  • Be most careful with specifics. Names, dates, statistics, quotations, legal cases, academic papers and links are where invented details most often appear.
  • Ask for sources, then open them. A citation is only useful if it exists and says what the answer claims. Check that the paper, page or case is real.
  • Ask the same question twice. If you get different specific answers, treat both with suspicion. This is a simple, manual version of the semantic entropy idea.
  • Watch for false confidence. A smooth, detailed answer is not evidence of accuracy. Rare or niche facts deserve extra checking.
  • Verify anything that matters. For health, legal, financial or safety decisions, confirm the answer with an authoritative source or a qualified professional.

Our own psychology is part of the story. People tend to accept information that fits what they already expect, which makes a plausible error easier to believe. Our article on confirmation bias explains why testing an answer is better than looking for reasons to trust it.

The takeaway

Hallucinations are not a mysterious glitch. They follow from how language models learn – by recognising patterns, not by checking facts – and from evaluation methods that have rewarded guessing over honesty about uncertainty. Models are improving, and detection methods are emerging, but for now the safest approach is simple: use AI tools as a fast first draft, and check the facts that matter yourself.

Key takeaways

  • A hallucination is a plausible but false statement produced confidently by an AI language model.
  • Models predict likely text rather than looking up verified facts, so rare, arbitrary facts are especially prone to error.
  • A 2025 OpenAI study argues that common evaluation methods reward guessing over admitting uncertainty.
  • Real cases – fake legal citations in New York and Air Canada’s chatbot ruling – show that users and companies remain responsible for AI errors.
  • Check names, numbers, quotes and sources, and ask twice: inconsistent answers are a warning sign.

References

  1. Kalai, A. T., Nachum, O., Vempala, S. S. and Zhang, E. (2025). Why language models hallucinate. arXiv:2509.04664
  2. OpenAI (5 September 2025). Why language models hallucinate. openai.com
  3. Farquhar, S., Kossen, J., Kuhn, L. and Gal, Y. (2024). Detecting hallucinations in large language models using semantic entropy. Nature, 630, 625–630. doi:10.1038/s41586-024-07421-0
  4. Lewis, P. et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems 33. arXiv:2005.11401
  5. Mata v. Avianca, Inc., 678 F. Supp. 3d 443 (S.D.N.Y. 2023), opinion and order on sanctions, 22 June 2023.
  6. Moffatt v. Air Canada, 2024 BCCRT 149 (British Columbia Civil Resolution Tribunal, 14 February 2024). Decision
Scroll to Top