CONFIG: Controllable Neural Face Image Generation

Marek Kowalski, Stephan J. Garbin, Virginia Estellers, Tadas Baltrusaitis, Matthew Johnson, Jamie Shotton

TL;DR

ConfigNet introduces a novel neural face generation model that achieves fine-grained control over individual facial attributes by factorizing the latent space using a hybrid approach of real and synthetic data. This method bridges the gap between the realism of GANs and the controllability of traditional computer graphics pipelines, enabling realistic face manipulation with unprecedented flexibility.

What Problem Does This Paper Address?

While Generative Adversarial Networks (GANs) have made remarkable progress in generating photorealistic human faces, controlling specific attributes of these generated faces has remained a significant challenge. Traditional rendering pipelines offer precise control over aspects like pose, expression, and lighting, but require laborious 3D asset creation. Existing GAN-based methods often struggle to disentangle attributes or generalize to combinations not seen in real-world data. This paper aims to bridge this gap by enabling controllable face generation that rivals the flexibility of traditional graphics while maintaining photorealism.

Methods

ConfigNet's core innovation lies in its factorized latent space, achieved by training a generative model on both real and synthetic face images.

  • Hybrid Data Training: The model leverages synthetic face renders, which are generated using a traditional graphics pipeline and thus come with explicit labels for attributes like head pose, facial expression, hair style, and illumination. This synthetic data is used to learn a structured, factorized latent space where each dimension corresponds to a specific attribute.
  • Real Data for Realism: Unlabeled real face images are also incorporated into training. This helps the model learn to generate photorealistic images and encourages generalization beyond the specific attributes present in the synthetic data.
  • Two-Stage Training: The training proceeds in two stages. The first stage focuses on training the synthetic data encoder and the generator. The second stage introduces the real data encoder, aligning the latent spaces of real and synthetic data using a domain discriminator. This adversarial loss on the latent space encourages the encoders to produce similar distributions, crucial for controllability.
  • One-Shot Learning & Fine-Tuning: ConfigNet can embed existing real images into its latent space. For improved identity preservation and realism, a fine-tuning step is employed, further optimizing the generator for a specific person.
  • Fine-Grained Control: The factorized latent space allows for swapping individual attribute components. For finer control, especially when dealing with attributes not explicitly labeled in synthetic data (like subtle expression nuances), the paper proposes a method using projected gradient descent to estimate and modify specific rendering parameters.

Datasets

  • FFHQ (Flickr-Faces-HQ): A dataset of 60,000 high-quality, diverse face images used for training and evaluation.
  • SynthFace: A dataset of 30,000 synthetic face images generated using a method described in [3], with explicit attribute labels.
  • CelebA: Used for training an attribute predictor to evaluate controllability metrics.

Key Insights and Ideas

  • Synthetic Data as a Structured Latent Space Key: The paper demonstrates that synthetic data, despite potential domain gaps, is invaluable for imposing structure and disentanglement onto a GAN's latent space, a task difficult to achieve with only real, unlabeled data.
  • Bridging the Real-Synthetic Gap: By using a domain discriminator on the latent space, ConfigNet effectively aligns the representations learned from real and synthetic data, allowing for seamless integration and control.
  • Factorization is Key to Controllability: The explicit factorization of the latent space into semantically meaningful components is the primary driver of ConfigNet's fine-grained control over attributes.
  • Beyond Distribution: ConfigNet can generate attribute combinations (e.g., children with facial hair) that are not present in the real training data, showcasing its ability to go beyond the limitations of real-world datasets.

Key Results

  • Photorealism: ConfigNet achieves high photorealism, with FID scores comparable to models trained solely on real data, suggesting the architecture itself is a strong contributor to realism.
  • Controllability: The method demonstrates state-of-the-art individual control over attributes, as validated by both an attribute predictor and a user study. For example, it shows a significant dynamic range for attributes like "mouth open" and "smile."
  • Attribute Combinations: ConfigNet can generate realistic images with attribute combinations outside the distribution of the real training set, such as children with facial hair.
  • Fine-Tuning Benefits: One-shot learning and fine-tuning significantly improve identity preservation and the realism of generated images.
  • Comparison to State-of-the-Art: ConfigNet outperforms PuppetGAN in terms of mouth opening control and overall quality, and shows better attribute preservation compared to CycleGAN when performing style transfer.

Limitations and Future Work

  • Entanglement in Synthetic Data: The paper identifies entanglement issues within the SynthFace dataset itself, such as texture being tied to face shape and eyebrow style being entangled with eyebrow raise expression. This can lead to unintended changes when modifying specific attributes.
  • Attribute Coverage: Some attributes, like eyelash styles, are difficult to control due to their small scale or lack of representation in the synthetic data.
  • Domain Gap Issues: The attribute predictor trained on CelebA shows biases, leading to less reliable controllability metrics for certain attributes (e.g., gray hair).
  • Future Work: The authors suggest investigating how to handle real face image aspects not present in synthetic data by adding more variables to the latent space. They also propose exploring applications in character animation and replacing traditional rendering pipelines for more flexible and personalized face rendering.

Summary updated

BibTeX
@inproceedings{kowalski2020config,
  author = {Marek Kowalski and Stephan J. Garbin and Virginia Estellers and Tadas Baltrusaitis and Matthew Johnson and Jamie Shotton},
  title = {{CONFIG: Controllable Neural Face Image Generation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=FJIsiwWL41q},
}
Figure