DPFPS: Dynamic and Progressive Filter Pruning for Compressing Convolutional Neural Networks from Scratch

Xiaofeng Ruan, Yufan Liu, Bing Li, Chunfeng Yuan, Weiming Hu

Deep learning models are notoriously resource-hungry, making them difficult to deploy on mobile or embedded devices. Filter pruning is a popular solution that removes entire redundant filters to create "thinner" networks that run faster on standard hardware. However, traditional pruning methods often suffer from inefficient multi-stage pipelines and rigid pruning strategies.

The Limitations of Traditional Pruning

The authors identify three major pain points in existing filter pruning methods:

  1. The "Cumbersome" Pipeline: Most methods require a well-trained model first, followed by pruning, and then extensive fine-tuning to recover lost accuracy. This is computationally expensive and involves many hyper-parameters.
  2. Static Pruning Ratios: Many researchers manually set a fixed pruning ratio (e.g., "remove 50% of filters") for every layer, ignoring the fact that some layers are more sensitive or redundant than others.
  3. Aggressive Sparsity: Forcing a model to be sparse from the very first iteration can prevent it from learning useful features in the first place.
Comparison between traditional pruning pipelines (a) and the proposed DPFPS from-scratch approach (b).

The DPFPS Framework

To address these issues, the authors propose DPFPS (Dynamic and Progressive Filter Pruning from Scratch), which integrates pruning directly into the training objective. Unlike traditional methods, the model starts with random weights and learns its sparse structure as it trains.

Dynamic Sparsity Allocation

Instead of fixed ratios, DPFPS uses a Taylor series-based channel sensitivity criterion. It estimates how much the total loss would change if a specific filter were removed. This allows the algorithm to automatically decide which layers can afford to be pruned more heavily, adjusting the sparsity allocation ratio dynamically across layers and epochs.

Progressive Regularization

The authors use a Group Lasso-based penalty to induce structured sparsity. Crucially, the strength of this penalty ($\lambda$) follows a sigmoid schedule. It starts near zero—allowing the model to learn freely in the early stages—and increases as training progresses, gently "pushing" redundant filters toward zero without shocking the network.

Illustration of Dynamic Sparsity (left), showing layer-wise ratio adjustments, and Progressive Sparsity (right), showing the sigmoid growth of the regularization coefficient.

Key Results and Insights

DPFPS was evaluated on standard computer vision benchmarks including CIFAR-10, ImageNet, and PASCAL VOC 2007. The framework consistently outperformed or matched state-of-the-art pruning methods without requiring any fine-tuning:

  • ResNet-101 (ImageNet): Achieved a 44.97% reduction in FLOPs and a 0.12% increase in Top-5 accuracy compared to the unpruned baseline.
  • ResNet-50 (ImageNet): Reduced FLOPs by 46.20% with a negligible Top-1 accuracy drop (75.55% vs. 76.15% baseline).
  • VGG-Small (CIFAR-10): Pruned over 93% of parameters and 70% of FLOPs while maintaining an accuracy of 93.52%.

Why It Works

By pruning from scratch, the model doesn't have to "recover" from the shock of losing weights; it simply learns to perform the task using fewer resources from the start. Furthermore, by considering the impact of removing a filter on both the current layer and the next layer, the sensitivity metric is more holistic than simple magnitude-based pruning.

Conclusion and Future Directions

DPFPS offers a streamlined, efficient alternative to traditional three-stage pruning. While it reduces the number of training stages, it still introduces hyper-parameters like the maximum penalty ($\lambda_{max}$) that may require tuning. Future work could involve extending this "dynamic and progressive" logic to other architectures like Transformers or applying it to natural language processing tasks.

Summary updated

BibTeX
@inproceedings{ruan2021dpfps,
  author = {Xiaofeng Ruan and Yufan Liu and Bing Li and Chunfeng Yuan and Weiming Hu},
  title = {{DPFPS: Dynamic and Progressive Filter Pruning for Compressing Convolutional Neural Networks from Scratch}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16351},
}
Figure