Exclusivity-Consistency Regularized Knowledge Distillation for Face Recognition

Xiaobo Wang, Tianyu Fu, Shengcai Liao, Shuo Wang, Zhen Lei, Tao Mei

Introduction

Deep learning has revolutionized face recognition (FR), but the most accurate models are typically high-capacity ensembles with millions of parameters. These "heavyweight" models are often unsuitable for deployment on mobile or embedded hardware due to computational constraints. Knowledge Distillation (KD) is a standard technique used to compress these large "teacher" models into lightweight "student" models. However, traditional KD faces two significant hurdles in FR: the limited representational capacity of small networks, which often leads to redundant filters, and the inflexibility of probability-based transfer when teacher and student models are trained on different datasets or objectives.

Proposed Method: EC-KD

This paper introduces Exclusivity-Consistency Knowledge Distillation (EC-KD), a framework designed to address these limitations through two novel regularization strategies: Position-aware Weight Exclusivity and Hardness-aware Feature Consistency.

Overview of the EC-KD framework, illustrating the Teacher-Student architecture with Weight Exclusivity and Hardness-aware Feature Consistency modules.

Position-aware Weight Exclusivity (WE)

Small networks often suffer from filter redundancy, where multiple convolutional kernels learn similar features, effectively wasting limited capacity. To mitigate this, the authors propose Position-aware Weight Exclusivity. Unlike previous "value-aware" methods that focus on filter magnitudes, this approach encourages spatial competition between filters. By penalizing overlap in active spatial positions across different filters, the model forces each filter to capture unique, non-redundant information, thereby maximizing the student's discriminative power even with a fraction of the teacher's parameters.

Hardness-aware Feature Consistency (HFC)

Standard KD often relies on matching class probabilities, which fails if the teacher and student are trained on different identity sets. In FR, the essential "knowledge" resides in the high-level embedding space rather than class labels. EC-KD utilizes Feature Consistency, where the student aims to match the teacher’s feature vectors. This approach is "open-set" friendly and robust to cross-dataset scenarios. Furthermore, the authors introduce a Hardness-aware re-weighting mechanism that identifies "hard" samples—cases where the student’s features deviate significantly from the teacher’s—and forces the student to prioritize these samples during training.

Experimental Setup and Datasets

The effectiveness of EC-KD was evaluated across a comprehensive suite of industry-standard benchmarks to ensure robustness and generalization.

Summary of training and testing datasets used in the evaluation of EC-KD.

The training was conducted on a refined version of CASIA-WebFace (CASIA-WebFace-R). The testing suite included standard verification sets (LFW, AgeDB), cross-pose/age challenges (CALFW, CPLFW, CFP), and large-scale distractor challenges such as MegaFace (1 million distractors) and Trillion-Pairs.

Key Results and Insights

EC-KD consistently outperformed state-of-the-art distillation methods across almost all benchmarks:

  • General Accuracy: On standard sets like LFW and AgeDB, EC-KD achieved an average improvement of approximately 2% over a student model trained from scratch.
  • Robustness to Noise: In experiments with synthetic label noise (up to 30%), standard KD methods saw performance collapse, while EC-KD remained stable and highly accurate.
  • Cross-Dataset Success: When training on the IQIYI-VID dataset using a teacher trained on CASIA, EC-KD improved the Mean Average Precision (MAP) from 26.43% to 38.03%, proving its superior generalization capability.

Conclusion and Future Work

EC-KD provides a robust framework for compressing face recognition models without sacrificing significant accuracy. By enforcing filter diversity and focusing on feature-level consistency, it overcomes the "lazy filter" problem and the limitations of probability-based distillation. While the method demonstrates significant gains, future work may explore the sensitivity of hyperparameters ($\lambda_1, \lambda_2$) and the application of this framework to non-CNN architectures like Vision Transformers.

Summary updated

BibTeX
@inproceedings{wang2020exclusivity,
  author = {Xiaobo Wang and Tianyu Fu and Shengcai Liao and Shuo Wang and Zhen Lei and Tao Mei},
  title = {{Exclusivity-Consistency Regularized Knowledge Distillation for Face Recognition}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58586-0\_20},
}
Figure