Channel Pruning Guided by Classification Loss and Feature Importance

Jinyang Guo, Wanli Ouyang, Dong Xu

Abstract

In this work, we propose a new layer-by-layer channel pruning method called Channel Pruning guided by classification Loss and feature Importance (CPLI). In contrast to the existing layer-by-layer channel pruning approaches that only consider how to reconstruct the features from the next layer, our approach additionally take the classification loss into account in the channel pruning process. We also observe that some reconstructed features will be removed at the next pruning stage. So it is unnecessary to reconstruct these features. To this end, we propose a new strategy to suppress the influence of unimportant features (i.e., the features will be removed at the next pruning stage). Our comprehensive experiments on three benchmark datasets, i.e., CIFAR-10, ImageNet, and UCF-101, demonstrate the effectiveness of our CPLI method.

Introduction

Deploying deep Convolutional Neural Networks (CNNs) on resource-constrained mobile devices necessitates efficient model compression. Channel pruning is a prominent technique that reduces the width of network layers, thereby lowering FLOPs and memory usage. Existing methods typically fall into two categories: global loss minimization and local layer-by-layer reconstruction. While global methods are accurate but computationally expensive due to iterative fine-tuning, layer-by-layer methods are fast but often "blind" to the final classification task, treating all features with equal weight.

The authors identify a specific inefficiency in traditional layer-wise pruning termed the "next-layer feature removal problem." In standard approaches, a layer is optimized to reconstruct all features for the subsequent layer. However, if many of those features are destined to be pruned in the next stage, the current layer wastes capacity reconstructing information that will ultimately be discarded.

Proposed Method: CPLI

The proposed CPLI (Channel Pruning guided by classification Loss and feature Importance) method introduces two key innovations to the layer-wise optimization objective:

  1. Classification Loss Guidance: Instead of minimizing simple reconstruction error, CPLI weights the error of each channel by the partial derivative of the final loss with respect to that channel. This ensures that features critical to the final prediction are preserved.
  2. Feature Importance Guidance: To address the next-layer feature removal problem, the authors introduce a term that acts as a proxy for whether a feature will survive the next pruning stage. If a feature is likely to be pruned later, its reconstruction error is suppressed in the current stage.

The optimization pipeline involves identifying informative channels via LASSO optimization, followed by a fast Least Squares adjustment of the remaining weights. A final global fine-tuning pass is used to recover minor accuracy drops.

Experimental Results

The effectiveness of CPLI was evaluated across CIFAR-10, ImageNet (ILSVRC-12), and UCF-101 benchmarks.

CIFAR-10 Performance

On CIFAR-10, CPLI consistently outperformed state-of-the-art methods like ThiNet, CP, and DCP. For VGGNet, CPLI achieved a 2.86× compression ratio while actually increasing accuracy by +0.96%, suggesting a beneficial regularization effect.

Performance comparison on CIFAR-10 across various architectures.

ImageNet Performance

On the large-scale ImageNet dataset, CPLI demonstrated superior robustness. For ResNet-50 at a 2.25× compression ratio, CPLI showed a Top-5 accuracy drop of only 0.38%, significantly lower than ThiNet (1.12%) and CP (1.40%). Even for the already efficient MobileNet-V2, CPLI maintained a smaller accuracy drop compared to other baseline methods.

Performance comparison on ImageNet for ResNet-50 and MobileNet-V2.

Generalization and Ablation

The method also generalized well to 3D convolutions on the UCF-101 dataset using the C3D model. Ablation studies confirmed that both Classification Loss guidance and Feature Importance guidance are critical; removing either component led to significant performance degradation.

Conclusion

CPLI bridges the gap between the efficiency of layer-wise pruning and the accuracy of global loss-aware methods. By incorporating task-specific gradients and anticipating future pruning stages, CPLI achieves state-of-the-art compression results across diverse architectures and datasets. Future work may explore dynamic importance prediction and automated per-layer compression ratio selection.

Summary updated

BibTeX
@inproceedings{guo2020channel,
  author = {Jinyang Guo and Wanli Ouyang and Dong Xu},
  title = {{Channel Pruning Guided by Classification Loss and Feature Importance}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6720},
}
Figure