NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Supervised Compression for Resource-constrained Edge Computing Systems

Yoshitomo Matsubara, Ruihan Yang, Marco Levorato, Stephan MandtWACV 2021 · DOI

Abstract

There has been much interest in deploying deep learning algorithms on low-powered devices, including smartphones, drones, and medical sensors. However, full-scale deep neural networks are often too resource-intensive in terms of energy and storage. As a result, the bulk part of the machine learning operation is therefore often carried out on an edge server, where the data is compressed and transmitted. However, compressing data (such as images) leads to transmitting information irrelevant to the supervised task. Another popular approach is to split the deep network between the device and the server while compressing intermediate features. To date, however, such split computing strategies have barely outperformed the aforementioned naive data compression baselines due to their inefficient approaches to feature compression. This paper adopts ideas from knowledge distillation and neural image compression to compress intermediate feature representations more efficiently. Our supervised compression approach uses a teacher model and a student model with a stochastic bottleneck and learnable prior for entropy coding (Entropic Student). We compare our approach to various neural image and feature compression baselines in three vision tasks and found that it achieves better supervised rate-distortion performance while maintaining smaller end-to-end latency. We furthermore show that the learned feature representations can be tuned to serve multiple downstream tasks.

Introduction: The Challenge of Edge AI

Deploying powerful AI on resource-constrained hardware—like drones, smartphones, or medical sensors—is a constant tug-of-war between performance and resources. Currently, two primary paradigms exist for handling this challenge:

  1. Full Offloading: The mobile device compresses an entire image (using standard codecs like JPEG or WebP) and sends it to a powerful edge server. The drawback is that these formats are optimized for human perception, not AI tasks, often wasting bandwidth on background details irrelevant to the specific classification or detection goal.
  2. Split Computing: The model is partitioned. The mobile device runs the initial layers, and the server processes the rest. However, previous attempts at "feature compression" were often uninformed, simply truncating data or reducing channels, which typically leads to a significant drop in accuracy.
Comparison of (a) Input Compression for Full Offloading and (b) Feature Compression for Split Computing.

The authors bridge this gap by introducing a compression pipeline that is "aware" of the supervised task, optimizing for both data size and computational efficiency.

The Entropic Student Framework

The proposed framework, called the Entropic Student, utilizes a two-stage training approach to achieve efficient feature compression:

  • Architecture: It consists of a lightweight Encoder on the device, a Stochastic Bottleneck (the compressed representation $z$), and a Decoder on the server.
  • Stage 1: Feature Mimicry: The student model is trained to mimic the intermediate features ($h$) of a large, pre-trained Teacher model (e.g., ResNet-50). This distillation process ensures the student learns to capture the most relevant information for the task.
  • Stage 2: Task Fine-tuning: Once the encoder produces a compact representation, the server-side "tail" is fine-tuned for specific tasks like classification, object detection, or semantic segmentation.
  • Learned Entropy Coding: Drawing from variational information bottleneck theory, the model includes a "learnable prior." This allows the system to estimate the probability distribution of features, enabling highly efficient lossless entropy coding of the bitstream.

Experimental Results

The framework was rigorously tested on industry-standard benchmarks, including ImageNet (classification), COCO 2017 (detection and segmentation), and PASCAL VOC 2012.

Superior Rate-Distortion Performance

The Entropic Student consistently outperformed standard baselines like JPEG, WebP, and even state-of-the-art neural image compressors in terms of accuracy-per-bit. As shown in the classification results on ImageNet, the proposed supervised compression (blue stars) maintains significantly higher accuracy at lower data sizes compared to traditional image compression (IC) and previous feature compression (FC) methods.

Accuracy vs. Compressed Data Size on ImageNet, showing the Entropic Student's superior rate-distortion performance.

Efficiency and Latency

Beyond accuracy, the method offers substantial practical benefits:

  • Latency Gains: Compared to standard JPEG + ResNet-50 baselines, the proposed method reduced end-to-end latency by 47% to 62% on hardware like Raspberry Pi 4 and NVIDIA Jetson TX2.
  • Lightweight Footprint: The encoder features only 0.14M parameters, making it roughly 40 times smaller than competing neural compression models, which is critical for memory-constrained edge devices.
  • Multi-Task Versatility: A single encoder on the mobile device can remain fixed while different server-side "tails" are swapped to perform different tasks (e.g., switching from detection to segmentation) using the same compressed feature stream.

Conclusion

By treating compression as an integral part of the inference task rather than a separate pre-processing step, the Entropic Student provides a blueprint for more responsive and efficient edge AI. While the current work focuses on computer vision, the principles of supervised compression could potentially be expanded to other domains like Natural Language Processing or time-series sensor data in future research.

Summary updated

BibTeX
@inproceedings{matsubara2021supervised,
  author = {Yoshitomo Matsubara and Ruihan Yang and Marco Levorato and Stephan Mandt},
  title = {{Supervised Compression for Resource-constrained Edge Computing Systems}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv51458.2022.00100},
}
Figure