Towards Floating Point-Based Attention-Free LLM: Hybrid PIM with Non-Uniform Data Format and Reduced Multiplications
Attention-free large language models (LLMs), such as Mamba and RWKV, have emerged as promising architectures to address the quadratic attention complexity of Transformer models. The inference bottleneck of these models lies in memory-bound matrix-vector multiplications (MVMs) and element-wise multiplications (EWMs). The emerging RRAM/SRAM-based Processing-In-Memory (PIM) architectures have shown great potential to overcome the memory wall problem. However, constrained by the supported data format and operator type, directly adopting PIM architectures for attention-free models faces three challenges: (1) RRAM-based analog PIM architectures perform integer (INT) MVMs using voltage, current, and conductance in the analog domain, limiting their application to the more accurate floating point (FP) data format; (2) SRAM-based digital PIM architectures require additional decoder circuits to support FP format, and the SRAM capacity cannot satisfy the storage requirement of LLMs; (3) When performing EWMs using PIM architectures, only one row/column or the diagonal memory cells are activated, resulting in severe device under-utilization.
Authors
- Shiyao Li (ORCID: https://orcid.org/0009-0007-4755-6881)
- Guohao Dai (ORCID: https://orcid.org/0000-0003-0849-3252)
- Huazhong Yang (ORCID: https://orcid.org/0000-0003-2421-353X)
- Wangyang Fu (ORCID: https://orcid.org/0000-0003-3185-0457)
- Tengxuan Liu (ORCID: https://orcid.org/0009-0007-8943-1577)
- Xuefei Ning (ORCID: https://orcid.org/0000-0003-2209-8312)
- Lidong Guo (ORCID: https://orcid.org/0000-0003-4162-6360)
- Yu Wang (ORCID: https://orcid.org/0000-0001-6108-5157)
- Zhenhua Zhu (ORCID: https://orcid.org/0009-0007-9259-7180)
Institutions
- Shanghai Jiao Tong University (CN)
- Tsinghua University (CN)
Publication Details
- Published
- 2024-10-27
- DOI
- https://doi.org/10.1145/3676536.3676776
- Citations
- 1
- Primary Topic
- Model Reduction and Neural Networks
- Type
- article
- Field-Weighted Citation Impact
- 0.28
Funders
- National Natural Science Foundation of China
- Beijing National Research Center For Information Science And Technology