Empowering Vector Architectures for ML: The CAMP Architecture for Matrix Multiplication
Preprint
Abstract
This study presents the Cartesian Accumulative Matrix Pipeline (CAMP) architecture, a novel approach designed to enhance matrix multiplication in Vector Architectures (VAs) and Single Instruction Multiple Data (SIMD) units. CAMP improves the processing efficiency of Quantized Neural Networks (QNNs). Matrix multiplication is a cornerstone of machine learning applications, and its quantized versions are increasingly popular for more efficient operations. Unfortunately, existing VAs and SIMD-support units struggle to efficiently handle these quantized formats. In this work, we propose CAMP, a simple yet effective architecture that leverages a hybrid multiplier. The CAMP architecture significantly advances the performance of vector architectures in handling quantized data, enabling more efficient execution of matrix multiplication across various platforms, specifically targeting the ARMv8 Scalable Vector Extension (SVE) and edge RISC-V SIMD-based architectures. In addition to increasing throughput, CAMP's architectural design also contributes to energy efficiency, making it an effective solution for low-power applications. Evaluations on a range of Large Language Models (LLMs) and Convolutional Neural Networks (CNNs) demonstrate that matrix multiplication operations using the proposed micro-architecture achieve up to 17$\times$ and 23$\times$ performance improvements compared to their respective baselines, the ARM A64FX core and a RISC-V-based edge System-on-Chip (SoC). Furthermore, synthesis and place-and-route (PnR) of the CAMP micro-architecture using Synopsys tools -- targeting ARM TSMC 7nm for A64FX and GlobalFoundries 22nm for the RISC-V SoC -- add only 1\% and 4\% area overhead, respectively, compared to the baseline designs.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- The Breakthrough Memory Solutions for Improved Performance on LLM InferenceIEEE Micro, 2024
- Scientific discovery in the age of artificial intelligenceNature, 2023
- Micro-kernels for portable and efficient matrix multiplication in deep learningThe Journal of Supercomputing, 2022
- Sargantana: A 1 GHz+ In-Order RISC-V Processor with SIMD Vector Extensions in 22nm FD-SOI2022
- DORY: Automatic End-to-End Deployment of Real-World DNNs on Low-Cost IoT MCUsIEEE Transactions on Computers, 2021
- Beyond Peak Performance: Comparing the Real Performance of AI-Optimized FPGAs and GPUs2020
- Preliminary Performance Evaluation of the Fujitsu A64FX Using HPC Applications2020
- CMix-NN: Mixed Low-Precision CNN Library for Memory-Constrained Edge DevicesIEEE Transactions on Circuits and Systems II: Express Briefs, 2020
- PULP-NN: accelerating quantized neural networks on parallel ultra-low-power RISC-V processorsPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2019
- 14.5 Envision: A 0.26-to-10TOPS/W subword-parallel dynamic-voltage-accuracy-frequency-scalable Convolutional Neural Network processor in 28nm FDSOI2017