Skip to main content
QUICK REVIEW

[Paper Review] Understanding Multi-Head Attention in Abstractive Summarization

Joris Baan, Maartje ter Hoeve|arXiv (Cornell University)|Nov 10, 2019
Topic ModelingComputer Science37 references9 citations
TL;DR

This paper investigates the interpretability of multi-head attention in abstractive summarization models, introducing metrics to analyze head specialization and evaluating sparsity (via sparsemax) and pruning. It finds that while attention heads specialize in relative positions, named entities, and syntax, they are largely redundant; sparsemax improves interpretability metrics but enables more pruning, raising questions about whether enforced sparsity truly enhances transparency.

ABSTRACT

Attention mechanisms in deep learning architectures have often been used as a means of transparency and, as such, to shed light on the inner workings of the architectures. Recently, there has been a growing interest in whether or not this assumption is correct. In this paper we investigate the interpretability of multi-head attention in abstractive summarization, a sequence-to-sequence task for which attention does not have an intuitive alignment role, such as in machine translation. We first introduce three metrics to gain insight in the focus of attention heads and observe that these heads specialize towards relative positions, specific part-of-speech tags, and named entities. However, we also find that ablating and pruning these heads does not lead to a significant drop in performance, indicating redundancy. By replacing the softmax activation functions with sparsemax activation functions, we find that attention heads behave seemingly more transparent: we can ablate fewer heads and heads score higher on our interpretability metrics. However, if we apply pruning to the sparsemax model we find that we can prune even more heads, raising the question whether enforced sparsity actually improves transparency. Finally, we find that relative positions heads seem integral to summarization performance and persistently remain after pruning.

Motivation & Objective

  • To evaluate whether multi-head attention in abstractive summarization can serve as a reliable interpretability mechanism.
  • To identify what specific linguistic and structural patterns attention heads specialize in during summarization.
  • To assess whether enforcing sparsity via sparsemax improves interpretability and faithfulness of attention heads.
  • To investigate the impact of pruning on attention head performance and interpretability in both softmax and sparsemax models.
  • To determine whether attention heads are truly necessary or redundant for model performance, challenging assumptions about their transparency.

Proposed method

  • Proposes three new interpretability metrics: POS-KL (syntax specialization), NE-Ratio (semantic focus on named entities), and relative position attention scoring.
  • Applies ablation and pruning to evaluate the performance impact of removing individual attention heads in transformer models.
  • Replaces standard softmax activation with sparsemax to enforce sparser attention distributions and improve interpretability.
  • Trains and evaluates a sparsemax-based transformer (Sparse-TL) and compares it to a baseline softmax model across ROUGE metrics.
  • Uses quantitative metrics to assess head specialization and performance stability after pruning and ablation.
  • Analyzes head behavior across encoder and decoder layers, focusing on persistence of specialized heads after pruning.

Experimental results

Research questions

  • RQ1To what extent do individual multi-head attention heads in abstractive summarization models specialize in specific linguistic patterns such as syntax, named entities, or relative positions?
  • RQ2How does replacing softmax with sparsemax activation affect the interpretability and faithfulness of attention heads?
  • RQ3Does pruning attention heads lead to significant performance degradation, and if not, what does this imply about attention head redundancy?
  • RQ4Which types of attention heads (e.g., relative position, syntactic, semantic) are most critical for summarization performance after pruning?
  • RQ5Does enforced sparsity through sparsemax truly improve transparency, or does it merely enable more aggressive pruning without increasing reliability?

Key findings

  • Attention heads in abstractive summarization specialize in relative positions, specific part-of-speech tags, and named entities, as measured by the proposed interpretability metrics.
  • Ablating individual heads causes no significant performance drop, indicating high redundancy among attention heads in the model.
  • Replacing softmax with sparsemax improves interpretability metrics and reduces the number of heads that can be ablated without performance loss.
  • Despite improved interpretability, the sparsemax model allows pruning of 43 out of 64 heads—more than the baseline—suggesting that enforced sparsity may not enhance transparency.
  • Relative position heads persist after pruning in both models and are consistently critical to performance, indicating their integral role in summarization.
  • The syntactic head that survives pruning primarily focuses on the word 'the', suggesting that some surviving heads may not represent meaningful summarization patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.