Introduction
Deep Convolutional Neural Networks (CNNs) have revolutionized computer vision but come with significant computational costs, hindering deployment on resource-constrained edge devices. Network pruning, particularly structured filter pruning, is a common strategy to mitigate this. However, traditional pruning pipelines often suffer from a disconnect between the pruning and fine-tuning stages. Hard pruning methods can cause abrupt accuracy drops, while soft pruning methods may fail to converge at high compression rates because the fine-tuning process is not inherently "aware" of the pruning objective.
The PGMPF Framework
To address these issues, the authors propose Prior Gradient Mask Guided Pruning-Aware Fine-Tuning (PGMPF). This framework introduces a mechanism to bridge the gap between pruning and fine-tuning by modifying the gradients during the optimization process.
The PGMPF method operates through several key components:
- Prior Gradient Mask ($\hat{M}$): Instead of immediately zeroing out unimportant filters, PGMPF calculates a mask based on filter importance (typically using the $\ell_2$-norm). This mask is applied to the gradients during backpropagation.
- Gradual Suppression ($\beta$): The influence of the mask is scaled by a parameter $\beta$ that decays from 1 to 0. This allows the learning rates of unimportant filters to be throttled gradually, giving the rest of the network time to adapt and compensate.
- Channel-wise Random Dropout: To prevent the model from becoming overly sensitive to the specific pruning mask, random noise is injected by dropping out parts of the gradient mask, enhancing the robustness of the final compact model.
- Iterative Refinement: Filter importance is re-evaluated every epoch, allowing the network to dynamically adjust which filters are prioritized as the weights evolve.
Key Insights: Pruning-Awareness and Stability
The core philosophy of PGMPF is that fine-tuning should be an active part of the pruning process, not just a recovery phase. By using the gradient as a "control knob," the method avoids the sudden shocks to the system characteristic of hard pruning.
A significant finding is that the process of pruning—how the transition to a smaller model is managed—can be more critical than the specific criterion used to select filters. Even with a simple $\ell_2$-norm importance metric, PGMPF achieves superior results by ensuring the optimizer is "aware" of the pruning goal throughout the fine-tuning stage.
Experimental Results
The researchers evaluated PGMPF on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet (ILSVRC-2012). The results demonstrate that PGMPF consistently outperforms previous state-of-the-art (SOTA) methods:
- ImageNet (ResNet-50): Achieved a 53.5% reduction in FLOPs with only a 0.90% drop in top-1 accuracy, surpassing methods like FPGM and AutoPruner.
- CIFAR-10 (VGG16): Reached a 66% FLOPs reduction with a negligible 0.08% accuracy loss.
- Stability: PGMPF showed significantly smoother convergence compared to Soft Filter Pruning (SFP) methods, particularly at high pruning rates (30-50%).
Conclusion
PGMPF provides a robust and effective framework for neural network compression by integrating pruning objectives directly into the fine-tuning process via gradient masks. While currently focused on structured filter pruning for classification tasks, its success suggests that gradient-based guidance is a powerful tool for maintaining model capacity during aggressive compression. Future work may explore its application to unstructured pruning and a wider variety of computer vision tasks such as object detection.
Summary updated