Collaborative Channel Pruning for Deep Networks

Hanyu Peng, Jiaxiang Wu, Shifeng Chen, Junzhou Huang

Deep neural networks are notoriously "heavy," making them difficult to deploy on mobile devices or embedded systems with limited power and memory. Channel pruning is a popular solution that removes entire filters (channels) from convolutional layers, resulting in a smaller, faster model that runs on standard hardware without the need for specialized libraries.

However, most existing pruning methods treat channels as independent entities. They calculate the "importance" of each channel in isolation and cut the ones with the lowest scores. The critical gap here is that channels in a deep network work together; the loss of one channel might be compensated for by another, or two seemingly "unimportant" channels might be vital when combined. Ignoring these inter-channel dependencies leads to sub-optimal pruning and significant performance degradation.

To address this, the authors introduce Collaborative Channel Pruning (CCP), a method that moves beyond traditional "one-by-one" channel pruning by accounting for the complex dependencies between channels in a convolutional layer. By reformulating pruning as a constrained 0-1 quadratic optimization problem and using an efficient Hessian approximation, CCP achieves state-of-the-art compression.

Methods

The core idea behind CCP is to use a second-order Taylor expansion of the network's loss function to estimate how pruning a specific combination of channels will affect the final output.

Visualization of inter-channel dependencies.
  1. Quadratic Formulation: The pruning process is modeled as a mathematical optimization problem. The goal is to find a binary mask (0 for prune, 1 for keep) that minimizes the increase in loss, subject to a specific budget constraint (e.g., "keep only 50% of channels").
  2. Hessian Approximation: The "Hessian matrix" contains the second-order derivatives that describe channel interactions. Because this matrix is far too large to compute or store for modern networks, the authors introduce an efficient approximation scheme for both regression (Least-Square) and classification (Cross-Entropy) tasks. This captures channel correlations using only first-order gradients, making the computation feasible.
  3. Optimization via SQP: Choosing the best subset of channels is an NP-hard "0-1" problem. To solve this, the binary constraint is relaxed (allowing values between 0 and 1) and solved using Sequential Quadratic Programming (SQP). The top-$k$ channels are then selected based on the resulting continuous values.
  4. Auxiliary Classifiers (CCP-AC): To further boost performance, a variant of the method uses intermediate "auxiliary" classifiers during the pruning process. This ensures that even early layers retain highly discriminative features.

Key Insights

  • The "Team" Mentality: Pruning is a team selection problem, not an individual performance review. By looking at the off-diagonal elements of the Hessian matrix, the algorithm identifies which channels are redundant given the presence of others.
  • Efficiency is Key: Second-order methods (like the "Optimal Brain Surgeon") have existed for decades but were historically too slow for deep learning. This paper demonstrates that with the right mathematical approximations, the benefits of second-order information can be reaped without prohibitive computational costs.
  • Global vs. Local: While the optimization is performed layer-by-layer, using the loss function (rather than just the reconstruction error of a single layer) ensures that pruning decisions align with the network's ultimate goal: accurate classification.

Key Results

The algorithm was evaluated on two standard computer vision benchmarks: CIFAR-10 (using ResNet-56) and the large-scale ILSVRC-12 ImageNet dataset (using ResNet-50). CCP consistently outperformed state-of-the-art methods like ThiNet, AMC, and DCP.

Comparison of pruning methods on ResNet-50 (ImageNet).
  • ResNet-50 on ImageNet: CCP reduced FLOPs (floating-point operations) by 54.1%. Despite this massive reduction, the Top-1 accuracy only dropped by 0.83%, and Top-5 accuracy dropped by only 0.33%.
  • ResNet-56 on CIFAR-10: In some configurations, the pruned model actually outperformed the original uncompressed baseline (showing a -0.19% "drop" in accuracy). This is likely due to the regularization effect of removing noisy or redundant parameters.
  • Speed: The pruning process itself is highly efficient. Pruning a ResNet-50 on ImageNet takes only about 26 minutes on a single Nvidia P40 GPU before the final fine-tuning stage.

Limitations and Future Work

  • Layer-by-Layer Dependency: While the method captures dependencies within a layer, it still determines the pruning masks layer-by-layer. Future work could explore joint optimization across multiple layers simultaneously.
  • Architecture Scope: The paper focuses heavily on ResNets. While the underlying math is general, its effectiveness on newer architectures like Vision Transformers (ViTs)—which rely on attention mechanisms rather than standard convolutions—remains an open question.
  • Hardware Realization: The paper measures "FLOPs reduction," which is a theoretical proxy for speed. Actual wall-clock speedups can vary depending on how specific hardware handles the resulting smaller tensors.

Summary updated

BibTeX
@inproceedings{peng2019collaborative,
  author = {Hanyu Peng and Jiaxiang Wu and Shifeng Chen and Junzhou Huang},
  title = {{Collaborative Channel Pruning for Deep Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure