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

NeuralMatrix:通过线性矩阵运算计算整个神经网络以实现高效推理

NeuralMatrix: Compute the Entire Neural Networks with Linear Matrix Operations for Efficient Inference

Shanghai Jiao Tong University(上海交通大学);Microsoft Corporation(微软公司);University of Michigan(密歇根大学)

Ruiqi Sun, Siwei Ye, Jie Zhao, Xin He, Jianzhe Lin, Yiran Li, An Zou

AI总结:

NeuralMatrix将整个DNN计算转换为线性矩阵运算,使多种模型可在单个GEMM加速器上高效运行,相比CPU、GPU和SoC实现2.17-38.72倍计算效率提升。

摘要:

深度神经网络(DNN)模型内部计算类型的固有多样性通常需要硬件处理器中的多种专用单元,这限制了计算效率,增加了推理延迟和功耗,尤其是当硬件处理器需要支持并执行不同的神经网络时。在本研究中,我们引入了NeuralMatrix,它能够弹性地将整个DNN的计算转换为线性矩阵运算。这种转换使得各种DNN模型都能通过矩阵运算无缝执行,并为使用单个通用矩阵乘法(GEMM)加速器运行多种DNN模型铺平了道路。基于CNN和Transformer模型的广泛实验证明了NeuralMatrix能够准确且高效地执行广泛的DNN模型,与CPU、GPU和SoC平台相比,实现了2.17至38.72倍的计算效率(即每瓦特吞吐量)。这种效率水平通常只有为特定神经网络设计的加速器才能达到。

英文摘要:

The inherent diversity of computation types within the deep neural network (DNN) models often requires a variety of specialized units in hardware processors, which limits computational efficiency, increasing both inference latency and power consumption, especially when the hardware processor needs to support and execute different neural networks. In this study, we introduce NeuralMatrix, which elastically transforms the computations of entire DNNs into linear matrix operations. This transformation allows seamless execution of various DNN models all with matrix operations and paves the way for running versatile DNN models with a single General Matrix Multiplication (GEMM) accelerator.Extensive experiments with both CNN and transformer-based models demonstrate the potential of NeuralMatrix to accurately and efficiently execute a wide range of DNN models, achieving 2.17-38.72 times computation efficiency (i.e., throughput per power) compared to CPUs, GPUs, and SoC platforms. This level of efficiency is usually only attainable with the accelerator designed for a specific neural network.

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

↑