RED-PIM: Reducing Data Movement for Transformers using Processing-in-Memory
Not on the map. Why?
Abstract (arXiv)
Transformers are widely used across many domains, including natural language processing, computer vision, web search, and DNA sequence analysis. Given their broad applicability, improving the performance of transformer models is critical. However, the high volume of data movement between processing units and memory during attention operations significantly limits their efficiency. Processing-In-Memory (PIM) mitigates this issue by performing computations directly inside memory. While prior work has proposed PIM-based transformer implementations, they suffer from costly inter-bank communication, and struggle to scale due to the limited capacity of memory banks. As a result, attention-related data must be split across banks, diminishing the potential benefits of PIM. In this work, we propose RED-PIM, an algorithm-architecture co-design that reduces attention latency by minimizing inter-bank data movement from O(N^2) to O(N) and shrinking intermediate attention matrices from N x N to d x d. By reorganizing matrix operations, performing computations locally, and employing an optimized data transfer strategy, RED-PIM significantly reduces computation cost and interconnect traffic. Compared to baseline PIM implementation, RED-PIM achieves inference time reductions ranging from 16.05% to 99.99% (geometric mean of 66.42%), with the largest gains on longer sequences. On real-world datasets, RED-PIM improves performance by 99.60% for long documents and 13.44% for shorter ones, while maintaining or improving accuracy. These results demonstrate RED-PIM's effectiveness for scalable and efficient transformer inference.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 18 of its 50 references that are in the map. First posted on arXiv 23 Jul 2026.
Builds on
18 of 50 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2018Neural Network Acceptability Judgmentscited by 952
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 477
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
6 more
- 2019Multi-hop Reading Comprehension across Multiple Documents by Reasoning over Heterogeneous Graphscited by 53
- 2024NeuPIMs: NPU-PIM Heterogeneous Acceleration for Batched LLM Inferencingcited by 48
- 2020A Modern Primer on Processing in Memorycited by 30
- 2023X-Former: In-Memory Acceleration of Transformerscited by 25
- 2021DAMOV: A New Methodology and Benchmark Suite for Evaluating Data Movement Bottleneckscited by 10
- 2020NOM: Network-On-Memory for Inter-Bank Data Transfer in Highly-Banked Memoriescited by 5
Built on by
Not cited yet.