Inferensys

Glossary

Hallucination Taxonomy

A classification system that categorizes factual errors in AI-generated text into distinct types—such as entity-level, relation-level, or sentence-level contradictions—to enable granular risk analysis and targeted mitigation.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
CLASSIFICATION SYSTEM

What is Hallucination Taxonomy?

A structured framework for categorizing factual errors in language model outputs into distinct, analyzable types to enable granular risk assessment and targeted mitigation strategies.

Hallucination Taxonomy is a classification system that categorizes factual errors generated by language models into distinct types, such as entity-level, relation-level, or sentence-level contradictions. By decomposing inaccuracies into specific, reproducible categories, this framework moves beyond a binary 'right or wrong' evaluation, enabling granular risk analysis and targeted mitigation strategies for LLMOps engineers.

A robust taxonomy typically distinguishes between intrinsic hallucinations (contradictions directly traceable to a provided source context) and extrinsic hallucinations (fabrications that cannot be verified against any grounding document). This structured approach allows risk managers to calculate precise critical error rates for specific error classes, such as named entity substitutions or numerical value distortions, and to calibrate automated metrics like factual consistency and attribution scores.

A Classification System for Factual Errors

Core Categories in a Hallucination Taxonomy

A hallucination taxonomy provides a structured framework for categorizing the diverse ways language models deviate from factual accuracy. By moving beyond a binary 'right or wrong' assessment, this classification enables granular risk analysis, targeted mitigation strategies, and more precise evaluation of model outputs.

01

Entity-Level Hallucination

The most atomic form of factual error, where a model invents, substitutes, or conflates a specific named entity. This occurs when the generated text references a person, location, organization, date, or other proper noun that has no basis in the source context.

  • Invented Entities: Generating a name like 'Dr. Alistair Finch' that does not exist in reality or the source material.
  • Entity Substitution: Replacing 'Paris' with 'Berlin' when summarizing a document about the Eiffel Tower.
  • Conflation: Merging two distinct entities, such as attributing a discovery by 'Company A' to 'Company B'.

This category is critical for high-stakes domains like legal document review and medical summarization, where a single incorrect entity can fundamentally alter meaning and create liability.

02

Relation-Level Hallucination

An error where the entities themselves are real and correctly identified, but the predicate linking them is fabricated. The model invents an interaction, association, or event that never occurred between the valid subjects.

  • Fabricated Interactions: Stating 'Tesla acquired SpaceX' when both companies exist but the acquisition never happened.
  • False Attribution: Claiming 'Marie Curie discovered the structure of DNA'—both the person and the discovery are real, but the relationship is false.
  • Temporal Distortion: Asserting an event happened in the wrong sequence, such as 'The CEO resigned after the product launch' when the resignation preceded it.

Relation-level hallucinations are particularly dangerous in financial analysis and intelligence reporting, as they create plausible but entirely fictional narratives from real building blocks.

03

Sentence-Level Contradiction

A hallucination where a single generated sentence directly contradicts another statement within the same output or contradicts the provided source document. This represents a failure of internal logical coherence.

  • Intra-Output Contradiction: Paragraph one states 'Revenue increased by 10%' while paragraph three states 'The company reported a decline in revenue.'
  • Source Contradiction: The source document says 'The patient has no known allergies,' but the summary states 'The patient is allergic to penicillin.'
  • Negation Failure: The model drops a critical negation word, transforming 'The treatment was not effective' into 'The treatment was effective.'

This category is a primary target for Natural Language Inference (NLI)-based evaluation metrics, which are specifically designed to detect contradiction relationships between text pairs.

04

Extrinsic Fabrication

The generation of entirely unverifiable or fictional content that cannot be traced to any provided source or established world knowledge. Unlike entity or relation errors that distort existing facts, extrinsic fabrication creates information ex nihilo.

  • Fictional Citations: Inventing a plausible-sounding academic paper title, author list, and journal name to support a claim.
  • Imaginary Data Points: Generating a specific statistic like '78.3% of users prefer...' with no empirical basis.
  • Hallucinated URLs: Creating a functional-looking web address that leads to a non-existent page.

This is the classic 'hallucination' in public discourse. Detection relies on semantic entropy techniques, as fabricated content exhibits high stochastic instability—the model will generate inconsistent details across multiple sampling runs.

05

Loyalty Drift in Summarization

A domain-specific category where a summarization model generates text that is grammatically fluent and factually plausible but not supported by the source document. The output diverges from the original text's meaning while maintaining surface-level coherence.

  • Extrinsic Addition: Adding background context or commentary not present in the source, such as explaining the history of a company when the source only discusses its quarterly earnings.
  • Semantic Distortion: Altering the emphasis or implication, such as summarizing a cautiously optimistic report as a definitive success.
  • Omission of Key Constraints: Dropping qualifiers like 'potentially,' 'allegedly,' or 'in some cases' that are critical to the source's factual posture.

This is measured by faithfulness metrics and is the central challenge in abstractive summarization systems, where compression inherently risks information loss.

06

Temporal Hallucination

A failure to correctly anchor generated facts to the appropriate time period, resulting in anachronisms or outdated information presented as current. This is distinct from entity-level errors because the facts may have been true at some point but are no longer accurate.

  • Anachronistic Statements: Claiming a living person holds a position they left a decade ago.
  • Outdated Knowledge: Stating a current population figure using census data from 2010 without acknowledging the temporal context.
  • Future Projection as Fact: Presenting a speculative forecast ('Revenue is projected to reach $5B by 2026') as a current or achieved state.

This category is critical for Retrieval-Augmented Generation (RAG) systems, where the freshness of the retrieved context directly impacts temporal accuracy. It highlights the difference between a model's parametric knowledge cutoff and real-time information needs.

HALLUCINATION TAXONOMY

Frequently Asked Questions

A classification system that categorizes factual errors into distinct types, such as entity-level, relation-level, or sentence-level contradictions, to enable granular risk analysis.

A hallucination taxonomy is a structured classification system that categorizes the factual errors generated by large language models (LLMs) into distinct, granular types based on their semantic and structural properties. Rather than treating all inaccuracies as a monolithic problem, a taxonomy decomposes failures into categories such as entity-level hallucinations (inventing a person or place), relation-level hallucinations (describing a false connection between real entities), and sentence-level contradictions (where one part of the output negates another). This systematic approach enables LLMOps engineers and risk managers to move beyond a simple aggregate hallucination rate and instead perform targeted diagnostics, tracing specific error patterns back to failures in retrieval, grounding, or attention mechanisms. The foundational work in this area often draws from linguistic error analysis and is operationalized in benchmarks like HaluEval and FActScore, which provide labeled datasets for training hallucination detection classifiers.

COMPARATIVE ANALYSIS

Taxonomy vs. Other Hallucination Analysis Methods

A feature-level comparison of hallucination taxonomy classification against other common analysis and detection methodologies.

FeatureTaxonomy ClassificationUncertainty QuantificationNLI-Based Evaluation

Primary Objective

Categorize error types for root cause analysis

Estimate confidence bounds of predictions

Verify logical entailment from source

Granularity of Analysis

Entity, relation, and sentence-level

Token or sequence probability

Sentence or claim-level

Requires Ground Truth Source

Detects Hallucination Type

Provides Risk Stratification

Real-Time Detection Capability

Post-hoc analysis

< 100ms latency

< 500ms latency

Typical Implementation Complexity

High (requires ontology design)

Medium (Monte Carlo sampling)

Medium (fine-tuned NLI model)

Actionable for Fine-Tuning

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.