Why language models hallucinate: what the research says and what has been measured

What we mean by hallucination (and what we don’t)

You ask a chatbot about a scientific paper. It gives you a title, authors and a year, and everything sounds perfect. Then you look for the paper and it doesn’t exist. Why does a system that writes so fluently answer with such assurance when it has nothing to base the answer on?

Let’s start with the definition. OpenAI, in a post dated 5 September 2025, defines a hallucination as a case where a model confidently generates an answer that isn’t true. The key word is “confidently”: this isn’t an error flagged with doubt, but one delivered as if nothing were wrong.

The literature distinguishes two families. A survey of hallucination in large language models (LLMs), in its version of 19 November 2024, proposes separating factuality hallucination (the text clashes with verifiable real-world facts) from faithfulness hallucination (the text departs from what the user asked for, from their instructions, or contradicts itself). The authors note that, because language models are open-ended systems, hallucination shows up mainly as factual errors.

Nor is every error a hallucination. The authors of the paper “Why Language Models Hallucinate” (arXiv, 4 September 2025) point out that models avoid many kinds of error, such as spelling mistakes. The failures that interest us are of a different kind.

Their example is modest and revealing: asking “How many Ds are in DEEPSEEK?”. According to the paper, DeepSeek-V3 answered “2” or “3” in ten independent trials. Meta AI and Claude 3.7 Sonnet behaved similarly, with answers as high as “6” and “7”. A trivial question for a person, and an answer that changes from one attempt to the next.

First cause: learning from text creates pressure to get things wrong

The abstract of the September 2025 paper argues that hallucinations originate as binary classification errors. Put another way: generating a valid answer implicitly involves the task of telling “this is correct” from “this is not”. If the model can’t separate the incorrect from the factual, errors arise from natural statistical pressures during pretraining, the phase in which the model learns to predict text from enormous amounts of data.

The authors go further: they show that even if the training data contained no errors at all, the training objectives would still lead to errors being generated. So “cleaning” the corpus is not enough.

There is one especially clear case, that of arbitrary facts: pieces of information that can’t be deduced from any pattern. Think of the exact date on which a small village’s bakery opened. No rule generates it; you only know it if you have seen it. For these cases, the authors give a theoretical bound based on the singleton rate: the fraction of facts that appear exactly once in the training data. It is linked to the Good-Turing missing-mass estimator (Good, 1953), a statistical tool for estimating what proportion of the things you haven’t yet seen you are likely to run into. The more facts appear only once, the more you should expect the model to fail on facts of that kind.

The small print: this is a theoretical argument. The sources consulted do not say how much of real-world hallucination it explains.

Second cause: tests reward guessing

Here comes the more practical part. The authors argue that training and evaluation procedures reward guessing over acknowledging uncertainty. Think of a multiple-choice exam in which a wrong answer costs nothing: someone who leaves a question blank scores worse than someone who ticks a box at random. Under that scoring system, the rational strategy is never to leave anything blank. A model evaluated this way learns the same lesson.

According to OpenAI, most benchmarks prioritise accuracy. The company also argues that an error is worse than an abstention. To illustrate this, it cites SimpleQA figures taken from the GPT-5 system card. These are OpenAI’s own data, and its page offers no independent check:

  • gpt-5-thinking-mini: 52% abstention, 22% correct and 26% errors.
  • OpenAI o4-mini: 1% abstention, 24% correct and 75% errors.

Let’s go to the small print. If you look only at accuracy, o4-mini wins by a small margin (24% against 22%). But its error rate is far higher, because it almost never abstains. As OpenAI points out, guessing improves accuracy and at the same time increases errors. A table that shows only correct answers hides that difference.

The authors propose a mitigation they call “socio-technical”: changing the scoring of the existing benchmarks that already dominate the leaderboards, rather than adding more hallucination-specific tests. It is a proposal. The sources consulted do not show that changing the scoring reduces hallucinations in practice.

What has been measured: truthfulness, size and calibration

TruthfulQA: imitating people also means imitating their mistakes

TruthfulQA (arXiv, 8 September 2021; ACL 2022) brings together 817 questions in 38 categories, including health, law, finance and politics. They are designed so that some people would answer wrongly because of false beliefs or common misconceptions, which lets researchers check whether the model repeats them. The authors tested GPT-3, GPT-Neo/J, GPT-2 and a T5-based model. The best was truthful on 58% of the questions; human performance was 94%.

The most striking finding is that the largest models were, in general, the least truthful, contrary to what happened in other natural language processing tasks. The authors suggest that scaling up models, on its own, is less promising for improving truthfulness than fine-tuning them with objectives other than imitating text from the web. Mind the date: these are 2021 models, and this result says nothing directly about current ones.

Calibration: does the model know how much it knows?

A model is well calibrated if, when it assigns a probability to an answer, it is right that proportion of the time: if it says it is 70% confident, it is right about seven times out of ten. This is usually measured with the expected calibration error (ECE), according to the paper “Large Language Models Must Be Taught to Know What They Don’t Know” (arXiv, August 2025 version). Its authors say that early models such as GPT-3 often had poorly calibrated distributions over their answers, and that models with calibration tuning assign less confidence to unanswerable questions than black-box methods do.

In July 2022 Anthropic published “Language Models (Mostly) Know What They Know”. It shows that large models are well calibrated on multiple-choice and true/false questions when these are presented in the right format. It puts forward two ideas: having the model propose an answer and estimate the probability P(True) that it is correct, and training it to predict P(IK), the probability that it “knows” the answer without seeing a specific proposal.

What we still don’t know

  • Calibration doesn’t travel well. The Anthropic authors acknowledge that models predict P(IK) well but generalise it only partially across tasks; on new tasks calibration tends to be poor and models tend to be underconfident.
  • 100% is out of reach. OpenAI admits that accuracy is capped below 100% in hard evaluations and in real-world use, because of unavailable information, the limits of small models, or ambiguity. It also describes hallucinations as a “stubbornly hard” challenge to solve completely. Low-frequency arbitrary facts can’t be predicted from patterns alone.
  • The figures have an owner. The SimpleQA data come from the company itself and from a single test. TruthfulQA uses 2021 models. The sources consulted include no recent independent measurements.
  • There is no apportioning of blame. The sources do not detail what fraction of real-world hallucinations is due to pretraining, to evaluation or to other causes.

None of this allows us to say the problem is solved; the authors themselves don’t say so.

My take

This is my own opinion, not a result from the papers. What convinces me most about this line of work is that it changes the question: instead of “why is the model so absent-minded?”, it asks “what have we asked it to do?”. The SimpleQA table shows this well: a figure for “fewer hallucinations” means something only if you know whether it counts abstentions. Put another way, a model can look more reliable simply because it answers less.

At the same time, I think the incentive created by the test explains part of the behaviour, not all of it: the argument about facts that appear only once works even without badly designed tests. When you read an announcement or a paper on factuality, look at three things: how it scores errors, whether the model can abstain, and who carried out the measurement.

If you want to understand the basics of how a model is trained, start with gradient descent and backpropagation (in Spanish), which shows how a network adjusts its weights to make fewer mistakes according to the objective it is given. And if you are starting from scratch, what machine learning is (in Spanish) gives you the framework.

Sources

Image: LUNEMax on Pixabay

Translated and adapted by Ollie.

Leave a comment