Priming Deep Neural Networks with Synthetic Faces for Enhanced Performance

Adam Kortylewski, Andreas Schneider, Thomas Gerig, Clemens Blumer, Bernhard Egger, Corius Reyneke, Andreas Morel-Forster, Thomas Vetter

Abstract

Deep learning models for facial analysis often suffer from biases inherent in web-scraped datasets and the high cost of manual annotation. This paper presents a "priming" approach where models are pre-trained on large-scale synthetic datasets generated from 3D Morphable Face Models (3DMM) before fine-tuning on real-world data. Our results show that priming significantly enhances performance in face recognition and landmark detection, particularly in challenging "in-the-wild" scenarios. Furthermore, priming reduces the reliance on large real-world datasets, with primed models trained on 25% of data often outperforming baseline models trained on 100%.

Introduction

The efficacy of deep learning in facial analysis is heavily dependent on the quality and diversity of training data. Most current large-scale datasets are scraped from the web, leading to significant dataset bias—under-representation of certain demographics, extreme poses, and varied lighting conditions. Additionally, obtaining precise ground-truth labels for 3D pose or landmark locations in real-world images is labor-intensive and prone to error. This study investigates whether computer-generated synthetic faces can bridge this "generalization gap" by providing a perfectly controlled and annotated training environment.

Methods

The proposed "Priming" pipeline involves two main stages: large-scale pre-training on synthetic data followed by domain-specific fine-tuning on real-world images.

Synthetic Data Generation

The researchers utilized the Basel Face Model 2017, a 3D Morphable Face Model (3DMM), to generate millions of synthetic images. This model allows for independent control over facial identity, shape, texture (albedo), and expression. Environmental factors such as head pose (yaw, pitch, roll) and complex lighting (simulated via spherical harmonics) were systematically varied to ensure maximum diversity.

Examples of synthetic faces generated with varying poses, expressions, and lighting conditions.

Training Strategy

Models (e.g., FaceNet for recognition and HyperFace for landmark detection) were first trained on the synthetic dataset to learn fundamental 3D facial structures and light-matter interactions. Subsequently, these "primed" models were fine-tuned on varying proportions of real-world datasets like Casia WebFace and AFLW.

Results

The priming approach yielded substantial improvements across multiple benchmarks.

Landmark Detection and Data Efficiency

In landmark detection tasks, priming consistently reduced errors. On the challenging 300-W "in-the-wild" dataset, accuracy at a 3% error threshold improved from 5.3% to 15.1%. A key finding is the significant gain in data efficiency: primed models using only a fraction of real-world data frequently outperformed baseline models trained on the full dataset.

Performance comparison for facial landmark detection across different datasets and training configurations. Primed models consistently outperform baselines, even with reduced real-world data.

Face Recognition

For face recognition, priming improved the True Acceptance Rate (TAR) on the IJB-A benchmark from 86.8% to 92.4%. The models successfully integrated the structural knowledge from synthetic data with the realistic textures of real-world images without experiencing catastrophic forgetting.

Discussion and Conclusion

This research demonstrates that synthetic data can act as a "vaccine" for dataset bias by providing the "hard cases" often missing from web-scraped collections. The success of this method depends heavily on the diversity of the synthetic generator; performance gains diminish if the simulator itself is biased.

While priming effectively narrows the gap between research benchmarks and real-world performance, a "real-to-virtual gap" remains due to limitations in current 3DMMs, such as the lack of realistic hair, accessories, and fine skin details. Future work will explore more sophisticated rendering and GAN-based refinements to further enhance the realism of synthetic training sets while maintaining precise control over facial parameters.

Summary updated

BibTeX
@misc{kortylewski2018priming,
  author = {Adam Kortylewski and Andreas Schneider and Thomas Gerig and Clemens Blumer and Bernhard Egger and Corius Reyneke and Andreas Morel-Forster and Thomas Vetter},
  title = {{Priming Deep Neural Networks with Synthetic Faces for Enhanced Performance}},
  year = {2018},
  eprint = {1811.08565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.08565},
}
Figure