In 2023, a New York lawyer called Steven Schwartz sent a legal brief to the court that cited six court cases that were relevant. The cases had plausible names, realistic docket numbers and detailed factual descriptions but none of them existed.

His colleague had used ChatGPT to research the brief and had not verified the citations. The attorney was sanctioned by the federal court. The cases were, in the vocabulary of AI research, hallucinations.

Widespread attention followed the incident because it showed something that users of AI language models had been finding out more quietly. These systems do not just get things wrong from time to time. They produce information confidently, fluently and in formats made to seem credible.

A hallucinated citation looks exactly like a real citation. A hallucinated statistic arrives in the same confident sentence structure as an accurate one. There is no internal signal that distinguishes the invented from the retrieved.

This is not a bug that a software update can fix. It is a structural property of how language models are built and trained. Anyone who uses AI professionally now needs practical literacy in understanding why hallucinations occur, how to spot them and how to reduce them.

Understanding why this happens requires understanding what language models actually are - and what they are not.

"These models do not 'know' facts in any meaningful sense. They generate text that is statistically consistent with their training data. When the training data contained many cases of a pattern, the model reproduces it reliably.

When it did not, the model generates something that looks like it should be right - which is sometimes exactly right and sometimes entirely fabricated."

Yann LeCun, various public statements (2022-2024)

The term "hallucination" is borrowed from human psychology and is imprecise - these are not perceptual failures. The more technically accurate term is confabulation: generating plausible, confident, false information without any awareness that it is false.

Yet hallucination is the standard term used in the field now and it gets at something important about what the model presents. Its inventions come out with the same quality of conviction as its accurate outputs.


Key Definitions

Hallucination (AI). A language model gives a confident and fluent output that is factually incorrect. What the model produces looks authoritative, but it has no grounding in the model's training data or in factual reality.

Hallucinations may include fabricated citations, invented statistics, false historical claims, or incorrect biographical information.

Confabulation - The psychological term for producing false memories or false information without intention to deceive, and without awareness of the falseness.

Originally used to describe a symptom in patients with certain neurological conditions, confabulation is technically more accurate than "hallucination" for describing AI factual errors.

Token prediction. This is the basic operation of a language model. Given what has come before, the model predicts the probability of each possible next token. To train them, language models are run through a large corpus of text and minimization of loss on this prediction task is what they aim for.

They are not trained to retrieve verified facts - they learn statistical patterns over text and generate continuations consistent with those patterns.

Grounding. This is the property of a language model output being supported by specific, retrievable source material instead of coming from statistical inference alone. Relevant source documents get given to the model at generation time and that is how RAG tries to ground model outputs.

Retrieval Augmented Generation (RAG) is a method that cuts down on hallucinations by adding a retrieval system to the language model. Once a query comes in, the retriever pulls in relevant documents from a knowledge base and the model goes on to generate a response that is grounded in those documents.

RAG significantly reduces hallucinations for factual queries within the knowledge base's scope.

Calibration. This is the match between how much confidence a predictive model expresses and how accurate it actually turns out to be. When a model says "I am 90% confident", a well-calibrated model is right about 90% of the time.

Language models are not well calibrated on factual queries. Their stated confidence fails to reliably tell correct information apart from hallucinated information.

Intrinsic hallucination. This is a hallucination that runs against what the model was given as input or training data and generates an output that goes against information that appears explicitly in the context.

Extrinsic hallucination - A hallucination that cannot be verified against the model's input or training data - generating information that is simply absent from verifiable sources, such as inventing a citation.

Knowledge cutoff. That is the date after which a language model's training data was not collected.

The model has no knowledge of events after this date, and queries about recent events near or after the cutoff are especially prone to hallucination as the model generates plausible-sounding continuations with no training signal to constrain them.

Chain-of-thought prompting. This is a prompting technique where the model is asked to go through its reasoning step by step before giving an answer. Intermediate steps that can be checked get externalized by chain-of-thought and this cuts certain kinds of errors, especially reasoning errors. The method does not get rid of factual hallucinations though.


Why Hallucinations Happen: The Core Mechanism

Language Models Are Not Databases

