Skip to content

Pillar 03 · Applied Technology

LLM Hallucination Taxonomy: Definition, Types, and Mitigation

8 min read
Download article as Markdown (.md) Verify version and integrity

TL;DR

LLM hallucinations are unavoidable: Manuel Cossio's paper (2025) proves via computability theory that inputs where a model fails will always exist. I review the proposed taxonomy (intrinsic vs. extrinsic, factuality vs. faithfulness) and practical mitigation guidelines for architecture and product.

LLM Hallucination Taxonomy: Definition, Types, and Mitigation

Hallucinations in LLMs (Large Language Models) are unavoidable (after all, they are computable systems), so understanding their taxonomy is essential for designing efficient and safe applications.

In this review, I examine the paper by Manuel Cossio, published in August 2025 under the original title “A comprehensive taxonomy of hallucinations in Large Language Models“.

The paper proposes a formal definition of the phenomenon via computability theory, organizes the core types (intrinsic vs. extrinsic; factuality vs. faithfulness), and closes with mitigation guidelines for architecture and product.

You can read the full paper on arXiv: A comprehensive taxonomy of hallucinations in Large Language Models.

Formal definition and inevitability of hallucinations

The study starts from a formal condition:

Given any computable LLM and a computable ground-truth function, there will always exist inputs on which the model diverges from the correct value (at any stage of training).

The proof relies on diagonalization, exposing intrinsic limits of what is computable by LLMs.

The practical consequence is straightforward: there is no path to “zero out” hallucinations; the realistic goal is lowering frequency and impact through detection, containment, and human validation.

Core theorems covered in the paper:

Theorem / CorollaryStatement (summary)Practical implication
Theorem 1: Computably enumerable LLMs will hallucinateFor any computably enumerable set of LLMs, there exists a computable ground-truth function f such that all states of all LLMs in that set hallucinate with respect to f.Current LLMs (bounded by polynomial time) are inherently prone to hallucinate; total elimination is impossible.
Theorem 2: Hallucination across infinite queriesFor any computably enumerable set of LLMs, there exists a computable f such that all states of all LLMs hallucinate on infinitely many inputs.Hallucinations are not isolated incidents; the issue persists across vast input domains.
Theorem 3: Any individual computable LLM will hallucinateFor any individual computable LLM, there exists a computable f such that every state of that LLM hallucinates; there also exists f’ on which hallucination occurs across infinitely many inputs.Inevitability applies to specific models (current and future), regardless of architecture.
Corollary 1: Inability to self-eliminateNo computable LLM can prevent itself from hallucinating using internal mechanisms alone.Self-correction and prompting tricks are insufficient on their own; external safeguards and human validation are required.

Core of the taxonomy: intrinsic vs. extrinsic; factuality vs. faithfulness

The taxonomy organizes the phenomenon along two widely accepted axes.

Intrinsic hallucinations: contradict the supplied context itself or the internal logic of the generated text (e.g., inconsistencies inside a summary).

Extrinsic hallucinations: introduce entities, facts, or events that appear neither in the context nor in observable reality (typical when a model tries to “fill in” missing gaps).

On the second axis, factuality measures objective correctness (factual truth) and faithfulness measures adherence to the provided “input”.

That is, a model can be faithful yet non-factual (reproducing an error from a source document) or factual yet unfaithful (adding true details that were not asked for).

These distinctions guide both evaluation metrics and mitigation tactics.

Implications for real-world use: Products and Risk

Once error is accepted as inevitable, teams must recognize that precision-critical fields (advanced math, logic, high-stakes decisions in healthcare, law, and finance) require tighter scrutiny and human-in-the-loop (strategic human oversight at key points in an automation).

Without integrated guardrails (safety checks), knowledge bases, or supervision, it is not safe to delegate critical decisions to a model.

In governance terms, the paper’s theoretical framing supports clear usage policies, scope boundaries, and continuous auditing.

This connects closely with what I see in practical work with Artificial Intelligence day to day.

I originally wrote this piece in late September 2025 and have been updating it since. Here are the dated milestones: in August 2026, the frontier models I used daily were Grok 4.6 High, Gemini 3.1 Pro, and GPT-5.6 Sol High. By October 2026, the lineup already includes Grok 4.7 (from SpaceXSI), Gemini 4 Argon, GPT-6.1 Sol, and Claude Opus 5.5.

In those models, hallucinations dropped sharply in practice, yet verification is still required.

I have to admit they have become far subtler and more occasional compared to when I started working with LLMs back in December 2022. This market is evolving at an unbelievable pace!

Models improved dramatically in performance, latency, and price, whether on direct questions, compute-heavy requests like deep search and agent mode, or working across data stores (from larger spreadsheets to Databases and Vector Stores).

Hybrid and context-aware hallucination mitigation

