Why AI Chatbots Make Things Up: The Painted Puzzle Piece
8 min ยท Voice and visuals are AI-generated. Subtitles in 8 languages are available in the YouTube player.
A chatbot can sound sure even when it is wrong. It does not look up facts like an encyclopedia. It plays a word game: it guesses what word comes next, adds it, and keeps going. Most of the time this works because much of what people write is true. Sometimes it does not, so the chatbot can make up a false answer and present it as a fact. This is often called a hallucination.
Think of a chatbot as someone finishing a giant jigsaw puzzle of a library. They never leave a hole. If a piece is missing, they paint one that fits the edges perfectly. It looks real, but it is not the real picture. The chatbot can do the same with words: when it has no real fact, it fills the gap with something smooth and confident.
You can still use chatbots for brainstorming, rewording, or explaining ideas. Just check the details that matter.
- Ask for a source, then open it yourself.
- Give the chatbot the real text and ask it to answer from that.
- Use a chatbot that can search the web, and look at the pages it used.
- Tell it, "If you are not sure, say so."
- Check more when the stakes are high, like dates, quotes, money, medicine, or law.
Read the transcript
The Fake Book
I'm Max, and this is my lab. I asked a chatbot, a program you chat with by typing, for a book about cats in space. It gave me a title, an author and a year. Perfect answer. One problem: that book does not exist. This is my cat Pixel. She lives here, and the cat food is her rent. And these are Zip and Zap, two tiny aliens who landed in the garden by my shed. Chatbots are brand new to them, so their questions are great. (Pixel thinks: Terrible landlord. Food arrives late. One star.) Making up false things and saying them like facts has a name: a hallucination. It is an answer from an AI that is false or misleading, but presented as fact. In this video I want to know why a chatbot does it, and how not to get fooled.
Next-Word Guesser
Here is the secret. A chatbot is not a giant encyclopedia. At its heart, it plays one game: guess the next word. You type a sentence, it guesses what word should come next, adds it, and guesses again. Word after word. You already know this game. Your phone plays it when it suggests the next word while you type a message. A chatbot is like that, only far bigger. It learned from a huge amount of writing: books, websites, articles. It picked up which words tend to follow which. (Pixel thinks: Mine would suggest: feed, me, now.) It does not always pick the single top word. It picks among the likely words, with a little chance mixed in. That is why you can ask the same question twice and get different wording. That variety keeps writing lively. It also means a shaky answer can change from one try to the next. Notice what the guess is based on. Not 'what is true', but 'what usually comes next'. Most of the time those two match, because a lot of what people write is true. But sometimes they split apart. That split is where hallucinations live.
The Puzzle
Let me show you with a puzzle. This is a picture of a huge library, cut into pieces. Think of it as what the chatbot learned: each piece is one small fact. My puzzle is small; the real one has far more pieces. Where the piece is solid, the answer is usually right. One thing about my puzzle: it is not the library itself. A chatbot does not keep every book on a shelf to look things up. It keeps what learning left behind: patterns, like a memory of the picture. By itself, it cannot flip to the exact page and check. (Pixel thinks: Books on a shelf? Finally, somewhere warm to sit.) But no puzzle is complete. Some facts show up everywhere in writing. Some show up only once, so that piece is thin. Some never show up at all, and those leave gaps. Gaps are where trouble starts. What would you do with a gap? (Pixel thinks: Gap? I made that gap. You're welcome.)
Painted Pieces
A careful person stops and admits a piece is missing. A chatbot's habit is different. It does not leave a hole. It studies the edges around the gap, grabs a brush, and paints a piece that fits. And here is the tricky part. The painted piece looks great. The colours match, the edges line up, the shelves carry on. From a distance, you cannot tell it from a real piece. It fits perfectly. It is just not true. Now swap pieces for words. When the pattern it learned is strong, it writes the real fact. When there is a gap, it still writes the word that fits the sentence around it. Smooth, confident, and made up. It can snowball. Once a painted piece is in the picture, the next piece is painted to match it. The chatbot reads its own earlier words as part of the text it must continue. So one small invention can grow into a whole made-up story.
Why It Fools Us
So why not just say 'I don't know'? Two reasons. First, the chatbot is not lying on purpose. It has no plan to fool you, and a painted piece looks real to it, because it only checks what fits. Second, saying 'I'm not sure' has to be taught deliberately, and that is hard to get right. And chatbots are astonishing painters. They have read more writing than any person could in a lifetime. So their pieces are not clumsy green blobs. They are nearly perfect, which is exactly why a quick glance will not catch them. (Pixel thinks: Not clumsy green blobs? Zip would like a word.) Which pieces are weak? Usually the rare ones. Ask for the capital of France and the answer is everywhere in writing, so that piece is rock solid. Ask about a little-known author or an exact page number, and there may be almost nothing to learn from. Painting is not the only cause. Some pieces in the box were already wrong, because writing by people holds mistakes, old news and jokes. The chatbot cannot always tell which pieces were bad. So it can pass on an old mistake as if it were true.
Back To The Book
Now my fake book makes sense. A book reference has a familiar shape: a title, an author, a year. The chatbot knows that shape well. With no real book to point to, it painted one. A made-up reference like that is called a fabricated citation. (Pixel thinks: A fake book about space cats. Honestly, I would read it.) The same thing happens with other small details that have a clear shape: a date, a name, a quote, a web link, a number. They are easy to fill in, and they look very exact, which is why people trust them. Here is what makes it feel unfair. The chatbot sounds the same when it is right and when it is guessing. Same calm tone, same tidy sentences. A person who is unsure often hesitates. The chatbot's writing has no 'um'.
That Strange Name
Why call it hallucination? A person hallucinates when they sense something that is not there. Funny twist: in computer vision, the part of AI that works with pictures, the word has meant something useful. Programs added detail to a blurry picture to sharpen it, like painting in missing pieces on purpose. Another name is confabulation: filling a memory gap with a made-up story. People do it too. Ask about a childhood birthday and you may get invented details. Other names are delusion, believing something false, and mirage, a fake pool of water seen in a hot desert. Some engineers dislike these names, because they make a program sound human. Here is a clue. Another kind of AI, built on written rules and called symbolic AI, generally does not hallucinate. It follows step-by-step rules that people wrote down. But it is stiff: it cannot chat about anything you throw at it. Free talk has a price.
Why It Matters
And it matters. Spotting and reducing these errors is a real challenge, especially in high-stakes jobs like medical diagnosis or designing computer chips, where a mistake is costly. So treat a chatbot like a quick helper, not the final word. You might ask: why not check every answer against a list of true facts? People do try things like that. But nobody has a complete list of every fact about everything, and checking each sentence takes time. (Pixel thinks: Who checks the checker?) Makers are working hard on this, but it is a real challenge. The guessing game that lets a chatbot write about anything is the same game that lets it paint. So the best habit is not fear. It is a quick check. Before you toss your chatbot out the window: it is genuinely useful. It is great for brainstorming, rewording, summarising a text you give it, and explaining ideas simply. In those jobs, a wrong detail is easier to check or matters little.
Five Checks
Trick one: ask for a source, then open it yourself. Do not trust a reference because it looks neat. Remember my fake book? If the title or link leads nowhere, you just caught a painted piece. Trick two: hand it the real pieces. If you paste in the article or the notes, and ask it to answer from that text, there are fewer gaps to paint. It can copy the real picture instead of guessing. Trick three: use a chatbot that can search the web, and look at the pages it used. Searching lets it fetch a real piece from outside instead of painting one. It helps, but it can still misread a page. Trick four: give it permission to say 'I don't know'. Add a line like 'if you are not sure, say so'. It is not magic, but it can nudge the chatbot away from painting every gap. And ask twice: if the details change, be suspicious. (Pixel thinks: Twice? I ignore people the first time already.) Trick five: the higher the stakes, the more checking. A pizza topping idea? Go ahead. Exact dates, quotes, medicine, money or law? Check with a trusted source or an expert. Painted pieces love exact details.
Recap
Let's recap with the puzzle. A chatbot learned a giant picture from writing. It guesses one word at a time, picking what fits, not what is checked. Where it has the real piece, it is right. Where there is a gap, it paints a piece that matches the edges. And the painted piece sounds just as sure as a real one, so we do the checking. Ask for sources and open them. Hand it the real text. Let it search. Allow 'I don't know'. And check harder when the stakes are high. Here is a tiny challenge. Ask a chatbot about something you know really well: your hobby, your street, your favourite band. See if you can spot a painted piece. Then tell me in the comments: what is the most convincing fake fact a chatbot ever told you? Now, I have a repair to do. The aliens' little UFO still has one blinking light I cannot explain, so I am tightening a panel and hoping. See you in the next experiment!
Sources
- Wikipedia: Hallucination (artificial intelligence)