SynFace: Face Recognition with Synthetic Data

Haibo Qiu, Baosheng Yu, Dihong Gong, Zhifeng Li, Wei Liu, Dacheng Tao · DOI

TL;DR

This paper introduces SynFace, a novel approach to face recognition that leverages synthetic data to overcome the challenges of collecting large-scale, privacy-compliant real-world datasets. By developing techniques like identity mixup and domain mixup, SynFace significantly narrows the performance gap between models trained on synthetic versus real data, offering a promising direction for more robust and scalable face recognition systems.

What Problem Does This Paper Address?

Face recognition has seen remarkable progress thanks to deep neural networks. However, a major bottleneck is the acquisition of massive, high-quality, and ethically sourced training data. Real-world datasets often suffer from label noise, privacy concerns, and a lack of detailed annotations for attributes like pose and expression, making it difficult to thoroughly investigate their impact. Existing synthetic data generation methods, while improving, still exhibit a performance gap when used to train face recognition models compared to real data. This gap stems from issues like insufficient intra-class variations and a domain mismatch between synthetic and real images.

Methods

The authors propose SynFace, a framework that addresses these limitations. Key components include:

  • Mixup Face Generator: This module builds upon DiscoFaceGAN [12] and incorporates identity mixup (IM). Instead of mixing raw image pixels, identity mixup interpolates identity coefficients in the latent space. This generates new, intermediate identities, effectively increasing intra-class variations and creating more diverse synthetic face images.
  • Domain Mixup (DM): To bridge the domain gap between synthetic and real data, domain mixup is introduced. This technique involves training with a combination of large-scale synthetic data and a small subset of real-world labeled data. By mixing samples from both domains within mini-batches, the model learns to generalize better to real-world scenarios.
  • Margin-Based Softmax Loss: The paper utilizes standard margin-based softmax loss functions (like ArcFace [11]) for training face recognition models, aiming to maximize inter-class variations and minimize intra-class variations.

Datasets

  • Real Datasets:
    • CASIA-WebFace [64]: Used for training.
  • LFW [27]: Used for testing.
  • Synthetic Datasets:
    • Syn_10K_50: A synthetic dataset generated to be comparable to CASIA-WebFace, containing 10,000 identities with 50 samples per identity.
  • Syn-LFW: A synthetic version of the LFW dataset, generated to match its properties (expression, pose, illumination) but with unknown identities.
  • Various other synthetic datasets were constructed to analyze the impact of dataset "depth" (samples per identity) and "width" (number of identities), as well as different facial attributes.

Key Insights and Ideas

  • Intra-class variation is crucial: The lack of diverse intra-class variations in synthetic data is a primary reason for the performance gap. Identity mixup effectively addresses this by creating intermediate identities.
  • Domain gap is significant: Testing models trained on synthetic data on real-world benchmarks (and vice-versa) reveals a substantial domain gap. Domain mixup, by incorporating a small amount of real data, effectively mitigates this.
  • Dataset width matters more than depth: When generating synthetic datasets, increasing the number of unique identities (width) has a more pronounced positive impact on face recognition performance than simply increasing the number of samples per identity (depth), especially beyond a certain point.
  • Expression diversity is limited: Synthetic face images often exhibit limited diversity in facial expressions, with a tendency towards "smiling." This can negatively impact performance, particularly when compared to more varied real-world data.
  • Identity mixup attack: The proposed SynFace with identity mixup demonstrates robustness against an "identity mixup attack," where a test image is a blend of two identities. This suggests that identity mixup not only improves performance but also enhances robustness.

Key Results

  • SynFace with identity mixup and domain mixup significantly narrows the performance gap between synthetic and real data. For instance, on LFW, a model trained on Syn_10K_50 with identity mixup achieved 91.97% accuracy, a substantial improvement over the baseline 88.98%.
  • When testing on LFW, SynFace (trained on synthetic data) achieved 88.98% accuracy, while RealFace (trained on CASIA-WebFace) achieved 99.18%. After applying identity mixup, SynFace's performance on LFW improved to 91.97%.
  • Domain mixup further boosted performance, with a "Mix_2K_10" model (using 2K real identities with 10 samples each, mixed with synthetic data) achieving 95.78% accuracy on LFW, surpassing the synthetic-only baseline and the real-only baseline.
  • Experiments showed that increasing dataset width (number of identities) had a more significant impact on accuracy than increasing depth (samples per identity). For example, a 10K identity dataset with 50 samples per identity (10K_50) performed much better than a 1K identity dataset with 50 samples per identity (1K_50), even with the same total number of images.
  • Analysis of facial attributes revealed that variations in pose and illumination improved performance, while limited expression diversity led to poorer results.

Limitations and Future Work

  • Limited Expression Diversity: The paper acknowledges that generated face images have limited expression diversity, primarily showing "smiling." This is attributed to the limitations of the 3DMM priors and web-scraped training data.
  • Identity Mixup Attack Robustness: While SynFace with identity mixup shows some robustness to identity mixup attacks, the RealFace model (trained on real data) performed poorly under such attacks. The authors suggest exploring how to make state-of-the-art face recognition models more robust to these attacks as future work.
  • Further Domain Adaptation: While domain mixup shows promise, further research could explore more advanced domain adaptation techniques to fully close the gap between synthetic and real data.
  • Investigating Other Attributes: The paper focused on pose, expression, and illumination. Future work could explore the impact of other facial attributes and their interactions.

Summary updated

BibTeX
@inproceedings{qiu2021synface,
  author = {Haibo Qiu and Baosheng Yu and Dihong Gong and Zhifeng Li and Wei Liu and Dacheng Tao},
  title = {{SynFace: Face Recognition with Synthetic Data}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01070},
}
Figure