HALoGEN: Fantastic LLM Hallucinations and Where to Find Them

Abhilasha Ravichander, Shrusti Ghela, David Wadden, Yejin Choi

Abstract

Despite their impressive ability to generate high-quality and fluent text, generative large language models (LLMs) also produce hallucinations: statements that are misaligned with established world knowledge or provided input context. However, measuring hallucination can be challenging, as having humans verify model generations on-the-fly is both expensive and time-consuming. In this work, we release HALoGEN, a comprehensive hallucination benchmark consisting of: (1) 10,923 prompts for generative models spanning nine domains including programming, scientific attribution, and summarization, and (2) automatic high-precision verifiers for each use case that decompose LLM generations into atomic units, and verify each unit against a high-quality knowledge source. We use this framework to evaluate ~150,000 generations from 14 language models, finding that even the best-performing models are riddled with hallucinations (sometimes up to 86% of generated atomic facts depending on the domain). We further define a novel error classification for LLM hallucinations based on whether they likely stem from incorrect recollection of training data (Type A errors), or incorrect knowledge in training data (Type B errors), or are fabrication (Type C errors). We hope our framework provides a foundation to enable the principled study of why generative models hallucinate, and advances the development of trustworthy large language models.

Introduction

While Large Language Models (LLMs) are increasingly integrated into critical workflows, they suffer from a persistent "hallucination" problem—generating statements that contradict world knowledge or provided context. The challenge in addressing this is twofold: human verification is prohibitively expensive at scale, and the root causes of these errors remain poorly understood. This paper introduces HALoGEN, a systematic framework designed to automate hallucination measurement and diagnose whether errors stem from retrieval failures, flawed training data, or pure fabrication.

Methodology: The HALoGEN Pipeline

To evaluate 14 different LLMs across 150,000 responses, the researchers developed a three-step automated pipeline. First, responses are decomposed into "atomic units"—individual facts or claims. Second, these units undergo verification against high-quality external sources, such as the PyPI index for code or the Semantic Scholar API for scientific citations. Finally, errors are classified into a new taxonomy: Type A (failed retrieval of correct training data), Type B (faithful reproduction of incorrect training data), and Type C (complete fabrication).

The HALoGEN pipeline automates the decomposition of LLM responses into atomic units for verification against external knowledge sources and subsequent error classification.

The HALoGEN Benchmark

The benchmark consists of 10,923 prompts spanning nine diverse scenarios. These are categorized into Response-based tasks, where the model is expected to provide information (e.g., code imports, summarization, biographies), and Refusal-based tasks, where the model must identify and abstain from answering impossible queries (e.g., citations for false claims or non-existent historical events).

Key Insights and Results

Analysis reveals that hallucinations are highly domain-specific; a model’s performance in summarization is not a strong predictor of its truthfulness in biographies. Even top-tier models like GPT-4 exhibit hallucination rates ranging from 4% to 86% depending on the task. While GPT-4 and GPT-3.5 lead in overall factuality, open-source models like Llama-3-70B are increasingly competitive, particularly in refusal-based tasks.

A critical finding is the prevalence of Type B errors, where models hallucinate because they are "faithful" to messy or out-of-context pretraining data. For instance, models frequently suggest non-existent Python packages because those names appeared as local imports in the codebases used for training.

Distribution of hallucination types across different models, highlighting the significant role of Type A (retrieval failure) and Type B (flawed training data) errors.

Conclusion

HALoGEN demonstrates that automated verifiers can achieve high agreement with human annotators (83% to 92%), enabling large-scale, principled study of model behavior. By identifying that many hallucinations are rooted in training data quality (Type B) rather than just fabrication (Type C), this work points toward data curation as a vital path for improving LLM trustworthiness. Future work will expand the benchmark to complex reasoning and more granular attribution methods.

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