arrow
返回

SADIMM: Accelerating Sparse Attention Using DIMM-Based Near-Memory Processing

delete2025-02-01
delete0
PRE
AI
H
Huize Li
D
Dan Chen *
T
Tulika Mitra
DOI:10.1109/TC.2024.3500362delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Self-attention mechanism is the performance bottleneck of Transformer based language models. In response, researchers have proposed sparse attention to expedite Transformer execution. However, sparse attention involves massive random access, rendering it as a memory-intensive kernel. Memory-based architectures, such as near-memory processing (NMP), demonstrate notable performance enhancements in memory-intensive applications. Nonetheless, existing NMP-based sparse attention accelerators face suboptimal performance due to hardware and software challenges. On the hardware front, current solutions employ homogeneous logic integration, struggling to support the diverse operations in sparse attention. On the software side, token-based dataflow is commonly adopted, leading to load imbalance after the pruning of weakly connected tokens. To address these challenges, this paper introduces SADIMM, a hardware-software co-designed NMP-based sparse attention accelerator. In hardware, we propose a heterogeneous integration approach to efficiently support various operations within the attention mechanism. This involves employing different logic units for different operations, thereby improving hardware efficiency. In software, we implement a dimension-based dataflow, dividing input sequences by model dimensions. This approach achieves load balancing after the pruning of weakly connected tokens. Compared to NVIDIA RTX A6000 GPU, the experimental results on BERT, BART, and GPT-2 models demonstrate that SADIMM achieves 48x, 35x, 37x speedups and 194x, 202x, 191x energy efficiency improvement, respectively.
Keyword:
Sparse matrices
Hardware
Memory management
Software
Parallel processing
Logic
Bandwidth
Transformers
Faces
DRAM chips
Near-memory processing
sparse attention accelerator
DRAM architecture
software-hardware co-design

期刊

IEEE Transactions on Computers 封面图
IEEE Transactions on Computers
IF:
3.8
论文数:
5.4K
被引数:
9.8K

机构

N
National University of Singapore
学者数:
7.6W
论文数: 6.5W
被引数: 11.4W
引用论文

引用论文

Aging Fly Cell Atlas Identifies Exhaustive Aging Features at Cellular Resolution
err
IF0
err2022-12-07
err0
errOAAI
errTzu-Chiao Lu; Maria Brbić; Ye-Jin Park; Tyler Jackson; Jiaye Chen; Sai Saroja Kolluru; Yanyan Qi; Nadja Sandra Katheder; Xiaoyu Tracy Cai; Seungjae Lee; Yen- Chung Chen; Niccole Auld; Chung-Yi Liang; Sophia H. Ding; Doug Welsch; Samuel D’Souza; Angela Oliveira Pisco; Robert C. Jones; Jure Leskovec; Eric C. Lai; Hugo J. Bellen; Liqun Luo; Heinrich Jasper; Stephen R. Quake; Hongjie Li
err分享
err收藏
Counseling for Health
err1985-01-01
err0
PREAI
errCarl E. Thoresen; Jean R. Eagleston
err分享
err收藏
Allomaternal interactions in the Bolivian squirrel monkey (Saimiri boliviensis boliviensis)
err2005-06-02
err0
PREAI
errLawrence Williams; Susan Gibson; Margaret McDaniel; Judson Bazzel; Sue Barnes; Christian Abee
err分享
err收藏
学者 查看更多内容