Notes

Hallucination

The unsettling thing about a model's mistakes is not that it gets things wrong. It is that the wrong answers arrive in exactly the same calm, well-formed prose as the right ones. Hallucination is output that is fluent, plausible and false.

Where it comes from

A language model is trained to produce a likely continuation of text, not a verified one. It holds no index of what it read and no internal flag for uncertainty, so a half-remembered fact and a solid one come out of the same machinery. Alignment training sharpens the problem in one specific way: human raters prefer confident, helpful answers, so the model learns that a decisive guess scores better than an admission of ignorance. The characteristic failure is therefore a confident invention — a plausible citation, a library function that does not exist, a date that is close but wrong.

What it looks like, and what helps
  • Fabricated sources are the signature case: lawyers have been sanctioned for filing briefs citing judgments a model made up.
  • Unfaithfulness is the subtler case — the answer contradicts a document supplied in the prompt, which no gap in the model's knowledge can excuse.
  • RAG and explicit citation reduce the damage by putting evidence in the context and making the answer checkable, not by making the model truthful.
  • Benchmarks such as TruthfulQA measure the rate; none of them removes it.

Nothing on the horizon eliminates hallucination, because it is the same mechanism that lets the model say anything useful about an input it has never seen. Systems that work in practice treat the output as a draft to be verified rather than an answer to be trusted.

Hallucination is fluent, confident output that is factually false or unsupported by the sources given. It follows from the training objective: a model predicts likely text, not verified text, and alignment training rewards decisive answers over admissions of ignorance. Fabricated citations and contradictions of a supplied document are the typical forms. RAG, explicit citation and abstention reduce it; none removes it, so any serious use must keep the output checkable.

We all know someone who has read a great deal and will answer any question — confidently — even when they are only half remembering. Language models do that constantly, and the polished writing makes it hard to spot. A hallucination is when the model simply makes something up: a book that was never written, a rule that does not exist, a quote nobody said. It is not lying, because it has no sense of what is true. It was built to produce text that sounds right, and most of the time text that sounds right is also correct. When it is not, nothing in the answer looks any different.