Skip to content
BIASFLIX
All notes

· 7 min read · Tadej Mursic

AI Hallucinations Explained

Understanding why large language models make things up.

The Confident Liar

Large Language Models (LLMs) like GPT-4 and Gemini are incredible feats of engineering. But they have a peculiar flaw: they can confidently state facts that are completely false. This phenomenon is known as hallucination. Readers often make it worse by treating the model as if it “knows” things—classic Anthropomorphism—and by trusting fluent certainty too quickly, which rhymes with the Overconfidence Effect.

Why Does It Happen?

LLMs are not databases of facts. They are probabilistic engines. They predict the next word in a sequence based on patterns they learned during training. When you ask "Who was the first person on Mars?", the model doesn't "know" the answer. It simply predicts the most likely words to follow that question.

If the model has seen enough science fiction, it might confidently say "John Boone" (a character from Kim Stanley Robinson's Mars trilogy) because that name is statistically associated with "first person on Mars" in its training data.

Types of Hallucinations

  • Fact Fabrication: Inventing historical events or biographical details.
  • Source Conflation: Merging two different real events into one.
  • Logical Fallacies: Making simple reasoning errors despite having complex knowledge.

Mitigating the Risk

As users, we must treat AI outputs with skepticism, especially for factual queries. Always verify critical information. As developers, we can use techniques like Retrieval-Augmented Generation (RAG) to ground the model's responses in trusted data sources, reducing the likelihood of pure fabrication.