Introduction
Transformer-based models have set new benchmarks in Natural Language Processing, yet their computational demands remain a significant hurdle for real-world deployment. While extensive research has addressed the quadratic scaling of self-attention in encoders, the encoder-decoder attention mechanism in the decoder remains a critical bottleneck during inference. In summarization tasks, the decoder must attend to the entire source document for every generated token. This paper investigates the inherent sparsity in these attention patterns and proposes a structured approach to exploit it, significantly reducing complexity without compromising quality.
The Inference Bottleneck
The relative cost of the decoder is nearly an order of magnitude higher during inference than during training. This disparity arises because training is parallelized across the target sequence, whereas inference is inherently sequential, requiring token-by-token generation. For long-document summarization, such as scientific papers or podcast transcripts, the $O(MN)$ complexity (where $M$ is summary length and $N$ is input length) becomes prohibitive.
Exploiting Sentence-Level Sparsity
A key observation driving this research is that human-written summary segments typically relate to only a few specific sentences in the source text. Initial analysis of standard BART models confirms this intuition: a vast majority of attention weight is concentrated in a small subset of sentences. On the CNN/DailyMail dataset, attending to only the top 5 "ideal" sentences results in negligible loss in ROUGE scores. This suggests that the "tail" of the attention distribution contains minimal useful information.
Proposed Architecture: Neural Sentence Selection
To operationalize this sparsity at inference time, the authors introduce a two-component neural approximator integrated into the Transformer architecture:
- Sentence Encoder: A bi-directional GRU that generates a fixed-size representation for each sentence in the source document.
- Sentence-Level Attention: A module that predicts the saliency of each sentence for the current decoding step, selecting the top $r$ sentences to attend to.
The system is trained using a KL-divergence loss, encouraging the approximator to match the attention distribution of a full-attention "teacher" model. A scheduled sampling approach helps the model transition from using ideal sentence indices to its own predictions during training.
Experimental Results
The model was evaluated on CNN/DailyMail, XSum, Spotify Podcasts, and arXiv datasets. Results demonstrate that the model effectively retains performance while attending to a fraction of the source text.
On the CNN/DailyMail dataset, the proposed model with $r=5$ sentences achieved a ROUGE-1 score of 43.72, remarkably close to the full-attention baseline of 44.03. Interestingly, more abstractive tasks like XSum require a higher $r$ to reach baseline performance, indicating that abstractive summaries synthesize information from more disparate parts of the source text than extractive-leaning summaries.
Conclusion
By shifting the attention complexity from $O(MN)$ to $O(MrN_2)$—where $r$ is a small constant and $N_2$ is the average sentence length—this approach offers a scalable solution for long-form summarization. While the additional modules introduce some overhead, the overall efficiency gains during the decoding phase are substantial, particularly for long-document tasks like arXiv and Spotify Podcasts.
Summary updated