Structured Probabilistic Pruning for Deep Convolutional Neural Network Acceleration

Huan Wang, Qiming Zhang, Yuehai Wang, Roland HuarXiv 2017

TL;DR

This paper introduces Structured Probabilistic Pruning (SPP), a novel method for accelerating Convolutional Neural Networks (CNNs) by probabilistically pruning weights. Unlike deterministic methods that permanently remove weights, SPP dynamically adjusts pruning probabilities, allowing for the recovery of weights that become important later in training. This approach achieves significant speedups with minimal accuracy loss across various CNN architectures and datasets.

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) have achieved remarkable success in computer vision tasks. However, their large size and computational demands hinder deployment on resource-constrained devices like mobile phones. While pruning is a promising technique to reduce model size and computation, existing methods often suffer from limitations. Deterministic pruning, which permanently removes weights deemed unimportant early in training, can be shortsighted. Weights that appear unimportant initially might become crucial later due to the removal of other dependent weights. Furthermore, unstructured pruning leads to irregular sparsity that is difficult to accelerate on standard hardware. This paper addresses the need for a more robust and hardware-friendly pruning method that can adapt to the dynamic nature of neural network training and achieve significant acceleration without substantial accuracy degradation.

Methods

The core innovation of SPP is its probabilistic pruning approach. Instead of permanently eliminating weights, SPP assigns a pruning probability ($p$) to each weight. Pruning is then guided by sampling from these probabilities. A key feature is the dynamic adjustment of these probabilities during training:

  • Increasing Probabilities: If a weight is deemed unimportant based on an importance criterion (e.g., L1 norm of a weight group), its pruning probability is increased.
  • Decreasing Probabilities: Crucially, if a weight group's importance increases during training, its pruning probability can be decreased, allowing for the recovery of potentially misjudged weights.
  • Structured Pruning: SPP targets structured pruning by grouping weights (e.g., by rows, columns, or channels) and applying the same pruning probability to all weights within a group. This ensures hardware-friendly sparsity.
  • Importance Criteria: The paper uses the L1 norm of weight groups as the primary importance criterion, but notes that other criteria (like Taylor expansion) can be easily integrated.
  • Update Mechanism: The probability update mechanism is designed to be a "center-symmetric exponential function" of the weight group's rank, ensuring that probabilities are adjusted smoothly and effectively, especially for middle-ranked groups. Weights are only permanently removed when their pruning probability reaches 1.

Datasets

The paper evaluates SPP on the following datasets:

  • CIFAR-10: A smaller-scale dataset used to evaluate SPP on a shallow ConvNet.
  • ImageNet-2012: A large-scale dataset used for evaluating SPP on more complex architectures like AlexNet, VGG-16, and ResNet-50.
  • Oxford Flower-102: Used to demonstrate the effectiveness of SPP in transfer learning scenarios.

Key Insights and Ideas

  • Pruning is not always a one-way street: The ability to recover pruned weights is crucial. Deterministic pruning's inability to undo early decisions can lead to suboptimal results. SPP's probabilistic nature allows it to adapt to the evolving importance of weights during training.
  • Structured pruning is key for hardware acceleration: Unstructured sparsity, while potentially achieving higher compression, is often difficult to translate into real-world speedups on standard hardware. SPP's focus on structured pruning (e.g., column pruning) directly addresses this.
  • Dynamic probability adjustment is more effective than static criteria: The paper argues that simply relying on initial importance scores is insufficient. The proposed mechanism to increase and decrease pruning probabilities based on ongoing training dynamics leads to better performance.
  • SPP is architecture-agnostic: The method can be applied to various CNN architectures, including multi-branch networks like ResNet, without requiring significant architectural modifications.

Key Results

  • AlexNet on ImageNet: Achieved a 4x speedup with only a 0.3% loss in top-5 accuracy.
  • VGG-16 on ImageNet: Achieved a 4x speedup with only a 0.8% loss in top-5 accuracy.
  • ResNet-50 on ImageNet: Achieved a 2x speedup with only a 0.8% loss in top-5 accuracy, demonstrating its effectiveness on multi-branch architectures.
  • ConvNet on CIFAR-10: SPP outperformed other structured pruning methods, and for small speedups (e.g., 2x), it even improved accuracy, suggesting a regularization effect.
  • Transfer Learning (Flower-102): SPP consistently outperformed Taylor Pruning (TP) at various speedup ratios, highlighting its efficacy in fine-tuning pre-trained models.

Limitations and Future Work

  • Heuristic vs. Theoretical Rigor: The authors acknowledge that while SPP's dynamic and smoothed pruning process is effective, it is currently more heuristic than theoretically rigorous.
  • Future Work:
    • Introduce Bayesian inference to provide a more solid theoretical foundation for SPP.
  • Generalize the method to other neural network architectures, such as Recurrent Neural Networks (RNNs).
  • Explore different importance criteria and probability update functions.

Summary updated

BibTeX
@misc{wang2017structured,
  author = {Huan Wang and Qiming Zhang and Yuehai Wang and Roland Hu},
  title = {{Structured Probabilistic Pruning for Deep Convolutional Neural Network Acceleration}},
  year = {2017},
  eprint = {1709.06994},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.06994},
}
Figure