Skip to main content
QUICK REVIEW

[Paper Review] FastDeepIoT: Towards Understanding and Optimizing Neural Network Execution Time on Mobile and Embedded Devices

Shuochao Yao, Yiran Zhao|arXiv (Cornell University)|Sep 19, 2018
IoT and Edge/Fog ComputingComputer Science38 references66 citations
TL;DR

FastDeepIoT identifies nonlinear relationships between neural network structure and execution time on mobile/embedded devices, builds an interpretable execution-time model, and uses it to guide compression for substantial speedups without accuracy loss.

ABSTRACT

Deep neural networks show great potential as solutions to many sensing application problems, but their excessive resource demand slows down execution time, pausing a serious impediment to deployment on low-end devices. To address this challenge, recent literature focused on compressing neural network size to improve performance. We show that changing neural network size does not proportionally affect performance attributes of interest, such as execution time. Rather, extreme run-time nonlinearities exist over the network configuration space. Hence, we propose a novel framework, called FastDeepIoT, that uncovers the non-linear relation between neural network structure and execution time, then exploits that understanding to find network configurations that significantly improve the trade-off between execution time and accuracy on mobile and embedded devices. FastDeepIoT makes two key contributions. First, FastDeepIoT automatically learns an accurate and highly interpretable execution time model for deep neural networks on the target device. This is done without prior knowledge of either the hardware specifications or the detailed implementation of the used deep learning library. Second, FastDeepIoT informs a compression algorithm how to minimize execution time on the profiled device without impacting accuracy. We evaluate FastDeepIoT using three different sensing-related tasks on two mobile devices: Nexus 5 and Galaxy Nexus. FastDeepIoT further reduces the neural network execution time by $48\%$ to $78\%$ and energy consumption by $37\%$ to $69\%$ compared with the state-of-the-art compression algorithms.

Motivation & Objective

  • Reveal why neural network execution time is non-linear with respect to network structure on mobile/embedded devices.
  • Develop an accurate, interpretable execution-time model that does not rely on hardware/library internals.
  • Steer existing compression methods to minimize execution time while preserving accuracy.
  • Demonstrate real-device speedups and energy savings across sensing tasks and devices.

Proposed method

  • Profiling module builds a time profiling dataset by generating diverse network structures and recording execution times on target devices using TensorFlow Benchmark.
  • A tree-structured linear regression model partitions the structure-configuration space into regions with linear timing behavior, using an explanatory-variable vector that combines FLOPs, memory usage, and parameter size.
  • An execution-time model Y = w^T x + b is learned with non-negativity constraints on weights and bias, across architecture types (FC, CNN, RNN).
  • A two-condition splitting rule (range and integer-multiple) guides recursive partitioning to form a tree that captures non-linear timing effects.
  • Compression Steering Module adds the timing model into the compression objective to minimize execution time, and includes a strategy to expand layers to nearby local minima that speed up runtime.
  • Algorithm 1 describes building the tree-structured model; Algorithm 2 describes layer expansion and local-minima search during compression.

Experimental results

Research questions

  • RQ1What factors primarily affect neural network execution time on mobile/embedded devices beyond parameter count and FLOPs?
  • RQ2How can we automatically learn an execution-time model that is accurate and interpretable without detailed hardware/library knowledge?
  • RQ3How can execution-time awareness be integrated into existing compression methods to reduce latency and energy consumption without sacrificing accuracy?

Key findings

  • Execution-time modeling on Nexus 5 and Galaxy Nexus achieves mean absolute percentage errors (MAPE) of about 1%–7% for various components, outperforming other regression methods.
  • Convolutional layers exhibit strong non-linearity with local timing minima when channel counts align with certain multiples (e.g., multiples of 4).
  • Profiling-based models reveal FLOPs and memory as significant predictors of execution time, while parameter size shows limited correlation with runtime.
  • FastDeepIoT achieves additional reductions in execution time by 48%–78% and energy consumption by 37%–69% compared with state-of-the-art compression algorithms, without accuracy loss.
  • Profiling and evaluation use two devices (Nexus 5 and Galaxy Nexus) and TensorFlow for Mobile, with profiling focusing on FC, CNN, GRU, and LSTM components.

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.