Abstract
Knowledge Distillation (KD) is a pivotal technique for deploying high-performance face recognition models on resource-constrained edge devices. Traditional KD methods often struggle because they force compact student models to mimic the entire feature space or all relational similarities of a massive teacher model, regardless of their limited capacity. We propose Evaluation-oriented Knowledge Distillation (EKD), a framework that focuses distillation exclusively on the "critical" sample pairs that determine performance in real-world metrics like True Positive Rate (TPR) at fixed False Positive Rates (FPR). By relaxing global constraints and prioritizing decision boundaries, EKD allows student models to achieve state-of-the-art accuracy while maintaining a compact architecture.
Introduction: The Capacity Gap in Knowledge Distillation
As deep face recognition moves toward mobile and embedded applications, the demand for compact "student" models has grown. Knowledge Distillation typically bridges the gap between these small models and large "teacher" models. However, existing KD paradigms are often too rigid for low-capacity models.
Instance-based methods require students to match the teacher's exact high-dimensional feature vectors, while relation-based methods demand the replication of all pairwise similarities between images in a batch. For a student with limited capacity, trying to be a perfect "mini-me" of a massive teacher is counterproductive. This rigidity forces the student to waste capacity on nuances that do not impact final performance, often at the expense of learning the most critical decision boundaries. EKD addresses this by aligning the student with the teacher only where it matters for evaluation.
Methodology: Focusing on Critical Relations
The EKD framework shifts the focus from global feature alignment to local decision-making. The process is built around four primary pillars:
- Critical Relation Selection: During training, the algorithm identifies "critical pairs"—sets of images where the teacher and student disagree on whether they constitute a match based on specific performance thresholds (e.g., at a False Positive Rate of $10^{-5}$).
- Threshold Estimation via EMA: Since decision thresholds fluctuate during the training process, the authors employ an Exponential Moving Average (EMA) to maintain stable similarity thresholds for various FPR ranges, ensuring consistent guidance for the student.
- Rank-based Loss Function: To bridge the gap between training objectives and evaluation metrics, EKD uses a novel rank-based loss. It utilizes a sigmoid function to create a differentiable approximation of the discrete indicator function used to calculate TPR and FPR. This allows the model to directly optimize the student's ranking of pairs relative to the teacher's decision boundaries.
- Hard Negative Mining: To ensure computational efficiency, the method focuses on the most difficult negative pairs—different individuals who look similar—as these are the most likely to trigger false positives in real-world scenarios.
Experimental Results and Performance
The EKD models were trained on the MS1MV2 dataset, comprising 5.8 million images. Evaluation was conducted across a comprehensive suite of benchmarks, including small-scale (LFW, CFP-FP), large-scale (IJB-B, IJB-C), and million-scale (MegaFace) datasets.
EKD consistently outperformed established KD methods such as FitNet, RKD, and ShrinkTeaNet. A notable result was observed with the MobileFaceNet student model on the IJB-C benchmark, where EKD improved the TPR@FPR=$10^{-5}$ from a baseline of 81.65% to 84.00%. This jump is particularly significant for such a compact model, demonstrating that focusing on critical relations effectively alleviates capacity constraints.
Conclusion and Future Directions
The core insight of EKD is that decision boundaries are more important than exact feature values. By allowing the student model the flexibility to organize its own internal feature space—provided it maintains correct relative rankings for difficult pairs—EKD minimizes the "metric gap" between training and testing.
While EKD is highly effective for verification tasks, the authors note that it is slightly less dominant in Rank-1 identification on the MegaFace challenge. Future research will focus on developing new performance indicators and loss functions specifically tailored to improve Top-1 identification within this evaluation-oriented distillation framework.
Summary updated