NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Soft Filter Pruning for Accelerating Deep Convolutional Neural Networks

Yang He, Guoliang Kang, Xuanyi Dong, Yanwei Fu, Yi Yang

Introduction

Deep Convolutional Neural Networks (CNNs) have achieved state-of-the-art performance across various computer vision tasks. However, their high computational cost and memory requirements hinder deployment on resource-constrained devices. Network pruning has emerged as a prominent solution to accelerate CNNs. While weight pruning results in unstructured sparsity that is difficult to leverage on standard hardware, filter pruning offers structured acceleration by removing entire 3D filters.

Traditional filter pruning methods typically employ a "hard" approach, where unimportant filters are permanently deleted. This rigid strategy reduces the model's learning capacity and often necessitates a complex, multi-stage "train-prune-fine-tune" pipeline. In this paper, we present Soft Filter Pruning (SFP), an approach that allows pruned filters to be updated during the training process, maintaining model capacity and enabling training from scratch.

Methodology: Soft Filter Pruning

The fundamental innovation of SFP lies in its "soft" approach to filter removal. Instead of permanent deletion, SFP zeroes out the weights of unimportant filters at the end of each training epoch while allowing them to be recovered in subsequent iterations.

Comparison of Hard Filter Pruning and Soft Filter Pruning.

As illustrated in Figure 1, hard pruning permanently reduces the model's capacity. In contrast, SFP maintains capacity by allowing zeroed filters to be updated via backpropagation. The SFP algorithm follows a four-step iterative process:

  1. Filter Selection: At the end of each epoch, filters are ranked based on their $\ell_p$-norm (typically $\ell_2$). Filters with the smallest norms are identified as candidates for pruning.
  2. Filter Pruning: The weights of the selected filters are set to zero.
  3. Reconstruction: During the next training epoch, these zeroed filters are not frozen; their weights are updated through standard backpropagation. This allows the network to "re-learn" or "recover" filters that may have been prematurely pruned.
  4. Compact Model Generation: After training is complete, the filters that remain near zero are removed to produce the final accelerated model.
The iterative process of Soft Filter Pruning across training epochs.

Figure 2 demonstrates this cycle. By allowing filters to be "reconstructed," SFP explores a larger optimization space compared to traditional greedy, layer-by-layer pruning methods.

Experimental Results

The effectiveness of SFP was evaluated on the CIFAR-10 and ILSVRC-2012 (ImageNet) datasets using various ResNet architectures.

Performance on ImageNet

On the large-scale ImageNet dataset, SFP demonstrated significant acceleration with minimal accuracy loss. For ResNet-101, SFP achieved a 42.2% reduction in FLOPs while actually improving top-5 accuracy by 0.2%. This suggests that SFP can act as a form of regularization, preventing the model from over-fitting on noisy or unimportant features.

Training from Scratch

A key advantage of SFP is its ability to train pruned models from scratch, bypassing the need for pre-trained models. On CIFAR-10, SFP applied to ResNet-110 achieved a 40.8% FLOPs reduction with a negligible accuracy drop of only 0.3%. When starting from a pre-trained model, the same configuration yielded a 0.18% accuracy improvement.

Realistic Speedup

Beyond theoretical FLOPs reduction, the authors measured real-world performance on a GTX 1080 GPU. For ResNet-101, a theoretical 42% FLOPs reduction translated to a ~30% realistic speedup. The discrepancy is attributed to non-convolutional operations such as Batch Normalization and data transfer overhead.

Conclusion

Soft Filter Pruning offers a flexible and efficient alternative to traditional hard pruning. By maintaining model capacity during training and allowing for filter reconstruction, SFP achieves state-of-the-art acceleration results while often improving model accuracy. Its ability to train from scratch and prune all layers simultaneously makes it a highly practical tool for deploying deep CNNs on edge devices.

Summary updated

BibTeX
@inproceedings{he2018soft,
  author = {Yang He and Guoliang Kang and Xuanyi Dong and Yanwei Fu and Yi Yang},
  title = {{Soft Filter Pruning for Accelerating Deep Convolutional Neural Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/309},
}
Figure