The mechanism, stated plainly
A language model is trained to predict the next token given the preceding ones. Nothing in that objective represents truth. What it represents is what text tends to follow what text.
So when a model produces a citation that does not exist, it has not malfunctioned. It has produced a plausible continuation, which is precisely what it was trained to do. A citation-shaped string in a citation-shaped context is exactly what the objective rewards, and whether the paper exists is not a property the training signal contained.
This reframing matters because it changes what kind of problem this is. Hallucination is not an error state the system enters, distinguishable from its normal operation. It is the same process producing the same kind of output, and the only difference is whether the result happens to correspond to the world.
Which has an uncomfortable consequence explored throughout this cursus: the model cannot tell you which of its outputs are hallucinated, because from inside the process there is no difference. Every mitigation in the next two lessons is therefore external, comparing output against something the model did not produce.
The word hallucination is also imperfect. It implies a perceptual malfunction, when the accurate description is confident generation under uncertainty.

