Auto-tuning Neural Network Quantization Framework for Collaborative Inference Between the Cloud and Edge

Guangli Li, Lei Liu, Xueying Wang, Xiao Dong, Peng Zhao, Xiaobing FengarXiv 2018

TL;DR

This paper introduces an auto-tuning framework that intelligently splits Deep Neural Network (DNN) inference between mobile edge devices and the cloud. By applying INT8 quantization on the edge and automatically selecting optimal network partition points, the framework significantly reduces data transmission overhead and device storage requirements with negligible impact on accuracy.

What Problem Does This Paper Address?

Running state-of-the-art deep neural networks (DNNs) entirely in the cloud introduces significant wireless data transmission latency and raises privacy concerns regarding sensitive user data (like photos and videos). Conversely, executing these massive models entirely on mobile edge devices is often impossible due to strict computational and storage constraints.

While "collaborative inference"—splitting the network layers so the edge handles the initial layers and the cloud finishes the rest—is a promising middle ground, finding the optimal partition point is incredibly tedious for developers. Furthermore, existing partition frameworks focus on full-precision models, missing out on the massive compression and acceleration benefits of network quantization. The authors address this gap by creating an automated framework that optimizes both network partitioning and quantization simultaneously.

Methods

The authors propose an automated framework that combines cloud-edge collaborative inference with INT8 scalar quantization.

Overview of the proposed auto-tuning framework for cloud-edge collaborative inference

The workflow consists of two main phases:

  1. Candidate Selection: The framework analyzes the DNN architecture to identify viable partition points. It establishes structural rules to avoid splitting within complex blocks (like Inception branches or Residual shortcuts), as doing so would require transmitting multiple data arrays (blobs), increasing network overhead. Non-parametric layers (like ReLU and pooling) are automatically merged into preceding parametric layers.
  2. Auto-Tuning Partition: During deployment, the framework profiles the operators on the edge device and uses a performance prediction function to evaluate valid partition points. It automatically selects the optimal split based on the current network bandwidth and device environment.

During inference, the edge device executes the first part of the network using low-precision INT8 quantization, transmits the intermediate low-precision features to the cloud, and the cloud completes the inference using the original full-precision (FP32) model to preserve high accuracy.

Datasets

The framework was evaluated using the standard ImageNet dataset to test the effectiveness of mixed-precision collaborative inference on state-of-the-art DNNs.

Key Insights and Ideas

  • The Shortcut Trap: Intuitively, one might think any layer can serve as a split point. However, splitting a network at a layer that contains parallel branches (Inception) or shortcut connections (ResNet) forces the edge device to transmit either multiple INT8 blobs or a mix of INT8 and FP32 blobs. This drastically increases transmission overhead, defeating the purpose of the split.
  • Privacy via Intermediate Features: Transmitting intermediate quantized feature maps rather than raw user inputs acts as an inherent privacy shield, making it significantly harder to reconstruct the original sensitive data.
  • Bandwidth-Driven Adaptivity: The optimal partition point is highly sensitive to wireless upload speeds. In low-bandwidth environments, executing more layers on the edge reduces the size of the data that needs to be uploaded, making collaborative inference faster than cloud-only inference.

Key Results

The framework was evaluated using an NVIDIA Jetson TX2 as the edge device and a server with an NVIDIA Titan Xp GPU for the cloud.

  • AlexNet: Achieved a 1.7x speedup over cloud-only inference when partitioned at conv5 under a 250 KB/s bandwidth constraint. It reduced the required on-device model storage by 96.17% with a trivial Top-1 accuracy drop of just -0.09%.
  • VGG16: Reduced on-device storage by 99.97% (partitioned early at conv1_2) with 0.00% loss in Top-1 accuracy.
  • ResNet-18: Achieved a 1.13x speedup (partitioned at res4a) and an 85.63% storage reduction, with an accuracy drop of only -0.19%.

Limitations and Future Work

The authors do not explicitly detail future work or limitations, but a few constraints are apparent from the methodology:

  • Static Profiling: The framework relies heavily on offline profiling of the edge device, meaning sudden runtime fluctuations in device load or wireless network stability might affect the optimality of the chosen partition point.
  • Architectural Assumptions: The partition rules are hardcoded for specific structural patterns (Inception and Residual blocks) and would need extension to support newer transformer-based architectures or dynamic routing networks.

Summary updated

BibTeX
@misc{li2018auto,
  author = {Guangli Li and Lei Liu and Xueying Wang and Xiao Dong and Peng Zhao and Xiaobing Feng},
  title = {{Auto-tuning Neural Network Quantization Framework for Collaborative Inference Between the Cloud and Edge}},
  year = {2018},
  eprint = {1812.06426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.06426},
}
Figure