TL;DR
This paper introduces a "data agnostic" filter pruning method that uses an auxiliary Dagger module to determine filter importance based on pretrained weights rather than fluctuating input batches. By combining this module with an explicit FLOPs-aware regularization, the authors achieve state-of-the-art compression results, such as a ResNet-50 model with 50% fewer FLOPs that still maintains a 76.1% Top-1 accuracy on ImageNet.
What Problem Does This Paper Address?
Deep learning models are often too "clumsy" for deployment on edge devices like phones or wearable watches due to their massive computational requirements. Filter pruning—removing entire channels from a convolutional layer—is a popular solution because it results in standard, smaller architectures that don't require specialized hardware.
However, the authors identify two major flaws in current pruning techniques:
- Batch Dependency: Most methods use feature maps from specific input batches to score filter importance. Because different batches (e.g., a batch of cats vs. a batch of dogs) produce different feature maps, the "importance" of a filter fluctuates, leading to inconsistent and sub-optimal sparse structures.
- Indirect Budgeting: Pruning often relies on "sparsity proxies" (like $\ell_1$ or $\ell_{21}$ norms) to reduce model size. These proxies don't map directly to a specific FLOPs budget, requiring researchers to tediously tune hyperparameters to hit a target speedup.
Methods
The authors propose a framework that shifts the focus from data-dependent feature maps to the static knowledge stored in pretrained weights.
The Dagger Module
Instead of looking at what a filter does to a specific image, the authors look at the filter's weights. They introduce the Dagger module, an auxiliary network that takes pretrained convolution weights as input and outputs a "gate" (a value between 0 and 1) for each filter.
As shown in Figure 2(a), the Dagger module uses average pooling and fully-connected layers to process the weights. Because the weights are fixed during the pruning decision phase, the resulting importance scores are "data agnostic"—they represent the filter's value to the entire dataset, not just the current batch.
FLOPs-aware Regularization
To hit specific hardware targets, the authors incorporate FLOPs directly into the loss function. They use the gates generated by the Dagger module to estimate the total FLOPs of the pruned network. This allows them to optimize the model toward a hard FLOPs constraint using standard gradient descent.
Iterative Greedy Pruning
The process follows an iterative loop:
- Align: Initialize all gates to 1.
- Optimize Gates: Fix the main network weights and train the Dagger module to minimize a joint loss of classification accuracy and the FLOPs budget.
- Prune: Greedily remove filters with the smallest gate values.
- Fine-tune: Briefly retrain the remaining weights to recover performance before the next pruning step.
Datasets
The method was evaluated on two standard computer vision benchmarks:
- CIFAR-10: Used for initial validation on VGGNet-19 and MobileNetV2.
- ImageNet (ILSVRC-12): Used for large-scale testing on ResNet-50 and MobileNetV2 to demonstrate real-world applicability.
Key Insights and Ideas
- Weights as a Dataset Proxy: The core "aha moment" is that pretrained weights already contain the distilled information of the entire training set. Using them as input for pruning decisions eliminates the noise introduced by batch-to-batch variance.
- Handling Skip Connections: Pruning ResNets is tricky because skip connections require the input and output of a bottleneck to have the same number of filters. The authors solve this by using a Union operation on the gates of the input and output layers (see Figure 2b), ensuring structural consistency.
- Sensitivity to Pretraining: Interestingly, the authors found their method is relatively insensitive to the quality of the pretrained model. As long as the model is "not-too-bad," the Dagger module can effectively identify which filters are redundant.
Key Results
The proposed method consistently outperformed state-of-the-art (SOTA) competitors across different architectures:
- ResNet-50 (ImageNet): At a ~2.0G FLOPs budget (50% reduction), it achieved 76.1% Top-1 accuracy, surpassing methods like AutoPruner (74.8%) and MetaPruning (75.4%).
- MobileNetV2 (ImageNet): Pruning to 140M FLOPs actually improved accuracy over the baseline (69.5% vs 68.2%), suggesting the method acts as an effective regularizer.
- Efficiency: The pruning process is remarkably fast. For a 50% FLOPs reduction on ImageNet, the algorithm only needs to "see" the equivalent of about 8 to 10 epochs of data.
Limitations and Future Work
While the paper demonstrates strong results, a few areas remain for exploration:
- Iterative Overhead: The greedy iterative process (pruning 0.6% of filters at a time) requires multiple fine-tuning steps, which might be more time-consuming than one-shot pruning methods for extremely large models.
- Architecture Scope: The study focuses on CNNs. Extending this "data agnostic" weight-based gating to Transformers (e.g., pruning heads or MLP dimensions) would be a natural and valuable next step.
- Hyperparameter $\lambda$: The balance between accuracy and FLOPs reduction still relies on a lagrange multiplier $\lambda$, which the authors set empirically to 8. Automating the discovery of this parameter could further simplify the pipeline.
Summary updated