Abstract
Deep learning models have grown increasingly complex, leading to significant computational and memory overhead that hinders deployment on resource-constrained devices. While filter pruning is a common technique for model compression, it typically requires manual, heuristic-based tuning of pruning ratios for each layer. This paper introduces the "Network Pruning Network" (NPN), an automated framework where a multitask pruner network learns to identify and zero out redundant filters through end-to-end optimization. NPN achieves state-of-the-art compression—up to 86.9% FLOP reduction on VGG-16—without the need for manual per-layer configuration or complex iterative pruning cycles.
Introduction
The pursuit of higher accuracy in deep learning has led to the creation of massive models with millions of parameters. These "bloated" architectures pose significant challenges for deployment on edge devices like smartphones and IoT sensors. Filter pruning—the removal of entire neurons or convolutional filters—is a standard solution to reduce model size and inference time. However, most existing pruning methods rely on human-designed "rules of thumb" or extensive manual search to determine which filters to prune in which layers.
The Challenge of Manual Pruning
Traditional pruning often uses the "magnitude" heuristic, assuming that filters with smaller weights are less important. This assumption is not always valid, as small weights can still represent critical features. Furthermore, determining the optimal pruning ratio for every layer in a deep network (e.g., ResNet-50) creates a massive combinatorial search space. Finding the right balance between layers that are highly sensitive and those that are redundant is a difficult task for human experts, often leading to sub-optimal configurations.
The Network Pruning Network (NPN) Approach
Vinay Kumar Verma and his colleagues from IIT Kanpur propose automating this process by treating pruning as a learning problem. The core of their approach is the Pruner Network ($P$), which operates alongside the main network ($O$).
Architecture and Gating
The pruner network mirrors the base architecture of the target model but terminates in a multitask output layer. For every layer in the main network, the pruner outputs a vector of weights ($w$). These weights act as a gating mechanism: they are multiplied by the feature maps of the main network. If the pruner determines a filter is redundant, it sets the corresponding weight to approximately zero, effectively removing its contribution. For architectures with skip connections like ResNet, the pruner is constrained to assign identical weights to filters involved in addition operations, ensuring the structural integrity of the network is preserved.
Optimization Strategy
To handle the discrete nature of pruning (keeping or removing a filter), the authors utilize a scaled sigmoid function to approximate a binary step. By gradually increasing a scale factor ($\alpha$) during training, the weights are forced to eventually "snap" to either 0 or 1 while remaining differentiable for gradient descent. The training follows a two-step alternating optimization:
- Pruner Optimization: The pruner is trained to find the maximum number of zero weights (using an $L_1$ penalty) while maintaining target accuracy.
- Joint Optimization: Both networks are optimized together, allowing the remaining filters to adapt and "learn" to compensate for the loss of pruned features.
Experimental Results
The NPN approach was evaluated on standard benchmarks including CIFAR-10, ImageNet, and MS-COCO across various architectures like VGG-16 and ResNet-50.
As shown in the table above, NPN variants (NN-1, NN-2, NN-3) consistently outperform earlier pruning approaches. For VGG-16 on CIFAR-10, the NN-3 model achieved a massive 86.9% reduction in FLOPs with only a minor increase in error. On ImageNet with ResNet-50, the method reduced FLOPs by 49.1% while actually improving Top-5 error (7.64% vs. 7.8% baseline), suggesting that the learned pruning acts as an effective regularizer.
Furthermore, the authors demonstrated the robustness of NPN by transferring a pruned ResNet-50 backbone to an object detection task on MS-COCO. The resulting Faster R-CNN detector maintained nearly identical mean Average Precision (mAP) while being significantly faster, proving that the learned pruning is robust across different tasks.
Conclusion
The "Network Pruning Network" offers a powerful, automated alternative to manual filter pruning. By learning layer-wise importance through a multitask pruner, the method eliminates the need for expert-driven heuristics and achieves superior compression ratios. While the initial training overhead is higher due to the "shadow" pruner network, the resulting models are highly efficient and generalize well across different computer vision tasks. Future work may explore combining NPN with quantization and knowledge distillation to further push the limits of model efficiency.
Summary updated