Conditional Automated Channel Pruning for Deep Neural Networks

Yixin Liu, Yong Guo, Jiaxin Guo, Luoqian Jiang, Jian ChenIEEE Signal Processing Letters 2020 · DOI

Abstract

Model compression aims to reduce the redundancy of deep networks to obtain compact models. Recently, channel pruning has become one of the predominant compression methods to deploy deep models on resource-constrained devices. Most channel pruning methods often use a fixed compression rate for all the layers of the model, which, however, may not be optimal. To address this issue, given a target compression rate for the whole model, one can search for the optimal compression rate for each layer. Nevertheless, these methods perform channel pruning for a specific target compression rate. When we consider multiple compression rates, they have to repeat the channel pruning process multiple times, which is very inefficient yet unnecessary. To address this issue, we propose a Conditional Automated Channel Pruning (CACP) method to obtain the compressed models with different compression rates through a single channel pruning process. To this end, we develop a conditional model that takes an arbitrary compression rate as input and outputs the corresponding compressed model. In the experiments, the resultant models with different compression rates consistently outperform the models compressed by existing methods with a channel pruning process for each target compression rate.

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success across various domains but are notoriously resource-hungry, posing significant challenges for deployment on mobile phones or IoT devices. Channel pruning—the process of removing redundant neurons or filters—has emerged as a popular solution to create leaner, faster models.

However, existing pruning methods face a significant efficiency bottleneck. Simple methods apply a fixed pruning rate to every layer, ignoring that some layers are more redundant than others. Advanced "automated" methods, such as AMC, search for optimal per-layer pruning rates but are rigid: a new search must be conducted for every unique hardware constraint or target compression rate. This paper introduces Conditional Automated Channel Pruning (CACP) to address this "one-off" limitation by training a single agent capable of understanding how to prune a model for any given budget.

Methodology

The core innovation of CACP is treating the target compression rate ($\beta$) as a dynamic input condition rather than a static goal.

The Conditional Framework

Instead of searching for a single set of pruned layers, CACP utilizes a reinforcement learning (RL) agent that takes both the current layer's features and the overall target compression rate as inputs. This allows the model to learn the underlying relationship between a computational budget and layer importance.

Overview of the CACP framework, showing how a single original model can be pruned into multiple compressed models based on input compression rates.

Training and Constraints

During training, the model is exposed to a variety of compression rates sampled from a uniform distribution, learning a policy that maximizes expected validation accuracy across all potential targets. To ensure the final model strictly adheres to the computational budget, the authors implemented a "Safety Net" constraint. This mathematical boundary calculates a lower bound for pruning at each layer; if the agent prunes too conservatively in early layers, the system forces higher pruning in later layers to meet the total budget. Once per-layer rates are determined, specific channels are removed based on their $L_1$ norm.

Experimental Results

The researchers evaluated CACP using the CIFAR-10 dataset on the ResNet-56 architecture. The method was compared against several state-of-the-art baselines, including SFP, DCP, and AMC.

Performance comparison of CACP against baseline methods on CIFAR-10 using ResNet-56.

Accuracy and Efficiency

As shown in the results, CACP consistently outperforms specialized "one-off" models. At a 50% FLOP reduction, CACP achieved 93.84% accuracy, surpassing AMC (93.57%) and DCP (93.77%). Even under aggressive compression (70% FLOP reduction), CACP maintained a high accuracy of 93.13%, whereas AMC dropped to 92.61%.

Furthermore, CACP demonstrated superior parameter efficiency. For a 0.3 compression target, CACP removed 28.2% of parameters compared to AMC's 19.5%, while still delivering higher accuracy. This suggests that learning to prune across a range of budgets helps the agent generalize better than methods optimized for a single target.

Conclusion

Conditional Automated Channel Pruning (CACP) provides a "train once, deploy anywhere" solution for model compression. By treating the compression rate as a condition, it eliminates the need for redundant pruning searches while achieving state-of-the-art accuracy. Future work may involve scaling this approach to larger datasets like ImageNet and incorporating hardware-specific latency as a primary condition.

Summary updated

BibTeX
@article{liu2020conditional,
  author = {Yixin Liu and Yong Guo and Jiaxin Guo and Luoqian Jiang and Jian Chen},
  title = {{Conditional Automated Channel Pruning for Deep Neural Networks}},
  journal = {IEEE Signal Processing Letters},
  year = {2020},
  doi = {10.1109/lsp.2021.3088323},
}
Figure