Why language models hallucinate
A confident sentence can be unsupported. Learn why plausible output is not checked output, and what to do about it.
In this course
Explain why hallucination happens and how verification changes the answer.

What a hallucination is
A hallucination is a confident answer that is not supported by facts. The model may invent a date, a quotation, a source, a policy, or a person. It usually sounds fluent and specific, which is exactly what makes it easy to believe.
It is not lying. A lie requires knowing the truth and choosing to mislead. A language model is doing the only thing it knows how to do: producing text that looks like a likely continuation. Sometimes that continuation is wrong.
For example, you might ask for a book summary and get a convincing plot that does not exist, or ask for a source and get a real-looking citation with the wrong author and year. The words are plausible; the facts are not.
Why it happens
Most language models are trained to produce a useful, fluent response to whatever they are given. During training, they see many examples of questions followed by answers and learn the pattern: a question comes in, a helpful answer follows. They are not trained to stop and check every claim against the world.
That creates a strong pull toward answering. If the model has no relevant information, “I don’t know” is possible, but a confident paragraph is often more likely. The system has learned that an answer is usually what comes next. This is sometimes called helpfulness pressure: the model is rewarded for being useful, and a blank response can feel less useful.
The result is a machine that would rather produce a plausible sentence than leave a gap. That is useful when the pattern is right, and risky when it is not.
A confident-looking sentence
It reads as certain
“The Eiffel Tower was completed in 1912.”
This is not a confidence score. It is a description of the prose.
Fluent is not true
A wrong answer can sound exactly like a right one. Fluency is a property of the writing, not a guarantee about the facts. The model does not have a truth meter that changes its tone when it is unsure.
This is why “it sounded confident” is not evidence. Confidence is a style of output. A polished sentence may be built from a strong pattern rather than a checked fact.
The demo above is a small example: the sentence sounds certain, but the year is wrong. The model was not trying to trick you. It was completing a pattern.
What makes it more likely
Missing context: the model does not know what you did not give it. If the document is not in the conversation, it cannot read it. If the question is ambiguous, it may fill the gap with a guess.
Learned errors: its training text contained mistakes, and patterns can repeat them. A common false claim can become a strong pattern.
Pressure to answer: the model was trained to be helpful, and a confident answer often looks more useful than “I don’t know”. It may invent a detail to complete the shape of an answer.
These causes often overlap. A missing document, a confident model, and a polite request for a specific answer can combine into a recipe for a polished invention.

Retrieval and tools help, but do not guarantee
A search tool can bring back a source. A calculator can check arithmetic. Those are evidence, and they make a real difference — but they do not guarantee truth.
The model can misread the source, the source can be wrong, or the tool can fail. A citation can be real but irrelevant. Evidence still needs a check.
Tools also add new failure points. A search result may be outdated, a document may be incomplete, or a calculator may be given the wrong numbers. The model can only work with what the tool returns.
What to do instead
Give the model the context it needs. Paste the relevant passage, upload the document, or ask it to use a search tool when the answer depends on current information.
Ask for sources, then check them yourself. A link is not proof until you open it. A citation is not proof until it says what the model claims.
Ask for uncertainty. Prompts like “tell me what you are unsure about” or “separate facts from guesses” can make the limits more visible, though they do not make the answer true.
Use a second, independent source for anything that matters. For high-stakes decisions, keep a qualified human in the loop. The goal is not to trust less; it is to check the right things.
Quick check
1 of 3Why can a hallucinated answer sound convincing?
What you learned
- A hallucination is a confident answer that is not supported by facts.
- Models are trained to answer, so they can invent a plausible detail instead of saying “I don’t know”.
- Fluency is not truth, and a confident tone is not evidence.
- Tools and retrieval help, but their output still needs checking.
That is “Why language models hallucinate.”
If the idea clicked, mark it complete. Your progress and badges stay on this device.
Badge
Doubt the Fluent
You check confidence against evidence.
Already know this material? Skip the rest of the foundation.
See your achievementsBadges mark completion, not mastery. They are self-reported course completions saved on this device.