Deep feature compression for collaborative object detection

Hyomin Choi, Ivan V. Bajic · DOI

Introduction

Deploying sophisticated deep learning models on mobile and IoT devices presents a significant engineering challenge. Traditionally, developers choose between two extremes: cloud-only processing, where raw data is uploaded to a powerful server, or mobile-only processing, where the entire model runs locally. Cloud-only approaches are often plagued by high latency and bandwidth costs, while mobile-only approaches can quickly drain device batteries and exceed local processing capabilities.

This paper explores a middle ground known as collaborative intelligence. In this paradigm, a neural network is split: the initial layers run on the mobile device to extract features, which are then transmitted to the cloud for the remaining computation. However, intermediate feature data can be surprisingly large. This research introduces a method to apply lossy compression to these features, reducing communication overhead by up to 70% without sacrificing detection accuracy.

The Collaborative Intelligence Framework

The authors propose a pipeline designed to make feature transfer efficient enough for real-world use. The framework moves away from simply sending raw feature tensors and instead treats them as visual data that can be compressed using standard codecs.

The proposed collaborative intelligence framework, contrasting standard cloud offloading (a) with lossless (b) and lossy (c) feature compression pipelines.

As illustrated in the framework above, the process involves three key steps:

  1. Quantization (Q-Layer): 32-bit floating-point feature data is converted into lower-precision integers (8-, 10-, or 12-bit). This "near-lossless" step provides immediate data reduction with negligible impact on model performance.
  2. Tiling and HEVC Compression: To leverage existing video compression infrastructure, the various channels of the feature maps are "tiled" into a single large image. This image is then compressed using the HEVC (High Efficiency Video Coding) standard.
  3. Compression-Augmented Training: Standard models are sensitive to the artifacts (blurring, blocking) introduced by lossy compression. To counter this, the authors re-train the cloud-based portion of the network by injecting random levels of compression noise during training, making the model robust to these artifacts.

Optimizing the Split Point

A critical decision in collaborative intelligence is where to "cut" the network. The authors analyzed the YOLO9000 architecture to identify the most efficient split points.

Analysis of data volume (bars) and cumulative computational complexity (lines) across YOLO9000 layers. The red box highlights the optimal region for splitting.

As shown in the figure above, the volume of output data (grey bars) is highest in the early layers and typically decreases significantly after pooling layers (e.g., max_7, max_11, max_17). By splitting the network at these points, the system minimizes the amount of data that needs to be transmitted while shifting the bulk of the computational complexity (the rising lines) to the cloud server.

Key Results

The study evaluated the method using the PASCAL VOC benchmarks. The results demonstrate that the "noise-robust" training is essential for high-ratio compression:

  • Bandwidth Efficiency: At the max_17 split point, the proposed method achieved a 70.3% reduction in bits per image compared to a standard cloud-only approach (uploading JPEG images), while maintaining the same Mean Average Precision (mAP).
  • Impact of Re-training: Compressing features at the max_11 layer using original weights only saved 6% in bandwidth before accuracy dropped. However, with compression-augmented training, the bandwidth savings increased to 45.2% at the same accuracy level.

Conclusion and Future Work

By treating deep learning features as images and training models to be robust to compression noise, collaborative intelligence becomes a viable path for high-performance AI on resource-constrained devices. While this study focused on YOLO9000 and HEVC, future research could involve developing specialized codecs tailored specifically for the statistical properties of neural features rather than human vision, potentially unlocking even greater efficiency gains.

Summary updated

BibTeX
@inproceedings{choi2018deep,
  author = {Hyomin Choi and Ivan V. Bajic},
  title = {{Deep feature compression for collaborative object detection}},
  booktitle = {ICIP},
  year = {2018},
  doi = {10.1109/icip.2018.8451100},
}
Figure