Abstract
Deep Convolutional Neural Networks (CNNs) are resource-intensive, complicating deployment on edge devices. Traditional channel pruning methods often rely on deterministic heuristics that are unstable and require computationally expensive re-training cycles. We introduce Variational Convolutional Neural Network Pruning, a Bayesian framework that treats channel saliency as a random variable. By utilizing Stochastic Variational Inference and a sparsity-inducing prior, the model learns to identify redundant channels during the initial training phase. This approach facilitates stable, "one-shot" pruning without the need for post-pruning fine-tuning. Experimental results on CIFAR and ImageNet demonstrate that our method can remove up to 74% of channels with negligible accuracy loss, often serving as an effective regularizer.
Introduction
The deployment of deep CNNs is frequently limited by their high computational and memory requirements. Structured pruning, specifically channel pruning, offers a solution by removing entire feature maps to achieve hardware-exploitable speedups. However, existing methods face two primary challenges: instability due to reliance on fluctuating deterministic values (e.g., Batch Normalization scaling factors) and the complexity of iterative "prune-and-retrain" workflows. This paper addresses these issues by proposing a probabilistic approach to channel importance.
Methodology
The core of the proposed method is the Variational Pruning Layer, which replaces standard Batch Normalization (BN). In a standard BN layer, the output is defined as $y = \gamma \cdot \text{BN}(x) + \beta$. The authors observe that even a small scaling factor $\gamma$ may not silence a channel if the shift term $\beta$ remains significant. To ensure true sparsity, they reformulate the layer as $y = \gamma \cdot \text{BN}(x) + (\gamma \cdot \beta)$, such that the entire channel becomes silent as $\gamma$ approaches zero.
Rather than treating $\gamma$ as a fixed parameter, it is modeled as a random variable following a distribution estimated via Stochastic Variational Inference (SVI). A sparse Gaussian prior centered at zero is applied to the channel saliency. During training, the model optimizes the Evidence Lower Bound (ELBO), balancing prediction accuracy against the sparse prior. Pruning is then executed based on a dual criterion: a channel is removed only if both the mean and variance of its saliency distribution fall below predefined thresholds, ensuring high confidence in the redundancy of the pruned components.
Experimental Results
The method was evaluated on CIFAR-10, CIFAR-100, and ImageNet using VGG, ResNet, and DenseNet architectures. A key advantage of the variational approach is the elimination of post-pruning re-training. Because sparsity is integrated into the probabilistic objective function, the model naturally adapts to the absence of redundant channels during the primary training phase.
As shown in the training curves, the compression ratio increases while accuracy stabilizes, demonstrating the robustness of the "one-shot" pruning capability. Notable results include a 74% reduction in channels for ResNet-164 on CIFAR-10 with only a 0.42% accuracy drop. On ImageNet, pruning ResNet-50 by 40% of its channels resulted in a slight increase in Top-1 accuracy (from 75.1% to 75.2%), suggesting that the variational prior acts as a beneficial regularizer.
Conclusion
Variational Convolutional Neural Network Pruning provides a principled Bayesian alternative to heuristic-based pruning. By modeling channel saliency as a distribution, the method achieves stable and significant model compression without the need for expensive fine-tuning. While the method introduces new hyperparameters for pruning thresholds, its "plug-and-play" nature and strong empirical performance make it a compelling choice for efficient deep learning. Future work may extend this framework to prune higher-level structures like residual blocks or entire layers.
Summary updated