Abstract
Neural network pruning is essential for deploying deep models on resource-constrained hardware. However, determining optimal layer-wise sparsity ratios remains a significant challenge, often leading to layer collapse at high pruning rates. This paper introduces ProbMask (Probabilistic Masking), a novel pruning framework that treats weight importance as a globally comparable probability. By optimizing these probabilities under a global sparsity constraint using the Gumbel-Softmax trick and temperature annealing, ProbMask automatically learns optimal parameter distributions across layers. Experimental results on CIFAR and ImageNet demonstrate that ProbMask significantly outperforms state-of-the-art methods, particularly at extreme sparsity levels exceeding 98%.
Introduction
Network pruning aims to remove redundant weights from deep neural networks to accelerate inference and reduce memory footprints. A primary hurdle in effective pruning is the "global comparison" problem: deciding which weights are least important across the entire architecture. Traditional magnitude-based pruning often fails at high sparsity levels because weight distributions vary significantly between layers. Applying a uniform global threshold can lead to "layer collapse," where critical layers are entirely pruned, destroying model performance.
The ProbMask Framework
The authors propose ProbMask, which reframes pruning as a continuous optimization problem in probability space. Instead of making discrete binary decisions for each weight, ProbMask assigns a trainable parameter $s_i$ representing the probability that a weight $w_i$ is retained.
Global Sparsity Constraint
A key innovation is the application of an $L_1$ norm constraint directly to these probabilities. By ensuring the sum of all probabilities across the network does not exceed a target budget $K$, the algorithm is forced to compete for parameters globally. This "universal currency" of probability allows the model to naturally allocate more budget to sensitive layers while aggressively sparsifying others.
Optimization and Convergence
To enable end-to-end training, the authors utilize the Gumbel-Softmax trick, allowing gradients to flow through the stochastic sampling process. Furthermore, a temperature annealing schedule is employed to ensure that by the end of training, probabilities converge to deterministic binary values (0 or 1). This eliminates the performance gap between the stochastic training phase and deterministic inference.
Experimental Results
The effectiveness of ProbMask was evaluated on CIFAR-10/100 and ImageNet-1K using VGG and ResNet architectures.
Performance at Extreme Sparsity
ProbMask demonstrates its greatest advantage at extreme sparsity levels. On ImageNet with a ResNet50 backbone, ProbMask maintains high accuracy even when 99% of weights are removed.
As shown in the figure above, ProbMask's performance decay is significantly more graceful than competing methods like STR or GMP. At 99% sparsity, ProbMask achieves a Top-1 accuracy of 61.07%, outperforming the next best method by over 10 percentage points.
The table above highlights the consistent superiority of ProbMask across various pruning ratios on the ImageNet dataset. Notably, at 98% sparsity, ProbMask (66.83%) maintains a significant lead over STR (61.46%) and DNW (58.20%).
Supermasks and Random Weights
Beyond standard pruning, ProbMask is capable of finding "supermasks"—highly accurate sparse subnetworks within randomly initialized, non-trained weights. On CIFAR-100, the method identified a subnetwork using only 2% of random weights that achieved nearly 50% accuracy, showcasing the strength of the learned connectivity patterns.
Conclusion
ProbMask addresses the fundamental challenge of global budget allocation in neural network pruning. By leveraging a probabilistic formulation and a global sparsity constraint, it provides a robust mechanism for extreme sparsification without manual layer-wise tuning. While it introduces some training overhead due to Gumbel-Softmax sampling, the resulting models set a new standard for performance on resource-constrained devices.
Summary updated