Research and Implementation of High Computational Power for Training and Inference of Convolutional Neural Networks
Source abstract
Abstract
Algorithms and computing power have consistently been the two driving forces behind the development of artificial intelligence. The computational power of a platform has a significant impact on the implementation cost, performance, power consumption, and flexibility of an algorithm. Currently, AI algorithmic models are mainly trained using high-performance GPU platforms, and their inferencing can be implemented using GPU, CPU, and FPGA. On the one hand, due to its high-power consumption and extreme cost, GPU is not suitable for power and cost-sensitive application scenarios. On the other hand, because the training and inference of the neural network use different computing power platforms, the data of the neural network model needs to be transmitted on platforms with varying computing power, which affects the data processing capability of the network and affects the real-time performance and flexibility of the neural network. This paper focuses on the high computing power implementation method of the integration of convolutional neural network (CNN) training and inference in artificial intelligence and proposes to implement the process of CNN training and inference by using high-performance heterogeneous architecture (HA) devices with field programmable gate array (FPGA) as the core. Numerous repeated multiplication and accumulation operations in the process of CNN training and inference have been implemented by programmable logic (PL), which significantly improves the speed of CNN training and inference and reduces the overall power consumption, thus providing a modern implementation method for neural networks in an application field that is sensitive to power, cost, and footprint. First, based on the data stream containing the training and inference process of the CNN, this study investigates methods to merge the training and inference data streams. Secondly, high-level language was used to describe the merged data stream structure, and a high-level description was converted to a hardware register transfer level (RTL) description by the high-level synthesis tool (HLS), and the intellectual property (IP) core was generated. The PS was used for overall control, data preprocessing, and result analysis, and it was then connected to the IP core via an on-chip AXI bus interface in the HA device. Finally, the integrated implementation method was tested and validated with the Xilinx HA device, and the MNIST handwritten digit validation set was used in the tests. According to the test results, compared with using a GPU, the model trained in the HA device PL achieves the same convergence rate with only 78.04 percent training time. With a processing time of only 3.31 ms and 0.65 ms for a single frame image, an average recognition accuracy of 95.697%, and an overall power consumption of only 3.22 W @ 100 MHz, the two convolutional neural networks mentioned in this paper are suitable for deployment in lightweight domains with limited power consumption.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Advanced Memory and Neural Computing · Brain Tumor Detection and Classification
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029, China
References (23)
Show source-provided references
1. Gradient-based learning applied to document recognition10.1109/5.726791 ↗
2. Zhang, C., Li, P., Sun, G., Guan, Y., Xiao, B., and Cong, J. (2015, January 22–24). Optimizing FPGA-based Accelerator Design for Deep Convolutional Neural Networks. Proceedings of the ACM, Monterey, CA, USA.10.1145/2684746.2689060 ↗
3. Colbert, I., Daly, J., Kreutz-Delgado, K., and Das, S. (2021). A Competitive Edge: Can FPGAs Beat GPUs at DCNN Inference Acceleration in Resource-Limited Edge Computing Applications?. arXiv.
4. He, B., and Zhang, Y. (2014). The Definitive Guide of Digital Signal Processing on Xilinx FPGA from HDL to Model and C Description, Tsinghua University Press.
5. Performance evaluation of hardware design based on Vivado HLS
6. Venieris, S.I., and Bouganis, C. (2016, January 1–3). fpgaConvNet: A Framework for Mapping Convolutional Neural Networks on FPGAs. Proceedings of the 2016 IEEE 24th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), Washington, DC, USA.10.1109/FCCM.2016.22 ↗
7. DiCecco, R., Lacey, G., Vasiljevic, J., Chow, P., Taylor, G., and Areibi, S. (2016, January 7–9). Caffeinated FPGAs: FPGA framework for Convolutional Neural Networks. Proceedings of the 2016 International Conference on Field-Programmable Technology (FPT), Xi’an, China.10.1109/FPT.2016.7929549 ↗
8. Hua, S. (2020). Design optimization of light weight handwritten digital system based on FPGA. Electron. Prod., 6–7+37.
9. Bachtiar, Y.A., and Adiono, T. (2019, January 8–9). Convolutional Neural Network and Maxpooling Architecture on Zynq SoC FPGA. Proceedings of the 2019 International Symposium on Electronics and Smart Devices (ISESD), Badung, Indonesia.10.1109/ISESD.2019.8909510 ↗
10. Ghaffari, S., and Sharifian, S. (2016, January 14–15). FPGA-based convolutional neural network accelerator design using high level synthesize. Proceedings of the 2016 2nd International Conference of Signal Processing and Intelligent Systems (ICSPIS), Tehran, Iran.10.1109/ICSPIS.2016.7869873 ↗
11. Cohen, G., Afshar, S., Tapson, J., and Van Schaik, A. (2017, January 14–19). EMNIST: Extending MNIST to handwritten letters. Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN), Anchorage, AK, USA.10.1109/IJCNN.2017.7966217 ↗
12. Angel-eye: A comPLete design flow for mapping CNN onto embedded FPGA10.1109/TCAD.2017.2705069 ↗
13. Gschwend, D. (2020). Zynqnet: An fpga-accelerated embedded convolutional neural network. arXiv.
14. Zheng, Y., He, B., and Li, T. (2022). Research on the Lightweight Deployment Method of Integration of Training and Inference in Artificial Intelligence. Appl. Sci., 12.10.3390/app12136616 ↗
15. FPGA Parallel Structure Design for Convolutional Neural Network (CNN) Algorithm
16. Construction Method of Embedded FPGA Convolutional Neural Network for Edge Computing
17. Wu, D., Zhang, Y., Jia, X., Tian, L., Li, T., Sui, L., Xie, D., and Shan, Y. (2019, January 8–12). A high-performance CNN processor based on FPGA for MobileNets. Proceedings of the 2019 29th International Conference on Field Programmable Logic and Applications (FPL), Barcelona, Spain.10.1109/FPL.2019.00030 ↗
18. A CNN accelerator on FPGA using depthwise separable convolution
19. A high-throughput and power-efficient FPGA implementation of YOLO CNN for object detection10.1109/TVLSI.2019.2905242 ↗
20. Liu, B., Zou, D., Feng, L., Feng, S., Fu, P., and Li, J. (2019). An FPGA-based CNN accelerator integrating depthwise separable convolution. Electronics, 8.10.3390/electronics8030281 ↗
21. Geng, T., Wang, T., Sanaullah, A., Yang, C., Xu, R., Patel, R., and Herbordt, M. (May, January 29). FPDeep: Acceleration and load balancing of CNN training on FPGA clusters. Proceedings of the 2018 IEEE 26th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), Boulder, CO, USA.10.1109/FCCM.2018.00021 ↗
22. High-performance vision-based navigation on SoC FPGA for spacecraft proximity operations10.1109/TCSVT.2019.2900802 ↗
23. Shoe-print image retrieval with multi-part weighted cnn10.1109/ACCESS.2019.2914455 ↗