How do AI hallucinations occur in large language models?

Imagine your AI is like a very clever friend who loves to tell stories, but sometimes they get confused and make up parts of the story, that’s what AI hallucinations are.

Think of a large language model as a giant book with every word ever said. It tries to understand how words connect by looking at patterns in this huge book. When it's asked a question, like "What did dinosaurs eat?", it looks through the book and picks out answers that seem to fit, just like you might guess the answer to a riddle based on clues.

But sometimes, the AI picks an answer that doesn’t match what’s actually in the book. It makes up a part of the story or adds something extra that wasn't there, that's a hallucination.

Why does this happen?

Large language models work by predicting what comes next, like finishing a sentence. If they're not sure about an answer, they might guess, and sometimes that guess is wrong. It’s like if you were trying to finish a story, but you didn’t remember the ending, you could make up something fun, or something that doesn’t quite fit.

So, just like your clever friend who tells stories, AI can get confused and invent parts of what it says, and that's how AI hallucinations happen!

Take the quiz →

Examples

  1. A child might imagine a dragon in the room even though there's no dragon there, just like an AI might say something that isn't real.
  2. If you ask a language model about a famous person’s birthday and it gives you the wrong date, that's an example of an AI hallucination.
  3. Sometimes when a chatbot is making up stories, it includes details that never happened.

Ask a question

See also

Discussion

Recent activity