journal article·2025-01-12Open access

FPGA-QNN: Quantized Neural Network Hardware Acceleration on FPGAs

Mustafa Tasci, Ayhan Istanbullu, Vedat Tumen, Selahattin Kosunalp

Applied Sciences· Volume 15· Issue 2

Abstract

Recently, convolutional neural networks (CNNs) have received a massive amount of interest due to their ability to achieve high accuracy in various artificial intelligence tasks. With the development of complex CNN models, a significant drawback is their high computational burden and memory requirements. The performance of a typical CNN model can be enhanced by the improvement of hardware accelerators. Practical implementations on field-programmable gate arrays (FPGA) have the potential to reduce resource utilization while maintaining low power consumption. Nevertheless, when implementing complex CNN models on FPGAs, these may may require further computational and memory capacities, exceeding the available capacity provided by many current FPGAs. An effective solution to this issue is to use quantized neural network (QNN) models to remove the burden of full-precision weights and activations. This article proposes an accelerator design framework for FPGAs, called FPGA-QNN, with a particular value in reducing high computational burden and memory requirements when implementing CNNs. To approach this goal, FPGA-QNN exploits the basics of quantized neural network (QNN) models by converting the high burden of full-precision weights and activations into integer operations. The FPGA-QNN framework comes up with 12 accelerators based on multi-layer perceptron (MLP) and LeNet CNN models, each of which is associated with a specific combination of quantization and folding. The outputs from the performance evaluations on Xilinx PYNQ Z1 development board proved the superiority of FPGA-QNN in terms of resource utilization and energy efficiency in comparison to several recent approaches. The proposed MLP model classified the FashionMNIST dataset at a speed of 953 kFPS with 1019 GOPs while consuming 2.05 W.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Neural Network Applications · CCD and CMOS Imaging Sensors · Adversarial Robustness in Machine Learning

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Technologies, Gönen Vocational School, Bandırma Onyedi Eylül University, Bandırma 10200, Türkiye

Department of Computer Engineering, Faculty of Engineering, Balıkesir University, Balıkesir 10145, Türkiye

Department of Computer Engineering, Faculty of Engineering and Architecture, Bitlis Eren University, Bitlis 13100, Türkiye

Funding

Balıkesir University Scientific Research and Development Support Program (BAP)

References (41)

