O&O ConsultingBook a free call

Home / Insights / AI in Practice

Why Language Models Hallucinate, and How to Reduce It

The causes of confident false statements and the practical controls that limit their harm.

O&O Consulting · · 2 min read

Scientific equipment used to check results

"Hallucination" is the common name for output that is unsupported or false yet stated with ease. Researchers distinguish text that contradicts a given source from text that adds claims which cannot be checked against it.

Why it happens

A language model is trained to produce likely continuations. Truthful text and plausible text usually overlap, but not always. Rare facts, precise numbers, citations and recent events are especially risky, because the model has weak evidence and still has a strong sense of what such an answer looks like.

Training and scoring can add to the problem. If an evaluation rewards a lucky guess and gives nothing for "I don't know", guessing is encouraged.

Layers of protection against false answersIllustrative diagram, not data
Ground answers in sourcesAllow the model to say it does not knowCheck facts and figures automaticallySend high-risk cases to a person
Ground answers in sourcesAllow the model to say it does notknowCheck facts and figuresautomaticallySend high-risk cases to a person

Diagram by O&O Consulting.

Reducing the rate

  • Retrieval: supply the relevant source and instruct the model to answer from it.
  • Narrow scope: limit the system to subjects it has material for.
  • Permission to abstain: make clear that saying the information is missing is acceptable.
  • Verification: check figures, names and links against records.
  • Consistency checks: asking several times and comparing can flag unstable claims, though a model can be consistently wrong.

Designing around it

Assume some errors will pass. Show sources next to claims. Keep consequential decisions with a person. Make it easy to report a mistake, and record what was asked and answered.

Organisations remain responsible for what their systems tell customers. In 2024 a British Columbia tribunal held Air Canada liable after its website chatbot gave a customer inaccurate information about a bereavement fare.

Limitations and open questions

There is no known method that eliminates hallucination in open-ended generation. Measured rates depend heavily on the task and the way errors are counted, so a published percentage should not be assumed to apply to your use. Ask for evidence from tests that resemble it.

References

  • Ji, Z. et al. (2023). "Survey of Hallucination in Natural Language Generation." ACM Computing Surveys. doi.org/10.1145/3571730
  • Lewis, P. et al. (2020). "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks." arxiv.org/abs/2005.11401
  • Moffatt v. Air Canada, 2024 BCCRT 149. British Columbia Civil Resolution Tribunal.

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.