Skip to main content
QUICK REVIEW

[Paper Review] MarginDistillation: distillation for margin-based softmax

David Svitov, Sergey Alyamkin|arXiv (Cornell University)|Mar 5, 2020
Face recognition and analysisComputer Science22 references5 citations
TL;DR

This paper proposes MarginDistillation, a novel distillation method for lightweight face recognition models trained with margin-based softmax (e.g., ArcFace). It transfers class center embeddings and angular margins from a teacher network to a student network, enabling the student to learn the same inter-class angular separation. The method achieves state-of-the-art accuracy on LFW (99.61%), AgeDB-30 (96.55%), and MegaFace (91.70%) benchmarks, outperforming existing distillation techniques.

ABSTRACT

The usage of convolutional neural networks (CNNs) in conjunction with a margin-based softmax approach demonstrates a state-of-the-art performance for the face recognition problem. Recently, lightweight neural network models trained with the margin-based softmax have been introduced for the face identification task for edge devices. In this paper, we propose a novel distillation method for lightweight neural network architectures that outperforms other known methods for the face recognition task on LFW, AgeDB-30 and Megaface datasets. The idea of the proposed method is to use class centers from the teacher network for the student network. Then the student network is trained to get the same angles between the class centers and the face embeddings, predicted by the teacher network.

Motivation & Objective

  • To reduce the performance gap between large teacher networks and lightweight student networks in face recognition.
  • To improve the accuracy of mobile-optimized face recognition models trained with margin-based softmax loss.
  • To develop a distillation method specifically tailored for margin-based softmax, which is known to yield state-of-the-art performance in face recognition.
  • To empirically compare MarginDistillation against existing distillation methods (e.g., triplet, angular, margin-based distillation) on standard benchmarks.
  • To provide open-source implementation for reproducibility and broader adoption in mobile and edge AI applications.

Proposed method

  • The method transfers class centers from a pre-trained teacher network (ResNet100 with ArcFace loss) to a student network (MobileFaceNet).
  • The student network is trained to match the angular relationships between class centers and face embeddings as predicted by the teacher network.
  • Class centers in the student network are frozen during training to preserve the angular margin structure learned by the teacher.
  • The training objective minimizes the difference between the angles formed by the student’s face embeddings and the transferred class centers, relative to the angles in the teacher network.
  • The approach uses a margin-based softmax loss (ArcFace) with fixed hyperparameters (s=64, m_max=0.5, m_min=0.2) to maintain consistency with the teacher.
  • The method is implemented using MXNet and compared directly with triplet distillation, angular distillation, and margin-based distillation using temperature scaling.

Experimental results

Research questions

  • RQ1Can transferring class centers and angular margins from a teacher network improve the performance of a lightweight student network in face recognition?
  • RQ2How does MarginDistillation compare to existing distillation methods—such as triplet, angular, and margin-based distillation—on standard face recognition benchmarks?
  • RQ3Does the proposed method reduce the accuracy gap between large teacher networks and small student networks trained with margin-based softmax?
  • RQ4Is MarginDistillation effective on challenging, large-scale datasets like MegaFace with 1 million distractors?
  • RQ5Can the method be generalized to other margin-based softmax variants beyond ArcFace?

Key findings

  • MarginDistillation achieves 99.61% accuracy on the LFW dataset, outperforming the next best method (angular distillation) by 0.06 percentage points.
  • On AgeDB-30, the method reaches 96.55% accuracy, a 0.42 percentage point improvement over the best baseline (angular distillation) and 0.42 over the student trained with ArcFace alone.
  • On the challenging MegaFace benchmark, MarginDistillation achieves 91.70% top-1 identification accuracy, surpassing the next best method (margin-based distillation with T=4) by 0.93 percentage points.
  • The method consistently outperforms all compared distillation baselines across all three datasets, demonstrating robustness and generalization.
  • The performance gain is attributed to the effective transfer of angular margin structure via class center alignment, which preserves the discriminative feature space learned by the teacher.
  • The ablation shows that freezing the transferred class centers is critical, as fine-tuning them leads to performance degradation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.