Saliency Maps Generation for Automatic Text Summarization

David Tuckey, Krysia Broda, Alessandra RussoarXiv 2019

Introduction

Explainable AI (XAI) has increasingly relied on saliency maps to provide post-hoc interpretations of model behavior. While these heatmaps are well-studied in classification tasks, their application to generative sequences—specifically abstractive text summarization—remains under-explored. This paper investigates whether saliency maps generated via Layer-Wise Relevance Propagation (LRP) truly reflect the internal logic of sequence-to-sequence (seq2seq) models or merely offer a plausible narrative to human observers. The authors argue that without rigorous quantitative validation, these visual explanations cannot be trusted as grounded representations of a model's decision-making process.

Methodology

The researchers utilized a standard deep learning architecture for summarization: a sequence-to-sequence (seq2seq) model with attention. This consists of a bidirectional LSTM encoder and a single LSTM decoder. To generate the saliency maps, they adapted Layer-Wise Relevance Propagation (LRP), a technique originally designed for image classifiers.

Adapting LRP for LSTMs and Attention

LRP works by taking the model's output and "redistributing" its value backward through the layers until it reaches the input tokens. The authors addressed two major architectural hurdles:

  1. LSTM Gates: They treated the LSTM's gates as filters, passing relevance only through the information vectors rather than the gates themselves to avoid diluting the signal.
  2. Attention Mechanism: They propagated relevance through the Bahdanau attention mechanism, which involves complex element-wise multiplications between the decoder state and encoder outputs.

Experimental Setup

The model was trained and evaluated on the CNN/Daily Mail dataset, a benchmark for text summarization containing approximately 300,000 news articles paired with multi-sentence summaries. The authors used 287,000 pairs for training and 11,500 for testing, truncating inputs to 400 words to maintain computational efficiency during the relevance propagation phase.

Key Insights and Discussion

The Disconnect Between Saliency and Attention

Surprisingly, the saliency maps generated by LRP were almost entirely uncorrelated with the model's attention distribution. While attention shifts drastically from word to word during generation, the LRP saliency maps remained nearly identical for every word in a generated summary. This suggests a "bottleneck effect" where most information is transmitted through the encoder-decoder hidden states rather than just the attention mechanism. Consequently, looking at attention alone—a common practice in XAI—provides a misleading explanation of the model's focus.

Truthfulness vs. Plausibility

A saliency map might highlight words that "make sense" to a human (e.g., the main subject of a story), but that doesn't mean the model actually used those words to generate the summary. The authors distinguish between "attribution" (mathematical mapping) and "explanation" (human understanding). A map may be plausible to a user while being unfaithful to the model's actual computation.

Validation via Counterfactual Testing

To test if these maps were "truthful," the researchers performed a counterfactual deletion test. They deleted the top 7% "most important" words according to LRP and observed the impact on the model's output. In some cases, the model's performance collapsed, and it began repeating <UNK> (unknown) tokens, proving the map had correctly identified critical inputs. However, in other instances, deleting the "important" words had little effect on the summary quality. This inconsistency proves that saliency maps cannot be trusted blindly; they are only intermittently truthful to the model's inner workings.

Conclusion

The paper concludes with a warning: in the quest for explainability, verifying the saliency map is just as important as generating it. Future work includes applying LRP to more advanced architectures like pointer-generator networks and developing more robust mathematical justifications for how relevance scores are averaged across long sequences. Ultimately, the field requires better protocols for counterfactual testing in NLP to ensure that XAI tools provide genuine insight rather than just visual comfort.

Summary updated

BibTeX
@misc{tuckey2019saliency,
  author = {David Tuckey and Krysia Broda and Alessandra Russo},
  title = {{Saliency Maps Generation for Automatic Text Summarization}},
  year = {2019},
  eprint = {1907.05664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.05664},
}
Figure