High-Performance Acceleration of 2-D and 3-D CNNs on FPGAs Using Static Block Floating Point
- 13 October 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Neural Networks and Learning Systems
- Vol. 34 (8) , 4473-4487
Abstract
Over the past few years, 2-D convolutional neural networks (CNNs) have demonstrated their great success in a wide range of 2-D computer vision applications, such as image classification and object detection. At the same time, 3-D CNNs, as a variant of 2-D CNNs, have shown their excellent ability to analyze 3-D data, such as video and geometric data. However, the heavy algorithmic complexity of 2-D and 3-D CNNs imposes a substantial overhead over the speed of these networks, which limits their deployment in real-life applications. Although various domain-specific accelerators have been proposed to address this challenge, most of them only focus on accelerating 2-D CNNs, without considering their computational efficiency on 3-D CNNs. In this article, we propose a unified hardware architecture to accelerate both 2-D and 3-D CNNs with high hardware efficiency. Our experiments demonstrate that the proposed accelerator can achieve up to 92.4% and 85.2% multiply-accumulate efficiency on 2-D and 3-D CNNs, respectively. To improve the hardware performance, we propose a hardware-friendly quantization approach called static block floating point (BFP), which eliminates the frequent representation conversions required in traditional dynamic BFP arithmetic. Comparing with the integer linear quantization using zero-point, the static BFP quantization can decrease the logic resource consumption of the convolutional kernel design by nearly 50% on a field-programmable gate array (FPGA). Without time-consuming retraining, the proposed static BFP quantization is able to quantize the precision to 8-bit mantissa with negligible accuracy loss. As different CNNs on our reconfigurable system require different hardware and software parameters to achieve optimal hardware performance and accuracy, we also propose an automatic tool for parameter optimization. Based on our hardware design and optimization, we demonstrate that the proposed accelerator can achieve 3.8-5.6 times higher energy efficiency than graphics processing unit (GPU) implementation. Comparing with the state-of-the-art FPGA-based accelerators, our design achieves higher generality and up to 1.4-2.2 times higher resource efficiency on both 2-D and 3-D CNNs.Keywords
Funding Information
- U.K. EPSRC (EP/L016796/1, EP/N031768/1, EP/P010040/1, EP/V028251/1, EP/S030069/1)
- National Natural Science Foundation of China (62001165)
- Natural Science Foundation of Hunan Province (2021JJ40357)
- Changsha Municipal Natural Science Foundation (kq2014079)
- Corerain, Maxeler, Intel, Xilinx, and the State Key Laboratory of Space-Ground Integrated Information Technology
This publication has 30 references indexed in Scilit:
- fpgaConvNet: Mapping Regular and Irregular Convolutional Neural Networks on FPGAsIEEE Transactions on Neural Networks and Learning Systems, 2018
- Optimizing the Convolution Operation to Accelerate Deep Neural Networks on FPGAIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2018
- Towards a Uniform Template-based Architecture for Accelerating 2D and 3D CNNs on FPGA2018
- F-C3D: FPGA-based 3-dimensional convolutional neural network2017
- Identity Mappings in Deep Residual Networks2016
- Deep Residual Learning for Image Recognition2016
- Learning Spatiotemporal Features with 3D Convolutional Networks2015
- ImageNet Large Scale Visual Recognition ChallengeInternational Journal of Computer Vision, 2015
- Optimizing FPGA-based Accelerator Design for Deep Convolutional Neural Networks2015
- Design alternatives for barrel shifters2002