Abstract
Knowledge distillation (KD) is a critical technique for deploying high-performance face recognition (FR) models on resource-constrained devices. However, standard KD methods often struggle with the "open-set" nature of FR, where the goal is to learn discriminative embeddings rather than fixed class labels. We present CoupleFace, a framework that enhances standard feature alignment with Mutual Relation Distillation (MRD). By focusing on the structural topology of the embedding space, CoupleFace allows student models to inherit the complex inter-sample relationships of the teacher, leading to state-of-the-art performance on major benchmarks and a victory in the ICCV21 Masked Face Recognition Challenge.
Introduction: Beyond Point-to-Point Alignment
In face recognition, models are tasked with mapping facial images into a high-dimensional embedding space where images of the same identity are clustered together and different identities are separated. While large "teacher" models excel at this, their computational cost is prohibitive for mobile applications.
Traditional distillation methods, such as Feature Consistency Distillation (FCD), attempt to align the student's embedding for a specific image directly with the teacher's. As illustrated in Figure 1, while FCD helps, it often fails to preserve the relative distances between different samples. This lack of structural consistency can lead to false positives in the student model, as it may not learn the fine-grained boundaries between similar-looking individuals.
The CoupleFace Methodology
CoupleFace addresses these limitations by coupling standard FCD with a novel Mutual Relation Distillation (MRD) module. The overall pipeline is shown in Figure 2.
1. Feature Consistency Distillation (FCD)
FCD serves as the baseline, minimizing the $L_2$ distance between the teacher’s and student’s embeddings for the same input image. This ensures the student model's features are anchored to the teacher's coordinate system.
2. Mutual Relation Distillation (MRD)
The core innovation of CoupleFace is the MRD module, which distills the relationships between multiple samples.
- Informative Relation Mining: To avoid the $O(N^2)$ complexity of comparing all image pairs, the authors employ a memory bank and identity prototypes to identify "hard negatives"—different identities that the model finds most similar.
- Relation-Aware Distillation (RAD) Loss: Instead of a strict alignment, the RAD loss uses a hinge-style penalty. It specifically targets cases where the student's similarity score for a negative pair exceeds the teacher's score plus a margin. This prevents the student from being overconfident in similarities that the teacher correctly identifies as distinct.
Experimental Results
CoupleFace was evaluated on several large-scale benchmarks, demonstrating consistent improvements over baseline distillation methods:
- IJB-C: On the IJB-C benchmark, CoupleFace achieved 89.57% accuracy at a False Acceptance Rate (FAR) of 1e-5, a significant jump from the 87.74% achieved by FCD alone.
- MegaFace: In the MegaFace challenge, which includes 1 million distractor images, CoupleFace improved rank-1 accuracy to 94.27%.
- Efficiency: Crucially, these gains come with minimal overhead. Training time increased by only 5.6%, and GPU memory usage remained nearly identical to standard FCD, making it highly suitable for practical production environments.
Conclusion
The success of CoupleFace highlights that in face recognition distillation, the topology of the embedding space is just as important as the absolute coordinates of individual points. By mining informative mutual relations and applying a relation-aware loss, CoupleFace effectively bridges the gap between massive server-side models and lightweight edge-deployed networks.
Summary updated