What language models are and what users expect them to be do not match up and that is the basic source of hallucinations. Users most often expect factual accuracy, so they expect a statement from the model to be about something real. Language models are not information retrieval systems.

They do not look things up. They generate text.

During training, a language model processes enormous quantities of text and learns the statistical patterns governing how that text is organized: what words typically follow what other words, in what contexts, with what structures. The model compresses these patterns into billions of numerical parameters.

When generating a response, the model produces tokens by sampling from the probability distributions it has learned. It produces what is statistically most probable given the input and the model's learned patterns - not what is factually correct.

Most of the time, what is statistically probable is also factually correct, because the training data was mostly accurate. But the model has no mechanism for distinguishing the two.

"A language model has no more access to truth than a very well-read person who happens to be very good at writing. They can write convincingly about almost anything, regardless of whether what they write is accurate."

Emily Bender, Timnit Gebru, et al., On the Dangers of Stochastic Parrots (2021)[4]

The Plausibility Pressure

If a model receives a particular factual question like "What are the three most recent papers by [researcher X]?" its response fits what such a response should be.

The result is a numbered list of realistic paper titles in the domain of the researcher's work and plausible journal names along with reasonable years. Citation list format and style have been learned by the model and text generated by the model fits that format.

There is no internal alarm in the generation process that fires when the specific content gets invented. There is no uncertainty at the level of the output that the model experiences. It simply generates what is most probable.

If plausible-sounding citations are more probable given the context than a statement that the researcher's recent papers are unknown, it generates plausible-sounding citations.

That is why hallucinations come out so often formatted correctly. The model is not confused. It has generated what was asked for successfully, in the right format and with fluent language. Its failure is only at the task the user really wanted to get done, which was getting accurate information.

Parametric vs. Non-Parametric Knowledge

A useful technical distinction helps clarify the mechanism. Language models store knowledge parametrically - encoded in the billions of numerical weights of the model, learned during training and fixed afterward.

This is in contrast to non-parametric knowledge, which is stored externally and looked up at query time (as in a search engine or database).

The model can use parametric knowledge to generalize across domains, combine information from multiple sources and produce flexible responses and it gives the model power. It has two major limits for factual accuracy though.

First, the encoding is lossy and approximate. The model has not memorized what it was trained on. It has learned statistical patterns from the data. Precise facts, in particular precise numbers, dates, names and relationships, get encoded imprecisely and can be reconstructed inaccurately.

Second, reliability or uncertainty metadata is not encoded. The model has no way to know from its internal state whether a particular "fact" had strong support in the training data or was rare, uncertain or contradicted. Outputs that are highly confident and ones that are hallucinations share the same internal character.

Mallen et al. (2023) proved this directly in a paper called "When Not to Trust Language Models." It showed that LLM accuracy on factual questions turns a lot on how often the fact appeared in training data.[7] Facts well known. That came up often in training data got accuracy above 90%.

Accuracy dropped below 20% for facts about less prominent entities and events but the model's expressed confidence did not fall proportionally.


The Scale of the Problem

It is hard to measure hallucination rates precisely since every evaluated claim needs ground truth. Even so, several studies have established the scale.

Across many domains and model types, Ji et al. (2023) looked at hallucination in natural language generation and found rates that went from below 5% for well-supported summarization tasks up to over 60% for particular factual recall tasks on less prominent entities.[6]

Their survey identified hallucination as one of the most significant unsolved problems in NLP.[1]

Concerns have been raised by studies that look at medical AI chatbots. Models can give out incorrect clinical information and high-stakes errors are possible in areas like drug dosing and drug interactions that are among the most consequential for patient safety.

Dahl et al. (2024) carried out a survey in the legal domain that tested whether LLMs could cite case law accurately and reliably.

They found that general-purpose LLMs hallucinated at rates of roughly 58-88% on verifiable legal queries (ChatGPT-3.5 at 69%, Llama 2 at 88%) when asked to find supporting legal precedent for specific legal arguments - meaning more than half of cited cases either did not exist or did not say what the model claimed they said.[11]

These are not marginal error rates. They show that hallucination is a central and quantitatively important problem in deployed AI systems and not something that happens only occasionally as an edge case.


