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

Discrimination-aware Channel Pruning (DCP) is a novel compression framework that selects neural network channels based on their actual contribution to classification power, rather than just their ability to reconstruct feature maps. By inserting auxiliary "discrimination-aware" losses into intermediate layers, DCP successfully prunes models like ResNet-50 by 30% while actually increasing their accuracy on ImageNet.

The Problem with Existing Pruning Methods

Deep Neural Networks (DNNs) are notoriously resource-hungry, making them difficult to deploy on mobile and edge devices. Channel pruning is a popular solution that removes entire filters, resulting in direct computational speedups without requiring specialized hardware.

However, existing pruning methods generally fall into two flawed camps:

  1. Training from scratch with sparsity constraints: These methods are computationally expensive and often struggle to converge.
  2. Reconstruction-based methods: These minimize the error between the feature maps of a pre-trained model and the pruned model. The core issue here is that a channel might be excellent at helping reconstruct a feature map, but entirely useless for the final classification task (lacking "discriminative power").

DCP aims to bridge this gap by ensuring that the channels retained are the ones that actively help the network discriminate between classes.

The DCP Approach

To make pruning "discrimination-aware," the authors introduce a robust, stage-wise approach:

DCP Architecture and Stage-wise Pruning
  1. Additional Losses ($L_S$): Auxiliary classifiers (softmax layers) are inserted at various stages of the pre-trained network. This forces intermediate layers to develop features that are directly useful for the final classification task.
  2. Joint Optimization: Instead of solely relying on reconstruction error ($L_M$), DCP optimizes a joint loss: $$\mathcal{L}(\mathbf{W}) = \mathcal{L}_M(\mathbf{W}) + \lambda \mathcal{L}_S^p(\mathbf{W})$$ This carefully balances retaining the original feature information (reconstruction) with keeping the most task-relevant information (discrimination).

  3. Greedy Channel Selection: A greedy algorithm selects channels one by one. At each step, it picks the channel whose weights have the largest gradient relative to the joint loss—essentially identifying which channel the loss is most "sensitive" to.

  4. Stage-wise Pruning: The network is pruned in stages. The algorithm fine-tunes a section of the network with the auxiliary loss, prunes those layers, and then moves to the next stage. This prevents the "accumulative error" that often plagues deep network pruning.

Key Insights

  • Discriminative Power Matters: The most surprising finding is that reconstruction error is a sub-optimal proxy for pruning. By focusing on discrimination, significant portions of the network can be removed while actually improving performance.
  • Pruning as Regularization: On several models (ResNet-50, VGGNet, MobileNet), the pruned version outperformed the full-sized baseline. This suggests that pruning redundant, "noisy" channels acts as a form of regularization, helping the model generalize better.
  • Auxiliary Heads are Key: Adding losses to intermediate layers provides a "shortcut" for gradients, making it much clearer which early-layer channels are contributing to the final prediction.

Key Results

The method was rigorously evaluated on standard benchmarks including CIFAR-10, ImageNet (ILSVRC-12), and Labeled Faces in the Wild (LFW).

Performance of DCP on CIFAR-10
  • VGGNet on CIFAR-10: As shown in the results, the "DCP-Adapt" method reduced parameters by a staggering 15.58× while actually improving accuracy by 0.58% (indicated by a negative error gap).
  • ResNet-50 on ImageNet: Pruning 30% of the channels resulted in a 0.39% increase in top-1 accuracy. At 50% pruning, DCP outperformed the state-of-the-art "ThiNet" by 0.81%.
  • MobileNet v1/v2: Even on these already-compact architectures, DCP managed to reduce channels by 30% while improving accuracy (e.g., a 0.41% improvement on MobileNet v1).
  • Face Recognition: On LFW, DCP sped up the SphereNet-4 architecture by 3.66× with a 0.1% improvement in validation accuracy.

Limitations and Future Work

While highly effective, DCP does have some limitations. The trade-off parameter $\lambda$ and the tolerance value $\epsilon$ for stopping conditions require careful hyperparameter tuning. Furthermore, while the pruning itself is efficient, the stage-wise fine-tuning with auxiliary heads adds complexity to the training pipeline compared to simple magnitude-based pruning.

Future directions suggested by the authors include incorporating the computational cost per layer directly into the optimization objective, and combining DCP with other compression techniques like quantization to achieve even smaller, faster models.

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