Hallucinated but Factual! Inspecting the Factuality of Hallucinations in Abstractive Summarization

Meng Cao, Yue Dong, Jackie Chi Kit Cheung

Abstract

Abstractive summarization models frequently "hallucinate" information not found in the source text. While traditionally treated as failures, many of these additions are actually factual and improve summary readability. This paper introduces ENTFA (Entity Factuality), a method that leverages the internal confidence of language models to distinguish helpful factual hallucinations from deceptive errors. We demonstrate that ENTFA outperforms existing baselines in hallucination detection and that using it as a reward signal in reinforcement learning significantly improves the factuality of generated summaries.

Introduction

In abstractive summarization, "hallucination" refers to instances where a model generates content not directly supported by the source document. Traditionally, all hallucinations were viewed as negative. However, a more nuanced perspective reveals that many hallucinations are factual—they provide useful background knowledge, such as a person's title or full name, that enhances the summary's utility.

The critical challenge is distinguishing between "smart" hallucinations (adding world knowledge) and "wrong" hallucinations (non-factual errors).

Examples of different hallucination categories in abstractive summarization.

Methods: The ENTFA Approach

The researchers propose ENTFA (Entity Factuality), a detection approach focused on named entities. ENTFA compares two probability distributions:

  1. Prior Probability (p_prior): The likelihood of the model generating an entity based solely on general world knowledge (pre-training).
  2. Posterior Probability (p_pos): The likelihood of generating the entity given the specific source text.

If an entity is a non-factual error, the source text provides no evidence, resulting in minimal change between prior and posterior probabilities. Conversely, high confidence in an entity regardless of the source, or strong source support, suggests factuality.

The implementation utilizes:

  • Masked Language Models (MLMs): A pre-trained BART model for the prior and a Conditional MLM (CMLM) for the posterior.
  • K-Nearest Neighbors (KNN): A classifier using these probability features to categorize entities.
  • Reinforcement Learning (RL): ENTFA serves as a reward signal during training, penalizing non-factual entities and rewarding factual ones.

Datasets

Evaluation was conducted on several key benchmarks:

  • XSUM: A standard, highly abstractive news dataset.
  • XENT: A new dataset created by the authors, featuring 2,838 manually labeled entities from 800 BART-generated summaries.
  • MENT: An entity-level conversion of the dataset from Maynez et al. (2020).

Key Results and Insights

Analysis revealed that approximately 30% of entities generated by BART on XSUM are hallucinations, yet over half of these are factual. Models often learn these factual hallucinations from training data rather than just pre-training.

Superior Detection Performance

ENTFA significantly outperformed baseline models in identifying non-factual hallucinations. On the XENT dataset, it achieved an F1 score of 81.82, demonstrating its robustness in distinguishing between types of hallucinations.

Performance comparison of ENTFA against baseline methods on the XENT dataset.

Improving Summarization via RL

When integrated into a Reinforcement Learning framework, the ENTFA detector drove the "Factual Entity" rate from 82.8% to 92.5%. Importantly, the model maintained its abstractive capabilities (paraphrasing and condensing) without reverting to simple extractive copying.

Limitations

While effective, ENTFA is currently entity-centric, focusing on nouns like names or locations. It does not yet address factual errors in verbs or complex relational logic (e.g., "A is in B"). Future work aims to extend this logic to arbitrary text spans to capture full-sentence semantics and reduce dependence on the specific knowledge of the underlying MLM.

Summary updated

BibTeX
@inproceedings{cao2022hallucinated,
  author = {Meng Cao and Yue Dong and Jackie Chi Kit Cheung},
  title = {{Hallucinated but Factual! Inspecting the Factuality of Hallucinations in Abstractive Summarization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.236},
}
Figure