FSMM: An Efficient Matrix Multiplication Accelerator Supporting Flexible Sparsity
Sparse matrix multiplication is a critical operation in deep learning. However, matrix sparsity leads to irregular data flow, which would degrade the efficiency of matrix multiplication. Traditional accelerators, equipped with additional hardware units to address this issue, often experience the issue of low hardware utilization. Furthermore, N : M structured sparsity and corresponding hardware architectures face challenges such as accuracy degradation, limited flexibility, and restricted applicability. In this paper, we propose a Flexible Sparse Matrix Multiplication Accelerator (FSMM), which can improve the efficiency of sparse matrix multiplication through both algorithmic-level and hardware-level optimizations. At the algorithmic level, we propose the matrix-matrix multiplication with block-level outer production and fine-grained matrix reordering algorithm. The algorithm balances the sparsity of each column of a matrix block, which improves matrix compression, balances the load, and speeds up computation. This algorithm reduces storage by 8.2% ~ 85.9%. At the hardware-level, we introduce a flexible architecture for matrix multiplication. It selects the most suitable data path to complete matrix multiplication based on the sparsity of the reordered matrix. FSMM achieves a speedup of 1.90× ~ 16.18× over Systolic Array and 1.70× ~ 2.87× over the existing TSTC approach.
Authors
- Yuxuan Qiao (ORCID: https://orcid.org/0009-0009-0817-261X)
- Xiankui Xiong (ORCID: https://orcid.org/0009-0009-5194-6174)
- Fan Yang (ORCID: https://orcid.org/0000-0003-2164-8175)
- Haidong Yao (ORCID: https://orcid.org/0009-0000-6911-9796)
- Y C Zhang (ORCID: https://orcid.org/0009-0006-5197-1386)
- Xiao Yao
Institutions
- Fudan University (CN)
- ZTE (China) (CN)
- State Key Laboratory of Mobile Networks and Mobile Multimedia Technology
Publication Details
- Published
- 2024-10-27
- DOI
- https://doi.org/10.1145/3676536.3676663
- Primary Topic
- Low-power high-performance VLSI design
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China