Hallucination taxonomy is a classification system that categorizes factual errors in language model output into distinct types, such as intrinsic hallucinations (contradicting the provided source context) and extrinsic hallucinations (fabricating information unverifiable against any source). This structured approach moves beyond binary correct/incorrect judgments to identify the specific mechanism of failure, enabling precise engineering interventions.
Glossary
Hallucination Taxonomy

What is Hallucination Taxonomy?
A structured framework for categorizing factual errors in language model outputs to enable targeted diagnostic analysis and mitigation.
Advanced taxonomies further segment errors into source-conflict errors, where the model misinterprets retrieved evidence, and parametric knowledge conflicts, where the model's pre-trained weights override factual data. By mapping errors to these categories, engineers can apply targeted mitigation strategies—such as improving grounded decoding for intrinsic errors or enhancing retrieval-augmented generation pipelines for extrinsic fabrications—rather than relying on generic safety tuning.
Core Categories in a Hallucination Taxonomy
A systematic classification of factual errors in language model output, distinguishing between source-conflict, intrinsic, and extrinsic hallucinations to enable targeted mitigation strategies.
Intrinsic Hallucination
An error where the generated output directly contradicts the provided source context or grounding documents. The model fabricates information that is logically inconsistent with the evidence it was given.
- Mechanism: The model overrides retrieved facts with parametric knowledge or statistical biases.
- Example: A source states 'Q2 revenue was $4M,' but the model outputs 'Q2 revenue reached $12M.'
- Mitigation: Faithfulness metrics and constrained decoding can detect and suppress these contradictions.
Extrinsic Hallucination
An error where the generated output contains factual claims that cannot be verified against any provided source or established world knowledge. The model invents entities, events, or citations wholesale.
- Mechanism: The model fills knowledge gaps with plausible-sounding but entirely fabricated tokens.
- Example: Inventing a non-existent research paper titled 'Neural Dynamics of Market Prediction' with a fake DOI.
- Mitigation: Cross-source verification and knowledge graph grounding can flag unsupported claims.
Source-Conflict Hallucination
A nuanced error occurring when multiple retrieved sources disagree, and the model synthesizes a conflated or incorrect answer rather than acknowledging the ambiguity.
- Mechanism: The model fails to perform entity disambiguation or temporal grounding across conflicting evidence.
- Example: Two financial reports list different CEOs for the same year; the model picks the wrong one without noting the discrepancy.
- Mitigation: Attribution-aware chunking and source reliability scoring help the model weigh evidence appropriately.
Temporal Hallucination
A specific subtype where the model uses outdated or anachronistic information, applying facts from one time period to another without recognizing the temporal shift.
- Mechanism: Failure of temporal grounding; the model does not anchor claims to the correct date range.
- Example: Stating a person holds a position they left three years ago, based on older training data.
- Mitigation: Metadata filtering by recency and explicit date-range constraints in retrieval queries.
Entity Disambiguation Error
A hallucination caused by conflating two distinct entities that share a name or similar attributes, leading to a factually incorrect composite statement.
- Mechanism: The retrieval system or model fails to resolve a textual mention to a unique knowledge base identity.
- Example: Merging the biographies of two different scientists named 'Michael Collins' into a single, inaccurate profile.
- Mitigation: Entity linking pipelines and knowledge graph grounding enforce unique identity resolution.
Loyalty-Faithfulness Divergence
A classification distinction where a response is loyal to the source but not faithful to reality, or vice versa. Loyalty measures consistency with the provided context; faithfulness measures alignment with objective truth.
- Loyal but Unfaithful: The source document itself contains an error, and the model accurately repeats it.
- Faithful but Disloyal: The model corrects a source error using its own parametric knowledge, violating grounding constraints.
- Mitigation: Groundedness checks must be paired with source reliability scores to handle this trade-off.
The Diagnostic Mechanism of Error Classification
A classification system that categorizes factual errors in language model output into distinct types to enable targeted mitigation strategies.
Hallucination taxonomy is the systematic classification of factual errors in language model output into distinct, diagnostically useful categories. By distinguishing between intrinsic hallucinations (fabrications contradicting the provided source context) and extrinsic hallucinations (statements unverifiable from the source but not directly contradictory), engineering teams can implement targeted mitigation strategies rather than applying generic fixes. This diagnostic mechanism treats errors as symptoms pointing to specific architectural failures in the retrieval or generation pipeline.
Advanced taxonomies further segment errors into source-conflict hallucinations (when multiple retrieved documents disagree), entity-level hallucinations (incorrect attributes assigned to real entities), and temporal hallucinations (anachronistic or outdated claims). This granular classification enables precise faithfulness metric selection and informs decisions about whether to improve retrieval quality, adjust decoding constraints, or implement Chain-of-Verification self-correction loops.
Frequently Asked Questions
A classification system that categorizes factual errors in language model output into distinct types, such as intrinsic vs. extrinsic hallucinations or source-conflict errors, to enable targeted mitigation.
A hallucination in large language models is a generated output that is nonsensical, factually incorrect, or unanchored from the provided source context. In the context of factual grounding mechanisms, a hallucination represents a deviation from verifiable reality. The term is a metaphor; the model is not perceiving, but rather generating statistically plausible text that has no correspondence to truth. These errors are not random noise but often highly coherent fabrications, making them dangerous in enterprise settings. They arise because language models are next-token prediction engines optimized for fluency, not truth. A model might invent a historical date, a non-existent scientific paper, or a false API parameter with high confidence. The taxonomy of these errors is critical for hallucination mitigation, as different types—such as intrinsic versus extrinsic—require fundamentally different engineering interventions, from retrieval augmentation to constrained decoding.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A classification system for factual errors requires a supporting ecosystem of detection, attribution, and mitigation techniques. These related concepts form the operational backbone of any hallucination taxonomy.
Intrinsic vs. Extrinsic Hallucination
The primary axis of the taxonomy. Intrinsic hallucinations are logical contradictions within the model's own generated output. Extrinsic hallucinations are statements that cannot be verified against the provided source context or established world knowledge.
- Intrinsic Example: Stating 'Paris is in Germany' after previously stating 'Paris is the capital of France'.
- Extrinsic Example: Inventing a research paper title that does not exist in the retrieved corpus.
- Operational Impact: Intrinsic errors are detectable via self-consistency checks; extrinsic errors require external verification against a knowledge base.
Faithfulness Metric
A quantitative evaluation score measuring the degree to which a generated statement is logically entailed by and consistent with the provided source context. It is the primary automated gauge for extrinsic hallucination.
- Mechanism: Typically uses a Natural Language Inference model to classify each atomic claim as entailed, contradicted, or neutral relative to the source.
- Formula: Faithfulness = (Number of Entailed Claims) / (Total Number of Claims).
- Key Distinction: Faithfulness is independent of general world knowledge; it only cares about fidelity to the provided context, making it ideal for RAG evaluation.
Chain-of-Verification (CoVe)
A self-correcting technique where a language model generates an initial response, then systematically drafts and answers a series of independent verification questions to identify and correct its own factual errors.
- Process: (1) Generate baseline response, (2) Plan verification questions, (3) Execute verifications independently, (4) Generate final revised response.
- Taxonomy Link: CoVe is effective at catching both intrinsic contradictions and extrinsic factual errors by forcing the model to re-examine its own claims from a fresh context.
- Efficiency: Reduces hallucination rates without requiring external retrieval, though it is less reliable than grounding in a verified knowledge base.
Grounded Decoding
A constrained text generation strategy that manipulates token probabilities during inference to favor words and phrases explicitly supported by a provided evidence document. It prevents hallucination at the generation level rather than detecting it post-hoc.
- Implementation: Adjusts logits to penalize tokens that would introduce entities or facts absent from the grounding document.
- Taxonomy Application: Directly targets extrinsic hallucination by making it mathematically improbable for the model to generate unsupported claims.
- Trade-off: Can reduce output fluency and creativity, making it suitable for high-stakes factual applications but less ideal for open-ended creative tasks.
Factual Consistency Check
An automated evaluation step that compares a generated summary or answer against its source material to identify contradictions, hallucinations, or unsupported inferences. It serves as the operational implementation of a hallucination taxonomy.
- Methods: Includes NLI-based entailment scoring, QA-based fact extraction, and LLM-as-a-judge pairwise comparison.
- Granularity: Can operate at the document level, sentence level, or atomic fact level, with finer granularity providing more precise taxonomic classification.
- Integration: Deployed as a guardrail in production RAG pipelines to filter or flag responses before they reach the end user.
Source-Conflict Error
A specific category within extrinsic hallucination where the model generates information that directly contradicts the provided source material. This is distinct from fabricating information absent from the source.
- Example: A source states 'Revenue grew 12%' but the model outputs 'Revenue grew 20%'.
- Root Cause: Often stems from the model's parametric knowledge overriding the retrieved context, a phenomenon known as context-memory interference.
- Mitigation: Addressed through strict grounded decoding and instruction hierarchy that prioritizes provided context over internal weights.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us