Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputation
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
38 more
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 335
- 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 234
- 2019Structured Pruning of Large Language Modelscited by 203
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
- 2019Blockwise Self-Attention for Long Document Understandingcited by 159
- 2019Adaptively Sparse Transformerscited by 155
- 2021Learned Token Pruning for Transformerscited by 139
- 2017SCNN: An Accelerator for Compressed-sparse Convolutional Neural Networkscited by 135
- 2017Bit Fusion: Bit-Level Dynamically Composable Architecture for Accelerating Deep Neural Networkscited by 109
- 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
- 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 101
- 2020EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inferencecited by 70
- 2019Explicit Sparse Transformer: Concentrated Attention Through Explicit Selectioncited by 62
- 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 54
- 2019TensorDIMM: A Practical Near-Memory Processing Architecture for Embeddings and Tensor Operations in Deep Learningcited by 43
- 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inferencecited by 40
- 2021An Evaluation of Edge TPU Accelerators for Convolutional Neural Networkscited by 39
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 39
- 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 38
- 2016Bit-pragmatic Deep Neural Network Computingcited by 32
- 2018Neural Cache: Bit-Serial In-Cache Acceleration of Deep Neural Networkscited by 32
- 2017GraphR: Accelerating Graph Processing Using ReRAMcited by 19
- 2017Learning Intrinsic Sparse Structures within Long Short-Term Memorycited by 18
- 2017Loom: Exploiting Weight and Activation Precisions to Accelerate Convolutional Neural Networkscited by 12
- 2020TIMELY: Pushing Data Movements and Interfaces in PIM Accelerators Towards Local and in Time Domaincited by 12
- 2021FORMS: Fine-grained Polarized ReRAM-based In-situ Computation for Mixed-signal DNN Acceleratorcited by 12
- 2021GradPIM: A Practical Processing-in-DRAM Architecture for Gradient Descentcited by 10
- 2019Mixed-Signal Charge-Domain Acceleration of Deep Neural networks through Interleaved Bit-Partitioned Arithmeticcited by 6
- 2019Thanks for Nothing: Predicting Zero-Valued Activations with Lightweight Convolutional Neural Networkscited by 6
- 2020FastWave: Accelerating Autoregressive Convolutional Neural Networks on FPGAcited by 4
- 2020Bit-Parallel Vector Composability for Neural Accelerationcited by 4
- 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
Citing papers per year: 2023: 1; 2024: 5; 2025: 4; 2026: 2.
12 papers.
- 2024Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantizationcited by 28
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 23
- 2025PIM Is All You Need: A CXL-Enabled GPU-Free System for Large Language Model Inferencecited by 22
- 2023Scaling Down to Scale Up: A Cost-Benefit Analysis of Replacing OpenAI's LLM with Open Source SLMs in Productioncited by 21
- 2025PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing Systemcited by 20
- 2024ConSmax: Hardware-Friendly Alternative Softmax with Learnable Parameterscited by 14
- 2025MCBP: A Memory-Compute Efficient LLM Inference Accelerator Leveraging Bit-Slice-enabled Sparsity and Repetitivenesscited by 4
- 2025UniCAIM: A Unified CAM/CIM Architecture with Static-Dynamic KV Cache Pruning for Efficient Long-Context LLM Inferencecited by 2
- 2024An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computingcited by 1
- 2024Kernel Approximation using Analog In-Memory Computingcited by 0
- 2026DARTH-PUM: A Hybrid Processing-Using-Memory Architecturecited by 0
- 2026D-NOVA: In-Storage Retrieval Accelerator via Dual-Bound 3D NAND-Optimized Similarity Search with Vector Adaptationcited by 0
- 2026D-NOVA: In-Storage Retrieval Accelerator via Dual-Bound 3D NAND-Optimized Similarity Search with Vector Adaptation20 Jul 2026
- 2026DARTH-PUM: A Hybrid Processing-Using-Memory Architecture17 Feb 2026
- 2025MCBP: A Memory-Compute Efficient LLM Inference Accelerator Leveraging Bit-Slice-enabled Sparsity and Repetitiveness12 Sep 2025
- 2025UniCAIM: A Unified CAM/CIM Architecture with Static-Dynamic KV Cache Pruning for Efficient Long-Context LLM Inference10 Apr 2025
- 2025PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System21 Feb 2025
- 2025PIM Is All You Need: A CXL-Enabled GPU-Free System for Large Language Model Inference11 Feb 2025
- 2024Kernel Approximation using Analog In-Memory Computing5 Nov 2024
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Models8 Oct 2024
- 2024An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing8 Sep 2024
- 2024Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization16 Jun 2024
- 2024ConSmax: Hardware-Friendly Alternative Softmax with Learnable Parameters31 Jan 2024
- 2023Scaling Down to Scale Up: A Cost-Benefit Analysis of Replacing OpenAI's LLM with Open Source SLMs in Production20 Dec 2023