Back to Research
Hallucinations
Updated
10 min read

The Hallucination Taxonomy: 7 Types of AI Hallucinations, With Examples

DeepRails
DeepRails Research Team
DeepRails

AI hallucinations come in seven types: factual fabrication, source misattribution, context drift, logical inconsistency, instruction deviation, subtle misrepresentation and confabulation. They differ in how much harm they do and how hard they are to catch, so each needs its own check and its own fix.

Not all hallucinations are created equal. A minor date error in a blog post is annoying; a fabricated medical dosage is lethal. Yet most evaluation systems treat all hallucinations identically—as binary failures. The DeepRails Hallucination Taxonomy classifies AI errors by severity, detectability, and remediation strategy, and maps each type to the categories researchers use.

⚠️ Why This Matters

A pass/fail check can't tell a wrong date from a made-up dosage. The type tells you which check will catch the error and which fix will work, so you can spend your evaluation effort on the errors that break user trust.

The Seven Types of Hallucinations

Type 1: Factual Fabrication

Definition: The model generates information that is verifiably false and not present in its training data or provided context.

Example: "The Eiffel Tower was completed in 1923" (actual: 1889).

Severity: High in factual domains (medical, legal, financial); moderate in creative contexts.

Detection Strategy: Cross-reference claims against authoritative knowledge bases. DeepRails' Correctness metric specifically targets this type through claim extraction and verification.

Type 2: Source Misattribution

Definition: The model cites a source that doesn't exist or attributes information to the wrong source.

Example: "According to the 2024 WHO report..." when no such report exists. A real case: in June 2023 a federal judge in New York sanctioned two lawyers and their firm, and fined them $5,000, for a court filing that cited six court opinions that didn't exist, and for standing by them after the court questioned them. ChatGPT had produced the opinions and attributed them to real judges (Mata v. Avianca, sanctions order, June 22, 2023).

Severity: Critical—erodes trust faster than factual errors because it appears authoritative.

Detection Strategy: Validate all citations against document databases. In RAG systems, verify that cited passages actually appear in retrieved chunks.

Type 3: Context Drift

Definition: The model generates information from its pre-training that contradicts or extends beyond the provided context.

Example: When asked to summarize a document about Company X's Q3 results, the model adds "Company X is known for its innovative AI products" based on general knowledge, not the document.

Severity: Moderate to high in RAG applications; low in open-ended generation.

Detection Strategy: DeepRails' Context Adherence metric maps every claim in the output back to specific passages in the input context. Unmapped claims are flagged.

Type 4: Logical Inconsistency

Definition: The model contradicts itself within a single response.

Example: "The company grew revenue by 20% in Q3. Overall, Q3 was a disappointing quarter with declining sales."

Severity: Moderate—confuses users but rarely causes direct harm.

Detection Strategy: Identify contradictory statements through semantic similarity and logical reasoning. DeepRails' Correctness metric checks every claim, so it flags whichever side of a contradiction is false.

Two accurate facts, one wrong conclusion

When a model takes two facts that are each correct and in the provided context, then combines them into a conclusion that doesn't follow, that is a logical inconsistency: a reasoning error, not a fact error. In research terms it is a faithfulness hallucination of the logical-inconsistency kind (Huang et al., 2025). If the conclusion also contradicts the context, it is a context inconsistency too, and an intrinsic hallucination in Ji et al.'s terms (2023); Maynez et al. (2020) trace intrinsic hallucinations to exactly this, combining the source's own information wrongly. It slips past automated filters because every individual claim checks out against the source, so a claim-by-claim fact check passes it. Catching it takes a check that reads the conclusion against the facts it rests on.

Type 5: Instruction Deviation

Definition: The model ignores explicit instructions about format, tone, scope, or constraints.

Example: Prompt says "Respond in JSON format," model returns markdown.

Severity: Low to moderate—breaks automation but rarely misleads users.

Detection Strategy: DeepRails' Instruction Adherence metric checks structural and behavioral compliance with prompt directives.

Type 6: Subtle Misrepresentation

Definition: The model slightly distorts facts—changing emphasis, omitting qualifiers, or exaggerating certainty.

Example: Source says "preliminary studies suggest a possible link"; model says "research shows a link."

Severity: Critical—hardest to detect, most damaging to credibility when discovered.

Detection Strategy: Requires fine-grained semantic comparison and reasoning about epistemic certainty. This is where dual-model consensus in MPE excels.

Type 7: Confabulation

Definition: The model fills gaps in knowledge with plausible-sounding but invented details.

Example: Asked about an obscure historical figure, the model invents biographical details that sound reasonable but are unverifiable.

Severity: Variable—depends on domain and user's ability to verify.

Detection Strategy: Require models to express uncertainty when knowledge is absent. Evaluate for hedging language and confidence calibration. Researchers at OpenAI and Georgia Tech argue that models confabulate partly because training and benchmarks score a confident guess higher than "I don't know" (Kalai et al., "Why Language Models Hallucinate", September 2025), so an evaluation that gives credit for honest uncertainty helps.

How the 7 Types Map to the Research

