arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.11239cs.DCcs.ARcs.LGcs.NE
收藏

深度神经网络中基于结构化权重矩阵的硬件加速器:FPGA和ASIC

Structured Weight Matrices-Based Hardware Accelerators in Deep Neural Networks: FPGAs and ASICs

Syracuse University(雪城大学);City University of New York, City College(纽约城市大学城市学院)

Caiwen Ding, Ao Ren, Geng Yuan, Xiaolong Ma, Jiayu Li, Ning Liu, Bo Yuan, Yanzhi Wang

摘要:

工业界和学术界都对硬件加速进行了广泛的研究。在这项工作中,以解决日益增长的需求,在计算能力和内存需求,我们提出了结构化的权重矩阵(SWM)为基础的压缩技术\emph{field programmable gate array}(FPGA)和\emph{application-specific integrated circuit}(ASIC)的实现。在算法部分,基于SWM的框架采用块循环矩阵,以实现精确度和压缩比之间的细粒度权衡。对于每一层以及训练和推理阶段,基于SWM的技术可以将计算复杂性从O($n^2$)降低到O($n\log n$),并且将存储复杂度从O($n^2$)降低到O($n$)。对于深度卷积神经网络(DCNN)的FPGA实现,与使用MNIST,SVHN和CIFAR-10数据集的相同精度约束下的IBM TrueNorth处理器基线相比,使用基于SWM的框架,我们分别实现了至少152倍和72倍的性能和能效提高。对于长短期记忆(LSTM)网络上的FPGA实现,与基线加速器相比,所提出的基于SWM的LSTM可以实现高达21倍的性能增强和33.5倍的能效增益。对于ASIC实现,基于SWM的ASIC设计在功耗、吞吐量和能效方面表现出令人印象深刻的优势。实验结果表明,该方法非常适合将DNN应用到FPGA和移动/物联网设备上。

英文摘要:

Both industry and academia have extensively investigated hardware accelerations. In this work, to address the increasing demands in computational capability and memory requirement, we propose structured weight matrices (SWM)-based compression techniques for both \emph{field programmable gate array} (FPGA) and \emph{application-specific integrated circuit} (ASIC) implementations. In algorithm part, SWM-based framework adopts block-circulant matrices to achieve a fine-grained tradeoff between accuracy and compression ratio. The SWM-based technique can reduce computational complexity from O($n^2$) to O($n\log n$) and storage complexity from O($n^2$) to O($n$) for each layer and both training and inference phases. For FPGA implementations on deep convolutional neural networks (DCNNs), we achieve at least 152X and 72X improvement in performance and energy efficiency, respectively using the SWM-based framework, compared with the baseline of IBM TrueNorth processor under same accuracy constraints using the data set of MNIST, SVHN, and CIFAR-10. For FPGA implementations on long short term memory (LSTM) networks, the proposed SWM-based LSTM can achieve up to 21X enhancement in performance and 33.5X gains in energy efficiency compared with the baseline accelerator. For ASIC implementations, the SWM-based ASIC design exhibits impressive advantages in terms of power, throughput, and energy efficiency. Experimental results indicate that this method is greatly suitable for applying DNNs onto both FPGAs and mobile/IoT devices.

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

↑