The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Models

Junyi Li, Jie Chen, Ruiyang Ren, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, Ji-Rong WenACL 2024

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, yet they remain plagued by "factuality hallucination"—the generation of content that is fluent and plausible but factually incorrect. This study provides a comprehensive empirical analysis of these hallucinations, investigating their detection, origins within the model lifecycle, and potential mitigation strategies. By introducing the HaluEval 2.0 benchmark, the authors offer a rigorous framework for evaluating model truthfulness across diverse specialized fields.

Methodology and Benchmarking

The research employs a multi-faceted approach to understand and combat hallucinations:

  1. Detection via Extraction-then-Verification: Rather than holistic judgment, the authors use GPT-4 to extract individual factual claims from model outputs and verify each against external knowledge.
  2. Lifecycle Analysis: The study examines the impact of pre-training (data volume and composition), supervised fine-tuning (instruction types), and inference (decoding strategies).
  3. HaluEval 2.0: A new benchmark consisting of 8,770 questions across Biomedicine, Finance, Science, Education, and Open Domain. This dataset is specifically designed to target areas where LLMs are prone to failure.

Sources of Hallucination

The study reveals critical insights into how pre-training dynamics influence factual integrity.

The Oscillatory Effect of Scale and the Long-Tail Trap

A significant finding is that increasing the number of pre-training tokens does not lead to a linear decrease in hallucinations. Instead, the hallucination rate exhibits an oscillatory pattern, suggesting that scale alone is insufficient for ensuring truthfulness. Furthermore, models struggle significantly with "long-tail" knowledge. There is a direct correlation between the frequency of an entity in the training corpus and the model's ability to generate accurate facts about it.

Impact of pre-training token count and entity familiarity on hallucination rates.

Mitigation Strategies and Inference Dynamics

The researchers evaluated several methods to reduce hallucinations, finding that the choice of fine-tuning data and decoding strategy plays a vital role.

Fine-Tuning and Self-Reflexion

Interestingly, fine-tuning on general "daily chat" data (e.g., ShareGPT) often preserves factual integrity better than rigid, task-specific instruction tuning. Moreover, while "self-reflexion" (asking a model to verify its own output) is effective for large-scale models (70B+), it can backfire in smaller models (7B or 13B), leading to increased errors as the model becomes overly "paranoid" and corrects valid information into hallucinations.

Decoding and Retrieval

Retrieval-Augmented Generation (RAG) emerged as the most robust defense against hallucinations, significantly lowering error rates in specialized domains like biomedicine. Additionally, the study highlights the impact of decoding parameters. While standard top-p sampling is common, the authors propose "Greedy-nucleus" sampling to better balance diversity and factual precision.

Effect of top-p decoding on average hallucination rates for ChatGPT and Llama 2-Chat.

Conclusion

This empirical study underscores the complexity of factuality in LLMs. While retrieval and scale help, they are not panaceas. The persistent gap between open-source and closed-source models, alongside the counter-intuitive effects of self-correction in smaller models, points toward the need for more sophisticated, architecture-level solutions for truthfulness. Future research will focus on cost-effective detection methods and integrating factual constraints directly into the model training process.

Summary updated

BibTeX
@inproceedings{li2024dawn,
  author = {Junyi Li and Jie Chen and Ruiyang Ren and Xiaoxue Cheng and Xin Zhao and Jian-Yun Nie and Ji-Rong Wen},
  title = {{The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.586},
}
Figure