An Efficient Hardware Accelerator for Structured Sparse Convolutional Neural Networks on FPGAs
Chaoyang Zhu,Kejie Huang,Shuyuan Yang,Ziqi Zhu,Hejia Zhang,Haibin Shen
DOI: https://doi.org/10.1109/tvlsi.2020.3002779
2020-09-01
IEEE Transactions on Very Large Scale Integration (VLSI) Systems
Abstract:Deep convolutional neural networks (CNNs) have achieved state-of-the-art performance in a wide range of applications. However, deeper CNN models, which are usually computation consuming, are widely required for complex artificial intelligence (AI) tasks. Though recent research progress on network compression, such as pruning, has emerged as a promising direction to mitigate computational burden, existing accelerators are still prevented from completely utilizing the benefits of leveraging sparsity due to the irregularity caused by pruning. On the other hand, field-programmable gate arrays (FPGAs) have been regarded as a promising hardware platform for CNN inference acceleration. However, most existing FPGA accelerators focus on dense CNN and cannot address the irregularity problem. In this article, we propose a sparsewise dataflow to skip the cycles of processing multiply-and-accumulates (MACs) with zero weights and exploit data statistics to minimize energy through zeros gating to avoid unnecessary computations. The proposed sparsewise dataflow leads to a low bandwidth requirement and high data sharing. Then, we design an FPGA accelerator containing a vector generator module (VGM) that can match the index between sparse weights and input activations according to the proposed dataflow. Experimental results demonstrate that our implementation can achieve 987-, 46-, and 57-imag/s performance for AlexNet, VGG-16, and ResNet-50 on Xilinx ZCU102, respectively, which provides $1.5times $ – $6.7times $ speedup and $2.0times $ – $6.0times $ energy efficiency over previous CNN FPGA accelerators.
engineering, electrical & electronic,computer science, hardware & architecture