Researchers sort hallucinations two ways. The older split is intrinsic (the output contradicts the source it was given) versus extrinsic (the output adds something the source can't confirm), from Maynez et al. (ACL 2020) and Ji et al. (ACM Computing Surveys, 2023). The newer split, from Huang et al. (ACM Transactions on Information Systems, 2025), is factuality (the output conflicts with real-world facts or can't be checked against them) versus faithfulness (the output departs from the user's instructions or context, or contradicts itself). Note one naming difference: Huang et al. call a checkably wrong fact a "factual contradiction" and an unverifiable one a "factual fabrication".

DeepRails typeHuang et al. (2025)Ji et al. (2023)
1. Factual FabricationFactuality: factual contradictionDepends on the source: extrinsic if a provided source can't confirm it; intrinsic in open-domain question answering, where Ji et al. treat world knowledge as the source
2. Source MisattributionFactuality: factual fabrication for a source that doesn't exist; factual contradiction for a real source cited wronglyExtrinsic for a made-up source; intrinsic if the wrongly cited source was supplied in the prompt
3. Context DriftFaithfulness: context inconsistencyExtrinsic when it adds to the context; intrinsic when it contradicts it
4. Logical InconsistencyFaithfulness: logical inconsistencyNot directly covered; intrinsic only if the conclusion contradicts the source
5. Instruction DeviationFaithfulness: instruction inconsistencyNot covered (the split is about the source)
6. Subtle MisrepresentationFaithfulness: context inconsistencyIntrinsic
7. ConfabulationFactuality: factual fabricationExtrinsic

The mapping is DeepRails', read from each paper's definitions (October 2026); the papers don't use DeepRails' type names.

Severity Matrix: Which Errors Matter Most

Hallucination TypeUser ImpactDetection DifficultyPriority
Source MisattributionCriticalEasyP0
Subtle MisrepresentationCriticalHardP0
Factual FabricationHighMediumP1
Context DriftHighMediumP1
Logical InconsistencyMediumEasyP2
ConfabulationMediumHardP2
Instruction DeviationLowEasyP3

Remediation Strategies by Type

Different hallucination types require different correction approaches:

  • Factual Fabrication & Source Misattribution: Regenerate with explicit grounding instructions and verified sources. DeepRails' ReGen improvement action works well here.
  • Context Drift & Subtle Misrepresentation: Use targeted correction (FixIt) that preserves the valid portions while fixing specific claims. Requires fine-grained evaluation to identify exact errors.
  • Logical Inconsistency & Instruction Deviation: Often fixable through prompt engineering. Add explicit constraints and examples.
  • Confabulation: Hardest to fix. Consider adding uncertainty expressions or falling back to "I don't know" responses when confidence is low.

Fixing Hallucinations in Real Time

To fix a hallucination before a user sees it, score each answer as it is produced. When a score falls below your threshold, repair the answer or write a new one, score it again, and deliver it only if it passes. If it still fails after a set number of tries, show a safe fallback instead.

  1. Score: check the answer against the checks you chose for that use case, such as correctness and context adherence. A score below the threshold counts as a hallucination.
  2. Fix: pick one of three actions. A targeted repair (DeepRails' FixIt) rewrites only what failed, using the original prompt, the answer and the reason it failed. A regeneration (ReGen) asks the model again from the original prompt with a little more randomness, so it doesn't repeat the same mistake. Record-only (Do Nothing) passes the answer through and logs the failure, for teams that want to measure first or handle failures themselves.
  3. Score again: the repaired or new answer is scored again on the checks it failed. One that passes is delivered; one that fails starts the next try.
  4. Stop: cap the retries. In DeepRails Defend the default is three attempts in all, the first answer plus two fixes, and you can set from one to five. If every attempt fails, Defend returns the best-scoring attempt, marked as failed, with its full history.

What the user sees after a failed answer is your application's choice: a plain "I'm not sure," a handoff to a person, or the answer with a warning. Decide it before launch, because confabulation, the hardest type to fix, can fail every retry.

Every retry adds a model call and another round of scoring, so it adds time and cost. A targeted repair carries the failed answer and the reason into its prompt: it uses more tokens per attempt than a regeneration, but it changes less. A regeneration is cheaper per attempt, but it can fix one error and introduce another. Stricter thresholds, more retries and slower, more accurate checking models suit answers where a mistake is costly; record-only suits uses where any answer now beats a better answer later. How each action works, step by step: Defend details.

Hallucination guardrails: which DeepRails check catches each type

DeepRails' guardrail metrics map onto this taxonomy. Correctness catches Types 1, 2, and 6, and the false side of a Type 4 contradiction. Context Adherence catches Type 3. Instruction Adherence catches Type 5. Completeness adds a check that the answer covers the whole question and is well organized. Each of these metrics returns a score from 0 to 1, and in DeepRails Defend a score below the threshold you set for a workflow counts as a hallucination. You choose the fix for each workflow: FixIt repairs the failing answer, ReGen writes a new one, or Do Nothing records the failure. Defend then scores the fixed answer again before it is delivered.

Explore Guardrail Metrics

Conclusion

Treating all hallucinations as equivalent failures is like treating all medical symptoms as "illness"—technically true but diagnostically useless. The taxonomy presented here provides a framework for prioritizing evaluation efforts, designing targeted remediation strategies, and communicating AI limitations to stakeholders.

In production systems, focus first on source misattribution and subtle misrepresentation—these erode trust fastest. Then address factual fabrication and context drift. The remaining types, while important, rarely cause user-reported issues if the high-priority categories are handled well.


DeepRails scores every AI answer and corrects hallucinations before users see them. If you're working out which hallucinations your AI makes and how to catch them, book a free call.

Book a free call
Share this article:
Hallucinations