Show source-provided references
1. Wu, R., Guo, X., Du, J., and Li, J. (2021). Accelerating neural network inference on FPGA-based platforms—A Survey. Electronics, 10.10.3390/electronics10091025 ↗
2. Simons, T., and Dah-Jye, L. (2019). A review of binarized neural networks. Electronics, 8.10.3390/electronics8060661 ↗
3. 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 2015 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, Monterey, CA, USA.10.1145/2684746.2689060 ↗
4. A survey on deploying mobile deep learning applications: A systemic and technical perspective10.1016/j.dcan.2021.06.001 ↗
5. Shehab, M., Abualigah, L., Shambour, Q., Abu-Hashem, M., Shambour, M.K.Y., Alsalibi, A.I., and Gandomi, A.H. (2022). Machine learning in medical applications: A review of state-of-the-art methods. Comput. Biol. Med., 145.10.1016/j.compbiomed.2022.105458 ↗
6. Lakshmanna, K., Kaluri, R., Gundluru, N., Alzamil, Z.S., Rajput, D.S., Khan, A.A., Haq, M.A., and Alhussen, A. (2022). A review on deep learning techniques for IoT data. Electronics, 11.10.3390/electronics11101604 ↗
7. Wang, D., Cao, W., Zhang, F., Li, Z., Xu, S., and Wu, X. (2022). A review of deep learning in multiscale agricultural sensing. Remote Sens., 14.10.3390/rs14030559 ↗
8. FPGA-based accelerators of deep learning networks for learning and classification: A review10.1109/ACCESS.2018.2890150 ↗
9. Rajaraman, S., Candemir, S., Kim, I., Thoma, G., and Antani, S. (2018). Visualization and interpretation of convolutional neural network predictions in detecting pneumonia in pediatric chest radiographs. Appl. Sci., 8.10.3390/app8101715 ↗
10. (2012, January 3–6). Imagenet classification with deep convolutional neural networks. Proceedings of the Advances in Neural Information Processing Systems (NIPS), Lake Tahoe, NV, USA.
11. Area-efficient parallel multiplication units for CNN accelerators with output channel parallelization10.1109/TVLSI.2023.3235776 ↗
12. A power-efficient CNN accelerator with similar feature skipping for face recognition in mobile devices10.1109/TCSI.2020.2966243 ↗
13. Tasci, M., Istanbullu, A., Kosunalp, S., Iliev, T., Stoyanov, I., and Beloev, I. (2023). An efficient classification of rice variety with quantized neural networks. Electronics, 12.10.3390/electronics12102285 ↗
14. YodaNN: An architecture for ultralow power binary-weight CNN acceleration10.1109/TCAD.2017.2682138 ↗
15. A high-level modeling framework for estimating hardware metrics of CNN accelerators10.1109/TCSI.2021.3104644 ↗
16. Accelerating deep convolutional neural networks using specialized hardware
17. Performance comparison of CNN, QNN and BNN deep neural networks for real-time object detection using ZYNQ FPGA node10.1016/j.mejo.2021.105319 ↗
18. Efficient CNN architecture on FPGA using high level module for healthcare devices10.1109/ACCESS.2022.3180829 ↗
19. FPGA-Based implementation of a CNN architecture for the On-Board processing of very high-resolution remote sensing images10.1109/JSTARS.2022.3169330 ↗
20. Sui, X., Lv, Q., Bai, Y., Zhu, B., Zhi, L., Yang, Y., and Tan, Z. (2022). A Hardware-Friendly low-bit power-of-two quantization method for CNNs and Its FPGA implementation. Sensors, 22.10.3390/s22176618 ↗
21. Biswal, M.R., Delwar, T.S., Siddique, A., Behera, P., Choi, Y., and Ryu, J.Y. (2022). Pattern classification using quantized neural networks for FPGA-Based low-power IoT devices. Sensors, 22.10.3390/s22228694 ↗
22. Quantized neural networks: Training neural networks with low precision weights and activations
23. Umuroglu, Y., Fraser, N.J., Gambardella, G., Blott, M., Leong, P., Jahre, M., and Vissers, K. (2017, January 22–24). Finn: A framework for fast, scalable binarized neural network inference. Proceedings of the ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, Monterey, CA, USA.10.1145/3020078.3021744 ↗
24. FP-BNN: Binarized neural network on FPGA10.1016/j.neucom.2017.09.046 ↗
25. QEGCN: An FPGA-based accelerator for quantized GCNs with edge-level parallelism10.1016/j.sysarc.2022.102596 ↗
26. An efficient real-time accelerator for high-accuracy DNN-based optical flow estimation in FPGA10.1016/j.sysarc.2022.102818 ↗
27. Zhang, Y., Pan, J., Liu, X., Chen, H., Chen, D., and Zhang, Z. (March, January 28). FracBNN: Accurate and FPGA efficient binary neural networks with fractional activations. Proceedings of the ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, Monterey, CA, USA.
28. A learning framework for n-bit quantized neural networks toward FPGAs10.1109/TNNLS.2020.2980041 ↗
29. Zhang, M., Li, L., Wang, H., Liu, Y., Qin, H., and Zhao, W. (2019). Optimized Compression for Implementing Convolutional Neural Networks on FPGA. Electronics, 8.10.3390/electronics8030295 ↗
30. Zhang, L., Tang, X., Hu, X., Zhou, T., and Peng, Y. (2022). FPGA-Based BNN Architecture in Time Domain with Low Storage and Power Consumption. Electronics, 11.10.3390/electronics11091421 ↗
31. StereoEngine: An FPGA-Based Accelerator for Real-Time High-Quality Stereo Estimation with Binary Neural Network10.1109/TCAD.2020.3012864 ↗
32. FPGA Acceleration on a Multi-layer Perceptron Neural Network for Digit Recognition10.1007/s11227-021-03849-7 ↗
33. Gradient-based Learning Applied to Document Recognition10.1109/5.726791 ↗
34. Pappalardo, A. (2024, December 12). Xilinx/Brevitas. Available online: https://zenodo.org/records/13912206.
35. Hubara, I., Courbariaux, M., Soudry, D., El-Yaniv, R., and Bengio, Y. (2016, January 5–10). Binarized neural networks. Proceedings of the 30th Conference on Neural Information Processing Systems (NIPS 2016), Barcelona, Spain.
36. Empowering edge devices: FPGA-based 16-bit fixed-point accelerator with SVD for CNN on 32-bit memory-limited systems10.1002/cta.3957 ↗
37. Zhao, R., Song, W., Zhang, W., Xing, T., Lin, J.H., Srivastava, M., Gupta, R., and Zhang, Z. (2017, January 22–24). Accelerating binarized convolutional neural networks with software-programmable FPGAs. Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, Monterey, CA, USA.10.1145/3020078.3021741 ↗
38. FINN-R: An end-to-end deep-learning framework for fast exploration of quantized neural networks10.1145/3242897 ↗
39. Jokic, P., Emery, S., and Benini, L. (2018, January 6–8). Binaryeye: A 20 kfps streaming camera system on fpga with real-time on-device image recognition using binary neural networks. Proceedings of the 2018 IEEE 13th International Symposium on Industrial Embedded Systems (SIES), Graz, Austria.10.1109/SIES.2018.8442108 ↗
40. FCA-BNN: Flexible and configurable accelerator for binarized neural networks on FPGA10.1587/transinf.2021EDP7054 ↗
41. Zhang, L., Tang, X., Hu, X., Peng, Y., and Zhou, T. (2022, January 12–14). Full-BNN: A Low Storage and Power Consumption Time-Domain Architecture based on FPGA. Proceedings of the 2022 IEEE 33rd International Conference on Application-specific Systems, Architectures and Processors (ASAP), Gothenburg, Sweden.10.1109/ASAP54787.2022.00025 ↗