Breaking BERT: Evaluating and Optimizing Sparsified Attention
Not on the map. Why?
Abstract (arXiv)
Transformers allow attention between all pairs of tokens, but there is reason to believe that most of these connections - and their quadratic time and memory - may not be necessary. But which ones? We evaluate the impact of sparsification patterns with a series of ablation experiments. First, we compare masks based on syntax, lexical similarity, and token position to random connections, and measure which patterns reduce performance the least. We find that on three common finetuning tasks even using attention that is at least 78% sparse can have little effect on performance if applied at later transformer layers, but that applying sparsity throughout the network reduces performance significantly. Second, we vary the degree of sparsity for three patterns supported by previous work, and find that connections to neighbouring tokens are the most significant. Finally, we treat sparsity as an optimizable parameter, and present an algorithm to learn degrees of neighboring connections that gives a fine-grained control over the accuracy-sparsity trade-off while approaching the performance of existing methods.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 40 references that are in the map. First posted on arXiv 7 Oct 2022.
Builds on
27 of 40 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 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
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
15 more
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
- 2020Universal Dependencies v2: An Evergrowing Multilingual Treebank Collectioncited by 269
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
- 2016Long Short-Term Memory-Networks for Machine Readingcited by 161
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Adaptively Sparse Transformerscited by 154
- 2019Adaptive Attention Span in Transformerscited by 148
- 2017Encoding Sentences with Graph Convolutional Networks for Semantic Role Labelingcited by 137
- 2019Star-Transformercited by 94
- 2017Graph Convolutional Encoders for Syntax-aware Neural Machine Translationcited by 70
- 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
- 2021Is Sparse Attention more Interpretable?cited by 31
- 2020Influence Patterns for Explaining Information Flow in BERTcited by 14
- 2015Top-down Tree Long Short-Term Memory Networkscited by 12
Built on by
Not cited yet.