HALoGEN: Fantastic LLM Hallucinations and Where to Find Them

Abhilasha Ravichander, Shrusti Ghela, David Wadden, Yejin Choi

TL;DR

The authors introduce HALoGEN, a comprehensive multi-domain benchmark equipped with automated verifiers to evaluate large language model (LLM) hallucinations at scale. By analyzing 150,000 generations from 14 prominent LLMs, they reveal that even state-of-the-art models like GPT-4 frequently hallucinate (up to 86% of generated facts in certain domains). Crucially, the study categorizes these errors by tracing them back to pretraining data, showing that hallucinations stem from a complex mix of memory retrieval failures, flawed training data, and over-generalization.

What Problem Does This Paper Address?

While it is well-known that LLMs confidently invent facts, measuring the exact scale and underlying causes of these "hallucinations" remains a massive challenge. Human verification is too slow and expensive to scale, while existing automated benchmarks are often narrow—focusing on a single task like summarization or relying on simplistic multiple-choice formats.

Furthermore, the AI community lacks a systematic understanding of why models hallucinate. Does an LLM hallucinate because it misremembers correct information it saw during training, or because it is faithfully regurgitating incorrect or out-of-context data from its pretraining corpus? This paper introduces a unified framework to address both evaluation scalability and causal attribution.

Methods

The authors develop the HALoGEN (Evaluating Hallucinations of Generative Models) framework, which automates hallucination detection through a three-step pipeline:

  1. Prompting: Deploying diverse prompts across multiple domains.
  2. Decomposition: Breaking down long-form model responses into verifiable "atomic units" (e.g., specific code package imports or paper citations).
  3. Verification: Programmatically checking each atomic unit against an external, high-quality "source of truth" (such as the PyPI index for code or Semantic Scholar for citations) using code or LLM-based judges.

HALoGEN evaluates two distinct types of scenarios:

  • Response-Based Tasks: Scenarios where the model is expected to provide factual information.
  • Refusal-Based Tasks: Scenarios where the model should abstain from answering because the prompt contains a false presupposition (e.g., asking about a meeting between two historical figures who lived in entirely different centuries).

Tracing the Root Causes

To understand the origins of these errors, the authors cross-reference hallucinations with massive open-source pretraining corpora (like Dolma and C4) and classify them into three types:

  • Type A (Recollection Error): The correct fact was present in the pretraining data, but the model failed to retrieve or generate it correctly.
  • Type B (Flawed Data Error): An incorrect fact was present in the training data, or a fact was taken completely out of its original context.
  • Type C (Fabrication Error): Neither correct nor incorrect facts were present in the training data; the model completely fabricated or over-generalized the response.

Datasets

The newly introduced HALoGEN benchmark consists of 10,923 prompts spanning 9 distinct domains:

  • Code Package Imports
  • Scientific Attribution
  • Text Summarization
  • Text Simplification
  • Biographies
  • Historical Events
  • False Presuppositions
  • Rationalization (Binary)
  • Rationalization (Numerical)

To build these diverse scenarios, the authors repurposed and curated data from several established sources, including Stack Overflow, CNN/DailyMail, WikiLarge, FactScore, Hetionet, SciFact, TruthfulQA, and the COVID-19 Lies dataset.

Key Insights and Ideas

  • Hallucination is highly domain-specific: An LLM's performance in one domain does not predict its reliability in another. For instance, a model that rarely hallucinates Python packages might perform poorly when summarizing text. As shown in their correlation analysis, model rankings across diverse tasks are often weakly or even negatively correlated.
Figure 2: Spearman correlation of model rankings across datasets. We observe that model hallucinations can vary considerably by domain, highlighting the need for a diverse benchmark to study hallucination patterns.
  • Different errors drive different domains: The root cause of a hallucination depends heavily on the topic. In code generation, hallucinated packages are frequently found as-is in pretraining data (Type B errors caused by local codebase imports or deprecated libraries). Conversely, when models hallucinate political facts (like a senator's university affiliation), the correct data is almost always present in the training corpus, pointing to a retrieval failure (Type A error).
Distribution of hallucination types across different tasks.
  • LLMs struggle to say "I don't know": Models frequently fail at refusal-based tasks. When fed false presuppositions, they prefer to confidently invent justifications rather than abstaining, highlighting a severe calibration issue in modern alignment techniques.

Key Results

  • Pervasive Errors: Across 150,000 evaluated generations, every single tested LLM exhibited significant hallucination rates. Even GPT-4, the top performer, had hallucination scores ranging from a low of 4% (in code generation) to a staggering 86% of generated facts in more challenging open-ended domains.
  • Proprietary vs. Open Source: Closed-source models (GPT-4 and GPT-3.5) generally led the benchmark in overall factuality. However, open-weights models are catching up; Llama-3-70B demonstrated highly competitive performance across several response-based tasks.
  • The Limits of Scale: While larger models generally hallucinate less on response-based tasks, this scaling law breaks down on refusal-based tasks. Larger models do not inherently exhibit better abstention behavior when faced with tricky or impossible premises.

Limitations and Future Work

  • Verifier Reliability: Automated verification enables evaluation at scale, but LLM judges and programmatic verifiers are not infallible. The authors noted human-verifier agreement rates between 83% and 92% depending on the task.
  • The Black Box of Pretraining: Tracing hallucinations back to training data is impossible for proprietary models like GPT-4 because their training sets are corporate secrets. The authors had to rely on open-source corpora as proxies.
  • Missing Coverage Metrics: HALoGEN evaluates factual precision (whether what the model said is true) and abstention, but it does not measure coverage (whether the model omitted crucial information required by the prompt). The authors flag this as a vital direction for future benchmark iterations.

Summary updated

BibTeX
@inproceedings{ravichander2025halogen,
  author = {Abhilasha Ravichander and Shrusti Ghela and David Wadden and Yejin Choi},
  title = {{HALoGEN: Fantastic LLM Hallucinations and Where to Find Them}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=ReZ35YpQH3},
}
Figure