Abstract
Deep convolutional neural networks (CNNs) are often over-parameterized, leading to high computational costs that hinder deployment on edge devices. Traditional filter pruning methods typically evaluate filter importance in isolation, often resulting in "layer collapse" or suboptimal accuracy. This paper introduces a dependency-aware approach to pruning that considers the relationship between adjacent layers. By combining a novel importance metric with an automatic regularization control mechanism, the authors achieve significant model compression with higher stability and better accuracy than traditional techniques like Network Slimming.
Introduction
Filter pruning—removing entire channels from a network—is a popular solution for model compression. However, most existing methods suffer from two major flaws:
- Layer Isolation: They judge a filter's importance based only on its own magnitude (e.g., its weight norm or Batch Normalization scaling factor), ignoring how the subsequent layer utilizes that information.
- Layer Collapse: Global ranking of filters across the entire network often leads to "unbalanced" pruning. Because different layers have different statistical distributions, an entire layer can be accidentally deleted, causing performance to collapse.
Methods
The authors propose two key innovations to address these limitations.
Dependency-Aware Importance Metric
Instead of evaluating a channel's Batch Normalization (BN) scaling factor ($\gamma$) in isolation, the authors consider the "flow" of information between layers. They define the importance of a channel $c$ in layer $l$ as: $$S^l_c = |\gamma^l_c| \cdot ||W^{l+1}_c||$$ Here, $|\gamma^l_c|$ is the scaling factor from the current layer, and $||W^{l+1}_c||$ represents the magnitude of the weights in the following layer that receive input from that channel. This ensures that a channel is only pruned if both its output is small and the next layer does not rely heavily on it.
Automatic Regularization Control and Intra-layer Selection
Standard pruning often requires a sparsity-inducing penalty ($L_1$ regularization) during training. Choosing the right strength ($\lambda$) usually requires tedious manual tuning. The authors introduce an algorithm that dynamically adjusts $\lambda$ during training based on the current pruning ratio. If the model is not becoming sparse enough, the penalty is increased; if it is becoming too sparse too quickly, it is decreased.
Furthermore, to prevent layer collapse, the authors employ intra-layer selection. Instead of a global ranking, they prune filters that fall below a certain percentage of the maximum importance within that specific layer. This local ranking significantly improves pruning stability, allowing for much higher pruning ratios (e.g., 80%) without catastrophic performance loss.
Results
The method was evaluated on standard benchmarks including CIFAR-10/100, SVHN, and ImageNet using VGGNet and ResNet architectures.
Key findings include:
- Superior Accuracy: On CIFAR-100 with a ResNet-164, the proposed method achieved 77.74% accuracy at a 40% pruning ratio, outperforming the Network Slimming baseline (76.22%).
- Robustness: On the SVHN dataset, the baseline method often collapsed (0% accuracy) at an 80% pruning ratio, while the dependency-aware method maintained a competitive 96.77% accuracy.
- Scalability: On ImageNet, the method consistently outperformed other data-independent pruning techniques and remained competitive with more computationally expensive data-dependent methods.
Conclusion
Dependency-aware filter pruning offers a robust and efficient way to compress CNNs by looking beyond single layers. By accounting for inter-layer dependencies and utilizing dynamic regularization, the method avoids common pitfalls like layer collapse. Future work may involve adapting this approach for newer architectures like Transformers and exploring "one-shot" pruning methods that eliminate the need for a separate finetuning stage.
Summary updated