Abstract: During the COVID-19 coronavirus epidemic, almost everyone is wearing masks, which poses a huge challenge for deep learning-based face recognition algorithms. In this paper, we will present our championship solutions in ICCV MFR WebFace260M and InsightFace unconstrained tracks. We will focus on four challenges in large-scale masked face recognition, i.e., super-large scale training, data noise handling, masked and non-masked face recognition accuracy balancing, and how to design inference-friendly model architecture. We hope that the discussion on these four aspects can guide future research towards more robust masked face recognition systems.
Introduction
The COVID-19 pandemic fundamentally disrupted existing face recognition systems. When a significant portion of the face is obscured by a mask, traditional algorithms lose critical discriminative features, leading to a sharp drop in accuracy. Building a production-ready masked face recognition (MFR) system requires addressing four primary hurdles:
- Scale: Training on "super-large" datasets (millions of identities) creates massive GPU memory pressure.
- Noise: Large-scale datasets scraped from the web are inherently "dirty," containing mislabeled images or non-face outliers.
- The Balancing Act: Adding too many synthetic masked images to training data can degrade performance on standard, unmasked faces.
- Deployment Constraints: Models must run on CPUs or mobile GPUs within strict latency limits (e.g., under 1000ms), making many heavy research models impractical.
Methodology
The authors developed a multi-stage engineering and architectural pipeline to overcome these challenges, culminating in the "RIDNet" model family.
Distributed Training and Data Cleaning
To handle the WebFace42M dataset (42 million images, 2 million identities), the team utilized Distributed FC. This technique partitions the massive softmax weight matrix across multiple GPUs to prevent memory overflow. They also employed Partial FC, which randomly samples negative classes to accelerate training by approximately 30%.
Data quality was addressed through a self-improving loop. An initial model was trained to extract features, followed by intra-class cleaning (removing outliers) and inter-class merging (combining folders belonging to the same identity).
Realistic Augmentation and NAS
Rather than simple 2D overlays, the researchers used a 3D reconstruction toolkit (JDAI-CV) to map mask textures onto 3D face geometries, ensuring realistic lighting and fit. Through empirical testing, they discovered the 15% Rule: the optimal ratio for data augmentation is 15%. Exceeding this threshold causes performance on standard face recognition (SFR) to drop significantly.
Finally, they employed Latency-Guided Neural Architecture Search (NAS) to find the best model backbone. Their reward function balanced accuracy against actual hardware latency, specifically avoiding depth-wise convolutions that can be inefficient in high-throughput deployment scenarios.
Key Results
The proposed approach secured 1st place in both the InsightFace unconstrained and WebFace260M tracks at ICCV 2021.
- Accuracy: The RIDNet-L model achieved a weighted True Positive Rate (TPR) of 98.691% on the MFR-ongoing leaderboard.
- Efficiency: The "M" (Medium) variant achieved championship results while adhering to a 1000ms CPU inference limit.
- Scaling Laws: Moving from the 5.8M image MS1M dataset to the 42M image WebFace42M dataset improved IJB-C accuracy from 96.03% to 97.70%.
Conclusion
This work demonstrates that robust masked face recognition requires a holistic approach combining super-large-scale training, iterative data refinement, and hardware-aware architecture search. While the 3D augmentation and RIDNet architecture provide a strong foundation, future work will need to further address the domain gap between synthetic and real-world physical masks across diverse hardware targets.
Summary updated