Introduction
Generative Adversarial Networks (GANs) have achieved remarkable success in synthesizing high-fidelity images. However, the latent spaces of these models are typically highly entangled, making it challenging to perform precise semantic edits without affecting unintended attributes. This paper introduces an unsupervised framework designed to discover interpretable and disentangled directions within the latent manifolds of pre-trained GANs. By leveraging a novel training strategy focused on linear consistency and a "centroid loss," the proposed method enables smooth, multi-attribute manipulation across diverse architectures.
Problem Statement
The primary challenge in GAN-based image editing is the lack of interpretability in the latent space. While a model might represent concepts like "smiling" or "hair color," these features are often intertwined. Existing solutions typically rely on supervised learning with labeled datasets, which are expensive to produce, or unsupervised methods that suffer from "entanglement"—where adjusting one attribute (e.g., age) inadvertently alters others (e.g., gender). The authors seek a model-agnostic, unsupervised approach to identify these latent "control knobs."
Methodology
The framework operates on a pre-trained generator ($G$) and introduces three primary components:
- The Deformator ($A$): A small network that maps a user-defined intent (an attribute index $k$ and a shift magnitude $\epsilon$) into a specific displacement vector in the latent space.
- The Reconstructor ($R$): A network trained to identify the attribute $k$ and magnitude $\epsilon$ by comparing the original and modified images. This feedback loop ensures that the discovered directions correspond to visually distinct semantic changes.
- Linear Shifting and Centroid Loss:
- Linear Shifting: To ensure stability over long-range edits, the model is trained on sequences of consecutive shifts ($z \to z_1 \to z_2$), forcing the deformator to find directions that remain semantically consistent.
- Centroid Loss: This is the key innovation. It encourages all shift vectors for a specific attribute $k$ to cluster around a central "mean" direction. This prevents the "knob" from changing its meaning depending on the starting image, ensuring global consistency across the latent manifold.
Experimental Setup
The method was evaluated using three major datasets: Anime Faces (63,632 images), ILSVRC-ImageNet (1,000 categories), and Flickr-Faces-HQ (FFHQ) (70,000 high-resolution faces). To demonstrate model-agnosticism, the researchers tested the framework across SNGAN, BigGAN, and StyleGAN2 architectures.
Key Results and Insights
The proposed approach demonstrates both quantitative and qualitative improvements over existing unsupervised baselines.
- Perceptual Smoothness: On the Anime Faces dataset, the method significantly reduced the Perceptual Path Length (PPL) from a baseline of 179.23 to 99.78. A lower PPL indicates that transitions along the discovered manifolds are smoother and less prone to visual artifacts.
- Disentangled Editing: The model successfully identified a wide range of semantic attributes, including facial expressions, hair styles, camera angles, and object postures.
- Consistency: The high Reconstructor Classification Accuracy (RCA), ranging from 0.78 to 0.85, confirms that the discovered directions are distinct and easily recognizable by the reconstructor, validating the effectiveness of the centroid loss in stabilizing the unsupervised discovery process.
Conclusion and Future Work
This research provides a robust, unsupervised pathway for navigating the complex latent spaces of GANs. By enforcing linear consistency and directional clustering, the authors have moved closer to achieving "control knobs" for generative models that are both intuitive and disentangled. Future research may explore mapping more complex, non-linear geometries within latent spaces to further refine the precision of image synthesis and editing.
Summary updated