mlsanityData to 14 Oct 2026

Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputation

arXiv 2209.00606 ↗First posted 1 Sep 2022cs.LG cs.ARcited by 12

Not on the map. Why?

Abstract (arXiv)

As its core computation, a self-attention mechanism gauges pairwise correlations across the entire input sequence. Despite favorable performance, calculating pairwise correlations is prohibitively costly. While recent work has shown the benefits of runtime pruning of elements with low attention scores, the quadratic complexity of self-attention mechanisms and their on-chip memory capacity demands are overlooked. This work addresses these constraints by architecting an accelerator, called SPRINT, which leverages the inherent parallelism of ReRAM crossbar arrays to compute attention scores in an approximate manner. Our design prunes the low attention scores using a lightweight analog thresholding circuitry within ReRAM, enabling SPRINT to fetch only a small subset of relevant data to on-chip memory. To mitigate potential negative repercussions for model accuracy, SPRINT re-computes the attention scores for the few fetched data in digital. The combined in-memory pruning and on-chip recompute of the relevant attention scores enables SPRINT to transform quadratic complexity to a merely linear one. In addition, we identify and leverage a dynamic spatial locality between the adjacent attention operations even after pruning, which eliminates costly yet redundant data fetches. We evaluate our proposed technique on a wide range of state-of-the-art transformer models. On average, SPRINT yields 7.5x speedup and 19.6x energy reduction when total 16KB on-chip memory is used, while virtually on par with iso-accuracy of the baseline models (on average 0.36% degradation).

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 51 of its 168 references that are in the map. First posted on arXiv 1 Sep 2022.

Builds on

51 of 168 references.

References · 51

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  7. 2020Longformer: The Long-Document Transformercited by 3,413
  8. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  9. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  10. 2020Reformer: The Efficient Transformercited by 1,668
  11. 2020Rethinking Attention with Performerscited by 1,601
  12. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
38 more
  1. 2019Are Sixteen Heads Really Better than One?cited by 816
  2. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  3. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  4. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
  5. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  6. 2018Generating Wikipedia by Summarizing Long Sequencescited by 335
  7. 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
  8. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 234
  9. 2019Structured Pruning of Large Language Modelscited by 203
  10. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
  11. 2019Blockwise Self-Attention for Long Document Understandingcited by 159
  12. 2019Adaptively Sparse Transformerscited by 155
  13. 2021Learned Token Pruning for Transformerscited by 139
  14. 2017SCNN: An Accelerator for Compressed-sparse Convolutional Neural Networkscited by 135
  15. 2017Bit Fusion: Bit-Level Dynamically Composable Architecture for Accelerating Deep Neural Networkscited by 109
  16. 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
  17. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 101
  18. 2020EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inferencecited by 70
  19. 2019Explicit Sparse Transformer: Concentrated Attention Through Explicit Selectioncited by 62
  20. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 54
  21. 2019TensorDIMM: A Practical Near-Memory Processing Architecture for Embeddings and Tensor Operations in Deep Learningcited by 43
  22. 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inferencecited by 40
  23. 2021An Evaluation of Edge TPU Accelerators for Convolutional Neural Networkscited by 39
  24. 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 39
  25. 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 38
  26. 2016Bit-pragmatic Deep Neural Network Computingcited by 32
  27. 2018Neural Cache: Bit-Serial In-Cache Acceleration of Deep Neural Networkscited by 32
  28. 2017GraphR: Accelerating Graph Processing Using ReRAMcited by 19
  29. 2017Learning Intrinsic Sparse Structures within Long Short-Term Memorycited by 18
  30. 2017Loom: Exploiting Weight and Activation Precisions to Accelerate Convolutional Neural Networkscited by 12
  31. 2020TIMELY: Pushing Data Movements and Interfaces in PIM Accelerators Towards Local and in Time Domaincited by 12
  32. 2021FORMS: Fine-grained Polarized ReRAM-based In-situ Computation for Mixed-signal DNN Acceleratorcited by 12
  33. 2021GradPIM: A Practical Processing-in-DRAM Architecture for Gradient Descentcited by 10
  34. 2019Mixed-Signal Charge-Domain Acceleration of Deep Neural networks through Interleaved Bit-Partitioned Arithmeticcited by 6
  35. 2019Thanks for Nothing: Predicting Zero-Valued Activations with Lightweight Convolutional Neural Networkscited by 6
  36. 2020FastWave: Accelerating Autoregressive Convolutional Neural Networks on FPGAcited by 4
  37. 2020Bit-Parallel Vector Composability for Neural Accelerationcited by 4
  38. 2021Edge AI without Compromise: Efficient, Versatile and Accurate Neurocomputing in Resistive Random-Access Memorycited by 3

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

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

12 papers.