mlsanityData to 7 Oct 2026

Breaking BERT: Evaluating and Optimizing Sparsified Attention

arXiv 2210.03841 ↗First posted 7 Oct 2022cs.CLcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  4. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  5. 2020Reformer: The Efficient Transformercited by 1,658
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  7. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  9. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  10. 2019Are Sixteen Heads Really Better than One?cited by 803
  11. 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
  12. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
15 more
  1. 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
  2. 2020Universal Dependencies v2: An Evergrowing Multilingual Treebank Collectioncited by 269
  3. 2019Visualizing and Measuring the Geometry of BERTcited by 215
  4. 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
  5. 2016Long Short-Term Memory-Networks for Machine Readingcited by 161
  6. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  7. 2019Adaptively Sparse Transformerscited by 154
  8. 2019Adaptive Attention Span in Transformerscited by 148
  9. 2017Encoding Sentences with Graph Convolutional Networks for Semantic Role Labelingcited by 137
  10. 2019Star-Transformercited by 94
  11. 2017Graph Convolutional Encoders for Syntax-aware Neural Machine Translationcited by 70
  12. 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
  13. 2021Is Sparse Attention more Interpretable?cited by 31
  14. 2020Influence Patterns for Explaining Information Flow in BERTcited by 14
  15. 2015Top-down Tree Long Short-Term Memory Networkscited by 12

Built on by

Not cited yet.