Abstract
Generative Adversarial Networks (GANs) produce high-fidelity images, yet their latent spaces often lack disentanglement, where a single direction corresponds to a single semantic attribute. We introduce the Scale Ranking Estimator (SRE), a self-supervised approach to refine latent directions. SRE trains a model to rank the magnitude of shifts in the latent space, effectively isolating specific attributes without human supervision. Our method significantly enhances existing unsupervised discovery techniques, achieving a 104% improvement in disentanglement metrics on synthetic data and maintaining 97% identity preservation on facial datasets.
Introduction
The primary challenge in utilizing GANs for controlled image editing is the entanglement of latent representations. Moving along a discovered "age" direction might inadvertently alter gender or background elements. While supervised approaches mitigate this using pre-trained classifiers, they are limited by the availability of labeled data for niche domains. SRE addresses this by leveraging the inherent structure of the latent space through a self-supervised ranking objective, allowing for the discovery of clean, interpretable directions in an entirely unsupervised manner.
Methods
The SRE framework operates on the principle that if a model can consistently rank the magnitude of a specific change despite other noise in the image, that change has been successfully isolated.
The Ranking Task
For a latent code $z$ and a candidate direction $d$, two shifts $\epsilon_1$ and $\epsilon_2$ are applied to produce images $I_1$ and $I_2$. The SRE network is trained to predict which image corresponds to the larger shift. Since the ground truth (e.g., $\epsilon_1 > \epsilon_2$) is known by construction, no human labels are required.
Optimization Strategy
The system uses an alternating optimization process. The SRE is updated to better recognize variations, while the Direction Matrix ($D$) is updated to produce variations that are more distinct and easier for the SRE to rank. To ensure the discovered directions do not overlap, the authors enforce mathematical orthogonality between the directions in the matrix $D$.
Results
SRE was evaluated across diverse datasets including CelebA-HQ, AnimeFaces, LSUN-Cars, and 3DShapes to prove its independence from specific GAN architectures.
Quantitative Performance
On the CelebA-HQ dataset, SRE improved the "Rescoring" purity metric of the SeFa baseline from 0.64 to 7.77. On the synthetic 3DShapes dataset, the Mutual Information Gap (MIG), a standard disentanglement metric, increased by 104.54% over baseline unsupervised directions. Furthermore, SRE achieved an identity preservation accuracy of 97% on CelebA-HQ, compared to just 61% for the baseline, suggesting that the ranking task implicitly forces the model to ignore irrelevant identity variations.
Qualitative Disentanglement
Visual results demonstrate that SRE-enhanced directions isolate factors such as floor hue, wall hue, or object shape more cleanly than previous methods. While baseline methods might change car color and camera zoom simultaneously, SRE-enhanced directions can isolate color changes while keeping other factors perfectly still.
Conclusion
SRE provides a robust, self-supervised mechanism for enhancing latent space disentanglement. It acts as a powerful post-hoc enhancer for existing unsupervised methods like SeFa or LD. Future work will explore automated selection of shift ranges and applications to more complex, unconstrained natural datasets where ground truth factors are entirely unknown.
Summary updated