Abstract
MetaPruning introduces a meta-learning framework designed to automate the complex process of neural network channel pruning. By training a "PruningNet" to predict weights for any potential pruned structure, the framework enables efficient evolutionary search to identify optimal architectures under specific resource constraints, such as FLOPs or latency, without requiring time-consuming fine-tuning during the search process.
Introduction
Deep neural networks are frequently over-parameterized, posing significant challenges for deployment on mobile or edge devices due to high memory and computational demands. Channel pruning—the process of reducing the number of filters in convolutional layers—is a standard solution. However, traditional pruning methods face three primary obstacles:
- Search Space Complexity: The number of possible pruned configurations grows exponentially with network depth.
- Evaluation Bottleneck: Standard AutoML methods require pruning and fine-tuning each candidate, which is computationally prohibitive.
- Topology Constraints: Modern architectures like ResNet or MobileNetV2 utilize shortcut connections that require synchronized channel counts across layers, complicating manual pruning.
Methods
MetaPruning addresses these issues through a two-stage meta-learning approach: training a weight-generating meta-network and subsequently searching for the best architecture.
1. Training the PruningNet
Instead of optimizing a single pruned model, MetaPruning trains a PruningNet (a type of HyperNetwork). This meta-network takes a "network encoding vector"—a list representing the channel counts for each layer—as input and generates the corresponding weight tensors for that specific architecture.
During training, the system uses Stochastic Structure Sampling to randomly select different channel configurations. The PruningNet learns to provide functional weights for a vast variety of pruned structures simultaneously. As shown in the block diagram below, the PruningNet uses fully connected layers to map the desired channel count to a reshaped weight matrix.
2. Evolutionary Search
Once trained, the PruningNet acts as an "accuracy oracle." To find the optimal pruned model, the authors employ a Genetic Algorithm:
- Zero Fine-tuning: The PruningNet instantly generates weights for any configuration, allowing thousands of candidates to be evaluated on the validation set in seconds.
- Constraint-Aware Search: Hard constraints (e.g., < 300M FLOPs or < 0.5ms latency) are easily integrated into the search process to find the highest-performing model within those bounds.
Key Results and Insights
MetaPruning was evaluated on the ImageNet 2012 dataset across several architectures, consistently outperforming uniform pruning and state-of-the-art AutoML methods:
- MobileNet V1: At 0.25x FLOPs, MetaPruning achieved 57.2% top-1 accuracy, a 6.6% improvement over the uniform pruning baseline.
- MobileNet V2: The method surpassed the popular AMC (AutoML for Model Compression) method, reaching 71.2% accuracy with only 217M FLOPs.
- ResNet-50: At a 2G FLOP constraint, it achieved 75.4% accuracy, outperforming traditional methods like ThiNet (74.7%) and CP (73.3%).
Architectural Discoveries
The research reinforces the idea that the structure (channel distribution) of a pruned model is often more critical than the specific inherited weights. Interestingly, MetaPruning automatically discovered human-like design heuristics, such as preserving more channels at downsampling layers to minimize information loss. Furthermore, by synchronizing encoding vectors for layers linked by shortcuts, the framework handles complex residual topologies without manual intervention.
Conclusion
MetaPruning offers a robust, automated alternative to manual channel pruning. While there is a meta-training overhead (approximately 1/4 to 1/2 the time of a standard training run), the resulting search efficiency and accuracy gains are significant. Future work may expand this meta-learning approach beyond channel counts to include kernel sizes and layer types, potentially merging pruning with full Neural Architecture Search (NAS).
Summary updated