Unsupervised Face Recognition using Unlabeled Synthetic Data

Fadi Boutros, Marcel Klemt, Meiling Fang, Arjan Kuijper, Naser DamerarXiv 2022

TL;DR

USynthFace is the first unsupervised face recognition framework trained entirely on unlabeled synthetic data. By combining GAN-based attribute manipulation with conventional data augmentation under a contrastive learning paradigm, it bypasses the privacy and ethical complications of web-scraped datasets while outperforming several existing supervised models trained on synthetic data.

What Problem Does This Paper Address?

State-of-the-art face recognition (FR) models rely heavily on deep neural networks trained on massive, web-scraped datasets containing millions of images and distinct identities. However, these datasets face severe ethical and legal headwinds. Under regulations like GDPR, individuals have the right to withdraw consent, leading creators to retract popular datasets (e.g., VGGFace2, MS-Celeb-1M).

While synthetic data generated by Generative Adversarial Networks (GANs) has emerged as a privacy-friendly alternative, previous approaches still relied on supervised learning. This meant they either required complex GANs capable of generating perfectly labeled identities or needed to mix synthetic data with authentic images, partially defeating the privacy advantage. This paper introduces a way to train face recognition models without any real human images and without any identity labels.

Methods

An overview of the USynthFace unsupervised FR training paradigm.

The authors propose USynthFace, an unsupervised face recognition framework built on the concept of Momentum Contrast (MoCo) and contrastive learning. The core idea is simple: force the network to recognize that two drastically different-looking images are actually the same "instance" (positive pair), while distinguishing them from all other images (negative pairs).

The pipeline consists of three main pillars:

  1. GAN-Based Augmentation: Using DiscoFaceGAN (DFG), the framework samples a random identity latent vector and generates two views of the same identity by randomly altering the disentangled attributes for pose, illumination, and expression.
  2. Conventional Augmentation: These images are further altered using RandAugment, which applies a sequence of geometric and color transformations (e.g., rotation, shearing, solarization, grayscale).
  3. Contrastive Optimization: The augmented query image ($q$) and positive key ($k^+$) are passed through an encoder and a momentum encoder, respectively. The model minimizes a MarginNCE loss function, which incorporates a margin penalty ($m$) to force the network to learn highly discriminative features. Negative samples are efficiently managed using a large dynamic queue.
Fig. 2: Samples of augmented images. The first row shows synthetically generated images with a same identity latent vector and the augmented version of these images with RandAugment are presented in the second row.

Datasets

  • Training Data: Completely synthetic. The authors generated datasets of 100K, 200K, and 400K images using DiscoFaceGAN (which was pretrained on the authentic Flickr-Faces-HQ [FFHQ] dataset). No real identity labels or authentic images were used during the FR model training.
  • Evaluation Benchmarks: Standard authentic face verification datasets were used to test the model:
  • Labeled Faces in the Wild (LFW)
  • AgeDB-30
  • Celebrities in Frontal to Profile in the Wild (CFP-FP)
  • Cross-Age LFW (CA-LFW)
  • Cross-Pose LFW (CP-LFW)

Key Insights and Ideas

  • The Privacy Proof: Through a cross-dataset evaluation, the authors demonstrated that the identity relation between the GAN's original authentic training data and the generated synthetic data is extremely weak. This confirms that synthetic data successfully masks the identities of real individuals, providing a robust privacy shield.
  • The Power of Compounded Augmentation: Contrastive learning requires challenging positive pairs to prevent the network from learning trivial shortcuts. The authors found that combining GAN-based attribute changes (pose/expression) with standard color/geometric transformations created the ideal level of difficulty, significantly boosting downstream verification accuracy.
Fig. 3: The genuine (blue) and imposter (orange) score distributions of three different data augmentation settings. The genuine pairs are constructed using GAN-based augmentation (Figure 3a), RandAugment (Figure 3b), and GAN-based with RandAugment (Figure 3c). The biggest effect is noticed when combining both augmentations.
  • Unsupervised Can Beat Supervised: Introducing a margin penalty ($m=0.10$) into the contrastive loss function allowed the unsupervised model to learn features distinct enough to outperform fully supervised synthetic models on several benchmarks.

Key Results

  • State-of-the-Art Synthetic Performance: When scaled to 400K synthetic images, USynthFace achieved a SOTA verification accuracy of 92.23% on LFW for face recognition models trained on synthetic data.
  • Outperforming Supervised Alternatives: USynthFace outperformed prominent supervised synthetic face recognition frameworks, such as SynFace (88.98%) and SFace (91.87%), on both the LFW and CFP-FP benchmarks.
  • Ablation Optimizations: Sensitivity studies revealed the model performed best with a queue size of 32,768, a 512-dimensional feature embedding, and a plateau-based learning rate scheduler over longer training epochs (91 epochs).

Limitations and Future Work

Despite these impressive strides, a performance gap still remains between face recognition models trained on synthetic data and those trained on massive, authentic web-scraped datasets (which often score above 99% on LFW).

The authors note that the current bottleneck lies in the realism and diversity of the underlying generative model. They suggest that future work should explore more advanced generative architectures—such as StyleGAN3 or diffusion models—to simulate even more realistic appearance variations and further close the domain gap between synthetic training and real-world deployment.

Summary updated

BibTeX
@misc{boutros2022unsupervised,
  author = {Fadi Boutros and Marcel Klemt and Meiling Fang and Arjan Kuijper and Naser Damer},
  title = {{Unsupervised Face Recognition using Unlabeled Synthetic Data}},
  year = {2022},
  eprint = {2211.07371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.07371},
}
Figure