SparseBERT: Rethinking the Importance Analysis in Self-attention
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018DARTS: Differentiable Architecture Searchcited by 1,782
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
21 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2018SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inferencecited by 333
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2018SNAS: Stochastic Neural Architecture Searchcited by 288
- 2018Scaling Neural Machine Translationcited by 204
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Star-Transformercited by 94
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
- 2019Transformers with convolutional context for ASRcited by 44
- 2018Multi-granularity hierarchical attention fusion networks for reading comprehension and question answeringcited by 28
- 2019SANVis: Visual Analytics for Understanding Self-Attention Networkscited by 21
- 2020GOLD-NAS: Gradual, One-Level, Differentiablecited by 15
Built on by
Citing papers per year: 2021: 7; 2022: 9; 2023: 7; 2024: 11; 2025: 7; 2026: 5.
46 papers.
Sort:
By area:
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2021A Practical Survey on Faster and Lighter Transformerscited by 73
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
- 2022Self-Guided Noise-Free Data Generation for Efficient Zero-Shot Learningcited by 49
- 2024ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Cachingcited by 48
- 2024Mixture of Attention Spans: Optimizing LLM Inference Efficiency with Heterogeneous Sliding-Window Lengthscited by 44
- 2023Model Agnostic Sample Reweighting for Out-of-Distribution Learningcited by 43
34 more
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
- 2023Probabilistic Bilevel Coreset Selectioncited by 26
- 2021AutoBERT-Zero: Evolving BERT Backbone from Scratchcited by 21
- 2021PSViT: Better Vision Transformer via Token Pooling and Attention Sharingcited by 21
- 2021Transformer Acceleration with Dynamic Sparse Attentioncited by 19
- 2022Localized Randomized Smoothing for Collective Robustness Certificationcited by 10
- 2023Robust Natural Language Understanding with Residual Attention Debiasingcited by 10
- 2022Adversarial Self-Attention for Language Understandingcited by 8
- 2022Treeformer: Dense Gradient Trees for Efficient Attention Computationcited by 8
- 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
- 2021Human Guided Exploitation of Interpretable Attention Patterns in Summarization and Topic Segmentationcited by 6
- 2025Efficient Pretraining Length Scalingcited by 5
- 2021Discourse-Aware Soft Prompting for Text Generationcited by 4
- 2022Attention Enables Zero Approximation Errorcited by 4
- 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Costcited by 4
- 2024Adaptive Patching for High-resolution Image Segmentation with Transformerscited by 4
- 2022What Dense Graph Do You Need for Self-Attention?cited by 3
- 2022Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attentioncited by 3
- 2023Ultra-Long Sequence Distributed Transformercited by 3
- 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
- 2024Probing self-attention in self-supervised speech models for cross-linguistic differencescited by 3
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollerscited by 3
- 2026Order Matters in Retrosynthesis: Structure-aware Generation via Reaction-Center-Guided Discrete Flow Matchingcited by 3
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?cited by 2
- 2025MoKA: Mixture of Kronecker Adapterscited by 2
- 2025Mitigating Attention Localization in Small Scale: Self-Attention Refinement via One-step Belief Propagationcited by 2
- 2026Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sinkcited by 2
- 2023Sampled Transformer for Point Setscited by 1
- 2024NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language Modelscited by 1
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanismscited by 1
- 2024Unveiling Vulnerability of Self-Attentioncited by 0
- 2026DnA: Denoising Attention for Visual Taskscited by 0
- 2026MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformerscited by 0
- 2026Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understandingcited by 0
- 2026Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understanding25 Sep 2026
- 2026MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformers29 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Order Matters in Retrosynthesis: Structure-aware Generation via Reaction-Center-Guided Discrete Flow Matching13 Feb 2026
- 2026Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sink11 Feb 2026
- 2025Mitigating Attention Localization in Small Scale: Self-Attention Refinement via One-step Belief Propagation9 Sep 2025
- 2025MoKA: Mixture of Kronecker Adapters5 Aug 2025
- 2025Efficient Pretraining Length Scaling21 Apr 2025
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanisms15 Mar 2025
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?13 Mar 2025
- 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attention5 Mar 2025
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference28 Feb 2025
34 more
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator16 Dec 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024Probing self-attention in self-supervised speech models for cross-linguistic differences4 Sep 2024
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention2 Jul 2024
- 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Heads27 Jun 2024
- 2024Mixture of Attention Spans: Optimizing LLM Inference Efficiency with Heterogeneous Sliding-Window Lengths21 Jun 2024
- 2024Adaptive Patching for High-resolution Image Segmentation with Transformers15 Apr 2024
- 2024ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Caching26 Mar 2024
- 2024NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language Models28 Feb 2024
- 2024Unveiling Vulnerability of Self-Attention26 Feb 2024
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuning2 Jan 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey21 Nov 2023
- 2023Ultra-Long Sequence Distributed Transformer4 Nov 2023
- 2023Robust Natural Language Understanding with Residual Attention Debiasing28 May 2023
- 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformers25 May 2023
- 2023Sampled Transformer for Point Sets28 Feb 2023
- 2023Probabilistic Bilevel Coreset Selection24 Jan 2023
- 2023Model Agnostic Sample Reweighting for Out-of-Distribution Learning24 Jan 2023
- 2022Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attention14 Nov 2022
- 2022Localized Randomized Smoothing for Collective Robustness Certification28 Oct 2022
- 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Cost27 Oct 2022
- 2022Treeformer: Dense Gradient Trees for Efficient Attention Computation18 Aug 2022
- 2022Adversarial Self-Attention for Language Understanding25 Jun 2022
- 2022What Dense Graph Do You Need for Self-Attention?27 May 2022
- 2022Self-Guided Noise-Free Data Generation for Efficient Zero-Shot Learning25 May 2022
- 2022Attention Enables Zero Approximation Error24 Feb 2022
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graph17 Feb 2022
- 2021Discourse-Aware Soft Prompting for Text Generation10 Dec 2021
- 2021Human Guided Exploitation of Interpretable Attention Patterns in Summarization and Topic Segmentation10 Dec 2021
- 2021Transformer Acceleration with Dynamic Sparse Attention21 Oct 2021
- 2021PSViT: Better Vision Transformer via Token Pooling and Attention Sharing7 Aug 2021
- 2021AutoBERT-Zero: Evolving BERT Backbone from Scratch15 Jul 2021
- 2021Few-Shot Segmentation via Cycle-Consistent Transformer4 Jun 2021
- 2021A Practical Survey on Faster and Lighter Transformers26 Mar 2021
- 2025Efficient Pretraining Length Scalingcited by 5
- 2025Efficient Pretraining Length Scaling21 Apr 2025
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2021A Practical Survey on Faster and Lighter Transformerscited by 73
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
- 2022Self-Guided Noise-Free Data Generation for Efficient Zero-Shot Learningcited by 49
- 2024ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Cachingcited by 48
- 2024Mixture of Attention Spans: Optimizing LLM Inference Efficiency with Heterogeneous Sliding-Window Lengthscited by 44
- 2023Model Agnostic Sample Reweighting for Out-of-Distribution Learningcited by 43
12 most cited of 43 All 43 (JSON)
- 2026Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understanding25 Sep 2026
- 2026MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformers29 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sink11 Feb 2026
- 2025Mitigating Attention Localization in Small Scale: Self-Attention Refinement via One-step Belief Propagation9 Sep 2025
- 2025MoKA: Mixture of Kronecker Adapters5 Aug 2025
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?13 Mar 2025
- 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attention5 Mar 2025
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference28 Feb 2025
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator16 Dec 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024Probing self-attention in self-supervised speech models for cross-linguistic differences4 Sep 2024
12 newest of 43 All 43 (JSON)