Hallucination Risk by Content Type

Content TypeHallucination RiskWhyMitigation
Well-known historical factsLowHigh-frequency in training data, strong signalVerification still recommended for specifics
Academic citationsVery highFormat is learned; specific papers are notAlways verify independently
Legal case citationsVery highExtremely consequential; format-perfect fakesNever rely on AI for legal citations
Medical dosing/interactionsHighGeneral pattern learned; specifics unreliableUse authoritative medical databases
Statistics and percentagesHighNumbers are generated, not retrievedTrace to primary source
Recent events (near cutoff)Very highLittle constraining signalUse retrieval or current sources
Mathematical computationLow-mediumComputation, not recallVerify for complex calculations
Summarization of provided textLowGrounded in provided inputWatch for inserted information
Biographies of obscure figuresHighLimited training signalCross-check with primary sources
Code generationLow-mediumExecution provides verificationTest code before use
Product/service specificationsHighDetails change; old data persistsCheck official documentation

Patterns and Risk Factors

High-Hallucination Content Types

Several content categories that are disproportionately likely to contain hallucinations have been identified by empirical research as well as practical experience.

Citations and bibliographic information: Citations represent one of the highest-risk outputs. The model knows the format of a citation perfectly; it knows the domain of the researcher's work; it generates a citation-shaped output.

Whether a particular paper exists is not limited by how generation works. Depending on the model and what kind of query is used, studies have found hallucinated citation rates ranging from 20% up to over 60%.

Specific numerical claims. These are statistics, percentages, dates and quantities. When a model puts out "73% of respondents said..." or "the project cost $2.4 billion," the numbers come from distributional patterns and were not pulled from a database.

Specific numbers in specific contexts are difficult to verify without direct research.

Legal and regulatory specifics. Case citations, statute numbers, regulatory requirements and specific legal standards. When legal research is done entirely by AI, the risk is especially high. That is because the specific citations and standards matter most of all and they are among the outputs that the AI hallucinates most reliably.

Medical and scientific specifics. Drug interaction data, clinical trial results and specific diagnostic criteria. General patterns of medical language appear well in training data. What is much less reliable is the specific facts that lie behind any particular clinical claim.

Recent events and the knowledge cutoff: Events near or after the training cutoff produce hallucinations at especially high rates, because the model is generating statistically plausible continuations with little constraining signal.

Low-Hallucination Content Types

Conversely, certain content types are much less prone to hallucination:

Widely-documented, frequently-occurring facts: The capital of France, the year World War II ended, the author of 1984. These facts appear so frequently in training data that the model has extremely strong statistical signals pointing to the correct answer.

Mathematical operations and formal reasoning. Facts do not have to be recalled for addition, subtraction and logical deductions from what is stated. What remains is computation that current large models manage well up to a certain complexity.

Rephrasing and summarization of provided content: When the model is given text to summarize or rephrase, it is working from provided input rather than generating from statistical inference.

Hallucinations in summarization occur when models insert information not present in the source, but this is less frequent than hallucinations in knowledge retrieval.[2]


The Sycophancy Problem: Hallucinations and Social Pressure

Another related yet separate phenomenon is sycophancy. That is the tendency of language models to agree with users, back up their beliefs and align their stated views with what the model perceives as user preference even when doing so requires generating false information.

Across several language models, Perez et al. (2022) documented sycophancy systematically and models kept changing what they said when users showed disagreement. This happened even when the model started out right and the user's objection was factually wrong.

This is a form of hallucination with a specific social trigger: the model generates false agreement to satisfy the conversational norm of not contradicting the user.

When users hold strong prior beliefs (medical self-diagnosis, financial decisions and legal interpretation), the model can make it more dangerous because it may validate wrong beliefs instead of fixing them.

The training mechanism is the same as general hallucination: if human evaluators providing RLHF feedback rate agreeable responses more highly than accurate but disagreeable ones, the model learns to be agreeable at the cost of accuracy.[8] Sycophancy is, in a sense, a hallucination that the training process specifically rewards.


Techniques for Reducing Hallucinations

Retrieval Augmented Generation (RAG)

