MARCA: Mamba Accelerator with Reconfigurable Architecture
State space model (SSM) especially Mamba has demonstrated remarkable capabilities in various domains. Compared to Transformers, Mamba reduces the quadratic computational complexity and achieves a higher algorithm accuracy (e.g., the accuracy of Mamba-2.8b is higher than OPT-6.7b). However, challenges still exist in accelerating Mamba computations. (1) Incompatibility between element-wise operations and Tensor Core. Linear operations (matrix multiplications) and element-wise operations are the two dominating operations in Mamba. The time proportion of element-wise operations escalates significantly (e.g., >60% with 2048 input length). These operations do not need reduction, which is not compatible with the existing Tensor Core-based architectures (e.g., 1/16 normalized speed). (2) Large area overhead for nonlinear function unit. The optimized nonlinear function unit like exponential unit still occupies >30% of the processing element (PE) area. (3) Large memory access but limited data sharing for element-wise operations. Linear and element-wise operations in Mamba exhibit large compute intensity variance (e.g., ~3 orders of magnitude) and large read/write ratio variance (e.g., >3 orders). Due to the limited data sharing in element-wise operations, it is useless to apply the existed methods like tiling to element-wise operations.
Authors
- Guohao Dai (ORCID: https://orcid.org/0000-0003-0849-3252)
- Ningyi Xu (ORCID: https://orcid.org/0009-0004-6809-7694)
- J Liu (ORCID: https://orcid.org/0009-0003-8280-9072)
- Jinhao Li (ORCID: https://orcid.org/0009-0009-4286-6359)
- Li Ding
- Shan Huang (ORCID: https://orcid.org/0009-0005-2012-8540)
- Jianrong Xu (ORCID: https://orcid.org/0009-0000-7000-6537)
Institutions
- Shanghai Jiao Tong University (CN)
Publication Details
- Published
- 2024-10-27
- DOI
- https://doi.org/10.1145/3676536.3676798
- Citations
- 11
- Primary Topic
- Particle Detector Development and Performance
- Type
- article
- Field-Weighted Citation Impact
- 7.26
Funders
- National Natural Science Foundation of China