TL;DR
This paper tackles the challenge of accelerating deep neural networks using very limited training data, a common scenario due to privacy concerns. They introduce a "finetune convexity hypothesis" suggesting that finetuning pruned networks is surprisingly well-behaved, and propose a novel block-dropping algorithm called PRACTISE that achieves significant latency reduction with minimal accuracy loss, even outperforming previous methods by 7% on ImageNet.
What Problem Does This Paper Address?
In today's world, deploying deep neural networks often requires them to be smaller and faster, especially on edge devices. However, traditional methods for accelerating networks (like pruning filters) typically need access to the entire original training dataset to fine-tune the compressed model and recover its accuracy. This is a major hurdle when data privacy is paramount, or when only a small subset of data is available. Imagine a company wanting to optimize a model for its customers, but unable to access the customer data. This paper addresses this critical gap by developing methods that can effectively compress and fine-tune networks using only a handful of training examples.
Methods
The authors propose a multi-pronged approach:
- Finetune Convexity Hypothesis: They hypothesize that finetuning a pruned neural network exhibits a convex loss landscape. This property is key to why these models don't overfit, even with very little data. They empirically demonstrate this by showing that interpolating between a pruned model and its finetuned version results in a smooth, convex loss curve, unlike training from scratch.
- Feature Mimicking Theory: They provide a theoretical explanation for why feature mimicking (a knowledge distillation technique) is effective. Their theory shows that feature mimicking leads to lower variance in learned parameters, making optimization more stable and easier, especially with limited data.
- Block-Level Pruning: They argue that dropping entire blocks (like residual blocks in ResNets) is superior to filter-level pruning for few-shot compression. Block dropping offers a more convex optimization landscape and a higher acceleration ratio.
- Recoverability Metric: To intelligently select which blocks to drop, they introduce a new metric called "recoverability." This metric efficiently measures how easily a pruned block's accuracy can be recovered through finetuning, considering both the model's architecture and the finetuning process itself.
- PRACTISE Algorithm: Combining these ideas, they propose PRACTISE. It first identifies blocks to drop using recoverability and latency considerations, then inserts lightweight "adaptor" layers to compensate for the dropped blocks, and finally finetunes these adaptors using feature mimicking.
Datasets
- ImageNet-1k: Used extensively for training and evaluating the performance of their proposed methods and comparing them against existing techniques.
- Synthesized Images (from DFKD methods like ADI): Used to demonstrate PRACTISE's capability in data-free scenarios.
- Out-of-Domain Datasets (CUB, Place365): Used to showcase PRACTISE's generalization ability when trained on data different from the original training set (e.g., training on ImageNet-1k and then pruning using CUB bird images).
Key Insights and Ideas
- Finetuning Pruned Networks is Convex: This is a significant theoretical insight. It explains why limited data doesn't lead to overfitting in this specific scenario, a mystery that has puzzled researchers.
- Block Dropping > Filter Pruning for Few-Shot: While filter pruning is popular, the paper convincingly argues that for scenarios with limited data, dropping entire blocks offers a better trade-off between acceleration and accuracy due to its more favorable optimization landscape.
- Recoverability is Key: Simply looking at the difference between pruned and original networks isn't enough. The ability to recover accuracy after finetuning is crucial, and their "recoverability" metric captures this effectively.
- Feature Mimicking's Stability: The theoretical grounding for feature mimicking highlights its advantage in parameter stability, making it a more robust choice for finetuning with scarce data.
- PRACTISE Works Even Without Labels: The algorithm's effectiveness in data-free settings (using synthesized images) and with out-of-domain data underscores its practical utility and robustness.
Key Results
- Significant Latency Reduction: PRACTISE achieves a 22.1% latency reduction on ImageNet-1k.
- Superior Accuracy: For the same latency reduction, PRACTISE surpasses previous state-of-the-art methods by an average of 7.0 percentage points in Top-1 accuracy on ImageNet-1k.
- Block Dropping Baseline Outperforms SOTA: Even a simple baseline of dropping blocks and finetuning with cross-entropy loss (without feature mimicking) already outperforms existing filter-pruning methods in the few-shot setting.
- High Generalization: PRACTISE demonstrates strong performance on synthesized and out-of-domain datasets, showing its adaptability.
- Efficiency: The recoverability metric is computationally efficient, making the overall PRACTISE algorithm practical for real-world applications.
Limitations and Future Work
- Conjecture Limitations: The finetune convexity hypothesis is primarily established for discriminative models and finetuning pruned networks. Its applicability to other scenarios like transfer learning, domain adaptation, or generative models is left for future work.
- Generative Models: The theoretical framework is focused on discriminative models, and extending it to generative models remains an open problem.
- Recoverability for Other Schemes: Investigating how to compute recoverability for other compression schemes (beyond block dropping) is a potential future direction.
- Downstream Tasks: The authors suggest exploring the application of PRACTISE for finetuning large pre-trained models on downstream tasks, which is an increasingly important area.
Summary updated