Skip to content

Hallucination

A situation where a neural network confidently outputs false or fabricated information.

Why It Happens

The model does not store facts—it predicts the most probable next word. Sometimes, 'most probable' does not mean 'true.' If the model does not know the answer, it may generate plausible lies.

Examples

  • Fabricated references to sources;
  • Non-existent books and quotes;
  • Incorrect formulas that look correct;
  • Confident answers to questions not present in the data.

How to Combat

  • RAG — provide the model with facts before answering;
  • Temperature lower — less randomness;
  • Request to admit ignorance;
  • Fact-checking — do not trust important answers without verification.
  • Grounding — reliance on facts from the context.

See Also

← All terms