what’s an LLM hallucination?
A hallucination is an LLM output that is fluent, confident, and syntactically well-formed, but factually wrong or unsupported by the model’s source material.
the term was borrowed from earlier work on neural machine translation and image captioning (where models would “see” objects that weren't there) and applied to LLMs as they began producing convincing-but-fabricated citations, statistics, and biographical details.
Ji et al.'s 2023 survey formalized two categories. intrinsic hallucinations contradict the input the model was given, like an LLM summarizing a document and inventing a fact that wasn't there. extrinsic hallucinations can't be verified against the input at all: pure fabrication that sounds plausible.
hallucinations matter for AI detection because they're often the most reliable tell in long-form AI-generated text: fabricated citations, invented court cases, plausible-but-wrong dates. a 2024 Stanford study found that general-purpose LLMs hallucinate on 58-82% of legal queries; even purpose-built legal-research tools hallucinate 17-33% of the time.
LLMs are trained to maximize next-token plausibility, not truth.
hallucinations are most dangerous when they sound right. confidence and fluency are produced by the same machinery as the rest of the text. a fabricated citation reads exactly like a real one.
retrieval-augmented generation (RAG) reduces but does not eliminate hallucination. even with cited sources in the prompt, models sometimes confabulate or misattribute. “the model said it cited this paper, but the citation doesn't exist” is a real failure mode in production RAG systems.
hallucination rate isn't a single number. it depends heavily on the task (factual recall, summarization, reasoning), the domain (legal/medical are worst), and how strictly you grade.
frontier models hallucinate less on common queries but can hallucinate more on niche or adversarial ones, and sounding confident does not mean being correct. as of 2026, hallucination remains built into next-token prediction across mainstream production LLMs.
questions
what is an LLM hallucination?
a hallucination is LLM output that reads as fluent, confident, and well-formed while being factually wrong or unsupported by the model’s sources. it surfaces as fabricated citations, invented court cases, wrong dates, and made-up statistics. the danger is that it looks identical to correct output, since confidence and fluency come from the same machinery that produces the rest of the text.
why do LLMs hallucinate?
LLMs train to maximize the plausibility of the next token, not its truth, so thin or contradictory training data still yields confident text instead of an admission of uncertainty. as of 2026, hallucination remains built into next-token prediction across mainstream production LLMs.
does retrieval-augmented generation (RAG) stop hallucinations?
RAG lowers hallucination without removing it. even with cited sources placed in the prompt, models still confabulate or misattribute. a model can claim to cite a paper that does not exist, and that failure shows up in production RAG systems. a 2024 Stanford study found purpose-built legal-research tools hallucinated on 17 to 33 percent of queries.
do newer AI models hallucinate less?
frontier models hallucinate less on common queries, but can hallucinate more on niche or adversarial questions, and sounding confident does not mean being correct. the rate shifts with the task, the domain (legal and medical run worst), and how strictly answers get graded.
sources.
- 01Ji et al., Survey of Hallucination in Natural Language Generation — ACM Computing Surveys 55(12) 2023The taxonomy paper that distinguishes intrinsic vs extrinsic hallucination.
- 02Magesh et al., Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools — Stanford HAI 2024Found 58-82% hallucination rates on legal queries from general LLMs.
- 03
- LLM →the underlying technology. next-token prediction produces hallucinations by design.
- prompt injection →the related failure mode. both produce convincing output that shouldn't be trusted.
- perplexity →the detection signal. hallucinations can score low-perplexity (sound fluent) while being false.