Introduction
Deep Convolutional Neural Networks (CNNs) have achieved remarkable success in various computer vision tasks. However, their deployment on resource-constrained devices remains challenging due to their high computational cost and memory footprint. While CNNs are often over-parameterized, traditional "Hard Filter Pruning" (HFP) methods—which permanently remove filters—frequently suffer from significant accuracy degradation. This is primarily due to the irreversible loss of model capacity and the sudden disruption of information flow during training.
To address these limitations, this paper proposes Asymptotic Soft Filter Pruning (ASFP). ASFP combines two key strategies: soft pruning, which allows "pruned" filters to continue participating in the optimization process, and asymptotic scheduling, which gradually increases the pruning intensity to maintain training stability.
Methodology: Asymptotic Soft Filter Pruning
The ASFP framework consists of two main components designed to preserve model capacity and ensure a smooth transition to a compressed state.
Soft Filter Pruning (SFP)
Unlike hard pruning, which deletes filters and reduces the network's dimension immediately, Soft Filter Pruning (SFP) zeroes out the weights of unimportant filters (determined by their $\ell_2$-norm) at the end of each training epoch. Crucially, these filters are not removed from the computational graph; they remain "alive" and can be updated via backpropagation in subsequent epochs. This approach maintains the original optimization space, allowing the network to dynamically re-allocate importance across filters.
Asymptotic Pruning Scheduling
To further enhance stability, ASFP employs an asymptotic pruning schedule. Rather than applying a fixed, high pruning rate from the start, the method begins with a low pruning rate and increases it exponentially over time until the target rate is reached. This gradual approach prevents the sudden information loss characteristic of standard pruning methods, allowing the network to adapt progressively to the increasing sparsity.
Experimental Results
The effectiveness of ASFP was evaluated on standard benchmarks, including CIFAR-10 and ImageNet (ILSVRC-2012), using various ResNet and VGG architectures.
- ImageNet Performance: On ResNet-50, ASFP achieved a 41.8% reduction in FLOPs with a negligible 0.14% drop in top-5 accuracy. This performance significantly outperforms baseline Soft Filter Pruning (SFP) and other state-of-the-art hard pruning techniques.
- CIFAR-10 Performance: For ResNet-110, the method delivered a 52.3% speedup with only a 0.48% accuracy drop, demonstrating its efficiency even on smaller-scale datasets.
- Training from Scratch: A notable advantage of ASFP is its ability to train compressed models effectively from random initialization, eliminating the need for a computationally expensive pre-training phase.
Discussion and Key Insights
The success of ASFP highlights the importance of maintaining the model's optimization landscape during the pruning process. By keeping filters "alive" through soft pruning, the model can navigate to better local minima that are inaccessible to hard-pruned models. Furthermore, the asymptotic schedule ensures that the "performance gap"—the immediate drop in accuracy after pruning—remains small and manageable throughout training.
While ASFP provides a robust framework for structured pruning (which leads to real-world speedups on standard hardware), future work could explore automated methods for learning optimal pruning schedules and combining ASFP with other compression techniques like quantization.
Conclusion
Asymptotic Soft Filter Pruning offers a powerful and stable approach to CNN compression. By leveraging the flexibility of soft pruning and the stability of asymptotic scheduling, it achieves significant computational savings with minimal impact on model accuracy, paving the way for more efficient deployment of deep learning models on edge devices.
Summary updated