Roboter-Maskottchen blickt selbstsicher auf eine Gedankenblase mit einem leuchtenden Einhorn

glossary: 8 terms

An earlier draft of one of my articles stated that I had bought my computer a few weeks before, to save money. The sentence sounded plausible and fit the story nicely. It was also wrong: the machine had actually been sitting unused at my place for more than a year. No human wrote that sentence – an AI agent did, apparently filling a gap in its information with the most obvious explanation. It was only caught during proofreading. That is what a hallucination looks like, and mistakes like this are a big part of why nothing in my agent setup gets published without review.

What this article covers:

  • What “hallucination” means for language models – and what it doesn’t
  • Why models hallucinate in the first place: what OpenAI and Anthropic have found
  • What benchmarks like TruthfulQA and HaluEval measure, and how to read their numbers
  • Why hallucinations do more damage in an agent pipeline than in a chat window
  • Which countermeasures help – and where their limits are

What a hallucination is

OpenAI defines hallucinations as plausible but false statements generated by a language model. The key word is “plausible”: a hallucination isn’t obvious nonsense, it’s an answer that sounds right. In their blog post on the topic, the researchers describe asking a widely used chatbot for the title of the PhD dissertation of one of the paper’s own authors. The bot confidently came up with three different titles – none of them correct. Same story with his birthday: three dates, all wrong.

A survey by Huang and colleagues distinguishes two kinds. A factuality hallucination contradicts verifiable real-world facts, like the dissertation title or my computer’s backstory. A faithfulness hallucination drifts away from what you actually gave the model: it summarizes a document and adds a point that isn’t in it, or contradicts itself within the same answer. In my day-to-day work, the second kind matters almost more, because my agents mostly work with material I hand them.

Why models hallucinate

A large language model (LLM) learns one thing above all during training: predicting the next word, or more precisely the next token. According to OpenAI, the texts used in this pretraining phase carry no “true” or “false” labels. The model only sees fluent language and learns how it typically continues. That works brilliantly for anything with consistent patterns – spelling and matching parentheses are hardly an issue for large models anymore. But for rare, arbitrary facts – OpenAI’s example is a pet’s birthday – there is no pattern to derive the right answer from. The model still produces something that looks like an answer.

The second reason is less comfortable. The accompanying paper by Kalai and colleagues argues that training and evaluation reward guessing. Most benchmarks only count how many answers are correct. On a multiple-choice exam, a guess might earn points, while leaving the question blank guarantees zero. A model optimized for leaderboards like these learns to give a confident answer rather than say “I don’t know”. OpenAI suggests penalizing confident errors more heavily than honest expressions of uncertainty.

Anthropic used its interpretability research to look inside and see how this plays out in Claude, specifically in Claude 3.5 Haiku. The surprising finding: the model’s default response to a question is to decline. An internal circuit signals “not enough information” unless something switches it off. When the model recognizes a familiar name, a “known entity” signal suppresses that reluctance and it answers. According to Anthropic, a hallucination happens when that signal misfires: the model recognizes a name but doesn’t actually know anything about it – and once it has committed to answering, it makes up a plausible story.

One case from my own setup is reminiscent of this pattern. My local inference server is called Strata; the language model running on it is Qwen 3.8 Flash Next. Yet a draft stated, in effect, “Strata is the local model”. The agent knew the name and knew it had something to do with local AI – and filled in the wrong relationship instead of asking. Whether the same mechanism Anthropic describes was behind it, I can’t verify from the outside. The result looks exactly the same, though: a confident statement about something the model only half knew.

How often does it happen? What benchmarks measure

There are dedicated benchmarks for exactly this behavior. Two of the best known:

Benchmark What it measures Result according to the paper
TruthfulQA (2021) 817 questions across 38 categories such as health, law and finance, designed around common misconceptions Best model tested was truthful on 58% of questions, humans on 94%
HaluEval (2023) Whether models can recognize hallucinations, using generated and human-annotated samples On certain topics, ChatGPT fabricated unverifiable information in about 19.5% of its responses

One detail in TruthfulQA stands out: the largest models tested were generally the least truthful. The authors’ explanation is that bigger models are better at imitating the human misconceptions found in their training data. HaluEval adds that models are bad at spotting hallucinations in other texts, but that external knowledge and extra reasoning steps help.

