[Paper Review] Unsupervised Discovery of Disentangled Manifolds in GANs
This paper proposes an unsupervised framework to discover disentangled, interpretable directions in the latent space of pre-trained GANs by learning transformations from one-hot attribute vectors to latent codes and applying a centroid loss to enhance smoothness and consistency. The method enables controllable, attribute-specific image editing with improved perceptual path length and reconstruction accuracy across diverse datasets and models.
As recent generative models can generate photo-realistic images, people seek to understand the mechanism behind the generation process. Interpretable generation process is beneficial to various image editing applications. In this work, we propose a framework to discover interpretable directions in the latent space given arbitrary pre-trained generative adversarial networks. We propose to learn the transformation from prior one-hot vectors representing different attributes to the latent space used by pre-trained models. Furthermore, we apply a centroid loss function to improve consistency and smoothness while traversing through different directions. We demonstrate the efficacy of the proposed framework on a wide range of datasets. The discovered direction vectors are shown to be visually corresponding to various distinct attributes and thus enable attribute editing.
Motivation & Objective
- To enable unsupervised discovery of disentangled, interpretable directions in the latent space of pre-trained GANs for controllable image editing.
- To address the challenge of inconsistent and non-smooth attribute manipulation in GAN latent spaces without requiring retraining or supervision.
- To improve the consistency and smoothness of image transitions along discovered directions using a novel centroid-based regularization.
- To validate the method across diverse datasets (Anime Faces, ILSVRC-ImageNet, FFHQ) and pre-trained models (SNGAN, BigGAN, StyleGAN2).
Proposed method
- Train a deformator network $A$ to predict the direction and scale of latent code shifts from an original image and two shifted images generated by consecutive latent vector additions.
- Use a reconstructor $R$ to predict the attribute label $k$ and shift magnitude $\varepsilon$ from the original and shifted images, enabling end-to-end training.
- Introduce a centroid loss that encourages all shifted latent codes belonging to the same attribute direction $k$ to be close to a learned centroid for that direction.
- Apply the framework to pre-trained generators by adding shifted codes to the latent space (e.g., $W$-space in StyleGAN2), enabling attribute-specific editing without retraining.
- Train the deformator and reconstructor jointly using contrastive learning and centroid regularization to improve disentanglement and consistency.
- Use a two-stage image generation process: first shift from $z$ to $z + A(k_1, \varepsilon_1)$, then to $z + A(k_1, \varepsilon_1) + A(k_2, \varepsilon_2)$, enabling multi-attribute transitions.
Experimental results
Research questions
- RQ1Can we discover disentangled, interpretable directions in the latent space of pre-trained GANs without supervision or retraining?
- RQ2How can we improve the smoothness and consistency of attribute transitions in the latent space during image generation?
- RQ3Does introducing a centroid loss lead to better clustering of latent codes corresponding to the same attribute, enhancing editability?
- RQ4Can the proposed method generalize across diverse datasets (e.g., FFHQ, ILSVRC-ImageNet, Anime Faces) and different pre-trained GAN architectures (BigGAN, StyleGAN2, SNGAN)?
- RQ5To what extent does the method improve perceptual quality and disentanglement compared to baseline unsupervised GAN disentanglement approaches?
Key findings
- The proposed method achieves a Perceptual Path Length (PPL) of 99.78 on BigGAN-FFHQ, significantly lower than the baseline (179.23), indicating smoother and more perceptually consistent image transitions.
- On the ILSVRC-ImageNet dataset with BigGAN, the method achieves a Reconstructor Classification Accuracy (RCA) of 0.85, outperforming the baseline (0.84) and the ablation without centroid loss (0.86), demonstrating improved disentanglement.
- On FFHQ with StyleGAN2, the method achieves a PPL of 402.64 and RCA of 0.82, showing consistent performance across high-resolution, complex face generation.
- The centroid loss effectively reduces intra-class variance in latent codes, as evidenced by lower PPL values and more consistent attribute changes across multiple trials.
- Qualitative results show that the method successfully discovers diverse, semantically meaningful attributes such as hair color, hair style, and glasses, with smooth transitions across directions.
- The method generalizes across different GAN architectures and datasets, as shown by consistent improvements in both quantitative metrics and visual quality on Anime Faces, ILSVRC-ImageNet, and FFHQ.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.