Why AI Hallucinates and How to Reduce the Risk: the Gist's illustration
Artificial Intelligence · Generative AI

Why AI Hallucinates and How to Reduce the Risk

The lesson explains that AI hallucinations are wrong or misleading content presented as accurate, arising because generative models aim for plausible patterns rather than correctness. They can be reduced through training techniques and checks against trusted sources, but not fully eliminated.

4-minute listen 6 sources 2-question quiz Fact-checked
Listen to this Gist
0:00 3:46

Read along

The full Gist, word for word. The small numbers link to the sources for each fact.

A chatbot answers a question in smooth, confident sentences. But what if part of that answer was never true at all? That gap between confidence and accuracy has a name. People call it a hallucination.

It happens when an AI is asked for facts, or for a specific task, and it hands back content that is wrong or misleading while presenting it as accurate.5 The word is not limited to chatbots. In speech recognition, it describes a transcript that contains words or phrases nobody ever said out loud.5 In higher education, a common version appears when people ask ChatGPT, Gemini or a similar text tool to supply references or peer-reviewed sources.4

What makes all of this tricky is the delivery. Invented material arrives looking like fact, and for that reason hallucinations can be hard to notice.4 To understand where these errors come from, it helps to look at how the models learn in the first place. Text-based large language models are trained on enormous bodies of writing.2

During that training, their task is to guess what comes next in a sequence of text, drawing on patterns found across all that writing.2 Notice what that goal leaves out. Generative models aim for output that fits plausibly inside the patterns they learned.2 Being correct about the real world is not the target they are tuned for.2

Picture a musician improvising in a familiar style. Every note can suit the genre, yet the melody does not have to be any real song. That picture is only an illustration, but it captures the difference between sounding right and being right. Training can also go wrong in a more specific way.

When a model holds on too tightly to the details and the noise in its training material, it ends up doing worse on data it has never seen.1 This problem is called overfitting.1 A model in that state can seize on links that only look meaningful, connections that fall apart once it moves past its training data.2 Engineers have tools to push back against this.

Regularization is one such training technique.6 It applies a penalty to predictions that are too extreme, and that helps keep overfitting from taking hold.6 Training fixes like this lead to a bigger question about whether hallucinations can ever be fully removed. The answer from current understanding is no.

In many ways, hallucinations are built into how generative AI works, so they can be cut back but not wiped out entirely.2 Attention also turns to what happens after a model produces an answer. One mitigation approach adds verification steps to the process.1 In those steps, what the AI produces is compared with reliable information to see whether the two agree.1

Guidance on lowering the risk points to a few key practices.5 These include comparing AI output with trusted sources, bringing in experts when a question calls for them, and understanding where the tools fall short.5 Generative models aim for plausible patterns rather than real-world accuracy, and their hallucinations can be reduced but never fully removed.2,2

Quick quiz

Lock it in: pick an answer to see if you got it.

1. According to the lesson, what do generative models optimize for when they produce output?

Answer: Output that fits the learned pattern plausibly. Generative models optimize for output that plausibly fits the patterns they learned, rather than for being correct about the real world.

2. What does the lesson say about whether hallucinations in generative AI can be eliminated?

Answer: They can be reduced but not completely eliminated. Hallucinations are inherent to generative AI in many ways, so they can be reduced but not completely eliminated.

Sources

Every fact in this Gist is checked against these sources before it is published.

  1. Understanding and Mitigating AI Hallucination | DigitalOcean
  2. What Are AI Hallucinations? | IBM
  3. Hallucination (artificial intelligence) - Wikipedia
  4. Hallucinations - Introduction to Generative AI - LibGuides at University of Illinois at Urbana-Champaign
  5. What are AI hallucinations? Why AIs sometimes make things up
  6. What are AI hallucinations? | Google Cloud

Get a new Gist every day

1,000+ Gists on 37 topics in the GistWise app: a Gist of the Day every morning, quizzes, streaks and offline listening.

Get the app

More Artificial Intelligence

See all Artificial Intelligence Gists →