HAD: HAllucination Detection Language Models Based on a Comprehensive Hallucination Taxonomy

Fan Xu, Xinyu Hu, Zhenghan Yu, Li Lin, Xu Zhang, Yang Zhang, Wei Zhou, Jinjie Gu, Xiaojun Wan

TL;DR

Researchers have introduced HAD (HAllucination Detection), a series of models designed to detect, locate, and correct hallucinations in Large Language Model (LLM) outputs within a single inference step. By utilizing a new, fine-grained taxonomy of 11 hallucination types and a massive 90,000-sample synthetic dataset, HAD models achieve state-of-the-art performance across multiple benchmarks, proving that "one-stop-shop" models can outperform general-purpose LLMs at self-correction.

What Problem Does This Paper Address?

While LLMs are incredibly capable, they frequently suffer from "hallucinations"—generating text that is plausible-sounding but factually incorrect or unfaithful to the provided context.

The authors identify three major gaps in current research:

  1. Coarse Granularity: Most existing systems use broad categories (like just "factuality" vs. "faithfulness"), which aren't detailed enough for complex error analysis.
  2. Task Specificity: Many detection tools are built for specific tasks (like summarization) and don't generalize well.
  3. Fragmented Pipelines: Detection, identifying the specific "span" of the error, and providing a correction are often treated as separate steps, leading to inefficiency.

Methods

The authors tackle these issues through a three-pronged approach:

  • A Comprehensive Taxonomy: They developed a three-level hierarchy featuring 11 fine-grained categories. These are split into Faithfulness (e.g., instruction inconsistency, information omission, internal contradictions) and Factuality (e.g., factual recall errors, fabricated entities).
  • Hallucination Injection: To train the models, they used GPT-4o to "inject" specific types of hallucinations into correct data across various tasks (story writing, QA, math, etc.). They then used an automated filtering process to ensure the synthetic errors actually matched the intended taxonomy labels.
  • The HAD Models: They fine-tuned Qwen2.5 (7B and 14B versions) on this data. Unlike standard classifiers that just give a "Yes/No" label, HAD models are trained to output the hallucination type, the exact text span that is wrong, and a corrected version of the sentence in one go.
  • Knowledge Augmentation: Recognizing that models can't catch factual errors if they don't know the facts, the authors integrated a RAG (Retrieval-Augmented Generation) component using a Wikipedia database to provide external context during the detection process.

Datasets

  • Training Set: A newly synthesized dataset of 90,172 samples covering diverse NLG tasks.
  • HADTest: A high-quality, manually annotated test set of 2,248 samples created by the authors to ensure rigorous evaluation.
  • OOD Benchmarks: To test out-of-domain (OOD) performance, they used HaluEval (general), FactCHD (fact-conflicting), and FaithBench (faithfulness in summarization).

Key Insights and Ideas

  • Fine-Grained Labels Matter: By training on 11 specific error types, the model learns the "nuance" of failure. For example, it can distinguish between a model failing to follow a formatting instruction (Task Requirement Inconsistency) versus a model contradicting its own previous sentence (Internal Inconsistency).
  • The "Aha" Moment for RAG: The researchers found that "Factual Inference Errors" were the hardest to catch. However, adding retrieved knowledge (Knowledge Augmentation) boosted the F1-score for these errors from 26.87 to 52.17, nearly doubling the model's effectiveness in complex fact-checking.
  • Unified Inference: Performing detection and correction simultaneously doesn't just save time; it likely helps the model maintain better context, as the "reasoning" required to identify an error type is closely linked to the knowledge needed to fix it.

Key Results

  • In-Domain Superiority: On the HADTest, the HAD-14B model achieved a binary detection accuracy of 89.10%, significantly outperforming GPT-4o (63.08%) and specialized models like FAVA.
  • State-of-the-Art (SOTA): HAD models achieved SOTA results on several external benchmarks, including a 92.37% accuracy on HaluEval-QA and a 66.82 Micro F1 on FactCHD.
  • Span and Correction: The model isn't just guessing; it achieves an F1-score of ~76% for identifying the exact erroneous span and ~78% for providing the correct text, proving it is a viable tool for automated editing.

Limitations and Future Work

  • Single-Span Constraint: Currently, the model is primarily optimized for detecting a single error span per output. In the real world, LLMs often produce "cascading" hallucinations where multiple, overlapping errors occur.
  • Synthetic Data Bias: While the 90k synthetic samples are diverse, they are still generated by another LLM (GPT-4o), which might not perfectly capture the "organic" ways smaller or different models hallucinate.
  • Coordination: The authors noted that coordinating between 11 different tasks and error types is difficult, suggesting that future work could involve more sophisticated multi-task learning strategies to balance performance across all categories.

Summary updated

BibTeX
@inproceedings{xu2026had,
  author = {Fan Xu and Xinyu Hu and Zhenghan Yu and Li Lin and Xu Zhang and Yang Zhang and Wei Zhou and Jinjie Gu and Xiaojun Wan},
  title = {{HAD: HAllucination Detection Language Models Based on a Comprehensive Hallucination Taxonomy}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-industry.11},
}
Figure