Deep Neural Networks (DNNs) are notoriously over-parameterized, often containing millions of connections that contribute minimally to final performance. While Layer-wise Magnitude-based Pruning (LMP) is a standard technique for model compression, determining the optimal pruning threshold for each layer remains a manual, expert-driven "black art." This paper introduces OLMP (Optimization-based LMP), an automated framework that treats threshold selection as a constrained optimization problem.
The OLMP Framework
OLMP automates the selection of layer-wise pruning thresholds by minimizing model size while maintaining accuracy within a user-defined tolerance ($\delta$). The process is formulated as a derivative-free optimization problem, specifically designed to handle the non-continuous and non-differentiable nature of pruning thresholds.
The system operates in two main phases:
- Optimization via NCS: A population-based heuristic called Negatively Correlated Search (NCS) explores the threshold space. It uses a specialized fitness function to guide the search toward feasible regions.
- Iterative Pruning & Adjusting: Instead of a single-shot approach, the model is pruned iteratively. Each step includes a brief "adjusting" phase (retraining with splicing) to recover accuracy before the next optimization cycle.
Smoothing the Fitness Landscape
A key technical contribution is the transformation of the optimization landscape. Standard accuracy-based fitness functions often result in "plateaus" where the optimizer lacks direction. OLMP introduces a penalty-based fitness function that provides a gradient-like signal even when constraints are violated.
By turning a flat plateau into a guided slope, the algorithm can effectively "jump" back into the feasible region where accuracy constraints are met, significantly improving search efficiency.
Experimental Results
The researchers evaluated OLMP on MNIST (LeNet architectures) and Caltech-256 (AlexNet). The results demonstrate that automation significantly outperforms human intuition and existing state-of-the-art heuristics:
- LeNet-5: Achieved a massive 298x compression ratio.
- AlexNet: Reduced model size by 82x (from 58.3M to 0.7M parameters) with zero accuracy loss.
- Efficiency: By using sampled data batches for evaluation, the optimization process remains computationally feasible, taking approximately 5.6 times the initial training time for AlexNet.
Conclusion
OLMP successfully automates the complex task of layer-wise pruning. By framing compression as a constrained optimization problem and smoothing the search landscape, it achieves record-breaking compression ratios. Future work will focus on incorporating hardware-aware constraints to translate parameter reduction into real-world inference speedups on standard hardware.
Summary updated