Abstract: Filter pruning is a critical technique for neural network compression and acceleration. Traditional methods rely on pre-defined, static pruning criteria (such as $\ell_p$-norm) applied uniformly across all layers. This approach overlooks the diverse filter distributions across different functional layers and ignores the collaborative nature of network layers in making predictions. In this paper, we propose Learning Filter Pruning Criteria (LFPC), a method that adaptively selects the most appropriate pruning criteria for each layer using a differentiable sampler. By optimizing the sampler based on the validation loss of the pruned network, LFPC considers the contribution of all layers simultaneously. Our experiments demonstrate that LFPC significantly outperforms existing methods, reducing FLOPs on ResNet-50 by over 60% with less than a 1% drop in top-5 accuracy on ImageNet.
Introduction
Deep Convolutional Neural Networks (CNNs) are computationally intensive, posing challenges for deployment on resource-constrained devices. Filter pruning addresses this by removing redundant filters. However, most existing methods suffer from two major limitations: the use of static, manually-designed criteria for every layer and the sequential, independent pruning of layers.
As shown in Figure 1, previous methods apply a single criterion (like $\ell_1$-norm) to all layers, whereas LFPC adaptively selects criteria based on the specific function and distribution of each layer. This adaptive approach ensures that the pruning process respects the unique characteristics of different layers within the network hierarchy.
Methodology
The core of LFPC is the Differentiable Criteria Sampler (DCS). Instead of a fixed rule, the system selects from a candidate set of criteria, including $\ell_1$-norm, $\ell_2$-norm, and Geometric Median (GM).
Differentiable Criteria Sampler (DCS)
To make the discrete selection of a pruning rule learnable via gradient descent, the authors employ the Gumbel-Softmax trick. This allows the sampler to be optimized using backpropagation based on the final validation loss. The sampler learns a probability distribution over the candidate criteria for each layer, effectively "learning to prune."
Collaborative Training and Aligned Weight Sum
Unlike layer-by-layer methods, LFPC evaluates the entire network's performance during the pruning process. It utilizes an Aligned Weighted Sum (AWS) to combine the contributions of different criteria across layers. This collaborative approach ensures that the importance of a filter is judged in the context of the entire network's architecture and current state.
Experimental Results
The effectiveness of LFPC was validated across multiple benchmarks, including CIFAR-10, CIFAR-100, and ImageNet (ILSVRC-2012).
- ImageNet (ResNet-50): LFPC achieved a 60.8% reduction in FLOPs with only a 0.83% loss in top-5 accuracy, surpassing state-of-the-art methods like FPGM and SFP.
- CIFAR-10 (ResNet-110): The method achieved over 60% FLOPs reduction while actually improving accuracy by 0.11% when starting from a random initialization, demonstrating its ability to find highly efficient sub-networks.
Key Insights: Layer-Specific Sensitivity
A significant finding of this research is that different layers within a CNN exhibit varying sensitivities to different pruning criteria.
As illustrated in Figure 6, the learned distribution of filters pruned per layer varies significantly. While magnitude-based criteria (like $\ell_1$-norm) are effective for some layers, relation-based criteria like Geometric Median (GM) are often preferred in deeper, more semantic-heavy layers. This confirms that a "one-size-fits-all" approach is suboptimal for complex architectures.
Conclusion
LFPC shifts the paradigm of filter pruning from manual rule design to automated criteria learning. By making the pruning process differentiable and collaborative, LFPC achieves superior compression rates and accuracy preservation. Future work may involve expanding the search space to allow the sampler to discover entirely new pruning criteria or applying the framework to other compression techniques like quantization.
Summary updated