Abstract
Current methods for pruning neural network weights iteratively apply magnitude-based pruning on the model weights and re-train the resulting model to recover lost accuracy. In this work, we show that such strategies do not allow for the recovery of erroneously pruned weights. To enable weight recovery, we propose a simple strategy called cyclical pruning which requires the pruning schedule to be periodic and allows for weights pruned erroneously in one cycle to recover in subsequent ones. Experimental results on both linear models and large-scale deep neural networks show that cyclical pruning outperforms existing pruning algorithms, especially at high sparsity ratios. Our approach is easy to tune and can be readily incorporated into existing pruning pipelines to boost performance.
Introduction
Pruning is a critical technique for deploying deep learning models on resource-constrained devices by removing unnecessary weights to create sparse networks. The current industry standard, gradual pruning, removes weights based on their magnitude while slowly re-training the network. However, magnitude is an imperfect proxy for importance. If a weight is small early in training but would have become significant later, gradual pruning provides no mechanism to bring it back. This "one-way street" leads to substantial accuracy degradation, particularly at extreme sparsity levels (90%+).
Methods: The Cyclical Schedule
To address the limitations of monotonic pruning, we introduce cyclical pruning. This method frames pruning as a Time-Varying Projected Gradient Descent (TV-PGD) process with a periodic schedule.
The schedule consists of four key components:
- Periodic Sparsity: The training is divided into $k$ cycles. Instead of increasing sparsity monotonically, the requirement is periodically lowered.
- The "Regrow" Phase: At the start of each cycle, the sparsity mask is reset or the requirement is lowered, allowing the optimizer to update previously zeroed-out weights.
- Cubic Ramp-up: Within each cycle, sparsity increases following a cubic function until the target is reached.
- Learning Rate Coordination: The learning rate is reset at the start of each cycle. High initial learning rates allow previously pruned weights to quickly gain magnitude and potentially survive the next pruning phase.
Key Insights
A central finding is that weight recovery—where a weight is masked at time $t_1$ but active at $t_2$—is the primary driver of performance. By measuring the Jaccard distance of active weights, we observed that the pruning mask evolves significantly across cycles, indicating the model is actively searching for a superior sparse architecture. Theoretical analysis on sparse linear regression further confirms that cyclical schedules are more robust to adversarial weight initializations than one-shot methods.
Experimental Results
We evaluated cyclical pruning on standard benchmarks including CIFAR-10/100 and ImageNet across various architectures like ResNet, MobileNet, and EfficientNet.
Cyclical pruning consistently outperforms gradual pruning, with the performance gap widening at higher sparsity ratios. For instance, on ImageNet with ResNet-50 at 95% sparsity, cyclical pruning achieved 68.7% accuracy, a 4% absolute improvement over gradual pruning. Similar gains were observed on CIFAR-10, where MobileNet at 95% sparsity reached 79.07% accuracy compared to 73.42% for the baseline.
Conclusion
Cyclical pruning offers a simple yet effective modification to existing pruning pipelines. By allowing weights to "regrow," it overcomes the fundamental flaw of permanent pruning in traditional methods. While currently most effective for fine-tuning pre-trained models, future work will explore optimizing time-varying parameters to guarantee convergence when training from scratch and provide formal proofs for non-convex deep networks.
Summary updated