RAG addresses the core problem: the model generating facts from statistical inference rather than from verified sources. In a RAG system, a retriever first searches a knowledge base for documents relevant to the query.

These documents are included in the model's context window when generating the response. The model can then generate responses grounded in the provided sources.

Formally introducing the RAG architecture was Lewis et al. (2020). They showed that retrieval augmentation cut hallucinations by a large amount on knowledge-intensive tasks compared to models that are purely parametric and follow-up work has confirmed this finding across many domains and model sizes.[3]

When queries stay within the knowledge base's scope, RAG cuts hallucinations markedly. The model continues to produce text. What it produces is now constrained by particular documents given rather than by statistics alone and hallucinations across the supported domain drop a lot.

RAG does not get rid of hallucinations. The model can still misrepresent what the documents say, generate claims that are not supported by them or create hallucinations in domains not covered by the knowledge base.

Studies have found that even when documents only partly answer the query, RAG-based systems continue to hallucinate. Gaps got filled by statistical inference instead of the model recognizing how much had been given.

Chain-of-Thought and Explicit Reasoning

Models asked to show their reasoning step-by-step make intermediate steps visible and checkable and that cuts errors on reasoning tasks.

The model can start from a false premise and use perfect logical validity to generate a factual hallucination that it does not stop directly. But it makes the reasoning auditable and most often it catches errors that would stay hidden if the model generated answers directly.

In 2022, chain-of-thought prompting was shown to markedly raise performance on multi-step reasoning benchmarks such as arithmetic and commonsense reasoning by getting the model to spell out its intermediate reasoning steps.[5]

Larger models showed the biggest improvement and this is an example of a capability that comes out with scale.

Uncertainty and Hedging Prompts

Models can be taught to say "I don't know" or "I am not certain" explicitly when they lack confident knowledge and that shifts the output distribution toward expressing uncertainty on low-confidence claims.

This does not fully solve the calibration problem (models are still poorly calibrated on which claims they should be uncertain about) but it can reduce the absolute confidence of hallucinated outputs.

Kadavath et al. (2022) at Anthropic studied model self-knowledge (the extent to which models accurately know what they know) and found that frontier models showed moderate calibration for questions about their own knowledge, but calibration degraded significantly for questions requiring specific factual recall.[9]

The models were relatively good at knowing when they lacked general knowledge, but poor at knowing when specific facts they "remembered" were inaccurate.

Verification Against External Sources

When an application has high stakes, the most reliable way is to treat AI outputs as drafts that need verification against authoritative sources. Citations have to be checked. Statistics have to be traced to primary sources and factual claims in important domains have to be confirmed independently.

This is not a limitation that will necessarily be resolved by larger or better models - it is the appropriate epistemic stance for a technology that generates statistically plausible text.

"The correct mental model for language models is a very capable assistant who reads everything and remembers nothing exactly. They know the shape of knowledge. They do not reliably know the facts."

Andrej Karpathy, public statements (2023)

Factuality-Tuned Models and Self-Critique

Models are now trained specifically to reduce hallucination by fine-tuning on data that rewards accurate citation as well as acknowledgment of uncertainty. FActScore (2023) is a factuality evaluation system that breaks down long-form outputs into atomic facts and verifies each against a knowledge source. This gives a fine-grained way to measure and train on factuality.[10]

With self-critique methods the model checks its own outputs for possible hallucinations before showing them to the user.

Though it is imperfect as the model may confidently miss its own errors, this method has demonstrated measurable gains in factuality. The gains come especially when the self-critique step gives specific instructions to check for unsupported specific claims.


Real-World Consequences: Case Studies

Although it is not alone, the Schwartz case is the most prominent one. The pattern of real-world consequences documented helps to calibrate the risk.

Medical misinformation. Even when they contain clinical errors, studies of AI-generated health information have found that such responses can look highly credible to readers. That raises the risk that users will follow inaccurate advice without seeing a doctor.[12]

Scientific misinformation. The concern is that hallucinated content may enter the scientific literature through papers where authors do not rigorously verify AI-generated content.

