arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.08137cs.AR
收藏

赋能向量架构以支持机器学习:面向矩阵乘法的CAMP架构

Empowering Vector Architectures for ML: The CAMP Architecture for Matrix Multiplication

Mohammadreza Esmali Nojehdeh, Hossein Mokhtarnia, Julian Pavon Rivera, Narcis Rodas Quiroga, Roger Figueras Bagué, Enrico Reggiani, Miquel Moreto, Osman Unsal, … 展开作者

Mohammadreza Esmali Nojehdeh, Hossein Mokhtarnia, Julian Pavon Rivera, Narcis Rodas Quiroga, Roger Figueras Bagué, Enrico Reggiani, Miquel Moreto, Osman Unsal, Adrian Cristal, Eduard Ayguade

AI总结:

本文提出CAMP架构,通过混合乘法器增强向量架构和SIMD单元中的量化矩阵乘法效率,在ARM SVE和RISC-V边缘平台上实现最高23倍性能提升,且面积开销仅为1%至4%。

摘要:

本研究提出了笛卡尔累积矩阵流水线(CAMP)架构,这是一种旨在增强向量架构(VAs)和单指令多数据(SIMD)单元中矩阵乘法性能的新方法。CAMP提升了量化神经网络(QNNs)的处理效率。矩阵乘法是机器学习应用的基石,其量化版本因能实现更高效运算而日益流行。然而,现有向量架构和支持SIMD的单元难以高效处理这些量化格式。在本工作中,我们提出了CAMP,一种利用混合乘法器的简单而有效的架构。CAMP架构显著提升了向量架构处理量化数据的性能,使得矩阵乘法能够在各种平台上更高效地执行,具体针对ARMv8可扩展向量扩展(SVE)和基于边缘RISC-V SIMD的架构。除了提高吞吐量外,CAMP的架构设计还有助于提高能效,使其成为低功耗应用的有效解决方案。在一系列大语言模型(LLMs)和卷积神经网络(CNNs)上的评估表明,与各自的基线——ARM A64FX核心和基于RISC-V的边缘片上系统(SoC)——相比,使用所提出的微架构进行的矩阵乘法运算分别实现了高达17倍和23倍的性能提升。此外,使用Synopsys工具对CAMP微架构进行综合和布局布线(PnR)——A64FX目标工艺为ARM台积电7nm,RISC-V SoC目标工艺为GlobalFoundries 22nm——与基线设计相比,分别仅增加了1%和4%的面积开销。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