Towards Collaborative Intelligence Friendly Architectures for Deep Learning

Amir Erfan Eshratifar, Amirhossein Esmaili, Massoud Pedram

Introduction

Deep Neural Networks (DNNs) have revolutionized mobile applications, yet their computational demands often exceed the capabilities of mobile hardware. While cloud-only inference is a common workaround, it suffers from significant communication latency and high energy consumption due to the transmission of raw data. Collaborative intelligence offers a middle ground: splitting the DNN between the mobile device and the cloud. However, standard architectures often produce intermediate feature maps that are larger than the original input, exacerbating the communication bottleneck.

The Challenge: Data Expansion in DNNs

A critical observation in modern architectures like ResNet-50 is that data size tends to increase as it progresses through the initial layers. As shown in the data size profile below, feature maps can remain significantly larger than the input image until very late stages of the network.

Data size across residual blocks in ResNet-50, highlighting the expansion of intermediate features.

Without active compression, splitting the model early—where the mobile device handles only a few layers—actually increases the amount of data that must be transmitted compared to sending the raw image. This "data expansion trap" makes naive collaborative intelligence inefficient.

The Butterfly Unit

To address this, the authors introduce the Butterfly Unit, a pair of trainable 1x1 convolutional layers designed to aggressively compress and then restore feature maps at the split point.

The collaborative intelligence framework: a mobile shallow model processes initial layers, a Reduction Unit compresses features for transmission, and a Restoration Unit on the cloud reconstructs them for the deep model.

The framework consists of two primary components:

  1. Reduction Unit (Mobile Side): A 1x1 convolutional layer that reduces the number of channels (e.g., from 256 to 1), creating a massive data bottleneck.
  2. Restoration Unit (Cloud Side): A corresponding 1x1 convolutional layer that expands the data back to its original dimensions for subsequent processing.

Unlike traditional task-agnostic compression (like JPEG), the Butterfly Unit is trained end-to-end with the DNN. This allows the model to learn a "task-aware" compression, preserving only the information essential for the final prediction while discarding visual data that humans might notice but the AI does not need.

Dynamic Partitioning and Results

Because network conditions and server loads are volatile, the authors developed a dynamic partitioning algorithm. This involves training multiple model versions with different split points and selecting the optimal one at runtime based on real-time profiling of latency and energy.

Evaluated on the miniImageNet dataset using an NVIDIA Jetson TX2 and a GTX 1080 Ti, this approach yielded dramatic improvements over cloud-only inference:

  • Latency: Up to 77x reduction on 3G networks and over 40x on 4G and Wi-Fi.
  • Energy: Up to 80x savings on 3G and over 50x on 4G/Wi-Fi.
  • Accuracy: These gains were achieved with less than a 2% drop in accuracy.

Conclusion

The Butterfly Unit demonstrates that architectural modifications specifically designed for collaborative intelligence can overcome the data expansion trap. By enabling massive compression ratios (up to 256x) through learnable bottlenecks, this approach makes sophisticated deep learning models viable for resource-constrained mobile devices across various network conditions. Future work will explore more aggressive reduction techniques and the impact of 5G technology.

Summary updated

BibTeX
@inproceedings{eshratifar2019towards,
  author = {Amir Erfan Eshratifar and Amirhossein Esmaili and Massoud Pedram},
  title = {{Towards Collaborative Intelligence Friendly Architectures for Deep Learning}},
  booktitle = {ISQED},
  year = {2019},
  doi = {10.1109/isqed.2019.8697647},
}
Figure