Abstract
While convolutional neural networks (CNN) have achieved impressive performance on various classification/recognition tasks, they typically consist of a massive number of parameters. This results in significant memory requirement as well as computational overheads. Consequently, there is a growing need for filter-level pruning approaches for compressing CNN based models that not only reduce the total number of parameters but reduce the overall computation as well. We present a new min-max framework for filter-level pruning of CNNs. Our framework, called Play and Prune (PP), jointly prunes and fine-tunes CNN model parameters, with an adaptive pruning rate, while maintaining the model's predictive performance. Our framework consists of two modules: (1) An adaptive filter pruning (AFP) module, which minimizes the number of filters in the model; and (2) A pruning rate controller (PRC) module, which maximizes the accuracy during pruning. Moreover, unlike most previous approaches, our approach allows directly specifying the desired error tolerance instead of pruning level. Our compressed models can be deployed at run-time, without requiring any special libraries or hardware. Our approach reduces the number of parameters of VGG-16 by an impressive factor of 17.5X, and number of FLOPS by 6.43X, with no loss of accuracy, significantly outperforming other state-of-the-art filter pruning methods.
Introduction
Deep Convolutional Neural Networks (CNNs) are computationally intensive and memory-demanding, posing challenges for deployment on resource-constrained devices. While many weights in these networks are redundant, effective pruning remains a complex task. Early methods focused on unstructured pruning, which removes individual weight connections but creates sparse matrices that are difficult to accelerate without specialized hardware. Structured pruning, which removes entire filters, is more practical for real-world speedups. However, it typically requires manual tuning of pruning rates for every layer—a tedious trial-and-error process. The "Play and Prune" (PP) framework addresses this automation gap by compressing models within a specified accuracy budget without manual per-layer tuning.
Methodology
The Play and Prune (PP) framework is modeled as a min-max game between two primary modules:
- Adaptive Filter Pruning (AFP): This module identifies candidate filters for removal by calculating their $\ell_1$ norm. It applies a group sparse penalty to drive unimportant filters toward zero, effectively minimizing the total filter count.
- Pruning Rate Controller (PRC): Acting as a regulator, this module monitors model accuracy. If the accuracy drop remains within a user-defined tolerance ($\epsilon$), AFP continues pruning. If performance degrades beyond this threshold, pruning halts to trigger a fine-tuning phase.
A key innovation of this framework is its adaptive pruning rate. Rather than using a fixed percentage, the system uses real-time performance to determine the number of filters to cut per epoch. This allows the network to transfer information from redundant filters to the remaining ones before permanent deletion.
Experimental Evaluation
The framework was evaluated across three standard benchmarks:
- CIFAR-10: For initial validation on small-scale data.
- ILSVRC-2012 (ImageNet): For large-scale image classification performance.
- MS-COCO: To test generalization in object detection tasks using Faster R-CNN backbones.
Results and Discussion
The PP framework offers several advantages over traditional methods. By allowing engineers to specify an error tolerance (e.g., "1% maximum accuracy loss") rather than arbitrary layer-wise ratios, it simplifies the deployment pipeline. The framework naturally discovers layer importance; expendable layers are pruned faster, while critical layers are protected by the PRC.
Experimental results highlight the power of iterative pruning. As shown in Figure 6, "one-shot" pruning (a single iteration) results in a significant 8.03% error rate, whereas the iterative PP approach maintains a much lower error of 6.65%. For the VGG-16 architecture, the framework achieved a 17.5x reduction in parameters and a 6.43x reduction in FLOPs with virtually no loss in accuracy. Real-world testing on an Intel i7 CPU showed a 6.24x speedup, demonstrating that the structured pruning approach benefits standard hardware without requiring specialized libraries.
Conclusion
Play and Prune automates the complex task of filter-level pruning through an adaptive, performance-driven mechanism. While the framework currently relies on a global hyperparameter for filter partitioning, it significantly outperforms state-of-the-art methods in both compression and speed. Future work will focus on more aggressive pruning for ResNet architectures, specifically addressing the challenges posed by identity skip connections to further maximize compression potential.
Summary updated