[Paper Review] Lookahead: A Far-Sighted Alternative of Magnitude-based Pruning
This paper proposes Lookahead Pruning (LAP), a novel magnitude-based pruning method that extends single-layer weight magnitude scoring to a multi-layer optimization framework, minimizing a 'lookahead' distortion measure that accounts for inter-layer effects. LAP consistently outperforms standard magnitude-based pruning across VGG, ResNet, and fully connected networks, especially at high sparsity, achieving over twice the compression rate with minimal computational overhead and no hyperparameters to tune.
Magnitude-based pruning is one of the simplest methods for pruning neural networks. Despite its simplicity, magnitude-based pruning and its variants demonstrated remarkable performances for pruning modern architectures. Based on the observation that magnitude-based pruning indeed minimizes the Frobenius distortion of a linear operator corresponding to a single layer, we develop a simple pruning method, coined lookahead pruning, by extending the single layer optimization to a multi-layer optimization. Our experimental results demonstrate that the proposed method consistently outperforms magnitude-based pruning on various networks, including VGG and ResNet, particularly in the high-sparsity regime. See https://github.com/alinlab/lookahead_pruning for codes.
Motivation & Objective
- To address the limitation of magnitude-based pruning (MP), which treats each layer independently and ignores inter-layer dependencies during pruning.
- To develop a pruning method that considers the broader impact of weight removal across multiple layers, improving subnetwork quality.
- To propose a simple, efficient, and hyperparameter-free alternative to MP that maintains compatibility with existing pruning techniques like iterative pruning and dynamic reconnection.
- To empirically validate that the lookahead approach yields superior performance, especially in high-sparsity regimes, across diverse architectures including VGG, ResNet, and fully connected networks.
Proposed method
- LAP formulates pruning as a multi-layer optimization problem that minimizes a 'lookahead' distortion measure, defined as the Frobenius norm of the difference between the original and pruned weight matrices across adjacent layers.
- The method introduces a distortion measure that incorporates the influence of neighboring layer weights, effectively 'looking ahead' to assess the impact of pruning a given weight on downstream layers.
- The lookahead distortion is computed using a weighted product of layer-wise weight magnitudes and their adjacent layer connections, capturing the propagation effect of pruning decisions.
- The algorithm selects and removes the weights that minimize this lookahead distortion, replacing the standard magnitude score with a more informed, context-aware saliency metric.
- The method is implemented using elementary tensor operations and requires no training data during pruning, only during retraining.
- It is compatible with existing iterative pruning and retraining schemes, allowing seamless integration with established pruning pipelines.
Experimental results
Research questions
- RQ1Can a pruning method that considers inter-layer dependencies outperform standard magnitude-based pruning in terms of accuracy and sparsity trade-offs?
- RQ2Does a multi-layer distortion minimization framework lead to better generalization or expressibility compared to layerwise magnitude pruning?
- RQ3Can a simple, score-based pruning method achieve state-of-the-art performance without requiring hyperparameter tuning or complex optimization procedures?
- RQ4How does the performance of lookahead pruning scale across different network architectures and sparsity levels, especially in high-sparsity regimes?
- RQ5What is the source of the performance gain—improved generalization, better expressibility, or a more optimal subnetwork structure?
Key findings
- LAP consistently outperforms magnitude-based pruning on VGG and ResNet architectures, particularly in high-sparsity regimes, with more than a two-fold improvement in compression rate.
- On CIFAR-10 with VGG-16, LAP achieved a test error of 8.77% ± 0.20, compared to 8.92% ± 0.18 for MP, representing a 10.6% relative improvement.
- For ResNet-18, LAP reduced test error to 7.73% ± 0.29, compared to 7.70% ± 0.23 for MP, showing consistent gains even at high sparsity.
- In fully connected networks on MNIST, LAP achieved a test error of 0.12% at 95% sparsity, compared to 67.62% for MP, demonstrating a dramatic performance gap at extreme sparsity.
- The generalization gap of LAP-pruned models is nearly identical to that of MP-pruned models, indicating that the performance gain stems from better expressibility rather than improved generalization.
- The method achieves these results with no additional hyperparameters and minimal computational cost, making it highly practical for deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.