mlsanityData to 7 Oct 2026

SparseBERT: Rethinking the Importance Analysis in Self-attention

arXiv 2102.12871 ↗First posted 25 Feb 2021cs.LGcited by 46

Not on the map. Why?

Abstract (arXiv)

Transformer-based models are popularly used in natural language processing (NLP). Its core component, self-attention, has aroused widespread interest. To understand the self-attention mechanism, a direct method is to visualize the attention map of a pre-trained model. Based on the patterns observed, a series of efficient Transformers with different sparse attention masks have been proposed. From a theoretical perspective, universal approximability of Transformer-based models is also recently proved. However, the above understanding and analysis of self-attention is based on a pre-trained model. To rethink the importance analysis in self-attention, we study the significance of different positions in attention matrix during pre-training. A surprising result is that diagonal elements in the attention map are the least important compared with other attention positions. We provide a proof showing that these diagonal elements can indeed be removed without deteriorating model performance. Furthermore, we propose a Differentiable Attention Mask (DAM) algorithm, which further guides the design of the SparseBERT. Extensive experiments verify our interesting findings and illustrate the effect of the proposed algorithm.

Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Builds on 33 of its 41 references that are in the map. First posted on arXiv 25 Feb 2021.

Builds on

33 of 41 references.

References · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2020End-to-End Object Detection with Transformerscited by 7,384
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  10. 2018DARTS: Differentiable Architecture Searchcited by 1,782
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  12. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
21 more
  1. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  2. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  3. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
  4. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  5. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  6. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  7. 2018Neural Network Acceptability Judgmentscited by 952
  8. 2019Are Sixteen Heads Really Better than One?cited by 803
  9. 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
  10. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  11. 2018SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inferencecited by 333
  12. 2019Revealing the Dark Secrets of BERTcited by 300
  13. 2018SNAS: Stochastic Neural Architecture Searchcited by 288
  14. 2018Scaling Neural Machine Translationcited by 204
  15. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  16. 2019Star-Transformercited by 94
  17. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  18. 2019Transformers with convolutional context for ASRcited by 44
  19. 2018Multi-granularity hierarchical attention fusion networks for reading comprehension and question answeringcited by 28
  20. 2019SANVis: Visual Analytics for Understanding Self-Attention Networkscited by 21
  21. 2020GOLD-NAS: Gradual, One-Level, Differentiablecited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 7; 2022: 9; 2023: 7; 2024: 11; 2025: 7; 2026: 5.

46 papers.

Sort:

By area:

  1. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  2. 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
  3. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  4. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  5. 2021A Practical Survey on Faster and Lighter Transformerscited by 73
  6. 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
  7. 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
  8. 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
  9. 2022Self-Guided Noise-Free Data Generation for Efficient Zero-Shot Learningcited by 49
  10. 2024ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Cachingcited by 48
  11. 2024Mixture of Attention Spans: Optimizing LLM Inference Efficiency with Heterogeneous Sliding-Window Lengthscited by 44
  12. 2023Model Agnostic Sample Reweighting for Out-of-Distribution Learningcited by 43
34 more
  1. 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
  2. 2023Probabilistic Bilevel Coreset Selectioncited by 26
  3. 2021AutoBERT-Zero: Evolving BERT Backbone from Scratchcited by 21
  4. 2021PSViT: Better Vision Transformer via Token Pooling and Attention Sharingcited by 21
  5. 2021Transformer Acceleration with Dynamic Sparse Attentioncited by 19
  6. 2022Localized Randomized Smoothing for Collective Robustness Certificationcited by 10
  7. 2023Robust Natural Language Understanding with Residual Attention Debiasingcited by 10
  8. 2022Adversarial Self-Attention for Language Understandingcited by 8
  9. 2022Treeformer: Dense Gradient Trees for Efficient Attention Computationcited by 8
  10. 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
  11. 2021Human Guided Exploitation of Interpretable Attention Patterns in Summarization and Topic Segmentationcited by 6
  12. 2025Efficient Pretraining Length Scalingcited by 5
  13. 2021Discourse-Aware Soft Prompting for Text Generationcited by 4
  14. 2022Attention Enables Zero Approximation Errorcited by 4
  15. 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Costcited by 4
  16. 2024Adaptive Patching for High-resolution Image Segmentation with Transformerscited by 4
  17. 2022What Dense Graph Do You Need for Self-Attention?cited by 3
  18. 2022Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attentioncited by 3
  19. 2023Ultra-Long Sequence Distributed Transformercited by 3
  20. 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
  21. 2024Probing self-attention in self-supervised speech models for cross-linguistic differencescited by 3
  22. 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollerscited by 3
  23. 2026Order Matters in Retrosynthesis: Structure-aware Generation via Reaction-Center-Guided Discrete Flow Matchingcited by 3
  24. 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?cited by 2
  25. 2025MoKA: Mixture of Kronecker Adapterscited by 2
  26. 2025Mitigating Attention Localization in Small Scale: Self-Attention Refinement via One-step Belief Propagationcited by 2
  27. 2026Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sinkcited by 2
  28. 2023Sampled Transformer for Point Setscited by 1
  29. 2024NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language Modelscited by 1
  30. 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanismscited by 1
  31. 2024Unveiling Vulnerability of Self-Attentioncited by 0
  32. 2026DnA: Denoising Attention for Visual Taskscited by 0
  33. 2026MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformerscited by 0
  34. 2026Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understandingcited by 0