Abstract
Knowledge distillation is an effective method to improve the performance of a lightweight neural network (student model) by transferring the knowledge of a well-performed neural network (teacher model). While widely applied in face recognition, current methods typically rely on Feature Consistency Distillation (FCD), which minimizes the distance between individual embeddings. This approach often fails to fully capture the discriminative knowledge inherent in the teacher model. We propose CoupleFace, a novel framework that introduces Mutual Relation Distillation (MRD) to transfer the knowledge of relations between samples. By mining informative mutual relations and employing a Relation-Aware Distillation (RAD) loss, CoupleFace significantly enhances the student model's discriminative ability. Our method achieved first place in the ICCV21 Masked Face Recognition Challenge (MS1M track) and demonstrates state-of-the-art performance across multiple benchmarks.
Introduction
Deploying high-performance face recognition (FR) systems on resource-constrained devices requires lightweight models. Knowledge distillation (KD) is the standard technique for bridging the performance gap between these small "student" models and large "teacher" models. Traditional FR distillation focuses on Feature Consistency Distillation (FCD), ensuring that the student's output for a given image matches the teacher's output.
However, FCD has a significant limitation: it treats each sample in isolation. In face recognition, the relative distances between identities in the embedding space—the "topology"—are more critical for discriminative performance than absolute feature coordinates. As shown in Figure 1, standard FCD often results in a student model where the distance between different identities ($d_s$) is significantly smaller than that of the teacher ($d_t$), potentially leading to higher false-positive rates.
The CoupleFace Framework
To address the shortcomings of FCD, we propose CoupleFace, which integrates FCD with a new Mutual Relation Distillation (MRD) module. The framework aims to teach the student not just where a face is, but how it relates to others.
1. Feature Consistency Distillation (FCD)
The baseline component minimizes the $L_2$ distance between the student embedding ($f_i^s$) and the teacher embedding ($f_i^t$) for each sample $i$. This provides a point-to-point supervision signal.
2. Mutual Relation Distillation (MRD)
The core innovation of CoupleFace is the MRD module, which consists of two main parts:
- Informative Mutual Relation Mining (IMRM): Since calculating all-to-all relations in a large dataset is computationally prohibitive, we use "identity prototypes" and a MoCo-style memory bank. This allows the model to efficiently identify "hard negatives"—different individuals who are close in the feature space—which are the most informative relations for the student to learn.
- Relation-Aware Distillation (RAD) Loss: We introduce the $\mathcal{L}_{rad}$ loss to transfer relational knowledge. Unlike simple similarity matching, RAD is "validity-aware"; it only penalizes the student when the teacher demonstrates a more discriminative relationship (i.e., a larger gap between identities). It also incorporates a margin to ignore negligible differences, focusing the student's learning on significant relational errors.
Experimental Results
We evaluated CoupleFace using a ResNet-101 teacher and a MobileFaceNet student. Training was conducted on the Glint-Mini dataset (5.2M images).
Benchmark Performance
CoupleFace consistently outperformed existing state-of-the-art distillation methods like CCKD and RKD:
- IJB-C: At a False Acceptance Rate (FAR) of 1e-5, CoupleFace achieved 89.57% accuracy, a significant improvement over the FCD baseline (87.74%) and the student trained without distillation (82.64%).
- MegaFace: In large-scale testing with one million distractors, CoupleFace improved Rank-1 accuracy by 0.62% over the FCD baseline.
- ICCV21 Masked Face Recognition Challenge: Our method secured first place in the MS1M track, demonstrating its robustness in challenging real-world scenarios where faces are partially obscured.
Efficiency
Despite the added complexity of relation mining, the training overhead is minimal. The inclusion of MRD only increases training time by approximately 5.6%, making it highly suitable for practical industrial pipelines.
Conclusion
CoupleFace demonstrates that mutual relations are a vital source of knowledge for face recognition distillation. By moving beyond individual feature matching and focusing on the discriminative topology of the embedding space, we can produce lightweight models that rival much larger architectures. Future work will explore extending this relational mining to better handle demographic bias and extreme environmental variations.
Summary updated