Counterfactual Debiasing for Generating Factually Consistent Text Summaries

Chenhe Dong, Yuexiang Xie, Yaliang Li, Ying ShenarXiv 2023 · DOI

Introduction

Abstractive summarization has seen significant progress with the advent of large-scale pre-trained language models like PEGASUS and BART. While these models produce highly fluent and human-like summaries, they frequently suffer from "hallucinations"—generating content that is factually inconsistent with the source document. This lack of reliability hinders the deployment of summarization systems in critical domains.

The authors identify two primary drivers of these factual errors:

  1. Language Prior Bias: Models often rely on linguistic patterns learned during pre-training rather than the specific context of the input document.
  2. Irrelevancy Bias: Models may mistakenly incorporate "noise" or irrelevant entities from long source documents into the summary, leading to "cross-wired" facts.

Methodology: A Causal Inference Approach

To address these biases, the researchers propose COFACTSUM, a framework grounded in causal inference. By modeling the summarization process as a causal graph, they can isolate the influence of different variables on the generated output.

Causal graphs representing the summarization process (a) and the counterfactual intervention (b) used to isolate bias.

The framework introduces three core components:

Explicit Counterfactual Masking (ECM)

During inference, the model performs a "what-if" analysis. It masks out the most important tokens in the source document (identified via attention scores) and observes the resulting prediction. This "counterfactual" prediction represents the model's inherent bias. By subtracting this biased prediction from the original one, the model can generate a summary more grounded in the actual facts of the document.

Implicit Counterfactual Training (ICT)

During the training phase, ICT employs an "unlikelihood loss." This penalizes the model when it relies too heavily on specific "important" tokens without proper contextual grounding, effectively teaching the model to distinguish between genuine causal relationships and mere correlations.

Debiasing Degree Adjustment (DDA)

Bias is not uniform throughout a summary. A model might be highly biased when starting a sentence but more objective as it continues. DDA uses a pre-trained factual consistency predictor to dynamically adjust the strength of the debiasing at each generation step, ensuring that corrections are applied only where necessary.

Experimental Evaluation

The framework was evaluated on two benchmark datasets:

  • CNN/DailyMail (CNN/DM): Characterized by more extractive summaries.
  • XSum (Extreme Summarization): Known for highly abstractive, one-sentence summaries that are particularly prone to factual errors.

Key Results

COFACTSUM demonstrates superior performance in factual consistency across multiple metrics, including QAFactEval and FactCC.

Performance comparison of COFACTSUM against state-of-the-art baselines on CNN/DM and XSum datasets.

On the challenging XSum dataset, COFACTSUM achieved a significant improvement over the PEGASUS baseline. For instance, it reached a QAFactEval score of 43.15, outperforming several recent debiasing methods. Human evaluations further confirmed these findings; on CNN/DM, COFACTSUM summaries were rarely judged as worse than the baseline, with a "lose" rate of only 2.00%.

Discussion and Insights

A critical insight from this work is the trade-off between traditional overlap metrics (like ROUGE) and factual consistency. Models that prioritize truthfulness may sometimes score lower on ROUGE because they avoid "fluent" but incorrect phrases. This highlights the need for evaluation metrics that prioritize semantic accuracy over word-for-word matching.

Furthermore, the success of the DDA mechanism underscores that bias is a dynamic phenomenon. By adjusting the debiasing intensity word-by-word, COFACTSUM maintains a balance between being informative and being accurate.

Limitations and Future Work

While effective, COFACTSUM introduces some computational overhead due to the multiple passes required for counterfactual estimation and the use of an external consistency predictor. Additionally, the reliance on attention scores as a proxy for token importance is a known limitation, as attention does not always perfectly align with semantic significance. Future research could explore more efficient ways to implement counterfactual reasoning and apply these techniques to other generative tasks like dialogue systems.

Summary updated

BibTeX
@misc{dong2023counterfactual,
  author = {Chenhe Dong and Yuexiang Xie and Yaliang Li and Ying Shen},
  title = {{Counterfactual Debiasing for Generating Factually Consistent Text Summaries}},
  year = {2023},
  eprint = {2305.10736},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.10736},
}
Figure