Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Research on Efficient CNN Acceleration Through Mixed Precision Quantization: A Comprehensive Methodology

Author 1: Yizhi He Author 2: Wenlong Liu Author 3: Muhammad Tahir Author 4: Zhao Li Author 5: Shaoshuang Zhang Author 6: Hussain Bux Amur
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 14, No. 12 · Published 2023

DOI: https://doi.org/10.14569/IJACSA.2023.0141282

Abstract

To overcome challenges associated with deploying Convolutional Neural Networks (CNNs) on edge computing devices with limited memory and computing resources, we propose a mixed-precision CNN calculation method on a Field Programmable Gate Array (FPGA). This approach involves a collaborative design encompassing both software and hardware aspects. Initially, we devised a CNN quantization method tailored for the fixed-point operation characteristics of FPGA, addressing the computational challenges posed by floating-point parameters. We introduce a bit-width strategy search algorithm that assigns bit-widths to each layer based on CNN loss variation induced by quantization. Through retraining, this strategy mitigates the degradation in CNN inference accuracy. For FPGA acceleration design, we employ a flow processing architecture with multiple Processing Elements (PEs) to support mixed-precision CNNs. Our approach incorporates a folding design method to implement shared PEs between layers, significantly reducing FPGA resource usage. Furthermore, we designed a data reading method, incorporating a register set buffer between memory and processing elements to alleviate issues related to mismatched data reading and computing speeds. Our implementation of the mixed-precision ResNet20 model on the Kintex-7 Eco R2 development board achieves an inference accuracy of 91.68% and a computing speed 4.27 times faster than the Central Processing Unit (CPU) on the CIFAR-10 dataset, with an accuracy drop of only 1.21%. Compared to a unified 16-bit FPGA accelerator design method, our proposed approach demonstrates an 89-fold increase in computing speed while maintaining similar accuracy.

Keywords

How to Cite this Article

He, Y., Liu, W., Tahir, M., Li, Z., Zhang, S., & Amur, H. B. (2023). Research on Efficient CNN Acceleration Through Mixed Precision Quantization: A Comprehensive Methodology. International Journal of Advanced Computer Science and Applications, 14(12). https://doi.org/10.14569/IJACSA.2023.0141282

He, Yizhi, et al.. "Research on Efficient CNN Acceleration Through Mixed Precision Quantization: A Comprehensive Methodology." International Journal of Advanced Computer Science and Applications, vol. 14, no. 12, 2023, https://doi.org/10.14569/IJACSA.2023.0141282.

@article{He2023,
  title     = {Research on Efficient CNN Acceleration Through Mixed Precision Quantization: A Comprehensive Methodology},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {14},
  number    = {12},
  year      = {2023},
  publisher = {The Science and Information Organization},
  author    = {Yizhi He and Wenlong Liu and Muhammad Tahir and Zhao Li and Shaoshuang Zhang and Hussain Bux Amur},
  doi       = {10.14569/IJACSA.2023.0141282},
  url       = {https://doi.org/10.14569/IJACSA.2023.0141282}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.