mlsanityData to 7 Oct 2026

Accelerating Attention through Gradient-Based Learned Runtime Pruning

arXiv 2204.03227 ↗First posted 7 Apr 2022cs.CL cs.AR cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

Self-attention is a key enabler of state-of-art accuracy for various transformer-based Natural Language Processing models. This attention mechanism calculates a correlation score for each word with respect to the other words in a sentence. Commonly, only a small subset of words highly correlates with the word under attention, which is only determined at runtime. As such, a significant amount of computation is inconsequential due to low attention scores and can potentially be pruned. The main challenge is finding the threshold for the scores below which subsequent computation will be inconsequential. Although such a threshold is discrete, this paper formulates its search through a soft differentiable regularizer integrated into the loss function of the training. This formulation piggy backs on the back-propagation training to analytically co-optimize the threshold and the weights simultaneously, striking a formally optimal balance between accuracy and computation pruning. To best utilize this mathematical innovation, we devise a bit-serial architecture, dubbed LeOPArd, for transformer language models with bit-level early termination microarchitectural mechanism. We evaluate our design across 43 back-end tasks for MemN2N, BERT, ALBERT, GPT-2, and Vision transformer models. Post-layout results show that, on average, LeOPArd yields 1.9x and 3.9x speedup and energy reduction, respectively, while keeping the average accuracy virtually intact (<0.2% degradation)

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 52 of its 112 references that are in the map. First posted on arXiv 7 Apr 2022.

Builds on

52 of 112 references.

References · 52

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  7. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  8. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  9. 2017Graph Attention Networkscited by 8,854
  10. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2016Wide Residual Networkscited by 3,057
38 more
  1. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  4. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  5. 2020Reformer: The Efficient Transformercited by 1,658
  6. 2020Rethinking Attention with Performerscited by 1,584
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  9. 2019Are Sixteen Heads Really Better than One?cited by 803
  10. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  11. 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
  12. 2019The State of Sparsity in Deep Neural Networkscited by 471
  13. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  14. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
  15. 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 291
  16. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
  17. 2019Structured Pruning of Large Language Modelscited by 201
  18. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
  19. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  20. 2019Adaptively Sparse Transformerscited by 154
  21. 2017SCNN: An Accelerator for Compressed-sparse Convolutional Neural Networkscited by 132
  22. 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 103
  23. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
  24. 2017Bit Fusion: Bit-Level Dynamically Composable Architecture for Accelerating Deep Neural Networkscited by 95
  25. 2016Training Sparse Neural Networkscited by 73
  26. 2020EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inferencecited by 69
  27. 2019Explicit Sparse Transformer: Concentrated Attention Through Explicit Selectioncited by 61
  28. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 52
  29. 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inferencecited by 40
  30. 2021An Evaluation of Edge TPU Accelerators for Convolutional Neural Networkscited by 39
  31. 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 38
  32. 2016Bit-pragmatic Deep Neural Network Computingcited by 30
  33. 2018Neural Cache: Bit-Serial In-Cache Acceleration of Deep Neural Networkscited by 29
  34. 2017Learning Intrinsic Sparse Structures within Long Short-Term Memorycited by 18
  35. 2020Learned Threshold Pruningcited by 16
  36. 2017Loom: Exploiting Weight and Activation Precisions to Accelerate Convolutional Neural Networkscited by 11
  37. 2019Mixed-Signal Charge-Domain Acceleration of Deep Neural networks through Interleaved Bit-Partitioned Arithmeticcited by 6
  38. 2019Thanks for Nothing: Predicting Zero-Valued Activations with Lightweight Convolutional Neural Networkscited by 6

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 2; 2025: 4.

8 papers.