Why Do LLMs Hallucinate? Causes, Examples and Fixes
By LatestLLM Editorial · Published · Facts verified · 8 min read
Also called: AI hallucinations, confabulation, making things up, factuality, LLM errors, false answers
Before this: Next-token prediction
In one line
A hallucination is a fluent, confident statement from a language model that is not true: the model produces plausible text and is rewarded for guessing over admitting it does not know.
Hallucination, simply and technically
In plain English
Sometimes a chatbot states something false in a perfectly confident tone: a quote nobody said, a court case that does not exist, a wrong birthday. These are called hallucinations. They are not lies, because the model has no intention to deceive. They happen because the model's job is to produce text that sounds right, and a smooth, plausible answer is always available, even when the model does not actually know.
A recent explanation is simpler than it sounds. Models are tested like students on an exam where a wrong answer costs nothing and a blank costs a point. A student in that exam should always guess, and so should a model. Tests that reward guessing teach models to guess, and the guesses are sometimes wrong.
Think of it like this: A hallucination is like a student who has not studied bluffing on an exam. The bluff is fluent and well structured and sounds like a real answer, because the student knows what answers look like. If the exam gives no penalty for wrong answers and zero for “I don't know”, bluffing is the sensible strategy. The comparison understates one thing: unlike the student, a model usually cannot tell which of its answers are bluffs.
Everyday example: A confident wrong date
A user asks a model for the birthday of a little-known author.
Input:
“When was the author born?”
Output:
A confident, plausible date that may not be true
What it shows: The model has seen the author's name only a few times and has no solid memory of the date. It still has to produce something, so it writes a date in the right format: “March 14, 1962”. The format is right, the statement is smooth, and the date may be wrong. A model trained to say “I'm not sure” in such a case would score lower on a test that counts only right answers.
Technically
Kalai et al. (2025) argue that language models hallucinate because training and evaluation procedures reward guessing over acknowledging uncertainty, and that hallucinations need not be mysterious: they originate as errors in binary classification. If incorrect statements cannot be distinguished from facts, then hallucinations in pre-trained models arise through natural statistical pressures. Post-training does not remove them if the benchmarks that rank models give no credit for abstaining. TruthfulQA (Lin et al.) adds a second cause: models imitate human falsehoods, and the best model tested was truthful on 58% of its 817 questions against 94% for humans.
For a question with a single right answer, a response is correct, wrong or an abstention. With a score of +1 for right, 0 for abstaining and −w for wrong, guessing beats abstaining whenever confidence p exceeds w / (1 + w). Under accuracy-only scoring w = 0, so a guess never loses. OpenAI's SimpleQA numbers show the effect: gpt-5-thinking-mini abstained on 52% of questions with 22% right and 26% wrong, while o4-mini abstained on 1% with 24% right and 75% wrong, slightly higher accuracy but about three times the error rate.
Technical example: Guess or abstain?
Expected score of guessing at 30% confidence under different penalties for wrong answers, the confidence threshold above which guessing pays, and the error rate among attempted answers in OpenAI's reported SimpleQA numbers.
Code (python):
def guess(p, penalty):
return p - penalty * (1 - p) # +1 right, 0 abstain, -penalty wrong
for penalty in (0, 0.5, 1, 3):
threshold = penalty / (1 + penalty)
print(f"wrong answer costs {penalty}: guess above {threshold:.0%} confidence; "
f"at 30% confidence a guess scores {guess(0.30, penalty):+.2f}")
simpleqa = {"gpt-5-thinking-mini": (52, 22, 26), "o4-mini": (1, 24, 75)} # abstain, right, wrong (%)
for name, (abstain, right, wrong) in simpleqa.items():
print(f"{name:20s} wrong among attempted answers: {100 * wrong / (right + wrong):.0f}%")
Output:
wrong answer costs 0: guess above 0% confidence; at 30% confidence a guess scores +0.30
wrong answer costs 0.5: guess above 33% confidence; at 30% confidence a guess scores -0.05
wrong answer costs 1: guess above 50% confidence; at 30% confidence a guess scores -0.40
wrong answer costs 3: guess above 75% confidence; at 30% confidence a guess scores -1.80
gpt-5-thinking-mini wrong among attempted answers: 54%
o4-mini wrong among attempted answers: 76%
What it shows: Without a penalty a 30% guess is worth +0.30 and is always taken; with a penalty of 1, guessing pays only above 50% confidence and a 30% guess scores −0.40. Of the answers each model actually attempted, 54% were wrong for gpt-5-thinking-mini and 76% for o4-mini, so the model that abstains more is far more reliable per attempted answer even though its raw accuracy is slightly lower.
Plausible is not true
In plain English: A language model is trained to continue text the way real text would continue. Real text about a person always contains a birthday, so the model learns that a birthday goes here. It learns the shape of a true answer very well, even when it holds no true answer.
Technically:
Pre-training maximises the probability of the training text. Facts that appear many times are learned reliably; facts that appear once or never have no stable representation, and the model fills the slot with the most plausible continuation. Kalai et al. analyse the statistical causes, including facts that appear rarely in the training data and so cannot be told apart from plausible fabrications.
There is also no built-in signal separating knowledge from guesswork. The next-token probabilities are over words, not over truth, and a model's stated confidence in words is only loosely tied to its actual accuracy.
Rewarded for guessing
In plain English: Scoreboards decide which models get used. If a scoreboard counts right answers and ignores wrong ones, a model that guesses always scores at least as well as one that holds back. Over many rounds of improvement, the guessing model wins.
Technically:
Kalai et al. argue that most benchmarks use binary grading where abstentions score zero, so a model that always guesses outperforms an honest one on the leaderboard, and post-training optimises for that. Proposed fixes include explicit confidence targets in the instructions, penalties for wrong answers, and credit for appropriate abstention, so a model is scored on what it chooses to answer.
The SimpleQA numbers illustrate the difference: accuracy alone ranks o4-mini (24%) above gpt-5-thinking-mini (22%), but errors were 75% against 26%, which only a metric that counts errors reveals.
Everyday example: The honest student
Two students each know 20 of 100 answers on an exam.
What it shows: One guesses on the other 80 and gets about 20 more right by luck, scoring higher; the other leaves 80 blank. Under a scoring rule that deducts for wrong answers, the second student wins. Today's accuracy-only leaderboards favour the first.
Kinds of hallucination
In plain English: Not all false statements come from the same place. Some are made-up details, some are repeated myths from the training text, and some are mistakes about the prompt the model was given.
Technically:
Common categories are fabricated facts (citations, quotes and names), imitation of human misconceptions, reasoning errors, and unfaithfulness to a supplied source in summarisation or retrieval. TruthfulQA targets the second: 817 questions across 38 categories crafted so that some people would answer falsely from a false belief; the best model in the original study was truthful on 58% of questions, against 94% for humans.
Tasks with checkable answers expose them clearly, while open-ended writing hides them, which is why long outputs often contain a few false details among many true ones.
Reducing hallucination
In plain English: Nothing makes a model perfectly reliable, but several habits help. Give it the source text to read, let it use tools to look things up, ask it to cite sources, and reward it for saying when it does not know.
Technically:
Retrieval-augmented generation grounds answers in retrieved passages, and tools let a model compute or look up what it cannot recall. Prompts and training can encourage abstention; evaluation can penalise errors more than abstentions, as OpenAI's Model Spec states that it is better to indicate uncertainty than provide confident information that may be incorrect. Lower sampling randomness reduces random slips but not systematic false beliefs.
For users, verification matters most where the stakes are high: check names, numbers, quotes and citations against a trusted source, and treat fluent confidence as no evidence of accuracy.
What is calibration?
How well a model's confidence matches how often it is right. A well-calibrated model that says it is 70% sure is correct about 70% of the time.
Common misconceptions
Myth: A hallucination means the model is lying.
Reality: The model has no intent. It produces the most plausible continuation, which can be false when it lacks the facts.
Myth: Hallucinations are a rare glitch that bigger models will remove.
Reality: Larger models hallucinate less on many facts, but accuracy on hard questions stays below 100%, and scoring that rewards guessing keeps the behaviour alive.
Myth: A confident tone shows the answer is right.
Reality: Fluency and confidence come from language modelling, not from knowledge. They are not evidence of accuracy.
Key takeaways
- A hallucination is a fluent, confident, false statement; models produce plausible text whether or not they know the answer.
- Accuracy-only scoring never penalises a wrong guess, so models trained and ranked this way learn to guess rather than say “I don't know”.
- OpenAI's SimpleQA table: o4-mini was right 24% and wrong 75% of the time, gpt-5-thinking-mini right 22% and wrong 26%, because it abstained on 52%.
- Retrieval, tools, citations and rewarding calibrated abstention reduce hallucinations; none removes them.
Frequently asked questions
What is an AI hallucination?
A confident, fluent statement by a language model that is false or unsupported, such as an invented citation or a wrong date.
Why do LLMs hallucinate?
They generate plausible text from statistical patterns, and training and evaluation procedures reward guessing over admitting uncertainty.
Can hallucinations be eliminated?
Not entirely. Retrieval, tools, calibration and better evaluation reduce them, but accuracy on hard questions stays below 100%.
Does RAG stop hallucinations?
It reduces them by supplying sources, but the model can still misread or ignore the retrieved text.
What is SimpleQA?
A benchmark of short fact-seeking questions. OpenAI used it to show a model that abstains more can make far fewer errors with similar accuracy.
Sources
Facts last verified November 23, 2026.