Cambricon-C: Efficient 4-Bit Matrix Unit via Primitivization
Deep learning trends to use low precision numeral formats to cope with the ever-growing model sizes. For example, the large language model LLaMA2 has been widely deployed in 4-bit precision. With larger models and fewer unique values caused by low precision, an increasing proportion of arithmetic in matrix multiplication is repeating. Although discussed in prior works, such value redundancy has not been fully exploited, and the cost to leverage the value redundancy often offsets any advantages. In this paper, we propose to primitivize the matrix multiplication, that is decomposing it down to the 1-ary successor function (a.k.a. counting) to merge repeating arithmetic. We revisited various techniques to propose Cambricon-C SA, a 4-bit primitive matrix multiplication unit that doubles the energy efficiency over conventional systolic arrays. Experimental results show that Cambricon-C SA can achieve <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{1}.\mathbf{95}\times$</tex> energy efficiency improvement compared with MAC-based systolic array.
Authors
- Yuanbo Wen (ORCID: https://orcid.org/0000-0002-7775-2724)
- Tianshi Chen (ORCID: https://orcid.org/0009-0008-8379-2563)
- Yifan Hao (ORCID: https://orcid.org/0009-0002-9823-2573)
- Yanwei Dai (ORCID: https://orcid.org/0000-0002-2636-772X)
- Zidong Du (ORCID: https://orcid.org/0000-0002-7603-4210)
- Xiaqing Li (ORCID: https://orcid.org/0000-0002-7748-7967)
- Xinkai Song (ORCID: https://orcid.org/0000-0003-3458-1555)
- H H Chen
- Rui Zhang (ORCID: https://orcid.org/0000-0003-1836-1245)
- Xing Jun Hu (ORCID: https://orcid.org/0009-0007-4314-0520)
- Qi Guo (ORCID: https://orcid.org/0000-0003-2530-5874)
- Yi Chen (ORCID: https://orcid.org/0000-0002-5180-3490)
- Yongwei Zhao (ORCID: https://orcid.org/0000-0002-5503-4457)
- Mo Zou
- Yang Liu (ORCID: https://orcid.org/0000-0001-5586-623X)
Institutions
- Cambricon (China)
- University of Science and Technology Chittagong (BD)
Publication Details
- Published
- 2024-11-02
- DOI
- https://doi.org/10.1109/micro61859.2024.00047
- Citations
- 4
- Primary Topic
- Interconnection Networks and Systems
- Type
- article
- Field-Weighted Citation Impact
- 1.40
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China