How AI works
Why does AI make things up (hallucinate)?
When a chatbot invents a birthday or a research paper, it's doing the job it was trained for: producing likely-sounding text. Once you see how that goes wrong, you'll know where to expect made-up answers and how to catch them.
AI chatbots make things up because they're built to predict likely-sounding text, one word-piece at a time, not to look facts up. When the training data never settled a fact, like an obscure person's birthday, the model still produces a fluent answer, and the guess reads exactly like knowledge. Training and test scoring make it worse by rewarding a confident guess over "I don't know." Retrieval and citations reduce the problem but don't remove it, so check names, numbers, dates and quotes yourself.
What an AI hallucination actually is
Ask a chatbot for the birthday of someone who isn't famous and you may get a crisp, specific date that's simply wrong. Ask again and you may get a different date, delivered just as calmly. That's a hallucination: a fluent, confident statement from an AI model that's false, or that nothing supports.
This happens to the best-known models. In a 2025 paper, researchers at OpenAI and Georgia Tech asked an open model, DeepSeek-V3, for the birthday of one of the paper's own authors, Adam Tauman Kalai, and told it to answer only if it knew. Across three attempts it gave three different dates, all of them wrong. OpenAI's technical report on GPT-4 says the model is still not fully reliable, because it “hallucinates” facts and makes reasoning errors.
Hallucinations come in two kinds, and it helps to tell them apart:
- Made up from memory. You ask a question, the model answers from what it absorbed during training, and part of the answer is invented: a date, a statistic, a quote, or a book or research paper that doesn't exist.
- Unfaithful to a source you gave it. You paste in a document and ask for a summary, and the summary includes a claim the document never makes.
Neither kind is lying. There's no intent to deceive, and the model isn't comparing its words against a record of the truth. It also isn't a rare glitch in one line of code. The same machinery that writes a good answer writes the bad one, which is why the bad one looks identical. The 2025 paper puts it plainly: hallucinations need not be mysterious. They're ordinary prediction errors, and the way models are graded helps them survive training.
Why predicting the next word produces confident fiction
A large language model (LLM), the kind of AI behind ChatGPT, Claude and Gemini, writes by guessing. Given the text so far, it scores every possible next token (a word or a piece of a word), turns those scores into probabilities, picks one, adds it to the text, and repeats. There's a full walk-through of that loop, with the arithmetic, in how large language models work. For hallucinations, three things about the loop matter.
1. The loop always produces a next token
A plain language model has no step where it checks a fact against a database, and no alarm that goes off when it doesn't know. Every turn of the loop ends with some token picked, because picking a token is the only thing the loop does. If the model never saw the answer, it still writes the most plausible-looking continuation.
2. Sounding right and being right come from different places
The figure below uses made-up probabilities to show the difference between a fact the model saw over and over in training and one it saw once.
For Marie Curie, the training text agrees with itself, so almost all the probability lands on one city. For a name the model barely saw, the probability is smeared across many cities and none stands out. The model still has to pick one, and then it writes “was born in Madrid” with exactly the same grammar and tone as the Curie sentence. The confidence you hear comes from the sentence pattern, which the model has seen countless times. It tells you nothing about the fact in the middle.
3. One wrong token steers everything after it
Each new token is predicted from all the text before it, including the model's own earlier words. So once a wrong detail is on the page, the rest of the answer gets built to fit it. Researchers call this hallucination snowballing: a model over-commits to early mistakes and then makes further false claims to justify them. Asked about those claims separately, ChatGPT and GPT-4 recognized 67% and 87% of their own mistakes. The model often could have caught the error. A plain next-token loop just never goes back to revise words it's already written.
Why rare facts are the ones AI makes up most
If hallucinations were random, you couldn't predict them. They aren't random. They pile up on facts that appeared rarely in the training text, and you can see why with a bit of counting.
Two 2023 studies measured the pattern. Kandpal and colleagues counted, for each trivia question, how many training documents mentioned the key names in both the question and its answer, and found that a model's ability to answer relates to how many documents associated with that question were seen during pre-training. Bigger models do better on rare facts, but the authors estimated that models would need to be scaled up by many orders of magnitude to handle questions with little support in their training data. Mallen and colleagues built a 14,000-question test called PopQA, with subjects ranging from very popular to obscure, and found that scaling fails to appreciably improve memorization of factual knowledge in the long tail. The long tail is the enormous number of things that are each mentioned only a little: minor public figures, small towns, niche research papers.
The singleton rule, worked through
The 2025 OpenAI and Georgia Tech paper turns this into a rule of thumb. Call a fact a singleton if it appears exactly once in the training data, like a person whose birthday shows up in a single obituary and nowhere else. The paper's result, minus some small correction terms, says a base model's error rate on a kind of fact is at least its singleton rate: the share of training examples of that kind that are one-offs. Their own illustration: if 20% of birthday facts appear exactly once in the training data, expect the base model to hallucinate on at least 20% of birthday questions.
Here's that with numbers. Say the training text contains 1,000 sentences stating someone's birthday:
- 800 of them are about famous people whose birthdays are repeated across many pages.
- 200 are about people whose birthday appears in just that one sentence.
The singleton rate is 200 ÷ 1,000 = 20%. The logic behind the rule comes from an estimate Alan Turing devised: the fraction of things you've seen exactly once is a good guess at how often the next thing you meet will be something you've never seen. So if people ask about birthdays in roughly the same mix as the training text, about one question in five will be about someone the model has effectively no memory of, and a base model asked those questions will guess.
Why can't the model fill those gaps the way it fills in grammar? Because spelling and grammar follow patterns that repeat across millions of sentences, so a model can learn them and rarely gets them wrong. A birthday follows no pattern. Nothing about a person's name tells you their date of birth, so one mention gives the model almost nothing to learn from. The paper calls this epistemic uncertainty: the knowledge simply isn't in the training data.
One limit on this rule: it describes a base model, the raw text predictor before any tuning. Later training can teach a model to say “I don't know” more often, which lowers errors at the cost of answering fewer questions. Whether labs push models that way depends on how the models are scored.
Why training and test scores reward a confident guess
Think of a multiple-choice exam with no penalty for wrong answers. If you don't know, you guess, because a blank scores zero and a guess might score a point. The 2025 paper argues that models get pushed into the same habit. Most benchmarks, the standardized tests AI labs use to compare models, grade an answer as right (1 point) or wrong (0 points), and “I don't know” also scores 0. Of ten widely used benchmarks the authors examined, only one gave any credit for admitting uncertainty, and under that kind of grading abstaining is strictly sub-optimal. A model tuned to climb those leaderboards learns to bluff.
Worked example: when does guessing pay?
Say a model has confidence p in an answer, meaning answers like this one are right a fraction p of the time. The paper proposes stating the scoring rule up front: a right answer earns 1 point, “I don't know” earns 0, and a wrong answer costs t ÷ (1 − t) points, where t is a confidence threshold you choose. So t = 0.5 means a wrong answer costs 1 point, and t = 0.9 means it costs 9.
The expected score of answering is p × 1 − (1 − p) × penalty. Here it is worked out for three scoring rules. Saying “I don't know” always scores 0, so any negative number means the model should abstain.
| Model's confidence | Right or wrong only (wrong = 0) | t = 0.5 (wrong = −1) | t = 0.9 (wrong = −9) |
|---|---|---|---|
| 10% | +0.10 | −0.80 | −8.0 |
| 30% | +0.30 | −0.40 | −6.0 |
| 50% | +0.50 | 0.00 | −4.0 |
| 70% | +0.70 | +0.40 | −2.0 |
| 95% | +0.95 | +0.90 | +0.50 |
Under right-or-wrong grading, every row is positive, so a guess beats “I don't know” even at 10% confidence. Add a penalty and the picture changes. At t = 0.9, a 70%-confident answer has an expected score of −2, and the honest reply is the winning one. In general, answering beats abstaining only when the model's confidence is above t.
The same effect in real test results
OpenAI's SimpleQA benchmark shows what this looks like. It has 4,326 short questions, each with one indisputable answer, deliberately collected to be hard for GPT-4. Every reply is graded correct, incorrect or not attempted. Three rows from the paper's results table, plus a column we computed:
| Model (2024) | Correct | Not attempted | Incorrect | Score if a wrong answer costs 1 point |
|---|---|---|---|---|
| GPT-4o | 38.2% | 1.0% | 60.8% | −22.6 |
| Claude 3.5 Sonnet | 28.9% | 35.0% | 36.1% | −7.2 |
| o1-preview | 42.7% | 9.2% | 48.1% | −5.4 |
On plain accuracy, GPT-4o beats Claude 3.5 Sonnet, 38.2% to 28.9%. But GPT-4o almost never declined, so it was wrong on 60.8% of questions, against 36.1% for Claude 3.5 Sonnet. Charge one point per wrong answer (correct minus incorrect, per 100 questions) and the ranking flips. Keep in mind these questions were collected specifically to trip up GPT-4, so don't read these error rates as typical of everyday questions.
Why a model can't just answer only when it's sure
That fix needs the model's confidence to be trustworthy. A model is calibrated if its confidence matches its hit rate: of the answers it's 70% sure about, about 70% turn out right. OpenAI's GPT-4 report found the pretrained model was highly calibrated on a multiple-choice test, and that post-training, the extra tuning that turns a text predictor into a helpful assistant, hurt calibration significantly. SimpleQA saw the same thing from the outside: when asked to state their confidence, models consistently overstate their confidence.
What makes an AI more or less likely to make things up
Hallucinations aren't spread evenly. They cluster on certain kinds of questions and settings, and you can shift the odds with how you ask. Here's what raises and lowers them, and the mechanism behind each:
| Situation | Effect | Why |
|---|---|---|
| Rare subjects: minor people, small places, niche papers | More likely | Few training mentions means no settled answer (the long tail) |
| Exact details: dates, figures, quotes, citations, links | More likely | Arbitrary details follow no pattern, and one wrong token is one wrong fact |
| Long answers built on an early detail | More likely | Snowballing: later text is written to fit earlier mistakes |
| Events after the training data was collected | More likely | The model has no text about them unless a tool fetches some |
| Higher temperature (more random sampling) | More likely | Long-shot tokens get picked more often |
| Popular, well-documented subjects | Less likely | Many consistent mentions in training |
| The source is pasted in, or the tool searches first | Less likely | The answer is in the text the model is reading |
| The prompt says “I don't know” is acceptable | Less likely | It removes the pressure to always produce an answer |
| The model is asked to quote its source word for word | Less likely | Quotes tie each claim to text you can check |
Temperature is a setting that controls how adventurous the sampling is. Raising it squashes the gap between the top choice and the long shots, which you can see with real numbers in the softmax and temperature example. For a question where the right answer already has most of the probability, a higher temperature only adds chances to pick something else.
The last two rows come from Anthropic's guide to reducing hallucinations in its Claude models, which calls explicit permission to admit uncertainty a basic technique that can drastically reduce false information, and recommends having the model pull word-for-word quotes from long documents before it does its task. In scoring terms, “you may say you don't know” does part of what the penalty rule from the previous section does: it tells the model a blank answer isn't a failure.
How retrieval and citations help, and where they fall short
If hallucinations come from missing knowledge, the obvious fix is to hand the model the knowledge. That's retrieval-augmented generation, or RAG. Before the model answers, separate software searches the web or a collection of documents, pastes the most relevant passages into the prompt, and the model writes its answer with those passages in front of it. It's still predicting the next token, but now the most likely continuation is usually the answer sitting right there in the text.
It works. The 2020 paper that introduced RAG paired a model with a searchable index of Wikipedia and found it produced language that was more specific, diverse and factual than the same kind of model answering from memory alone. In the PopQA study, retrieval-augmented models largely outperform orders of magnitude larger LMs answering from memory, and memory alone stayed competitive only on questions about popular subjects. That's exactly the long-tail gap retrieval is meant to fill.
Retrieval moves the weak point, though. It doesn't remove it. Three things can still go wrong:
- The search finds the wrong thing. If the retrieved page is off-topic, out of date or wrong, the answer inherits the mistake.
- The model drifts from what it was given. Even when summarizing a document it's been handed, a model can add claims the document doesn't make. Vectara's public leaderboard measures this by having models summarize more than 7,700 articles and flagging unsupported statements. When we checked it in November 2026, the lowest rate on the board was 1.8%, and several widely used models were near or above 10%. The judging is done by Vectara's own detection model, so treat the exact figures as indicative.
- The citation doesn't back the sentence. A 2023 audit of four AI search engines (Bing Chat, NeevaAI, Perplexity and YouChat) found that a mere 51.5% of generated sentences are fully supported by citations, and only 74.5% of citations supported the sentence they were attached to.
So a citation is a lead to follow up, not proof. What it buys you is speed: you know exactly where to look.
How to check an AI answer yourself
You don't need to fact-check every word an AI writes. Made-up details cluster in predictable places, so spend your effort there.
- Find the load-bearing details. Names, numbers, dates, quotes, citations and links. The general explanation around them is usually the part the model saw most often. The specific detail in the middle is where an arbitrary guess hides. If the answer falls apart without a detail, check that detail.
- Open every citation and find the sentence. A working link isn't enough. Look for the specific claim on the page. In the search-engine audit above, about one citation in four didn't support the sentence it was attached to.
- Ask again in a fresh chat. When a model knows something, repeated answers tend to agree. When it's guessing, they scatter. The SelfCheckGPT detector is built on exactly this: for hallucinated facts, sampled responses are likely to diverge and contradict one another. SimpleQA found the same, with accuracy rising the more often a model gave the same answer across 100 tries. Three different birthdays in three tries is your signal. Agreement isn't proof, though. If the training text repeated a wrong fact, the model can repeat it too.
- Check a claim in a separate conversation. In the original chat, the model's earlier words steer what comes next, which is how snowballing works. A new chat that only sees the claim (“Is it true that …?”) judges it without that baggage. Asking separately is how the snowballing study got models to recognize most of their own mistakes.
- Hand it the source and ask for quotes. If you have the document, paste it in and ask the model to pull word-for-word quotes before answering. Anthropic's guide goes a step further: have the model find a supporting quote for each claim after it writes, and retract the claim if it can't find one.
- Match your checking to the stakes. A wrong answer about a movie costs nothing. A wrong dose, legal citation or figure in a report costs a lot. Even the guide above notes that its techniques reduce hallucinations but don't eliminate them.
Where beginners go wrong
- “It gave a source, so it's true.” Sources get attached to claims they don't support, and a model answering from memory can invent the reference outright. When researchers had ChatGPT write short literature reviews in 2023, 55% of the GPT-3.5 citations but just 18% of the GPT-4 citations were fabricated.
- “It sounded so sure.” The tone comes from the sentence pattern, and SimpleQA found models consistently overstate their confidence when asked for it.
- “It got the easy parts right, so the rest is fine.” The easy parts are the well-documented parts. The rare detail sitting next to them is exactly where the error rate is highest.
Common questions
Can AI hallucinations be completely eliminated?
Not with today's methods. Retrieval, citations and permission to say "I don't know" reduce them, but even model makers' own guides say these techniques don't eliminate them. A model that predicts likely text can't reliably know facts it barely saw in training.
Why does ChatGPT make up sources and citations?
A citation is very patterned text: authors, a title, a journal, a year. The model knows that pattern well and can fill it with plausible pieces even when no such paper exists. In one 2023 study, 55% of GPT-3.5's references and 18% of GPT-4's were fabricated. Unless it's connected to a search tool, it isn't looking anything up.
Do newer AI models hallucinate less?
It depends on the test and the model. On OpenAI's SimpleQA benchmark, o1-preview got more questions right and fewer wrong than GPT-4o, partly by declining more of them. No model on public leaderboards scores zero, and rare facts and exact details still trip up all of them.
Is an AI hallucination the same as lying?
No. Lying means knowing the truth and choosing to hide it. A model that hallucinates is producing likely-looking text and isn't checking its words against any record of what's true.
What's the fastest way to check whether an AI answer is made up?
Pick the one or two specific details the answer depends on, like a number, date, name or citation, and verify them in a primary source. If you can't, ask the same question in a fresh chat. Answers that change between tries are probably guesses.
Learn it properly
This article explains why models make things up. AI Literacy is the beginner course that turns it into practice: how a chatbot writes a reply, when AI makes things up, why confident isn't the same as correct, and how to check the facts an answer rests on, in short lessons with hands-on exercises.
Sources
- Why Language Models Hallucinate (abstract) · Kalai, Nachum, Vempala & Zhang, arXiv, 2025
- Why Language Models Hallucinate (full text) · Kalai, Nachum, Vempala & Zhang, arXiv, 2025
- GPT-4 Technical Report · OpenAI, arXiv, 2023
- How Language Model Hallucinations Can Snowball · Zhang, Press, Merrill, Liu & Smith, arXiv, 2023
- Large Language Models Struggle to Learn Long-Tail Knowledge · Kandpal et al., ICML 2023
- When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories (PopQA) · Mallen et al., ACL 2023
- Measuring short-form factuality in large language models (SimpleQA) · Wei et al., OpenAI, arXiv, 2024
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks · Lewis et al., arXiv, 2020
- Evaluating Verifiability in Generative Search Engines · Liu, Zhang & Liang, Findings of EMNLP 2023
- Fabrication and errors in the bibliographic citations generated by ChatGPT · Walters & Wilder, Scientific Reports, 2023 (CUNY Academic Works)
- Hallucination Leaderboard · Vectara (GitHub)
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models · Manakul, Liusie & Gales, EMNLP 2023
- Reduce hallucinations · Anthropic, Claude Platform documentation
Read next
How do large language models like ChatGPT work?
An LLM predicts the next chunk of text, one token at a time, from patterns learned in billions of examples. Here's the mechanism, with real numbers.
What is gradient descent, explained simply?
Gradient descent finds a low point by measuring the slope and stepping downhill, again and again. See it worked in numbers, with steps too big and too small.
How is an AI model actually trained, step by step?
An AI model is trained by making guesses, scoring the errors with a loss function and nudging its numbers downhill with gradient descent, step by step.