Near-Lossless Deep Feature Compression for Collaborative Intelligence

Hyomin Choi, Ivan V. Bajic · DOI

Abstract

Collaborative intelligence is a new paradigm for efficient deployment of deep neural networks across the mobile-cloud infrastructure. By dividing the network between the mobile and the cloud, it is possible to distribute the computational workload such that the overall energy and/or latency of the system is minimized. However, this necessitates sending deep feature data from the mobile to the cloud in order to perform inference. In this work, we examine the differences between the deep feature data and natural image data, and propose a simple and effective near-lossless deep feature compressor. The proposed method achieves up to 5% bit rate reduction compared to HEVC-Intra and even more against other popular image codecs. Finally, we suggest an approach for reconstructing the input image from compressed deep features in the cloud, that could serve to supplement the inference performed by the deep model.

Introduction

In the paradigm of Collaborative Intelligence, a Deep Neural Network (DNN) is split between a mobile "front-end" and a cloud-based "back-end." This architecture allows for a flexible distribution of computational resources, potentially reducing energy consumption on edge devices and minimizing overall system latency. However, a significant bottleneck arises in the transmission of intermediate data—specifically, the feature maps generated by the front-end layers—to the cloud for final inference.

System architecture for collaborative intelligence showing the split between mobile and cloud server.

Traditional image codecs like JPEG or HEVC are optimized for human visual perception and the statistical properties of natural scenes. Deep features, however, are abstract mathematical tensors. They are often sparse, highly concentrated around specific values due to non-linear activations like ReLU, and exhibit spatial correlations distinct from those found in photographs. Consequently, applying standard image compression to these features is often inefficient. This paper proposes a custom compression scheme designed specifically for the unique characteristics of deep features.

Methodology

The authors developed a specialized compression pipeline tailored to the "tiled" nature of feature maps. The process involves several key stages:

  1. Quantization: Raw 32-bit floating-point activations are converted into 8-bit integers using uniform quantization. This step significantly reduces data volume with negligible impact on the final model accuracy.
  2. Tiling: The 3D feature tensor (Width x Height x Channels) is rearranged into a large 2D "tiled" image. This transformation makes the data compatible with standard 2D spatial prediction techniques.
  3. Palette-Based Prediction: This is the core innovation of the proposed method. Recognizing that feature values tend to cluster around a few "favorite" numbers, the encoder identifies the 8 most frequent values (a "palette") and uses them as predictors for 4x4 blocks.
  4. Multi-mode Prediction: For each 4x4 block, the encoder dynamically selects the most efficient of five prediction modes: Palette (Pal), Directional (Horizontal or Vertical), or Filter-based (Fil) prediction using 3-tap filters.
  5. Entropy Coding: The resulting prediction residuals are compressed using Context-based Adaptive Arithmetic Coding (CABAC), the high-efficiency engine utilized in the H.264 and H.265 standards.
  6. Input Reconstruction: To explore human-in-the-loop applications, the researchers also trained an inverse CNN (a "mirror model") to reconstruct the original input image from the compressed deep features.

Analysis of Deep Features

A key insight of this work is that deep features are fundamentally different from natural photographs. Statistical analysis via histograms demonstrates that feature values are extremely concentrated, often near zero. In contrast, pixel intensities in natural images are spread across a much wider range.

Histograms comparing the probability distribution of 8-bit input pixel values (a, d) with feature values from YOLOv2 (b, e) and VGG16 (c, f) layers.

This high degree of value redundancy explains the effectiveness of the Palette mode, which was selected for 35% to 58% of all blocks during testing. The research also highlights a tradeoff regarding the "split-point" within the network. While moving deeper into the network reduces the volume of data to be compressed, the features become increasingly abstract, making high-quality image reconstruction from those features more difficult.

Results and Discussion

The proposed compression method was evaluated across several popular DNN architectures, including YOLOv2, VGG16, and ResNet, using the VOC2007 and ImageNet datasets.

  • Compression Efficiency: The method achieved a 5% bit rate reduction compared to HEVC Intra, which was the state-of-the-art for high-efficiency image coding at the time of publication.
  • Comparison with Legacy Standards: The performance gains over older standards were even more pronounced, requiring approximately 45% fewer bits than JPEG2000 and 60% fewer bits than standard JPEG to transmit the same feature data.
  • Model Integrity: Because the method is near-lossless, it preserves the inference accuracy of the underlying AI model while significantly reducing transmission latency.

Conclusion

This work demonstrates that custom compression schemes tailored to the statistical properties of deep features can significantly outperform general-purpose image codecs in collaborative intelligence scenarios. While the current method provides substantial bit rate reductions, the computational complexity of multi-mode prediction and CABAC remains a factor for mobile deployment. Future research directions include the development of lossy feature compression techniques—where non-essential data for inference is intentionally discarded—and improving the quality of image reconstruction from deeper network layers.

Summary updated

BibTeX
@inproceedings{choi2018near,
  author = {Hyomin Choi and Ivan V. Bajic},
  title = {{Near-Lossless Deep Feature Compression for Collaborative Intelligence}},
  booktitle = {Mmsp},
  year = {2018},
  doi = {10.1109/mmsp.2018.8547134},
}
Figure