Inferensys

Glossary

Hallucination Taxonomy

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.
Developer building agentic RAG system, retrieval pipeline diagram on laptop, technical workspace with notes.
ERROR CLASSIFICATION

What is Hallucination Taxonomy?

A structured framework for categorizing factual errors in language model outputs to enable targeted diagnostic analysis and mitigation.

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.

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.

TAXONOMY OF FAILURE MODES

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.

01

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.
Source-Contradictory
Primary Error Type
02

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.
Unverifiable
Verification Status
03

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.
Multi-Source
Conflict Domain
04

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.
Time-Shifted
Error Dimension
05

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.
Identity Confusion
Root Cause
06

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.
HALLUCINATION TAXONOMY

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.

HALLUCINATION TAXONOMY

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.

Prasad Kumkar

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.