AutoMC: Automated Model Compression based on Domain Knowledge and Progressive search strategy

Chunnan Wang, Hongzhi Wang, Xiangyu Shi · DOI

Abstract

Model compression methods can reduce model complexity on the premise of maintaining acceptable performance, and thus promote the application of deep neural networks under resource constrained environments. Despite their great success, the selection of suitable compression methods and design of details of the compression scheme are difficult, requiring lots of domain knowledge as support, which is not friendly to non-expert users. To make more users easily access to the model compression scheme that best meet their needs, in this paper, we propose AutoMC, an effective automatic tool for model compression. AutoMC builds the domain knowledge on model compression to deeply understand the characteristics and advantages of each compression method under different settings. In addition, it presents a progressive search strategy to efficiently explore pareto optimal compression scheme according to the learned prior knowledge combined with the historical evaluation information. Extensive experimental results show that AutoMC can provide satisfying compression schemes within short time, demonstrating the effectiveness of AutoMC.

Introduction

Deep neural networks (DNNs) are powerful but resource-intensive, complicating deployment on edge devices. While techniques like pruning, knowledge distillation, and low-rank approximation exist, their effective application requires significant expertise. Selecting the right method, tuning hyperparameters, and sequencing multiple techniques creates a near-infinite search space. Traditional AutoML approaches often fail to navigate this space efficiently without domain-specific guidance.

Methods

AutoMC addresses these challenges through two core innovations:

1. Domain Knowledge-Based Embeddings

Instead of treating compression methods as black boxes, AutoMC utilizes a Knowledge Graph (KG) to map relationships between methods (e.g., LeGR, SFP), specific techniques (e.g., filter pruning), and hyperparameters. A neural network, $NN_{exp}$, is trained on historical experimental data to predict the performance of specific strategies on given tasks.

Knowledge Graph and NN_exp structure

2. Progressive Search Strategy

AutoMC employs a progressive approach to explore the search space. Starting from a base model, it evaluates single-step additions and identifies Pareto-optimal candidates—those balancing accuracy and size reduction—using a multi-objective evaluator ($F_{mo}$). These candidates then serve as the foundation for the next round of expansion in the search tree. The search space encompasses six state-of-the-art methods, totaling 4,525 possible individual strategies.

Experimental Results

The framework was evaluated on CIFAR-10 (ResNet-56) and CIFAR-100 (VGG-16). AutoMC consistently outperformed human-designed baselines and standard AutoML strategies like Reinforcement Learning (RL) and Evolutionary Algorithms (EA).

  • Performance Gains: On ResNet-56, AutoMC achieved a 1.73% accuracy increase with a 40% parameter reduction.
  • Search Efficiency: AutoMC identified superior Pareto-optimal schemes compared to RL/EA within the same search time.
  • Transferability: Schemes discovered for ResNet-56 were successfully applied to ResNet-20 and ResNet-164, demonstrating robustness across scales.
Visualizing discovered compression schemes

Discussion and Conclusion

AutoMC demonstrates that sequential synergy—combining different compression methods—is highly effective. By encoding domain logic into the search process via Knowledge Graphs, the algorithm avoids redundant evaluations. While currently focused on image classification and limited to six methods, future work will expand the search space to include quantization and extend to tasks like NLP and object detection.

Summary updated

BibTeX
@inproceedings{wang2024automc,
  author = {Chunnan Wang and Hongzhi Wang and Xiangyu Shi},
  title = {{AutoMC: Automated Model Compression based on Domain Knowledge and Progressive search strategy}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00147},
}
Figure