Optimized Compression for Implementing Convolutional Neural Networks on FPGA
Min Zhang, Linpeng Li, Hai Wang et al. · Electronics · 2019
Field programmable gate array (FPGA) is widely considered as a promising platform for convolutional neural network (CNN) acceleration. However, the large numbers of parameters of CNNs cause heavy computing and memory burdens for FPGA-based CNN implementation. To solve this problem, this paper proposes an optimized compression strategy, and realizes an accelerator based on FPGA for CNNs. Firstly, a reversed-pruning strategy is proposed which reduces the number of parameters of AlexNet by a factor of 13× without accuracy loss on the ImageNet dataset. Peak-pruning is further introduced to achieve better compressibility. Moreover, quantization gives another 4× with negligible loss of accuracy. Secondly, an efficient storage technique, which aims for the reduction of the whole overhead cache of the convolutional layer and the fully connected layer, is presented respectively. Finally, the effectiveness of the proposed strategy is verified by an accelerator implemented on a Xilinx ZCU104 evaluation board. By improving existing pruning techniques and the storage format of sparse data, we significantly reduce the size of AlexNet by 28×, from 243 MB to 8.7 MB. In addition, the overall performance of our accelerator achieves 9.73 fps for the compressed AlexNet. Compared with the central processing unit (CPU) and graphics processing unit (GPU) platforms, our implementation achieves 182.3× and 1.1× improvements in latency and throughput, respectively, on the convolutional (CONV) layers of AlexNet, with an 822.0× and 15.8× improvement for energy efficiency, separately. This novel compression strategy provides a reference for other neural network applications, including CNNs, long short-term memory (LSTM), and recurrent neural networks (RNNs).
Cited by 77 works. doi:10.3390/electronics8030295 Open-access PDF
Authors
References
- Deep Residual Learning for Image Recognition
- ImageNet classification with deep convolutional neural networks
- Gradient-based learning applied to document recognition
- Deep learning
- Visualizing and Understanding Convolutional Networks
- Scalable Object Detection Using Deep Neural Networks
- Optimal Brain Damage
- Second Order Derivatives for Network Pruning: Optimal Brain Surgeon
- Optimizing FPGA-based Accelerator Design for Deep Convolutional Neural Networks
- DianNao