Towards Large-scale Masked Face Recognition

Manyuan Zhang, Bingqi Ma, Guanglu Song, Yunxiao Wang, Hongsheng Li, Yu LiuarXiv 2023 · OpenReview

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:

  1. Scale: Training on "super-large" datasets (millions of identities) creates massive GPU memory pressure.
  2. Noise: Large-scale datasets scraped from the web are inherently "dirty," containing mislabeled images or non-face outliers.
  3. The Balancing Act: Adding too many synthetic masked images to training data can degrade performance on standard, unmasked faces.
  4. Deployment Constraints: Models must run on CPUs or mobile GPUs within strict latency limits (e.g., under 1000ms), making many heavy research models impractical.
Examples of challenging and noisy face images found in large-scale web-scraped datasets.

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).

The iterative data cleaning pipeline used to refine the WebFace42M dataset through feature extraction and class merging.

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

BibTeX
@misc{zhang2023towards,
  author = {Manyuan Zhang and Bingqi Ma and Guanglu Song and Yunxiao Wang and Hongsheng Li and Yu Liu},
  title = {{Towards Large-scale Masked Face Recognition}},
  year = {2023},
  eprint = {2310.16364},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16364},
}
Figure