mlsanityData to 7 Oct 2026

Eigen Analysis of Self-Attention and its Reconstruction from Partial Computation

arXiv 2106.08823 ↗First posted 16 Jun 2021cs.LGcited by 6

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  7. 2020Reformer: The Efficient Transformercited by 1,658
  8. 2020Rethinking Attention with Performerscited by 1,584
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  10. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  11. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  12. 2020A Primer in BERTology: What we know about how BERT workscited by 807
10 more
  1. 2019Are Sixteen Heads Really Better than One?cited by 803
  2. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  3. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  4. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  5. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
  6. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  7. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  8. 2019Star-Transformercited by 94
  9. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  10. 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 0; 2023: 2; 2024: 2; 2025: 1.

6 papers.