Abstract
Deep Convolutional Neural Networks (CNNs) are often over-parameterized, hindering deployment on resource-constrained devices. Traditional static pruning methods apply uniform masks regardless of input or layer depth. This paper introduces Self-Adaptive Network Pruning (SANP), a dynamic approach that utilizes lightweight Saliency-and-Pruning Modules (SPMs) to adaptively skip neurons based on specific layer characteristics and individual input images. SANP achieves state-of-the-art pruning rates and accuracy while maintaining a predefined computational budget.
Introduction
The deployment of deep CNNs on mobile and edge devices is limited by their high computational and memory requirements. While network pruning is a standard solution, static methods suffer from two primary inefficiencies: layer insensitivity and sample insensitivity. Different layers exhibit varying levels of redundancy, and different input images activate distinct features. SANP addresses these by making pruning decisions self-adaptive, responding to both the complexity of the input and the specific requirements of each layer.
Methodology
The core innovation of SANP is the Saliency-and-Pruning Module (SPM), integrated before each convolutional layer.
Saliency-and-Pruning Module (SPM)
The SPM predicts a saliency score for every channel using Global Average Pooling and small fully-connected layers. To convert these continuous scores into discrete binary decisions (keep/skip), the authors employ Improved Semantic Hashing. This technique enables the learning of discrete pruning masks through standard backpropagation by using a differentiable binarization process.
Multi-Task Training
The network is trained with a dual objective: minimizing classification error ($L_{cls}$) and minimizing computational cost ($L_{cost}$). A dynamic penalty parameter $\lambda$ adjusts during training to ensure the model adheres to a global FLOPs budget. If the model exceeds the budget, the penalty for computation increases, driving the SPMs toward more aggressive pruning.
Experimental Results
SANP was evaluated on CIFAR-10 and CIFAR-100 using M-CifarNet, VGGNet, and ResNet-18 architectures.
Layer and Sample Sensitivity
Empirical results demonstrate that pruning rates are highly non-uniform across layers. For instance, in VGGNet on CIFAR-10, SANP identifies that deeper layers often contain more redundancy. Furthermore, the saliency maps show that different classes (e.g., "cat" vs. "car") rely on different subsets of channels, confirming the advantage of input-dependent pruning.
Performance Comparison
SANP consistently outperforms existing static and dynamic pruning methods. On CIFAR-10 with VGGNet, SANP achieved a 66.4% pruning rate with only 6.18% error, surpassing "Network Slimming" (51.0% pruning, 6.20% error). On CIFAR-100 with ResNet-18, it pruned 62.3% of FLOPs while maintaining competitive accuracy. Ablation studies confirmed that both layer-adaptiveness and sample-adaptiveness are essential for optimal performance.
Conclusion and Future Work
SANP provides a highly efficient, automated framework for network compression. By introducing input-dependent pruning with negligible overhead (~0.01% of total FLOPs), it pushes the boundaries of dynamic model acceleration. Future research will focus on scaling SANP to larger datasets like ImageNet and optimizing hardware implementations to translate theoretical FLOP savings into real-world wall-clock speedups.
Summary updated