Skip to main content
QUICK REVIEW

[Paper Review] Fast and Energy-Efficient CNN Inference on IoT Devices

Mohammad Motamedi, Daniel Fong|arXiv (Cornell University)|Nov 22, 2016
Advanced Neural Network ApplicationsComputer Science7 references9 citations
TL;DR

This paper proposes a RenderScript-based parallelization technique for fast and energy-efficient CNN inference on mobile GPUs, optimizing for device-specific hardware and using mixed-precision computation. It achieves up to 310.74X speedup and reduces energy consumption by up to 249.47X compared to sequential execution, enabling real-time on-device inference with less than 0.6 joules per image on three diverse mobile platforms.

ABSTRACT

Convolutional Neural Networks (CNNs) exhibit remarkable performance in various machine learning tasks. As sensor-equipped internet of things (IoT) devices permeate into every aspect of modern life, it is increasingly important to run CNN inference, a computationally intensive application, on resource constrained devices. We present a technique for fast and energy-efficient CNN inference on mobile SoC platforms, which are projected to be a major player in the IoT space. We propose techniques for efficient parallelization of CNN inference targeting mobile GPUs, and explore the underlying tradeoffs. Experiments with running Squeezenet on three different mobile devices confirm the effectiveness of our approach. For further study, please refer to the project repository available on our GitHub page: https://github.com/mtmd/Mobile_ConvNet

Motivation & Objective

  • To enable real-time, energy-efficient CNN inference on resource-constrained IoT and mobile devices.
  • To address the limitations of cloud-based inference, including high energy cost, connectivity dependency, and privacy concerns.
  • To optimize CNN inference performance on mobile GPUs by leveraging heterogeneous computing via RenderScript.
  • To identify device- and layer-specific optimal design parameters for parallelization and precision settings.
  • To demonstrate feasibility of on-device SqueezeNet inference with sub-250ms latency and under 0.6J energy consumption.

Proposed method

  • Utilizes Android's RenderScript framework to distribute CNN computation across CPU and GPU cores on mobile SoCs.
  • Implements a thread-level parallelization strategy where each output feature map element is computed by a separate thread.
  • Employs a 3D convolution kernel with stride control to process input feature maps and filter banks efficiently.
  • Applies mixed-precision computation (single-precision and half-precision) to reduce computational load and memory bandwidth.
  • Uses device-specific tuning to select optimal block size, thread count, and precision mode per platform and CNN layer.
  • Employs Trepn profiler for automated, accurate power and energy measurement in real-world conditions.

Experimental results

Research questions

  • RQ1How can CNN inference be accelerated on mobile GPUs while minimizing energy consumption?
  • RQ2What are the optimal parallelization and precision tradeoffs for different mobile GPU architectures?
  • RQ3Can mixed-precision computation maintain accuracy while significantly improving performance on mobile devices?
  • RQ4How does the energy efficiency of parallel inference compare to sequential execution across diverse mobile platforms?
  • RQ5To what extent can on-device CNN inference be made practical for real-time applications on IoT devices?

Key findings

  • The proposed parallel algorithm achieves a minimum speedup of 59.54X and a maximum of 310.74X over sequential implementation on three mobile devices.
  • Energy consumption is reduced by up to 249.47X, with total energy use ranging from 0.106J to 0.569J per image across platforms.
  • On-device inference is feasible with execution times under 250ms (129.21ms on Nexus 6P) and energy use under 0.6J, enabling real-time applications.
  • Imprecise (half-precision) computation reduces execution time by 2.11X to 4.16X compared to precise (single-precision) parallel execution.
  • The Nexus 5 shows lower power consumption in parallel mode due to lower GPU clock speeds and older, more efficient chipset architecture.
  • Optimal design parameters, including block size and precision, vary significantly between platforms and CNN layers, necessitating device-specific tuning.

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.