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

Geometry-Aware Face Completion and Editing

Linsen Song, Jie Cao, Lingxiao Song, Yibo Hu, Ran He

Abstract

Face completion, or inpainting, remains a significant challenge in computer vision due to the highly structured nature of human anatomy. Traditional convolutional neural network (CNN) approaches often treat this as a general image-filling task, frequently resulting in anatomically incorrect features that fall into the "uncanny valley." We present FCENet (Face Completion and Editing NETwork), a geometry-aware framework that leverages facial landmarks and parsing maps as explicit priors. By predicting and then utilizing these geometric "blueprints," FCENet not only produces more realistic reconstructions but also enables interactive editing of facial attributes. Our model outperforms state-of-the-art baselines on the Multi-PIE and CelebA datasets, demonstrating superior performance in both quantitative metrics and qualitative realism.

Introduction

The task of filling missing regions in a face image is uniquely difficult. Unlike natural landscapes or textures, faces possess a rigid global structure and fine-grained local details that must align perfectly to appear natural. Even minor discrepancies in the shape of an eye or the alignment of a mouth are immediately perceptible to human observers.

Most existing inpainting methods rely on deep generative models to learn a direct mapping from a masked image to a completed one. However, these "one-shot" models often ignore the rich domain knowledge available regarding facial geometry. Furthermore, they typically offer no mechanism for user intervention; the model provides a single output with no way to adjust the reconstructed features. FCENet addresses these limitations by decoupling the reconstruction process into geometry estimation and image generation, providing both better guidance for the model and a control interface for the user.

The FCENet Framework

The FCENet architecture is composed of three primary stages designed to disentangle facial structure from appearance.

1. Facial Geometry Estimator

The first stage employs a "Stacked Hourglass" network, a design widely successful in human pose estimation. Given a masked face image ($I_m$), the estimator predicts two types of geometric priors for the missing region: 68 landmark heatmaps ($I_l^g$) representing specific points (dots) and a parsing map ($I_p^g$) representing semantic regions (e.g., eyes, nose, lips). This stage ensures that the subsequent generation is grounded in a plausible anatomical structure.

2. Completion Generator

The generator is an encoder-decoder network that takes the masked image concatenated with the predicted (or edited) geometry maps as input. The encoder is specifically designed to disentangle the input into "context features" (from the visible parts of the face) and "mask features" (representing the area to be filled).

The FCENet architecture consists of a Facial Geometry Estimator, a Completion Generator, and Dual Discriminators.

A key technical innovation here is Low-Rank Regularization. The authors observed that typical masks used in training and real-world scenarios possess a low-rank property. By enforcing this constraint during the feature disentanglement process, the network becomes more robust to various mask shapes and avoids producing noisy artifacts in the generated regions.

3. Dual Discriminators

To achieve high-frequency realism and global consistency, FCENet utilizes a Generative Adversarial Network (GAN) setup with two discriminators:

  • Global Discriminator ($D^g$): Evaluates the entire reconstructed face to ensure overall coherence and symmetry.
  • Local Discriminator ($D^l$): Focuses exclusively on the inpainted patch to ensure fine-grained texture and sharp details.

Interactive Face Editing

One of the most compelling features of FCENet is its support for interactive editing. Because the generator is conditioned on the geometry maps, a user can manually modify the landmark dots or the parsing regions before the final image is generated. For instance, by widening the mouth in the parsing map, the generator will "hallucinate" a wider mouth that matches the new geometry while maintaining the original person's identity and skin texture.

Examples of interactive editing where modifying the underlying geometry (landmarks and parsing maps) changes the final reconstructed features.

Experimental Results

The model was rigorously evaluated on the Multi-PIE and CelebA datasets. Multi-PIE provides controlled environments for testing lighting and expression, while CelebA offers "in-the-wild" challenges with unconstrained backgrounds and poses.

Quantitative Performance

On the Multi-PIE dataset, FCENet demonstrated a clear advantage over previous state-of-the-art methods like Generative Face Completion (GFC) and Context Encoders (CE).

  • PSNR: FCENet achieved 27.714, compared to GFC's 27.208.
  • SSIM: FCENet reached 0.904, surpassing GFC's 0.889.

Qualitative Analysis

Qualitatively, FCENet excels in "hard cases" where traditional models often produce blurry or semantically incorrect results. It handles extreme side profiles and heavy occlusions (such as hats or glasses) with significantly fewer "ghosting" artifacts. The combination of landmarks and parsing maps provides a more robust guidance system than using either prior alone, leading to sharper and more anatomically correct features.

Conclusion and Future Work

FCENet successfully demonstrates that explicit geometric priors are essential for high-quality face inpainting and editing. By treating geometry as a controllable "blueprint," the framework bridges the gap between automated reconstruction and user-driven modification.

Future work may address current limitations, such as the reliance on symmetry—which can fail under extreme head poses or dramatic lighting—and the challenge of scaling to high-definition resolutions. Additionally, automating the "attribute transfer" process (e.g., automatically adjusting geometry to make a subject smile) represents a promising direction for making these tools even more accessible.

Summary updated

BibTeX
@inproceedings{song2019geometry,
  author = {Linsen Song and Jie Cao and Lingxiao Song and Yibo Hu and Ran He},
  title = {{Geometry-Aware Face Completion and Editing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33012506},
}
Figure