FD-CNN: A Frequency-Domain FPGA Acceleration Scheme for CNN-based Image Processing Applications

Author:

Wang Xiaoyang1,Zhou Zhe2,Yuan Zhihang1,Zhu Jingchen2,Sun Guangyu3,Cao Yulong4,Zhang Yao4,Sun Kangrui4

Affiliation:

1. School of Computer Science, Peking University, China

2. School of Integrated Circuits, China and School of Computer Science, Peking University, China

3. School of Integrated Circuits, China

4. Advanced Institution of Information Technology (AIIT), China

Abstract

In the emerging edge computing scenarios, FPGAs have been widely adopted to accelerate CNN-based image processing applications, such as image classification, object detection, and image segmentation, etc. A standard image processing pipeline first decodes the collected compressed images from IoTs to RGB data, then feeds them into CNN engines to compute the results. Previous works mainly focus on optimizing the CNN inference parts. However, we notice that on the popular ZYNQ FPGA platforms, image decoding can also become the bottleneck due to the poor performance of embedded ARM CPUs. Even with a hardware accelerator, the decoding operations still incur considerable latency. Moreover, conventional RGB-based CNNs have too few input channels at the first layer, which can hardly utilize the high parallelism of CNN engines and greatly slows down the network inference. To overcome these problems, in this paper, we propose FD-CNN, a novel CNN accelerator leveraging the partial decoding technique to accelerate CNNs directly in the frequency domain. Specifically, we omit the most time-consuming IDCT (Inverse Discrete Cosine Transform) operations of image decoding and directly feed the DCT coefficients (i.e., the frequency data) into CNNs. By this means, the image decoder can be greatly simplified. Moreover, compared to the RGB data, frequency data has a narrower input resolution but has 64 × more channels. Such an input shape is more hardware-friendly than RGB data and can substantially reduce the CNN inference time. We then systematically discuss the algorithm, architecture, and command set design of FD-CNN. To deal with the irregularity of different CNN applications, we propose an image decoding aware design-space exploration (DSE) workflow to optimize the pipeline. We further propose an early-stopping strategy to tackle the time-consuming progressive JPEG decoding. Comprehensive experiments demonstrate that FD-CNN achieves on-average 3.24 ×, 4.29 ×   throughput improvement, 2.55 ×, 2.54 ×   energy reduction and 2.38 ×, 2.58 ×   lower latency on ZC-706 and ZCU-102 platforms respectively, compared to the baseline image processing pipelines.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference80 articles.

1. Mobile Edge Computing: A Survey

2. Codesign-NAS

3. Utku Aydonat Shane O’Connell Davor Capalija Andrew C. Ling and Gordon R. Chiu. 2017. An OpenCL(TM) Deep Learning Accelerator on Arria 10. CoRR abs/1701.03534(2017). arXiv:1701.03534 http://arxiv.org/abs/1701.03534 Utku Aydonat Shane O’Connell Davor Capalija Andrew C. Ling and Gordon R. Chiu. 2017. An OpenCL(TM) Deep Learning Accelerator on Arria 10. CoRR abs/1701.03534(2017). arXiv:1701.03534 http://arxiv.org/abs/1701.03534

4. Colby Banbury , Chuteng Zhou , Igor Fedorov , Ramon Matas , Urmish Thakker , Dibakar Gope , Vijay Janapa Reddi , Matthew Mattina , and Paul Whatmough . 2021 . Micronets: Neural network architectures for deploying tinyml applications on commodity microcontrollers . Proceedings of Machine Learning and Systems 3 (2021). Colby Banbury, Chuteng Zhou, Igor Fedorov, Ramon Matas, Urmish Thakker, Dibakar Gope, Vijay Janapa Reddi, Matthew Mattina, and Paul Whatmough. 2021. Micronets: Neural network architectures for deploying tinyml applications on commodity microcontrollers. Proceedings of Machine Learning and Systems 3 (2021).

5. Hadjer Benmeziane Kaoutar El Maghraoui Hamza Ouarnoughi Smail Niar Martin Wistuba and Naigang Wang. 2021. A Comprehensive Survey on Hardware-Aware Neural Architecture Search. arXiv preprint arXiv:2101.09336(2021). Hadjer Benmeziane Kaoutar El Maghraoui Hamza Ouarnoughi Smail Niar Martin Wistuba and Naigang Wang. 2021. A Comprehensive Survey on Hardware-Aware Neural Architecture Search. arXiv preprint arXiv:2101.09336(2021).

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3