TL;DR
This paper explores how to shrink heavy-duty Face Recognition (FR) models for mobile deployment using iterative network pruning based on Taylor scores. The researchers demonstrate that even a large model like ResNet50 can be pruned by a staggering 99%—reducing it to roughly 1 million parameters—while still maintaining accuracy levels that rival or beat native "lightweight" architectures like MobileNetv2.
What Problem Does This Paper Address?
Deep Convolutional Neural Networks (CNNs) have revolutionized face recognition, but they come with a heavy "tax": they often require hundreds of megabytes of storage and millions of parameters. This makes them difficult to deploy on mobile devices with limited memory and processing power.
While researchers have designed "lightweight" models from scratch (like SqueezeNet or MobileNet), these often involve manual architectural tweaks. This paper investigates network pruning—a systematic way to identify and remove redundant parts of an existing, high-performing model—to see if we can "slim down" powerful networks without losing their "intelligence."
Methods
The authors employ a pruning method based on first-order Taylor expansion.
- Importance Scoring: Instead of just looking at the size of weights (magnitude pruning), they calculate an "importance score" for each filter. This score estimates how much the network's error would increase if that specific filter were removed.
- Gradient-Based: The scores are calculated using the gradients obtained during backpropagation, making it computationally efficient.
- Iterative Pruning & Retraining: They remove the least important 1% of filters, then retrain (fine-tune) the model to recover lost accuracy. This cycle repeats until the desired level of sparsity is reached.
They tested this approach on three architectures of varying complexity:
- SqueezeNet: Very small (1.24M parameters).
- MobileNetv2: Medium/Lightweight (3.5M parameters).
- ResNet50: Large/Standard (23.5M parameters).
Datasets
- Pre-training: The models were initially trained on a cleaned subset of MS-Celeb-1M (5.1M images).
- Pruning & Fine-tuning: The authors used VGGFace2, a massive dataset with 3.31M images of over 9,000 celebrities.
- Evaluation: Performance was measured on VGGFace2-Pose, a specific subset designed to test the models against challenging variations in head pose (frontal, three-quarter, and profile views).
Key Insights and Ideas
- Over-dimensioned Spaces: The study found that filters with the highest number of output channels are usually the first to be pruned. This suggests that the high-dimensional feature spaces in popular CNNs are significantly over-dimensioned for the task of face recognition.
- The "Big Model" Advantage: A heavily pruned large model (ResNet50 at 99% pruning) often performs better than a native small model (like SqueezeNet) at the same parameter count (~1M). This suggests that starting with a high-capacity model and pruning it yields a more efficient internal structure than designing a small model from scratch.
- Template Power: Using "5-5" matching (averaging features from 5 images per person) significantly buffers the model against pruning-induced errors compared to "1-1" (single image) matching.
- Visualizing "Forgetfulness": Using LIME heatmaps, the authors showed that un-retrained pruned models lose focus on key facial features (eyes, nose). However, retraining successfully "re-teaches" the model to focus back on these critical regions.
Key Results
- ResNet50 Resilience: ResNet50 proved incredibly robust, maintaining stable performance even after 60-70% of its filters were removed. Even at 99% pruning, it remained competitive.
- Efficiency Gains: SqueezeNet and MobileNetv2 could be pruned by 20-30%, bringing them down to the ~1M parameter range while maintaining their baseline accuracy.
- Quantitative Performance: In one-to-one comparisons, a ResNet50 pruned to ~1.07M parameters achieved an Equal Error Rate (EER) of roughly 5.7%, while a MobileNetv2 pruned to the same size achieved a superior 3.7%, showing that while ResNet is robust, MobileNet's architecture is fundamentally more efficient for light workloads.
Limitations and Future Work
- Embedding Size Constraints: The authors noted that pruning the final layers changes the "embedding size" (the length of the digital signature for a face). This makes it hard to compare pruned models directly against "teacher" models in Knowledge Distillation (KD) setups.
- Future Directions: The researchers plan to combine pruning with Knowledge Distillation, where a large "teacher" network guides the training of the pruned "student" network. They also aim to explore "blocking" certain layers from being pruned to maintain fixed embedding sizes for better compatibility with existing systems.
Summary updated