# What Is an AI Hallucination? Meaning, Causes and Tests

URL: https://blog.brandregard.com/glossary/what-is-an-ai-hallucination
Published: 2026-12-04
Updated: 2026-12-04
Facts checked: 2026-11-27

An AI hallucination is output from an AI system that is wrong, misleading or wholly made up, yet delivered as if it were fact. A 2023 preprint led from Renmin University sorts such language model text two ways: it contradicts its starting material, or known facts cannot back it up.

## What counts as a hallucination in AI?

The Stanford HAI glossary says the problem often appears in language or image tools when output lacks support in training data or reality. A 2024 legal preprint by Stanford and Yale authors narrows the term to model text that disagrees with legal facts.

For example, imagine asking a chatbot about a book and receiving a fluent summary of a chapter that the book does not contain.

## Why do AI hallucinations happen?

Start with how text gets produced: a 2024 legal preprint describes a language model as selecting the most probable run of tokens, or word pieces, to follow the prompt. That describes the machinery, and by itself it is not a measured cause.

![One row of tall black supercomputer cabinets with mesh doors beside a tiled machine room floor](https://blog.brandregard.com/media/2026/12/what-is-an-ai-hallucination-racks.jpg?v=916027b2)

An OpenAI-led preprint from 2025, which is research from a model vendor, argues that training and testing favor a guess over an admission of doubt. Its authors say models sometimes guess when unsure, offering a believable false statement instead of admitting doubt. They argue the root is classification error: if false statements cannot be told apart from facts, pretrained models will produce them through statistical pressure.

## How often has it happened in tests?

The systems below are older ones, so read each result as a record of that test.

In the 2024 Stanford and Yale preprint, ChatGPT 4, ChatGPT 3.5, PaLM 2 and Llama 2 hallucinated at least 58% of the time on legal queries. Those questions concerned a stratified random sample of federal court cases. We think that figure speaks to legal questions, not everyday chat. Those four models hallucinated 49% of the time or more even on two answer-key-free tasks the authors call easier: factual background and procedural posture. The same models fared worse on harder work, with floors of 59% for a case's core legal question and 63% for its central holding.

![Bar chart of mean hallucination rate for GPT 4, GPT 3.5, PaLM 2 and Llama 2 at low, medium and high task complexity](https://blog.brandregard.com/media/2026/12/what-is-an-ai-hallucination-legal-rates.png?v=e8eaa3f2)

A second 2024 preprint from Stanford and Yale authors tested products built to look up legal material before answering, known as retrieval-augmented generation. On its legal queries, hallucination rates for Ask Practical Law AI, Lexis+ AI and Westlaw AI-Assisted Research each fell somewhere from 17% to 33%. That was less than GPT-4, a general chatbot, so these retrieval tools reduced the problem without removing it. Getting things right was a separate hurdle: across 202 questions, the top performer, Lexis+ AI, gave accurate answers for 65% of the queries.

Outside law, the 2023 Renmin-led team had people label ChatGPT replies to user queries pre-selected as likely to cause errors. Their 2023 results suggest ChatGPT is likely to fabricate unverifiable information on specific topics, seen in about 19.5% of those responses. University of Cambridge researchers, also in 2023, had GPT-3 (text-davinci-003) write Wikipedia-style biographies and then hand-labelled the sentences. They marked 39.9% of the GPT-3 sentences as majorly inaccurate and 27.0% as accurate, with minor errors making up the remaining group. These setups differ in model, task and labelling, so their percentages should not be ranked against each other.

## Can a model catch its own hallucinations?

Not reliably in these studies. The 2024 legal preprint found that ChatGPT 4, ChatGPT 3.5, PaLM 2 and Llama 2 struggled to predict their own hallucinations. In the 2023 Renmin-led tests, ChatGPT spotted hallucinated question answering samples with only 62.59% accuracy. In those 2023 tests, supplying outside knowledge or adding reasoning steps can improve that spotting, the team reports.

The Cambridge method, SelfCheckGPT, instead asks for several sampled answers and compares them, without an external database. The idea is that facts a model knows tend to recur, while invented ones are likely to vary or conflict between samples. Agreement between samples is therefore a clue to weigh, not proof that a statement is true.

## Can hallucinations be eliminated?

The papers disagree on scope. For a National University of Singapore team, writing in a 2025 revision, the error is any gap between what a computable model returns and a computable standard of truth. In that formal setting, its authors argue removal is impossible: models cannot learn every computable function, so they will inevitably hallucinate when used as general problem solvers. Their warning for safety-critical use: without guardrails, knowledge bases and human control, language models cannot be used automatically for any such decision.

The OpenAI-led authors take a narrower position: hallucinations are inevitable only for base models, meaning pretrained models before further tuning. In our view, the safer habit is to open the cited source yourself before you rely on an answer.

Photo credit is NASA/Dominic Hart. Chart credit is Dahl and co-authors, arXiv preprint, CC BY 4.0 (creativecommons.org/licenses/by/4.0). The chart leaves out contra-factual tasks and one High task, and single groups can sit below the pooled figure quoted above.

More plain explanations from our editors are on [Brandregard](/) whenever a term needs unpacking. Before trusting any error figure, check which system and task produced it, and who counted the mistakes.

## Sources

- [Stanford HAI: What are Hallucinations (in AI)?](https://hai.stanford.edu/ai-definitions/what-are-hallucinations) (accessed 2026-11-27)
- [HaluEval: a hallucination evaluation benchmark, arXiv 2305.11747](https://arxiv.org/html/2305.11747) (accessed 2026-11-27)
- [Large Legal Fictions: legal hallucinations in language models, arXiv 2401.01301](https://arxiv.org/html/2401.01301) (accessed 2026-11-27)
- [Hallucination-Free? AI legal research tools, arXiv 2405.20362](https://arxiv.org/html/2405.20362) (accessed 2026-11-27)
- [SelfCheckGPT: hallucination detection, arXiv 2303.08896](https://arxiv.org/html/2303.08896) (accessed 2026-11-27)
- [Hallucination is Inevitable, arXiv 2401.11817](https://arxiv.org/html/2401.11817) (accessed 2026-11-27)
- [Why Language Models Hallucinate, arXiv 2509.04664](https://arxiv.org/html/2509.04664) (accessed 2026-11-27)