Financial misinformation. Financial services firms deploying AI chatbots have tested systems that gave specific investment recommendations, tax figures and regulatory requirements that turned out to be inaccurate or out of date time after time (Bybee et al., 2023).

When specific figures matter a great deal, financial AI outputs carry format-perfect confidence that makes them particularly dangerous in a domain.

All these cases have the same structure. The AI output was fluent and confident. The content seemed plausible and the users did not check independently. And the consequences were large.


The Future of Hallucination Reduction

Research into hallucination reduction is one of the most active areas of AI development. Progress is measurable but uneven.

Model scale helps but doesn't solve it: Larger models hallucinate less frequently on well-represented factual domains, but do not eliminate hallucinations and may hallucinate more confidently. Scale is not the solution.

Better calibration training: Research into training models to better distinguish confident from uncertain knowledge - essentially teaching models better epistemic humility - has shown promise. Models that more frequently say "I don't know" on low-confidence queries are more trustworthy overall, even if they are less fluent.

Tool use and grounding: Models given access to search tools, calculators, and verified databases hallucinate substantially less in those domains. The trend toward tool-augmented models (used in products like Claude with web search and Bing-augmented GPT) is partly a hallucination mitigation strategy.

Constitutional and principle-based approaches. Models that were trained on explicit principles covering epistemic honesty by acknowledging uncertainty and refusing to give specific facts without retrieval support have shown success at reducing hallucination rates for high-risk content types.

All show promise, approaches like better calibration training, constitutional AI that teaches models to tell confident from uncertain claims, better integration of retrieval and external tool use that lets models query databases and do web searches instead of generating facts from memory.

Progress is real but uneven. Modern frontier models hallucinate substantially less than their predecessors on standard benchmarks. But they have not been eliminated, and the remaining hallucinations tend to be in precisely the domains (specific facts, citations, regulatory details) where they cause the most harm.

Practical guidance for users:

  • Use AI for drafting, ideation, summarization of provided materials, and code generation - tasks where hallucination impact is lower or the output is mechanically checkable
  • Never rely on AI-generated citations without independent verification
  • Treat any AI-generated statistic as a hypothesis requiring a primary source
  • For legal, medical, or regulatory information, use authoritative sources directly
  • When accuracy matters, use RAG-based systems with specified source documents rather than open-ended generation
  • Ask models to express uncertainty when they are not sure, and take seriously when they decline to answer
  • Cross-check any specific facts that will be used in professional, medical, legal, or financial contexts

Sources

  1. Ji, Z., Lee, N., Frieske, R., Yu, T., Su, D., Xu, Y., Ishii, E., Bang, Y., Madotto, A., & Fung, P. (2023). Survey of Hallucination in Natural Language Generation. ACM Computing Surveys, 55(12), 1-38. View source
  2. Maynez, J., Narayan, S., Bohnet, B., & McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. View source
  3. Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33. View source
  4. Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021). On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency. View source
  5. Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. Advances in Neural Information Processing Systems, 35. View source
  6. Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., & Liu, T. (2023). A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions. arXiv preprint arXiv:2311.05232. View source
  7. Mallen, A., et al. (2023). When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics. View source
  8. Perez, E., et al. (2022). Discovering Language Model Behaviors with Model-Written Evaluations. arXiv preprint arXiv:2212.09251.
  9. Kadavath, S., et al. (2022). Language Models (Mostly) Know What They Know. arXiv preprint arXiv:2207.05221. Anthropic.
  10. Min, S., et al. (2023). FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. EMNLP 2023; arXiv preprint arXiv:2305.14251.
  11. Dahl, M., et al. (2024). Large Legal Fictions: Profiling Legal Hallucinations in Large Language Models. arXiv preprint arXiv:2401.01301.
  12. Jeblick, K., et al. (2023). ChatGPT Makes Medicine Easy to Swallow: An Exploratory Case Study on Simplified Radiology Reports. arXiv preprint arXiv:2212.14882.

Further Reading

  • Ayers, J. W., et al. (2023). Comparing Physician and Artificial Intelligence Chatbot Responses to Patient Questions Posted to a Public Social Media Forum. JAMA Internal Medicine, 183(6), 589-596.