Disentangling in Latent Space by Harnessing a Pretrained Generator

Yotam Nitzan, Amit Bermano, Yangyan Li, Daniel Cohen-Or

Abstract

Achieving disentangled representations of facial identity and attributes is a significant challenge in generative modeling. This paper presents a novel framework that decouples disentanglement from image synthesis by leveraging the high-quality latent space of a pre-trained StyleGAN. By employing dual encoders for identity and attributes and a mapping network to navigate the generator's latent manifold, the proposed method achieves state-of-the-art performance in face manipulation and de-identification without the need for large-scale supervised identity datasets.

Introduction

The ability to independently control factors such as identity, pose, and expression—known as disentanglement—is a primary goal in computer vision. Traditional supervised methods require massive, labeled datasets, while unsupervised approaches often struggle with photorealism and high-dimensional feature capture. Furthermore, many existing "face swapping" techniques focus solely on internal facial features, neglecting head shape and hair, which are vital for human recognition. This work addresses these issues by treating the entire head holistically and utilizing a pre-trained generator to maintain image quality.

Methodology

The core innovation lies in using a pre-trained, frozen StyleGAN as a backbone. The system architecture consists of three primary components:

  1. Dual Encoders: Two separate encoders, $E_{id}$ and $E_{attr}$, extract identity and attribute features (pose, expression, lighting), respectively.
  2. Mapping Network ($M$): The extracted features are concatenated and processed by a mapping network that translates them into a latent vector $w$ within StyleGAN’s $\mathcal{W}$ space.
  3. Adversarial Latent Loss: A discriminator $D_W$ ensures the generated latent vectors match the distribution of the original StyleGAN latent space, maintaining the validity of the synthesis.
Architecture of the proposed latent mapping system.

To avoid expensive identity labeling, the authors use "pseudo-supervision" via pre-trained expert networks: ArcFace for identity preservation and landmark detection for attribute consistency. This allows the model to learn from unlabeled data by navigating the pre-existing disentangled structure of the StyleGAN manifold.

Experiments and Results

The model was trained on a synthetic dataset of 70,000 StyleGAN-generated images and evaluated on real-world datasets including FFHQ and CelebA-HQ.

Quantitative Performance

The method achieved a Fréchet Inception Distance (FID) of 4.28, significantly outperforming baselines like LORD (23.08) and FSGAN (8.90). In terms of identity consistency, the model scored 0.60, compared to LORD's 0.20, demonstrating superior separation of identity from other factors.

Qualitative Disentanglement

As shown in Figure 5, the model successfully swaps attributes while maintaining identity, or vice versa. Unlike methods that only swap internal features, this approach preserves the holistic identity, including hair and head shape. The mapping network enables smooth interpolation between identities and expressions.

Qualitative results showing disentanglement of identity and attributes.

Discussion and Conclusion

By "indexing" rather than "creating" disentanglement within a pre-trained manifold, this method achieves high-fidelity results with minimal supervision. However, the approach is constrained by the diversity of the pre-trained generator; it cannot produce poses or features not present in the original training data. Future work will explore the more expressive $\mathcal{W}+$ space to improve reconstruction fidelity for unique facial features.

Summary updated

BibTeX
@article{nitzan2020disentangling,
  author = {Yotam Nitzan and Amit Bermano and Yangyan Li and Daniel Cohen-Or},
  title = {{Disentangling in Latent Space by Harnessing a Pretrained Generator}},
  journal = {ACM Trans. Graphics},
  year = {2020},
  doi = {10.1145/3414685.3417826},
}
Figure