NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Face Completion

Yijun Li, Sifei Liu, Jimei Yang, Ming-Hsuan Yang

Abstract

Researchers from UC Merced and Adobe have developed a deep generative model capable of realistically "hallucinating" missing facial components. By integrating a global-local GAN architecture with a semantic parsing loss, the model ensures that synthesized regions—such as eyes or mouths—are visually sharp, anatomically correct, and contextually consistent with the target face.

Introduction

Image completion, or inpainting, involves filling in missing pixels within an image. While traditional non-parametric methods effectively handle repetitive textures like grass or sky by copying patches from elsewhere in the image, they fail on semantically complex structures like human faces. Facial features are unique and non-repeating; fixing a missing eye requires an understanding of facial geometry rather than simple texture matching. This work addresses the challenge of semantic image completion, where an AI must generate entirely new content that is both realistic and contextually appropriate.

Methodology

The proposed framework leverages Generative Adversarial Networks (GANs) with several architectural innovations:

  1. Generator Architecture: An autoencoder (encoder-decoder) maps the corrupted image into a latent representation, from which the decoder generates the missing pixels.
  2. Dual Discriminators: To optimize visual quality, the model employs two "critics":
  3. Local Discriminator: Focuses on the filled-in patch to ensure sharp, realistic textures.
  4. Global Discriminator: Evaluates the entire image to ensure the patch blends seamlessly with the surrounding context, maintaining consistency in skin tone and lighting.
  5. Semantic Parsing Loss: This "secret sauce" uses a pre-trained face parsing network to verify that generated pixels form correct anatomical shapes (e.g., ensuring a generated eye looks like an eye). This prevents the production of asymmetric or nonsensical features.
  6. Curriculum Training: Training proceeds in stages, starting with basic reconstruction ($L_2$ loss), followed by the introduction of the local discriminator, and finally adding the global discriminator and semantic parsing loss.

Datasets and Evaluation

The model was trained and evaluated using the CelebA dataset, which contains over 200,000 celebrity images. The Helen Dataset, featuring detailed manual labels for facial components, was used to train the auxiliary Face Parsing Network.

Evaluation metrics included standard reconstruction measures like PSNR and SSIM. Crucially, the researchers used the OpenFace toolbox to demonstrate identity preservation, showing that completed images remained recognizable enough to match the original person's identity in a face recognition system—a significant hurdle for generative models.

Key Results

The model successfully completes faces even when large central regions are missing or when real-world occlusions, such as a microphone, block facial features.

Qualitative results of the face completion model: (a) original image, (b) input with missing region, (c) completed result.

Beyond sharpness, the model demonstrates "latent space diversity." By varying a noise component, it can generate multiple plausible versions of a missing feature for the same mask, indicating it has learned a distribution of facial features rather than simple memorization. Additionally, the authors noted that a simple post-processing step, Poisson blending, can further smooth the boundaries between the generated patch and the original image.

Limitations and Future Work

Despite its success, the model currently requires faces to be roughly aligned and front-facing. It struggles with extreme head tilts or profile views because the encoder-decoder lacks a full grasp of 3D spatial transformations. Future work may involve using PixelRNNs to better exploit spatial correlations or incorporating 3D data augmentation to handle more diverse poses.

Summary updated

BibTeX
@inproceedings{li2017generative,
  author = {Yijun Li and Sifei Liu and Jimei Yang and Ming-Hsuan Yang},
  title = {{Generative Face Completion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.624},
}
Figure