Research Article

A comparative study of FPGA and CGRA technologies in hardware acceleration for deep learning

Jiawei Luo*
University of Southampton

* Corresponding author: [email protected]

Abstract

With the rapid growth of deep neural networks, their increasing demand for computing resources poses significant challenges to resource-constrained edge devices. Field Programmable Gate Array (FPGA) and Coarse-Grained Reconfigurable Arrays (CGRA) have emerged as promising solutions due to their parallelism and energy efficiency advantages. This paper conducts a comprehensive comparative analysis of FPGA and CGRA for accelerating deep learning workloads. It begins by introducing convolutional neural network architecture and optimization techniques. Various dataflow strategies are discussed for memory access optimization. The paper then analyzes representative cases to clarify FPGA and CGRA architectural advantages, along with optimization techniques through different dataflow strategies. The comparison reveals that FPGA offers higher throughput with fine-grained programmability for flexible bit-level operations and dataflow control. In contrast, CGRA excels in energy efficiency and area consumption with coarse-grained custom processing units and optimized on-chip interconnection networks. Quantitative comparisons are provided for throughput, energy efficiency, and area occupation. These insights can serve as a reference for selecting the appropriate architecture when designing custom hardware accelerators for deep learning workloads.

Keywords: Deep Learning; Hardware Acceleration; FPGA; CGRA; Dataflow
Published: March 25, 2024
DOI: 10.54254/2755-2721/51/20241212
Volume: ACE Vol.51
pp. 168-180
Download PDF

References

  1. Lecun Y, Bengio Y, Hinton G. Deep learning. Nature, 2015, 521(7553): 436-444.
  2. Nurvitadhi E, Sheffield D, Jaewoong Sim, et al. Accelerating Binarized Neural Networks: Comparison of FPGA, CPU, GPU, and ASIC. 2016 International Conference on Field-Programmable Technology (FPT). IEEE, 2016.
  3. Peccerillo B, Mannino M, Mondelli A, et al. A survey on hardware accelerators: Taxonomy, trends, challenges, and perspectives. Journal of Systems Architecture, 2022, 129: 102561.
  4. Schmidhuber J. Deep learning in neural networks: An overview. Neural Networks, 2015, 61: 85-117.
  5. Goodfellow I, Bengio Y, Courville A. Deep Learning. MIT Press, 2016.
  6. Gu J, Wang Z, Kuen J, Et Al. Recent advances in convolutional neural networks. Pattern Recognition, 2018, 77: 354-377.
  7. Shuvo Md M H, Islam S K, Cheng J, et al. Efficient Acceleration of Deep Learning Inference on Resource-Constrained Edge Devices: A Review. Proceedings of the IEEE, 2023, 111(1): 42-91.
  8. Dumoulin, V., Visin, F. (2016). A guide to convolution arithmetic for deep learning. arXiv preprint arXiv:1603.07285.
  9. Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., & Adam, H. (2017). MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. ArXiv. /abs/1704.04861
  10. Iandola F N, Han S, Moskewicz M W, et al. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and< 0.5 MB model size. arXiv preprint arXiv:1602.07360, 2016.
  11. Ma N, Zhang X, Zheng H T, et al. Shufflenet v2: Practical guidelines for efficient cnn architecture design. Proceedings of the European conference on computer vision (ECCV). 2018: 116-131.
  12. Xu B, Wang N, Chen T, et al. Empirical evaluation of rectified activations in convolutional network. arXiv preprint arXiv:1505.00853, 2015.
  13. Gokhale V, Jin J, Dundar A, et al. A 240 G-ops/s Mobile Coprocessor for Deep Neural Networks. 2014 IEEE Conference on Computer Vision and Pattern Recognition Workshops. IEEE, 2014.
  14. Peemen M, Setio A A A, Mesman B, et al. Memory-centric accelerator design for Convolutional Neural Networks. 2013 IEEE 31st International Conference on Computer Design (ICCD). IEEE, 2013.
  15. Chen Y H, Yang T J, Emer J S, et al. Eyeriss v2: A Flexible Accelerator for Emerging Deep Neural Networks on Mobile Devices. IEEE Journal on Emerging and Selected Topics in Circuits and Systems, 2019, 9(2): 292-308.
  16. Zhang B, Gu H, Wang K, et al. A Novel CONV Acceleration Strategy Based on Logical PE Set Segmentation for Row Stationary Dataflow. IEEE Transactions on Computers, 2021: 1-1.
  17. Chattopadhyay A. Ingredients of Adaptability: A Survey of Reconfigurable Processors. VLSI Design, 2013, 2013: 1-18.
  18. Zhang C, Sun G, Fang Z, et al. Caffeine: Toward Uniformed Representation and Acceleration for Deep Convolutional Neural Networks. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2019, 38(11): 2072-2085.
  19. Aliagha E, Gohringer D. Energy Efficient Design of Coarse-Grained Reconfigurable Architectures: Insights, Trends and Challenges. 2022 International Conference on Field-Programmable Technology (ICFPT). IEEE, 2022.
  20. Kwon H, Samajdar A, Krishna T. Maeri: Enabling flexible dataflow mapping over dnn accelerators via reconfigurable interconnects. ACM SIGPLAN Notices, 2018, 53(2): 461-475.
  21. Shin D, Lee J, Lee J, et al. 14.2 DNPU: An 8.1TOPS/W reconfigurable CNN-RNN processor for general-purpose deep neural networks. 2017 IEEE International Solid-State Circuits Conference (ISSCC). IEEE, 2017.
  22. Kim C, Kang S, Shin D, et al. A 2.1TFLOPS/W Mobile Deep RL Accelerator with Transposable PE Array and Experience Compression. 2019 IEEE International Solid- State Circuits Conference - (ISSCC). IEEE, 2019.
  23. Lee J, Lee J. NP-CGRA: Extending CGRAs for Efficient Processing of Light-weight Deep Neural Networks. 2021 Design, Automation &amp; Test in Europe Conference &amp; Exhibition (DATE). IEEE, 2021.
  24. Fan X, Wu D, Cao W, et al. Stream Processing Dual-Track CGRA for Object Inference. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2018, 26(6): 1098-1111.
  25. Guo K, Sui L, Qiu J, et al. Angel-Eye: A Complete Design Flow for Mapping CNN Onto Embedded FPGA. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2018, 37(1): 35-47.
  26. Guan Y, Liang H, Xu N, et al. FP-DNN: An Automated Framework for Mapping Deep Neural Networks onto FPGAs with RTL-HLS Hybrid Templates. 2017 IEEE 25th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM). IEEE, 2017.