Skip to main content
QUICK REVIEW

[Paper Review] A Bi-Directional Co-Design Approach to Enable Deep Learning on IoT Devices

Xiaofan Zhang, Cong Hao|arXiv (Cornell University)|May 20, 2019
Advanced Neural Network ApplicationsComputer Science10 references10 citations
TL;DR

This paper proposes a bi-directional co-design framework that jointly optimizes deep neural network (DNN) models and FPGA accelerators for IoT devices, using a bottom-up DNN design combined with top-down accelerator exploration. It achieves state-of-the-art performance with 29.7 FPS and 12.38 image/watt efficiency on Pynq-Z1 FPGA, outperforming both FPGA and GPU champions from the DAC'18 contest in accuracy, throughput, and energy efficiency.

ABSTRACT

Developing deep learning models for resource-constrained Internet-of-Things (IoT) devices is challenging, as it is difficult to achieve both good quality of results (QoR), such as DNN model inference accuracy, and quality of service (QoS), such as inference latency, throughput, and power consumption. Existing approaches typically separate the DNN model development step from its deployment on IoT devices, resulting in suboptimal solutions. In this paper, we first introduce a few interesting but counterintuitive observations about such a separate design approach, and empirically show why it may lead to suboptimal designs. Motivated by these observations, we then propose a novel and practical bi-directional co-design approach: a bottom-up DNN model design strategy together with a top-down flow for DNN accelerator design. It enables a joint optimization of both DNN models and their deployment configurations on IoT devices as represented as FPGAs. We demonstrate the effectiveness of the proposed co-design approach on a real-life object detection application using Pynq-Z1 embedded FPGA. Our method obtains the state-of-the-art results on both QoR with high accuracy (IoU) and QoS with high throughput (FPS) and high energy efficiency.

Motivation & Objective

  • To address the suboptimal trade-offs between quality of results (QoR) and quality of service (QoS) in deploying DNNs on resource-constrained IoT devices.
  • To identify the limitations of conventional separate DNN and accelerator design, which often leads to poor QoS or QoR due to misaligned hardware-software configurations.
  • To propose a co-design flow that enables joint optimization of DNN models and accelerators by integrating hardware-aware DNN exploration with early QoS estimation.
  • To demonstrate that co-designing DNNs and accelerators simultaneously yields better performance than iterative, independent optimization.
  • To achieve high inference accuracy, throughput, and energy efficiency on real-world embedded FPGA platforms like Pynq-Z1 for object detection.

Proposed method

  • The method uses a bottom-up DNN design strategy, constructing DNNs from reusable bundles of layers (e.g., DW-Conv3, PW-Conv1, max-pooling) selected based on hardware performance predictions.
  • It employs analytical models to estimate QoS (latency, resource usage) early in the design process, enabling fast evaluation of hardware characteristics before full training.
  • A two-stage selection process identifies promising bundles: first by QoR potential via fast training (20 epochs) on prototypes, then by QoS alignment with target constraints.
  • A stochastic coordinate descent (SCD) algorithm explores DNN configurations under QoS and QoR constraints, iteratively refining models based on feedback from precise QoS evaluation.
  • The proposed accelerator uses a hybrid folded and unfolded tile-based pipelined architecture to maximize resource sharing and support efficient computation on compact FPGAs.
  • Quantization schemes (e.g., W16/F8, W11/F8) are systematically explored across bundles to balance model precision and hardware efficiency.

Experimental results

Research questions

  • RQ1Why does separating DNN model design from hardware accelerator design lead to suboptimal QoR and QoS in IoT deployments?
  • RQ2How do different compression strategies (e.g., weight vs. feature map quantization) affect inference accuracy and hardware resource usage differently?
  • RQ3Can early hardware-aware estimation of QoS during DNN exploration lead to better trade-offs between accuracy and efficiency?
  • RQ4What is the impact of data precision (bit-width) on FPGA resource utilization (e.g., BRAM, DSP) for DNN accelerators?
  • RQ5Can a co-design approach outperform state-of-the-art solutions in both accuracy and energy efficiency on real embedded FPGA platforms?

Key findings

  • The proposed DNN-A achieved 29.7 FPS and 12.38 image/watt efficiency on Pynq-Z1 FPGA, outperforming the FPGA champion design in both throughput and energy efficiency.
  • DNN-C achieved 68.6% IoU, 1.45× higher FPS, and 2.4× higher energy efficiency than the FPGA champion, while also surpassing the GPU champion in efficiency despite comparable accuracy.
  • The method reduced accuracy loss from 9.8% (when compressing feature maps) to under 1% by co-designing quantization and hardware mapping, demonstrating improved robustness to compression.
  • Hardware resource usage (e.g., BRAM and DSP) varied significantly with minor changes in data precision, highlighting the need for co-design to avoid inefficient configurations.
  • The co-design approach enabled a 16× reduction in feature map size with only a 4.8% accuracy drop, while maintaining high throughput and low power consumption.
  • The bundle-based exploration identified DW-Conv3, PW-Conv1, and max-pooling as the most effective building blocks for the target object detection task on FPGA.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.