Still, these numbers shouldn’t be read as a current error rate. Both studies tested models from 2021 and 2023 respectively, and the percentages don’t carry over to today’s models. What matters more is the direction: OpenAI itself says that even its latest models hallucinate less often but still do, and calls hallucinations a fundamental challenge for all large language models.

Why it weighs more heavily in an agent pipeline

In a chat window, a hallucination is a wrong answer that I read and, ideally, notice. In a multi-agent system, one step’s output becomes the next step’s input. A made-up detail ends up in a file that a second agent treats as its source of facts, then in an article draft, then in a social media post. With every step the error looks more credible, because by now it appears in several places and nobody remembers where it came from.

That’s why my staged model of AI use is built the way it is. My agents may prepare a lot, but they can’t publish anything on their own. At ketovavaria.de, a post only goes live once an approval gate sees three conditions met at the same time: I have approved the content, a global live switch is enabled, and the run is explicitly started in live mode. For handbook chapters, a reviewer agent first checks every sentence against the original sources, and a separate review agent checks article drafts for unsupported claims before I even see them. At the very end, though, it’s still me acting as the human in the loop. The reason is simple: once a fabricated quote or a wrong number is published, you can never fully take it back.

What helps against hallucinations

OpenAI argues that hallucinations aren’t inevitable in principle, because a model can always choose to abstain when it’s unsure. In practice, that doesn’t happen reliably yet. What you can do is make hallucinations much rarer and, above all, easier to spot. These are the measures I use myself or consider well supported:

1 · Look it up instead of remembering (RAG)

With RAG (retrieval-augmented generation), the system retrieves relevant documents before answering and feeds them to the model as part of the prompt. The original RAG paper by Lewis and colleagues reports that such models produce more specific and more factual text than a comparable model without retrieval. It’s no silver bullet, though. The Huang survey gives a telling example: the system retrieves a passage about the boiling point of water at high altitude, and the model then states 95 °C as the boiling point at sea level. If retrieval finds the wrong document, the model simply hallucinates with a citation.

2 · Explicitly allow “I don’t know”

Anthropic’s documentation recommends explicitly giving the model permission to admit uncertainty. It sounds trivial, but it fits OpenAI’s finding: if guessing is the default, not guessing has to be actively invited.

3 · Require citations and keep things traceable

Also from Anthropic’s documentation: the model should back every claim with a direct quote from the sources and retract any claim it can’t find a quote for. On my end, there is a hard rule on top of that: every external source is opened and checked – does it exist, and does it actually say what’s being claimed – before it gets linked. A link to a source nobody checked is worse than no link at all.

4 · Lower the temperature – with realistic expectations

Temperature controls how randomly the model picks the next token. According to the Huang survey, a higher temperature increases the risk of hallucination because rare tokens get sampled more often. My take on it: a low temperature mainly makes answers more reproducible, not automatically more true. If the most likely continuation is already wrong, you just get it wrong more consistently.

5 · Ask several times and compare

Anthropic calls this “best-of-N verification”: ask the same question several times and compare the answers. If they contradict each other, that’s a red flag. OpenAI’s dissertation example shows why this works: three answers, three different titles – the disagreement alone tells you the model doesn’t know.

6 · A human at the gate

Every measure above lowers the error rate. None of them gets it to zero. That’s why, in my setup, the final call before anything is published stays with a human – not because I distrust every sentence, but because I’m responsible for what appears under my name.

Here is a simplified example of what rules like these can look like in an instruction to a model. It’s based on the recommendations in Anthropic’s Claude documentation and is not a verbatim excerpt from my own agent configurations:

Example instruction against hallucinations (simplified)Use only the information in the attached documents.
Back every statement with a direct quote.
If you can't find a quote, remove the statement.
If the documents don't answer the question, say: "I don't have enough information to answer that."

Conclusion

Hallucinations aren’t a mysterious glitch that the next model update will make disappear. Based on what OpenAI and Anthropic describe, they follow from the way language models are trained and evaluated: they learn to produce plausible continuations, and they get rewarded for guessing rather than staying quiet. Research is making progress, and according to the vendors, newer models hallucinate less. For my own setup, though, that hardly changes the core question. What matters isn’t whether a model hallucinates, but where in the pipeline an error gets caught before it does any damage. That’s why I’d rather invest in mandatory sources, reviewer agents and an approval gate where I sit myself than hope the next model will simply get everything right. How the individual building blocks of an agent fit together is covered in more detail in my agent basics article.

Sources