Eigen Analysis of Self-Attention and its Reconstruction from Partial Computation
Not on the map. Why?
Abstract (arXiv)
State-of-the-art transformer models use pairwise dot-product based self-attention, which comes at a computational cost quadratic in the input sequence length. In this paper, we investigate the global structure of attention scores computed using this dot product mechanism on a typical distribution of inputs, and study the principal components of their variation. Through eigen analysis of full attention score matrices, as well as of their individual rows, we find that most of the variation among attention scores lie in a low-dimensional eigenspace. Moreover, we find significant overlap between these eigenspaces for different layers and even different transformer models. Based on this, we propose to compute scores only for a partial subset of token pairs, and use them to estimate scores for the remaining pairs. Beyond investigating the accuracy of reconstructing attention scores themselves, we investigate training transformer models that employ these approximations, and analyze the effect on overall accuracy. Our analysis and the proposed method provide insights into how to balance the benefits of exact pair-wise attention and its significant computational expense.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 22 of its 26 references that are in the map. First posted on arXiv 16 Jun 2021.
Builds on
22 of 26 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
10 more
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2019Star-Transformercited by 94
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 2; 2024: 2; 2025: 1.
6 papers.
- 2023Scalable Transformer for PDE Surrogate Modelingcited by 123
- 2024ThinK: Thinner Key Cache by Query-Driven Pruningcited by 66
- 2021Leveraging redundancy in attention with Reuse Transformerscited by 33
- 2023Attention Mixtures for Time-Aware Sequential Recommendationcited by 13
- 2024Improving Transformers with Dynamically Composable Multi-Head Attentioncited by 8
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restorationcited by 4
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restoration26 Mar 2025
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul 2024
- 2024Improving Transformers with Dynamically Composable Multi-Head Attention14 May 2024
- 2023Scalable Transformer for PDE Surrogate Modeling27 May 2023
- 2023Attention Mixtures for Time-Aware Sequential Recommendation17 Apr 2023
- 2021Leveraging redundancy in attention with Reuse Transformers13 Oct 2021