Hallucination is rational behavior. Here's what to do about it.
The term implies random confusion. It's not. When Claude invents a citation or gives a wrong date with total confidence, it's doing exactly what it was trained to do: predict the most probable next token. The model was trained to complete text, not to verify truth.
The training objective was: "given this text, predict the next token." There was no objective like "predict the next token ONLY IF IT'S TRUE." Truth didn't exist as a concept in base training.
Saying "I don't know" requires metacognition: knowing that you don't know something. That implies having an internal model of your own knowledge. Base LLMs don't have that.
What does happen: during fine-tuning and RLHF, humans penalized wrong responses and rewarded uncertainty acknowledgment. So Claude learned to say "I'm not sure" in some contexts. But it's learned surface behavior, not a real verification mechanism.
There's no internal component that says "this is correct" or "this is false." Only: "given everything I've seen, what token is most probable now?" If the most probable token is wrong, Claude picks it anyway, with full confidence.
Hallucination is a problem when you need factual accuracy. For many real tasks, it's irrelevant: drafting the structure of a document (you'll fill in the facts), brainstorming ideas, writing code to a spec you provide, transforming formats. Understanding when accuracy is critical vs. when fluency is enough saves a lot of over-engineering.
The next lesson covers RAG — the architecture that directly solves Type 1 and Type 2 hallucinations by grounding every response in your real documents.