[Paper Review] ShrinkTeaNet: Million-scale Lightweight Face Recognition via Shrinking Teacher-Student Networks
ShrinkTeaNet proposes a novel knowledge distillation framework that trains lightweight student networks for million-scale face recognition by distilling feature direction and sample distribution knowledge from a heavy teacher network using an Angular Distillation Loss. This approach achieves state-of-the-art performance with 99.77% accuracy on LFW and 95.64% on MegaFace, significantly outperforming prior methods in open-set settings.
Large-scale face recognition in-the-wild has been recently achieved matured performance in many real work applications. However, such systems are built on GPU platforms and mostly deploy heavy deep network architectures. Given a high-performance heavy network as a teacher, this work presents a simple and elegant teacher-student learning paradigm, namely ShrinkTeaNet, to train a portable student network that has significantly fewer parameters and competitive accuracy against the teacher network. Far apart from prior teacher-student frameworks mainly focusing on accuracy and compression ratios in closed-set problems, our proposed teacher-student network is proved to be more robust against open-set problem, i.e. large-scale face recognition. In addition, this work introduces a novel Angular Distillation Loss for distilling the feature direction and the sample distributions of the teacher's hypersphere to its student. Then ShrinkTeaNet framework can efficiently guide the student's learning process with the teacher's knowledge presented in both intermediate and last stages of the feature embedding. Evaluations on LFW, CFP-FP, AgeDB, IJB-B and IJB-C Janus, and MegaFace with one million distractors have demonstrated the efficiency of the proposed approach to learn robust student networks which have satisfying accuracy and compact sizes. Our ShrinkTeaNet is able to support the light-weight architecture achieving high performance with 99.77% on LFW and 95.64% on large-scale Megaface protocols.
Motivation & Objective
- To address the challenge of deploying large-scale face recognition on mobile and embedded devices with limited computational resources.
- To improve robustness in open-set face recognition, where test classes differ from training classes, by transferring knowledge beyond just classification logits.
- To develop a distillation method that preserves the geometric structure of the teacher's hypersphere, particularly feature directions and sample distributions, for better generalization.
- To enable efficient distillation across all stages of feature embedding, not just the final layer, to enhance student network performance.
- To achieve competitive accuracy with compact, lightweight architectures while maintaining robustness under large-scale, open-set conditions.
Proposed method
- Introduces an Angular Distillation Loss that encourages the student network to match the direction and distribution of features in the teacher's hypersphere, rather than exact feature values.
- Applies distillation at every stage of the feature embedding process, enabling knowledge transfer from intermediate and final layers of the teacher network.
- Uses a heavy, high-performance network as the teacher and a lightweight architecture (e.g., MobileNetV1, MobileNetV2, MobileFaceNet) as the student, trained via knowledge distillation.
- Employs a soft constraint based on angular similarity between feature vectors, which is more flexible than traditional ℓ₂ or cross-entropy losses.
- Designs a multi-stage distillation framework that jointly optimizes the student’s representation learning using both the final classifier and intermediate feature maps.
- Utilizes the teacher’s learned class distributions and feature geometry to guide the student’s decision boundary formation, improving generalization to unseen classes.
Experimental results
Research questions
- RQ1Can knowledge distillation be effectively applied to open-set face recognition, where test classes differ from training classes?
- RQ2Does distilling feature direction and sample distribution from the teacher’s hypersphere improve student generalization compared to standard distillation based on logits or ℓ₂ loss?
- RQ3Can a lightweight student network achieve competitive performance on large-scale benchmarks like MegaFace while maintaining low parameter count?
- RQ4How does multi-stage distillation across feature embedding layers impact student performance compared to distillation only at the final layer?
- RQ5Can the proposed Angular Distillation Loss reduce overfitting and training instability compared to ℓ₂-based distillation in lightweight models?
Key findings
- ShrinkTeaNet achieves 99.77% accuracy on the LFW benchmark, demonstrating strong performance even with lightweight student networks.
- On the large-scale MegaFace protocol with one million distractors, ShrinkTeaNet-MFNR achieves 95.64% accuracy, reducing the gap to ArcFace by only 1.71%.
- The method reduces performance gaps between teacher and student networks to just 0.05% on LFW, 1.83% on CFP-FP, and 0.74% on AgeDB, significantly outperforming ℓ₂-based distillation.
- On IJB-B and IJB-C protocols, ShrinkTeaNet improves student performance by 1.9% to 3.64% over baseline models, with a 0.016 gap to ArcFace on IJB-C.
- The training process with Angular Distillation Loss is more stable than ℓ₂-based distillation, which often suffers from over-regularization and instability in lightweight models.
- ShrinkTeaNet is one of the first distillation frameworks specifically designed and validated for open-set large-scale face recognition, demonstrating its robustness to distribution shifts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.