Mix-GEMM: Extending RISC-V CPUs for Energy-Efficient Mixed-Precision DNN Inference Using Binary Segmentation
Efficiently computing Deep Neural Networks (DNNs) has become a primary challenge in today's computers, especially on devices targeting mobile or edge applications. Recent progress on Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT) has shown that the key to high energy efficiency lies in executing deep learning models with low- (8- to 5-bit) or ultra-low-precision (4- to 2-bit). Unfortunately, current Central Processing Unit (CPU) architectures and Instruction Set Architectures (ISAs) present severe limitations on the range of data sizes supported to compute DNN kernels. In this work, we present <i>Mix-GEMM</i>, a hardware-software co-designed architecture that enables RISC-V processors to efficiently compute arbitrary mixed-precision DNN kernels, supporting all data size combinations from 8- to 2-bit. By applying <i>binary segmentation</i>, our architecture can scale its throughput by decreasing the data size of the operands, resulting in a flexible approach capable of leveraging state-of-the-art QAT and PTQ to achieve high energy efficiency at a very low cost. Evaluating our <i>Mix-GEMM</i> architecture in a dual-issue in-order RISC-V processor shows that we are able to boost its performance and energy efficiency by up to <inline-formula><tex-math notation="LaTeX">$44\times$</tex-math></inline-formula> and <inline-formula><tex-math notation="LaTeX">$11\times$</tex-math></inline-formula> with respect to the baseline processor, with an area overhead of only 2%. This allows our extended processor to execute state-of-the-art DNNs with significantly higher performance and energy efficiency than the standard FP32 precision, while retaining almost the same model accuracy.
Authors
- Pau Fontova-Musté (ORCID: https://orcid.org/0000-0003-1839-416X)
- Jaume Abella (ORCID: https://orcid.org/0000-0001-7951-4028)
- Francesc Moll (ORCID: https://orcid.org/0000-0002-1290-3253)
- Josep Altet (ORCID: https://orcid.org/0000-0002-6939-6475)
- Enrico Reggiani (ORCID: https://orcid.org/0000-0003-1385-7962)
- Narcís Rodas
- Osman Ünsal (ORCID: https://orcid.org/0000-0002-0544-9697)
- Alessandro Pappalardo (ORCID: https://orcid.org/0000-0001-9386-5510)
- Jordi Fornt (ORCID: https://orcid.org/0000-0002-2484-9688)
- Adrián Cristal (ORCID: https://orcid.org/0000-0003-1277-9296)
Institutions
- Advanced Micro Devices (Canada) (CA)
- Barcelona Supercomputing Center (ES)
- Advanced Micro Devices (United States) (US)
- Universitat Politècnica de Catalunya (ES)
Publication Details
- Journal
- IEEE Transactions on Computers
- Published
- 2024-11-21
- DOI
- https://doi.org/10.1109/tc.2024.3500369
- Citations
- 3
- Primary Topic
- Geophysical Methods and Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.01