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

EdgeCompress: Coupling Multidimensional Model Compression and Dynamic Inference for EdgeAI

Hao Kong, Di Liu, Shuo Huai, Xiangzhong Luo, Ravi Subramaniam, Christian Makaya, Qian Lin, Weichen Liu

TL;DR

This paper introduces EdgeCompress, a novel framework for compressing deep learning models for edge devices. It combines dynamic image cropping, multi-dimensional network shrinking, and adaptive inference to significantly reduce computational costs while maintaining or improving accuracy, making advanced AI feasible on resource-constrained hardware.

What Problem Does This Paper Address?

Deploying powerful Convolutional Neural Networks (CNNs) on edge devices (like smartphones or IoT sensors) is challenging due to their high computational demands. These devices have limited processing power, memory, and battery life, making it difficult to run complex models efficiently. Existing compression techniques often focus on only one aspect of redundancy (e.g., network depth or image resolution), leading to suboptimal performance. The authors aim to create a comprehensive solution that tackles redundancy in input data, network architecture, and inference strategy simultaneously.

Methods

EdgeCompress is built upon three core components:

  • Dynamic Image Cropping (DIC): Instead of processing the entire input image, DIC uses a lightweight "foreground predictor" to identify and crop the most relevant object. This significantly reduces the amount of data the CNN needs to process, especially for images with large backgrounds. They train this predictor using pseudo-labels generated by Grad-CAM.
  • Compound Shrinking (CS): This technique collaboratively compresses the CNN across three dimensions: depth (layers), width (channels), and resolution. It quantifies the impact of shrinking each dimension on accuracy and computational cost, then calculates optimal shrinking coefficients to achieve a desired trade-off. This allows for a more holistic compression than methods that only target one dimension.
  • Dynamic Inference (DI): This component leverages the compressed models generated by CS. Instead of using a single, static model for all inputs, EdgeCompress cascades multiple sub-networks of varying complexities. For each input image, it dynamically selects the most appropriate sub-network based on its estimated difficulty. This is further enhanced by a novel "probability difference" confidence metric and a "prediction accumulation" strategy that merges logits from previous models to improve accuracy without significant overhead.

Datasets

The authors evaluated their framework on several standard datasets:

  • ImageNet-1K: A large-scale dataset for image classification, used extensively for benchmarking.
  • ImageNet-100: A subset of ImageNet-1K, containing 100 classes.
  • CIFAR-10 and CIFAR-100: Smaller, commonly used datasets for image classification.

Key Insights and Ideas

  • Foreground is Key: The observation that most of the computational cost in image classification comes from processing background regions, which often contain little discriminative information, is a crucial insight. DIC directly addresses this.
  • Holistic Compression Pays Off: Compressing depth, width, and resolution simultaneously, rather than in isolation, leads to better trade-offs between accuracy and efficiency.
  • Adaptive Inference is Crucial for Edge: Not all images are equally difficult. Dynamically adapting the model complexity and resolution to the input image's difficulty is essential for maximizing efficiency on edge devices.
  • A Better Confidence Metric: The proposed "probability difference" metric for determining inference confidence is shown to be more effective than simply using the highest probability, leading to better control over dynamic inference.
  • Logit Accumulation for Accuracy Boost: Accumulating logits from previous models in the dynamic inference chain offers a way to improve accuracy without the computational burden of fusing feature maps.

Key Results

  • ImageNet-1K: EdgeCompress reduces the computation of ResNet-50 by 48.8% while improving top-1 accuracy by 0.8%. Compared to HRank, it achieves 4.1% higher accuracy with similar computation.
  • On-Device Performance: Experiments on NVIDIA AGX Xavier and Jetson Nano show significant improvements in latency and throughput. For example, on Xavier, EC-Dynamic achieves 83.5% top-1 accuracy with 7.8 ms latency, a 1.9% accuracy increase and 27.7% latency reduction compared to RCC. Throughput also increased by 38.5%.
  • RegNet-X: EC-Dynamic outperforms the baseline RegNet-X with 1.4% higher accuracy and a 50.0% reduction in MACs.
  • Ablation Studies: The paper demonstrates that each component (DIC, CS, DI) contributes to the overall performance improvement.

Limitations and Future Work

  • Foreground Predictor Training: While the foreground predictor is lightweight, its training still requires pseudo-labels generated by Grad-CAM, which involves a forward pass of a well-trained CNN.
  • Dynamic Inference Threshold Tuning: The performance of dynamic inference is sensitive to the preset confidence threshold (Do). Finding the optimal threshold for different applications might require further tuning.
  • Future Work: The authors suggest exploring more advanced techniques for foreground prediction and further optimizing the dynamic inference strategy. They also mention the potential for applying their framework to other AI tasks beyond image classification.

Summary updated

BibTeX
@article{kong2023edgecompress,
  author = {Hao Kong and Di Liu and Shuo Huai and Xiangzhong Luo and Ravi Subramaniam and Christian Makaya and Qian Lin and Weichen Liu},
  title = {{EdgeCompress: Coupling Multidimensional Model Compression and Dynamic Inference for EdgeAI}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2023},
  url = {https://openreview.net/forum?id=NhnI4JESv2},
}
Figure