Discrimination-aware Channel Pruning for Deep Neural Networks

Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, Jin-Hui Zhu

Introduction

As deep learning models continue to grow in size and complexity, deploying them on resource-constrained devices like mobile phones or embedded hardware becomes increasingly challenging. Channel pruning has emerged as a powerful solution, removing entire filters from convolutional layers to reduce model size and accelerate inference without requiring specialized hardware.

However, traditional pruning methods often suffer from two main drawbacks. Sparsity-driven methods attempt to train sparse models from scratch, which is computationally expensive and prone to convergence issues. Reconstruction-based methods focus on minimizing the difference between original and pruned feature maps; unfortunately, a channel that is good for reconstruction may not be useful for the final classification task, leading to the retention of "noisy" channels.

Methodology: Discrimination-aware Channel Pruning (DCP)

To address these limitations, the authors introduce Discrimination-aware Channel Pruning (DCP). The core philosophy is to prioritize channels that contribute most to the network's ability to discriminate between classes, rather than just those that reconstruct feature maps accurately.

The DCP framework utilizes auxiliary discrimination-aware losses to guide channel selection.

The DCP process involves several key steps:

  1. Auxiliary Losses: The researchers insert "discrimination-aware" losses—essentially mini-classifiers—at intermediate stages of a pre-trained network.
  2. Discriminative Fine-tuning: Before pruning, the network is fine-tuned using these additional losses, forcing intermediate layers to develop more discriminative features.
  3. Greedy Channel Selection: Channel selection is formulated as an optimization problem constrained by an $\ell_{2,0}$-norm. A greedy algorithm selects channels that minimize a joint loss combining feature map reconstruction and the new discriminative loss.
  4. Iterative Pruning: The process is conducted stage-by-stage, alternating between pruning layers and fine-tuning to recover accuracy.

Experimental Evaluation

The authors evaluated DCP across several major benchmarks, including CIFAR-10, ImageNet (ILSVRC-12), and LFW for face recognition.

Key Results

DCP demonstrates state-of-the-art performance, often improving accuracy while significantly reducing model complexity:

  • VGGNet (CIFAR-10): DCP achieved a remarkable 15.58× reduction in parameters and a 2.86× reduction in FLOPs, while actually decreasing the error rate by 0.58%.
  • ResNet-50 (ImageNet): With a 30% reduction in channels, DCP increased top-1 accuracy by 0.39%. At 50% pruning, it continued to outperform existing methods like ThiNet.
  • MobileNet: Even on architectures already optimized for efficiency (MobileNet v1 and v2), DCP reduced channels by 30% while maintaining or improving accuracy.
Comparison of DCP against state-of-the-art pruning methods on VGGNet and ResNet-56.

Discussion and Insights

A significant takeaway from this research is that discriminative power is more important than pixel-perfect reconstruction. By introducing task-specific losses to intermediate layers, the method identifies "dead weight" channels that reconstruction-based methods might miss.

Furthermore, the study suggests that pruning can act as a form of regularization. By stripping away redundant or noisy channels, the resulting model can become more robust and accurate than its unpruned counterpart.

Limitations and Future Directions

While highly effective, the current implementation of DCP relies on heuristics for the placement and number of auxiliary losses. Future work could involve automating this configuration. Additionally, while the "online" inference speed is greatly improved, the "offline" pruning process involves significant fine-tuning. Combining DCP with other techniques like quantization could push the boundaries of model compression even further.

Summary updated

BibTeX
@inproceedings{zhuang2018discrimination,
  author = {Zhuangwei Zhuang and Mingkui Tan and Bohan Zhuang and Jing Liu and Yong Guo and Qingyao Wu and Junzhou Huang and Jin-Hui Zhu},
  title = {{Discrimination-aware Channel Pruning for Deep Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=Sk-1BPWuWH},
}
Figure