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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cambricon-C: Efficient 4-Bit Matrix Unit via Primitivization

Yuanbo Wen, Tianshi Chen, Yifan Hao, Yanwei Dai et al.
4 citations
Interconnection Networks and Systems
1.40
article

Cambricon-C: Efficient 4-Bit Matrix Unit via Primitivization

Yuanbo Wen, Tianshi Chen, Yifan Hao, Yanwei Dai, Zidong Du, Xiaqing Li, Xinkai Song, H H Chen, Rui Zhang, Xing Jun Hu, Qi Guo, Yi Chen, Yongwei Zhao, Mo Zou, Yang Liu
article en
4 citations

Abstract

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.

Cambricon (China), University of Science and Technology Chittagong (BD)
National Natural Science Foundation of China, National Key Research and Development Program of China
Openalex Percentile: Top 16%
Interconnection Networks and Systems
1.40
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.