IA-FaceS: A bidirectional method for semantic face editing

Wenjing Huang, Shikui Tu, Lei Xu

TL;DR

IA-FaceS introduces a bidirectional "multi-head" encoder that separates facial reconstruction from attribute manipulation. By splitting the latent space into a high-dimensional "Face Icon" for details and four low-dimensional embeddings for specific components, it achieves state-of-the-art disentanglement and is the first method to enable single-eye editing without requiring manual masks or sketches.

What Problem Does This Paper Address?

Semantic face editing—changing a smile, adding a beard, or altering eye shape—has traditionally relied on latent space manipulation. Most models (like StyleGAN) compress an entire face into a single, low-dimensional vector. This creates a "tug-of-war" between two goals:

  1. Reconstruction: You want the output to look exactly like the input (requires high-dimensional data).
  2. Flexibility: You want to edit specific features easily (requires low-dimensional, "disentangled" data).

When you use a single vector, these goals clash. Editing a nose might accidentally change the eyes (entanglement), and the compressed vector often loses fine details like skin texture or specific wrinkles. Previous attempts to fix this required users to provide manual "guidance," such as drawing segmentation masks or sketches, which is time-consuming and requires artistic skill.

Methods

The authors propose IA-FaceS, based on the "yIng-yAng" (IA) bidirectional intelligence framework. The core innovation is a multi-head encoder that splits the latent representation into two distinct branches:

  • The Face Icon Branch: This produces a high-dimensional tensor ($S$) that preserves spatial properties. It acts as a "blueprint" for the face's outline and fine details, ensuring high-fidelity reconstruction.
  • The Facial Component Embedding Branch: This uses a simple, fixed latent mask over an intermediate feature map to "crop" the regions corresponding to the left eye, right eye, nose, and mouth. These are then compressed into four separate low-dimensional vectors ($z_i$).

To make the editing even more precise, they introduced the Component Adaptive Modulation (CAM) module in the decoder. Instead of applying a "style" to the whole face at once, CAM applies specific style parameters to the spatial regions of each component. This allows the model to, for example, close the left eye while keeping the right eye wide open—a task that usually baffles global latent models.

Datasets

The model was trained and evaluated on three primary datasets:

  • CelebA-HQ: 30,000 high-quality images with 40 attribute annotations.
  • FFHQ: 70,000 high-quality images used as a benchmark for StyleGAN.
  • Cartoon Faces: Used to test the model's generalization ability on non-realistic, out-of-distribution data.

Key Insights and Ideas

  • The Reconstruction-Manipulation Trade-off: The authors realized that you shouldn't use the same code for pixels and semantics. By using a high-dim "icon" for the pixels and low-dim "vectors" for the semantics, they bypassed the standard bottleneck.
  • Latent Masking vs. Visual Masking: Instead of asking the user to draw a mask on the image, the model uses a fixed mask in the latent feature space. Because faces in these datasets are generally aligned, a fixed mask is surprisingly effective at isolating components.
  • Semantic Independence: By manipulating only the vector $z_{eye}$, the model naturally ignores the rest of the face, leading to much higher "irrelevance preservation" (meaning the rest of the face doesn't change when you edit one part).

Key Results

  • Superior Reconstruction: On the CelebA-HQ dataset, IA-FaceS+CAM achieved an FID of 2.976 and a PSNR of 22.98, significantly outperforming StyleGAN2 (FID 17.41) and ALAE (FID 26.86) in terms of image fidelity.
  • Single-Eye Editing: The paper demonstrates successful "asymmetric" edits (e.g., one eye open, one eye closed) without any visual guidance, a first for latent manipulation methods.
  • Component Transfer: The model can "swap" a mouth or nose from a reference person onto a target person with high realism, maintaining the target's pose and lighting better than competitors like StyleMapGAN.
  • Inference Speed: The model is highly efficient, with an average runtime of 0.0358 seconds per image, roughly 2.4x faster than StyleMapGAN.

Limitations and Future Work

  • Face Outlines: Because the model focuses on component embeddings while keeping the "Face Icon" ($S$) unchanged, it struggles to edit attributes related to the overall face shape or chin line.
  • Alignment Dependency: The "fixed mask" approach relies on faces being aligned. The authors acknowledge that generalizing the model to unaligned, "in-the-wild" photos with extreme head tilts is a primary goal for future research.
  • Global Attributes: While excellent at local edits, the model's accuracy on global attributes like "age" is slightly lower than models designed for global transformations.

Summary updated

BibTeX
@article{huang2023ia,
  author = {Wenjing Huang and Shikui Tu and Lei Xu},
  title = {{IA-FaceS: A bidirectional method for semantic face editing}},
  journal = {Neural Networks},
  year = {2023},
  doi = {10.1016/j.neunet.2022.11.016},
}
Figure