arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.00395cs.AReess.SP
收藏

ONE-SA:在脉动阵列中实现非线性运算以高效灵活地进行神经网络推理

ONE-SA: Enabling Nonlinear Operations in Systolic Arrays for Efficient and Flexible Neural Network Inference

Ruiqi Sun, Yinchen Ni, Xin He, Jie Zhao, An Zou

AI总结:

针对ASIC加速器通用性不足的问题,提出支持非线性运算的新型脉动阵列ONE-SA,在极小硬件开销下实现多网络灵活推理,能效远超CPU、GPU、SoC且性能媲美专用加速器。

摘要:

深度神经网络(DNN)的计算密集与内存密集特性限制了其在众多移动和嵌入式场景中的应用。专用集成电路(ASIC)硬件加速器采用矩阵乘法单元(如脉动阵列)和专用非线性函数单元来加速DNN计算。深入研究这些ASIC加速器后发现,其设计往往高度专用化,缺乏适配不同网络的通用性,尤其是当网络包含不同类型的计算时表现更明显。本文提出了一种新型脉动阵列架构ONE-SA,具备执行非线性函数的能力。通过将固有线性运算与新增的非线性运算能力整合到脉动阵列内部,该架构可支持多种网络的推理,大幅提升计算能力与能效。实验结果表明,采用该脉动阵列可无缝执行完整的DNN,仅带来可忽略的网络推理精度损失。此外,基于现场可编程门阵列(FPGA)的评估显示,为脉动阵列集成非线性计算能力不会引入额外的显著开销(增幅低于1.5%)的块内存(BRAMs)、查找表(LUTs)或数字信号处理器(DSPs),仅增加13.3%-24.1%的触发器(FFs)。与现有方法相比,使用所提的支持不同网络模型灵活性的脉动阵列执行网络时,计算效率分别是通用CPU、GPU和SoC的最高25.73倍、5.21倍和1.54倍,同时性能与为特定神经网络模型设计的传统加速器相当(为其83.4%-135.8%)。

英文摘要:

The computation and memory-intensive nature of DNNs limits their use in many mobile and embedded contexts. Application-specific integrated circuit (ASIC) hardware accelerators employ matrix multiplication units (such as the systolic arrays) and dedicated nonlinear function units to speed up DNN computations. A close examination of these ASIC accelerators reveals that the designs are often specialized and lack versatility across different networks, especially when the networks have different types of computation. In this paper, we introduce a novel systolic array architecture, which is capable of executing nonlinear functions. By encompassing both inherent linear and newly enabled nonlinear functions within the systolic arrays, the proposed architecture facilitates versatile network inferences, substantially enhancing computational power and energy efficiency. Experimental results show that employing this systolic array enables seamless execution of entire DNNs, incurring only a negligible loss in the network inference accuracy. Furthermore, assessment and evaluation with FPGAs reveal that integrating nonlinear computation capacity into a systolic array does not introduce extra notable (less than 1.5%) block memory memories (BRAMs), look-up-tables (LUTs), or digital signal processors (DSPs) but a mere 13.3% - 24.1% more flip flops (FFs). In comparison to existing methodologies, executing the networks with the proposed systolic array, which enables the flexibility of different network models, yields up to 25.73x, 5.21x, and 1.54x computational efficiency when compared to general-purpose CPUs, GPUs, and SoCs respectively, while achieving comparable (83.4% - 135.8%) performance with the conventional accelerators which are designed for specific neural network models.

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

↑