Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in various domains but are often too resource-intensive for deployment on edge devices. Filter pruning has emerged as a critical technique to compress these models by removing redundant filters. Traditional approaches generally fall into two categories: Hard Filter Pruning (HFP), which permanently removes filters, and Soft Filter Pruning (SFP), which allows pruned filters to be updated during training. While SFP offers flexibility, it often fails to converge at high pruning rates. This paper introduces Gradually Hard Filter Pruning (GHFP), a hybrid method that bridges this gap by transitioning from a flexible search space to a stable, constrained one.
The Challenge: Search Space Dynamics
The effectiveness of a pruning strategy is closely tied to its "search space"—the range of possible model configurations during training.
- Hard Filter Pruning (HFP) significantly restricts the search space early on. While this leads to fast convergence, it can trap the model in a suboptimal state because bad pruning decisions cannot be reversed.
- Soft Filter Pruning (SFP) maintains a large search space, allowing the model to "recover" filters. However, at high pruning rates (e.g., 80%), this large search space becomes a liability. The model struggles to settle into an optimal configuration, leading to a sharp decline in accuracy.
The GHFP Approach: A Smooth Transition
GHFP addresses these issues by implementing a dynamic transition from soft to hard pruning. The core of the method is the introduction of a monotonic increasing parameter, $\lambda_h$, which dictates the ratio of filters that are "hard-pruned" versus "soft-pruned."
The $\lambda_h$ Schedule
At the beginning of the training process, $\lambda_h$ is set to 0, meaning the algorithm behaves like a purely soft pruning method. This allows the model to explore a wide variety of filter combinations. As training progresses, $\lambda_h$ increases toward 1, gradually restricting the search space and forcing the model to converge on a stable architecture.
The transition follows a cubic-like curve, ensuring that the model has ample time for exploration in the early stages before the constraints tighten. By the end of training, the model has fully transitioned to hard pruning, resulting in a compact and finalized structure.
Experimental Results
The researchers evaluated GHFP on CIFAR-10 and CIFAR-100 datasets using ResNet and VGG architectures. The results demonstrate that GHFP consistently outperforms state-of-the-art soft and hard pruning techniques, particularly at aggressive pruning rates.
- High Pruning Efficiency: On ResNet-56 with a 60% pruning rate, GHFP maintained an accuracy of 93.00%, significantly higher than the 89.72% achieved by the soft-pruning baseline (ASFP).
- Accuracy Improvement: Interestingly, at lower pruning rates (20%), GHFP actually improved the accuracy of ResNet-110 on CIFAR-10 to 95.16%, up from the baseline of 94.76%.
- Robustness: GHFP exhibits much more stable performance as pruning rates increase, avoiding the "accuracy crash" typical of purely soft methods at high thresholds.
Conclusion and Future Work
GHFP provides a robust framework for DNN compression by balancing exploration and exploitation through a "soft-to-hard" transition. While the results on CIFAR benchmarks are promising, future research could extend this work to larger datasets like ImageNet and explore adaptive schedules for the $\lambda_h$ parameter based on real-time training metrics. Additionally, evaluating actual hardware latency would provide a more comprehensive view of the method's practical utility for edge deployment.
Summary updated