Introduction
Deep Neural Networks (DNNs) have achieved state-of-the-art performance in various tasks but often come with prohibitive computational and memory costs. Pruning is a critical technique for deploying these models on resource-constrained edge devices. However, traditional pruning pipelines are inefficient due to a lengthy retraining phase required to recover accuracy lost during weight removal. This paper, presented at IJCAI-21, introduces a novel optimization approach using Surrogate Lagrangian Relaxation (SLR) to enable high-accuracy pruning with minimal to no retraining.
The Pruning Bottleneck
The standard pruning workflow involves three stages: training a dense model, pruning weights (often leading to a significant accuracy drop), and fine-tuning. The fine-tuning stage is particularly expensive, often consuming up to 70% of the total training time. Mathematically, pruning is a discrete, non-convex optimization problem constrained by weight cardinality. Existing methods like the Alternating Direction Method of Multipliers (ADMM) often struggle with convergence and theoretical guarantees in this non-convex landscape.
Surrogate Lagrangian Relaxation (SLR)
To address these challenges, the authors propose an SLR-based framework. Unlike traditional Lagrangian Relaxation, SLR does not require solving subproblems to global optimality at each step, significantly reducing computational overhead. Key features include:
- Quadratic Penalties: These terms smooth the optimization landscape and accelerate convergence.
- Theoretical Convergence: The authors provide proofs for convergence in non-convex pruning scenarios, a property lacking in ADMM.
- Two-Stage Pipeline: By optimizing weights to be closer to their pruned states during the initial phase, SLR maintains high accuracy immediately after pruning, potentially bypassing the need for extensive retraining.
Experimental Evaluation
The method was validated across diverse benchmarks, including image classification (CIFAR-10, ImageNet), object detection (COCO), and lane detection (TuSimple).
Key Results and Insights
The experiments demonstrate that SLR-pruned models are "born" more accurate. For instance, on CIFAR-10 with ResNet-18, SLR achieved 89.93% accuracy at an 8.71x compression rate, whereas ADMM only reached 72.84% under identical conditions.
Efficiency and Convergence
SLR consistently outperforms ADMM in convergence speed. On CIFAR-10, SLR reached target accuracy approximately 3x faster than ADMM. This gap is particularly evident in architectures like VGG-16, where SLR recovers accuracy in a fraction of the time required by competitors.
Extreme Compression
SLR shows remarkable robustness at high compression ratios. In the TuSimple lane detection task, SLR maintained 89.72% accuracy at a 77.67x compression rate, while ADMM's accuracy plummeted to 46.09%.
Conclusion
The SLR framework represents a significant advancement in model compression. By providing a mathematically grounded approach to non-convex optimization, it enables "hard-pruning" that preserves accuracy, drastically reducing the time and resources required for DNN deployment on edge hardware. Future work may extend this framework to other discrete optimization problems in deep learning, such as weight quantization.
Summary updated