Why is a language model sometimes wrong?
Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.
A language model is very good at sounding like the right next tokens. That is the training target. It is not the same target as 'look this up in a trusted source'. When those two diverge, you get a fluent falsehood — often called a hallucination in this setting. There is no honest percentage on this page for how often a given product is wrong: that depends on the task, the model, and the year.
In one paragraph. Hallucination, as used here: a fluent continuation that is not faithful to facts or to a given source. It is a mismatch of objectives, not a mysterious glitch with a single known rate.
Pattern: 'The capital of X is Y'.
World: the Moon has no capital city.
A next-token model can follow the pattern anyway.
What goes wrong in the moon-capital joke?
'Capital of the Moon' has no true city. A next-token machine may still emit a confident name because similar 'capital of X is Y' patterns were common in training text. The pattern matched; the world did not.
Does more training fix everything?
More data and better post-training often reduce some error classes. They also copy more of the corpus. Retrieval, tools, and human checking are how products try to ground answers. This site does not claim a given vendor has solved it.
What should a beginner do?
Use models for drafts, explanations you can check, and code you can run. Do not use them as the only source for medicine, law, or breaking news. Verify.
What is the math?
The model maximises (approximately) likelihood of training tokens, not a truth table. High p(token | context) can attach to a false continuation if that continuation was common or well-formed. There is no extra 'truth' head in the public transformer equations.
Worked example
Ask for a citation of a paper that does not exist. A model may emit a plausible author list and an arXiv-like id. That string can have high local probability (it looks like a citation) and still refer to nothing. Check the URL. If it 404s, you found the mismatch.
Check your understanding
Five questions. Answers are in the disclosure under each item, so this page still works if JavaScript is off.
Further reading
- A Neural Probabilistic Language Model — Bengio et al. (2003). Journal of Machine Learning Research.
- Language Models are Few-Shot Learners — Brown et al. (2020). NeurIPS.