One point stands out clearly from the paper’s technical findings: there is no “silver bullet”.

The paper converges on hybrid systems combining: tool use (calculation, code execution, structured queries), retrieval grounding to reduce reliance on parametric memory, curated fine-tuning / adversarial filtering, and guardrails (logic validators, rule filters, knowledge-based corrections).

Under uncertainty, rule-based fallbacks (contingency plans such as refusing to answer, asking for clarification, or escalating to a human) limit damage.

The recommendation is to make the pipeline context-aware: stricter thresholds and mandatory retrieval in high-stakes domains; controlled tolerance in creative work, always signaling uncertainty to the downstream user (next link in the chain).

What I See in Practice

The errors I saw most often in older models were always of the same kind: numbers without any calculation basis or citation, wrong dates, and broken destination links: pages that did not exist, pages returning forbidden or blocked access, and insecure sites with SSL certificate errors.

My validation approach depends on context. I use different models to cross-check, fix, and critique what another model produced, whether content, tests, or code documentation. On long research runs, such as Gemini deep research, I click the links and confirm that the target page exists, opens without blocks, has a secure connection, and actually supports the cited claim.

Where review is strict without exception: commands headed straight to a server and executive actions in critical Linux environments. And I always verify posts on this site before publishing. Agent autonomy and reliability in October 2026 improved enormously compared to 2024 and 2025, yet verification remains part of the workflow.

What a Hallucination Costs (and What Checking Costs)

If error never hits zero, the business question changes. It is no longer “does the model make mistakes?”, it becomes “what does an error cost here, and what does checking cost?”. That is the ROI calculation (return on time, money, tooling, and people invested) for any AI deployment.

In a blog draft, a mistake costs one extra edit. In a client reply, a report figure, or a healthcare, legal, or financial decision, the same mistake costs far more. That is why human validation is not waste: it scales proportionally with the cost of error in each task.

Hallucinations in AI Agents

With AI agents, the risk shifts in nature: a hallucination stops being just wrong text and can turn into a wrong action, like editing a file, sending a message, or executing a command. The same guidelines from the paper apply with greater rigor: least-privilege permissions, logs of every agent action, verification of the outcome, and human approval for irreversible actions.

Two 2026 studies I reviewed here help on that practical side: skills for AI agents show that a well-written procedure still needs runtime verification, and how AI agents coordinate shows why a single run is never enough to trust a configuration.

Final thoughts

In my view, the paper’s value comes down to three deliverables:

(i) A formal definition that shifts the ambition from “eliminating” to managing hallucinations;

(ii) An operational taxonomy that helps diagnose errors in practice;

(iii) A mitigation roadmap integrating architecture, process, and product.

For SMBs and data teams, the message is pragmatic and clear: bound scope, measure per task, maximize traceability (sources + validators), and keep qualified people in the loop (end-to-end process) wherever the consequence of an error is high.

In practice, that is the exact discipline I bring when deploying AI into a client’s operation: diagnosis and validation criteria first, automation second, as I outline in Applied Technology.

At the top of this page there is a button to download this entire content in Markdown, so you can use it as a reference when working with your AI agent. The download is free, asks for no signup or email, and puts you on no mailing list. It is 100% public content for anyone to access and download.

Need help? Message me on WhatsApp. I make a point of walking alongside clients from start to finish.

Frequently asked questions

What is a hallucination in an LLM?

It is when the model generates false, context-inconsistent, or fabricated information with the same confidence as a correct answer.

Can hallucinations be eliminated completely?

No. Manuel Cossio's paper (2025) shows via computability theory that every computable LLM will err on some inputs. In October 2026 models, hallucinations dropped sharply in practice, yet verification is still required.

What is the difference between intrinsic and extrinsic hallucination?

Intrinsic hallucination contradicts the supplied context or the generated text itself; extrinsic hallucination invents facts, entities, or events found neither in the context nor in reality.

What are factuality and faithfulness?

Factuality means being accurate relative to the real world; faithfulness means sticking to the source given to the model. A response can be faithful to a wrong document, or factually true yet off-task.

How can hallucinations be reduced in practice?

Combine tools (calculation, code execution, queries), source retrieval, guardrails, and fallback rules such as refusing, asking for clarification, or escalating to a human. On critical topics, keep human review and check numbers, dates, and links directly at the source: verify the page exists, opens without blocks, and uses a secure connection (SSL).

References

COSSIO, Manuel. A comprehensive taxonomy of hallucinations in Large Language Models. Barcelona: Universitat de Barcelona, 2025. Preprint (arXiv). Available at: arXiv:2508.01781. Accessed: 29 Sep 2025.

Direct Advisory

Shall we talk about your project?

Share your context and let's see which path makes sense for your current stage.

Chat on WhatsApp