AutoMC: Automated Model Compression Based on Domain Knowledge and Progressive Search

Chunnan Wang, Hongzhi Wang, Xiangyu Shi

TL;DR

AutoMC is an automated machine learning (AutoML) framework that designs optimal model compression schemes by sequentially combining different compression methods and hyperparameters. By leveraging external domain knowledge and a progressive search strategy, AutoMC efficiently navigates a massive combinatorial search space to discover compression pipelines that outperform both human-designed methods and traditional AutoML baselines.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are notoriously resource-intensive, making their deployment on edge devices or mobile platforms challenging. While various model compression techniques exist—such as pruning, knowledge distillation, and low-rank approximation—choosing the right method and tuning its specific hyperparameters requires deep domain expertise.

Furthermore, single-method approaches often hit a performance ceiling. Combining different techniques sequentially (e.g., pruning a network and then applying knowledge distillation) can yield superior results, but it creates a massive, combinatorial search space. Traditional AutoML search strategies like Reinforcement Learning (RL) or Evolutionary Algorithms (EA) struggle to navigate this space efficiently, often wasting significant compute evaluating useless compression pipelines.

Methods

AutoMC automates the creation of sequential compression pipelines using three core innovations:

  1. Tree-Structured Search Space: The framework structures the search space as a tree where each node represents a specific "compression strategy" (a compression method paired with a specific hyperparameter setting). A path from the root to any node represents a sequential compression scheme.
AutoMC's tree-structured search space
  1. Domain Knowledge-Based Embedding Learning: To help the algorithm understand the relationships between different strategies, AutoMC builds a Knowledge Graph ($\mathbb{G}$) containing technical details, hyperparameters, and methods. It uses TransR to learn relational embeddings and enhances them using a neural network ($NN_{exp}$) trained on historical experimental data extracted from literature.
Knowledge Graph and NN_exp embedding structure
  1. Progressive Search Strategy: Instead of evaluating full, long sequences from scratch, AutoMC expands the search space step-by-step. It utilizes a multi-objective evaluator ($F_{mo}$) to predict how adding a new compression step will impact the accuracy ($AR_{step}$) and parameter reduction ($PR_{step}$) of the current pipeline, filtering out low-promise paths before actual execution.
Structure of the multi-objective evaluator Fmo

Datasets

The authors evaluated AutoMC on standard image classification benchmarks:

  • CIFAR-10 (using ResNet-56 as the base model)
  • CIFAR-100 (using VGG-16 as the base model)

To test transferability, the compression schemes discovered on these models were directly applied without re-searching to different network scales: ResNet-20, ResNet-164, VGG-13, and VGG-19.

Key Insights and Ideas

  • Multi-Method Synergy: The paper validates the hypothesis that mixing different compression families sequentially (e.g., combining Soft Filter Pruning with Network Slimming) yields better Pareto-optimal trade-offs than aggressively tuning a single method.
  • Knowledge-Guided AutoML: Purely data-driven search strategies waste time evaluating fundamentally flawed pipelines. Injecting structured domain knowledge (like knowing which hyperparameters control pruning ratios vs. distillation temperatures) acts as a powerful prior that drastically accelerates search convergence.
  • Progressive Expansion Beats Global Search: Evaluating long compression sequences is computationally expensive. By treating the search progressively—evaluating the immediate next step and building on top of Pareto-optimal sub-sequences—AutoMC avoids the sample-inefficiency that plagues standard RL controllers.

Key Results

AutoMC consistently outperformed state-of-the-art human-designed compression methods (like LeGR, SFP, and HOS) as well as standard AutoML baselines (Random Search, RL, and EA).

  • ResNet-56 on CIFAR-10: At a ~40% parameter reduction target, AutoMC actually increased the baseline model's accuracy by 1.73%. At a harsher ~70% reduction target, it still improved accuracy by 1.25%, whereas standalone human methods suffered accuracy drops up to 5.67%.
  • VGG-16 on CIFAR-100: AutoMC achieved a 0.99% accuracy increase at 44.67% parameter reduction.
  • Transferability: Schemes found on ResNet-56 transferred successfully to ResNet-164, outperforming manual configurations and demonstrating that the discovered pipelines generalize well across different model depths.

Limitations and Future Work

While AutoMC shows strong performance, the authors note that the search space, though large, is still bounded by the six base open-source compression methods integrated into the framework. In future work, they plan to enrich the search space with more diverse techniques (such as quantization) and refine the search strategy to handle the resulting scale even more efficiently.

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}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00147},
}
Figure