Inference Acceleration with Adaptive Distributed DNN Partition over Dynamic Video Stream

Jin Cao, Bo Li, Mengni Fan, Huiyu LiuAlgorithms 2022

TL;DR

This paper introduces ADDP, a novel framework for accelerating Deep Neural Network (DNN) inference on dynamic video streams for large-scale intelligent camera systems. ADDP adaptively partitions DNN models across edge and end devices, dynamically balancing computational load and communication to significantly reduce inference latency.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are crucial for modern AI applications, especially in computer vision for intelligent services. However, running these computationally intensive models on resource-constrained IoT devices like smart cameras presents a significant challenge. While offloading computations to powerful cloud servers is an option, it introduces latency, network instability, and privacy concerns. Edge computing offers a closer alternative, but even edge servers can be overwhelmed by the sheer volume of data from numerous devices. This paper tackles the problem of efficiently processing dynamic video streams in large-scale, heterogeneous smart city environments by proposing a collaborative inference approach that intelligently distributes DNN computations between end devices and edge servers.

Methods

ADDP employs a two-pronged strategy for adaptive distributed DNN partitioning:

  • Feature-Map Layer Partition (FLP): This module intelligently divides the DNN model itself. It dynamically determines optimal "cut points" within the network layers, deciding which parts of the model run on end devices and which are offloaded to the edge. This decision-making process is informed by a regression model that estimates layer inference times based on device resources and network conditions. FLP aims to balance computational and communication resources across devices.
  • Feature-Map Size Partition (FSP): Once the model is partitioned horizontally by FLP, FSP handles the vertical partitioning of the input data (feature maps) within a cluster of end devices. It divides the input data into smaller segments, distributing them among multiple devices based on their available computational power. This ensures that even with varying data loads and device capabilities, inference can proceed in parallel, minimizing overall latency.

The framework also incorporates a hierarchical prediction model to estimate inference delays and communication times, crucial for making informed partitioning decisions. It leverages game theory principles to dynamically adjust cut points, aiming for an optimal Nash equilibrium in a multi-device, multi-edge scenario.

Datasets

Not discussed in the paper. The experiments were conducted using simulated and hardware testbeds with real-world video data.

Key Insights and Ideas

  • Adaptive Partitioning is Key: Simply offloading to the edge or keeping everything on the device isn't optimal. A dynamic, adaptive approach that considers both model structure and device capabilities is essential for efficient DNN inference.
  • Two-Level Partitioning for Synergy: FLP (model partitioning) and FSP (data partitioning) work in tandem. FLP decides what to run where, and FSP decides how to distribute the workload for the assigned parts, creating a powerful synergy.
  • Game Theory for Dynamic Environments: Using game theory to dynamically adjust cut points is crucial for handling the constantly changing nature of video streams and device availability in smart city scenarios. This allows the system to converge to an optimal state over time.
  • Balancing Computation and Communication: The core challenge is finding the sweet spot between how much computation happens locally versus how much data needs to be transferred. ADDP's FLP and FSP modules are designed to achieve this delicate balance.

Key Results

ADDP demonstrated significant improvements in inference latency:

  • End-to-End Latency Reduction: ADDP reduced single-frame response latency by 10-25% compared to pure on-device processing.
  • Comparison to Baselines: ADDP's FLP module outperformed existing methods like "Devices" (all on end devices) and "Edge" (all on edge server), and was competitive with or superior to ANS.
  • FSP Performance: FSP showed better performance than other feature map segmentation methods like MoDNN, DeepThings, and DeepSlicing, especially on devices with branching network structures.
  • Consistency in Inference Time: ADDP's FSP module helped ensure consistency in inference time across devices with uneven loads.
  • Reduced Critical Frame Latency: ADDP reduced critical frame response latency by 24.89% to 62.41% compared to original latency.

Limitations and Future Work

  • Scalability: While experiments were conducted with multiple devices, the paper acknowledges that testing on a larger scale with real devices is needed.
  • Dynamic Video Stream Complexity: The current work focuses on object detection. Extending ADDP to handle more complex video analysis tasks and a wider range of DNN architectures would be beneficial.
  • Hardware Cost: The simulation of the game process for partitioning was partly due to hardware cost limitations. Real-world deployment on a larger scale would provide more comprehensive validation.
  • Future Work: The authors suggest exploring more sophisticated partitioning strategies and further optimizing the adaptive decision-making process for even greater efficiency.

Summary updated

BibTeX
@article{cao2022inference,
  author = {Jin Cao and Bo Li and Mengni Fan and Huiyu Liu},
  title = {{Inference Acceleration with Adaptive Distributed DNN Partition over Dynamic Video Stream}},
  journal = {Algorithms},
  year = {2022},
  doi = {10.3390/a15070244},
}
Figure