Abstract
Pruning redundant filters is essential for deploying deep Convolutional Neural Networks (CNNs) on resource-constrained devices. Traditional pruning methods rely on heuristics that often fail to account for varying importance across different layers. We introduce Layer-compensated Pruning (LcP), a meta-learning framework that automates the pruning process by learning per-layer compensation values. LcP treats pruning as a global ranking problem, achieving superior accuracy-resource trade-offs. Notably, LcP is 8x faster than previous state-of-the-art automated pruning methods, reducing search time from hours to minutes.
Introduction
State-of-the-art Convolutional Neural Networks (CNNs) achieve high accuracy but are often too computationally intensive for edge devices like smartphones or IoT sensors. Pruning—the removal of redundant filters—is a standard solution to reduce memory and Multiply-Accumulate operations (MACs). However, pruning involves two difficult sub-problems: Ranking (identifying unimportant filters) and Scheduling (determining how many filters to prune per layer).
Traditional heuristics, such as removing filters with the smallest $\ell_2$-norm weights, are often "noisy." A small weight in one layer may be more critical than a larger weight in another. While Reinforcement Learning (RL) can automate scheduling, it is computationally expensive, often requiring hours of GPU time. This paper proposes Layer-compensated Pruning (LcP) to bridge the gap between simple heuristics and expensive automated search.
Methods
The core innovation of LcP is treating filter pruning as a global ranking problem rather than a layer-by-layer task. The authors demonstrate that standard heuristics are imperfect proxies for actual loss because they are biased by the layer they reside in.
To address this, LcP introduces a latent variable, $\beta_l$, as a "compensation" factor for each layer $l$. This factor is added to the heuristic score of every filter in that layer, allowing all filters in the network to be ranked on a single, compensated global scale. To find the optimal $\beta$ values, the authors use a Regularized Evolutionary Algorithm. This non-parametric approach is significantly faster than RL, requiring only a few forward passes on a validation set to evaluate candidate strategies.
Experimental Results
The authors evaluated LcP on CIFAR-10, ImageNet, and Bird-200 (for transfer learning).
Performance and Efficiency
LcP consistently outperformed naive global ranking and uniform pruning strategies. On ResNet-56 (CIFAR-10), LcP reduced the accuracy gap from 0.9% to 0.7% compared to previous state-of-the-art methods. More importantly, the meta-learning search time was reduced from 60 minutes to just 7 minutes on a single GPU—an 8x speedup.
Key Insights
- Global Ranking > Local Scheduling: By pooling all filters together, the algorithm naturally identifies which layers are most redundant, rather than being forced to prune a fixed percentage from every layer.
- Metric Agnostic: LcP proved effective regardless of the underlying heuristic used ($\ell_1$, $\ell_2$, or Taylor approximation).
- Scalability: Even on efficient architectures like MobileNetV2, LcP found a 5x theoretical speedup with minimal accuracy loss.
Conclusion
Layer-compensated Pruning (LcP) provides a fast, automated, and accurate framework for slimming down CNNs. By using evolutionary search to learn layer-wise compensation factors, it overcomes the biases of standard heuristics without the prohibitive cost of reinforcement learning. Future work may involve moving beyond layer-wise assumptions to more granular compensation and incorporating direct hardware latency measurements into the search objective.
Summary updated