SC2 Benchmark: Supervised Compression for Split Computing

Yoshitomo Matsubara, Ruihan Yang, Marco Levorato, Stephan Mandt

Abstract

With the increasing demand for deep learning models on mobile devices, splitting neural network computation between the device and a more powerful edge server has become an attractive solution. However, existing split computing approaches often underperform compared to a naive baseline of remote computation on compressed data. Recent studies propose learning compressed representations that contain more relevant information for supervised downstream tasks, showing improved tradeoffs between compressed data size and supervised performance. However, existing evaluation metrics only provide an incomplete picture of split computing. This study introduces supervised compression for split computing (SC2) and proposes new evaluation criteria: minimizing computation on the mobile device, minimizing transmitted data size, and maximizing model accuracy. We conduct a comprehensive benchmark study using 10 baseline methods, three computer vision tasks, and over 180 trained models, and discuss various aspects of SC2. We also release our code and sc2bench, a Python package for future research on SC2. Our proposed metrics and package will help researchers better understand the tradeoffs of supervised compression in split computing.

Introduction

Deep learning on mobile devices faces a constant tug-of-war: devices are often too resource-constrained for massive models, but sending raw data to the cloud is slow and bandwidth-intensive. Split computing offers a middle ground by running the initial layers of a model on the device, compressing the resulting intermediate features, and transmitting them to a powerful server to complete the inference.

Overview of Split Computing and the SC2 three-way tradeoff.

Historically, the field has lacked a unified evaluation framework. Most research focuses solely on the tradeoff between data size (Rate) and model accuracy (Distortion), often ignoring the "Encoder Size"—the computational cost of the layers running on the mobile device. This paper introduces the SC2 Benchmark to evaluate split computing across three critical dimensions: device load, transmission size, and task performance.

Methods and Evaluation Criteria

The SC2 Benchmark formalizes the problem of supervised compression for split computing by introducing the ExR-D tradeoff. This metric plots distortion against the product of Encoder size and Rate, effectively penalizing models that achieve high compression only by utilizing an impractically large on-device encoder.

Baseline Methods

The study evaluates 10 baseline methods across three major computer vision tasks (classification, detection, and semantic segmentation). These include:

  • Input Compression (IC): Naive baselines where the device sends images compressed via standard codecs like JPEG, WebP, or BPG.
  • Feature Compression (FC): Methods that compress intermediate features using standard codecs.
  • Supervised Compression (SC): Specialized methods like "Channel Reduction + Bottleneck Quantization" and the standout "Entropic Student."

The Entropic Student

The Entropic Student method employs a two-stage training process. First, an encoder-decoder architecture is trained to mimic the intermediate features of a large "teacher" model. Second, the model is fine-tuned for the specific downstream task while freezing the encoder to ensure features remain highly compressible.

Key Insights

A primary finding of the benchmark is the Bottleneck Paradox: splitting a model at a later layer makes features easier to compress due to their abstract nature, but significantly increases the on-device encoder's weight. Conversely, early splitting keeps the device load light but results in features that are difficult to compress efficiently.

Visual comparison of Supervised Compression (SC) vs. Input Compression (IC) showing task-specific feature focus.

Supervised compression proves more efficient than general image compression because it discards "irrelevant" pixels. As shown in the visual comparisons, the model learns to allocate bits only to features relevant to the task (e.g., the stripes of a zebra or the shape of a bird) while ignoring background noise.

Results

The benchmark results, spanning over 180 models trained on ImageNet, COCO, and PASCAL VOC, reveal several key takeaways:

  1. Entropic Student Performance: This method consistently provided the best R-D and ExR-D tradeoffs across all tasks.
  2. Encoder Efficiency: The Entropic Student’s encoder is approximately 40 times smaller than those of state-of-the-art neural image compressors like Mean-Scale Hyperprior, making it far more viable for mobile hardware.
  3. Superiority over Classical Codecs: Specialized split computing methods significantly outperformed naive JPEG-based remote inference, particularly at low bitrates.

Conclusion and Future Work

The SC2 Benchmark and the accompanying sc2bench Python package provide a robust foundation for future research in split computing. While the current study uses parameter count as a proxy for computational cost, future iterations could incorporate actual execution latency on mobile hardware. Additionally, exploring dynamic splitting—where the split point adapts to real-time battery or network conditions—remains a promising avenue for future work.

Summary updated

BibTeX
@article{matsubara2023sc,
  author = {Yoshitomo Matsubara and Ruihan Yang and Marco Levorato and Stephan Mandt},
  title = {{SC2 Benchmark: Supervised Compression for Split Computing}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=p28wv4G65d},
}
Figure