Self-Supervised Enhancement of Latent Discovery in GANs

Adarsh Kappiyath, Silpa Vadakkeeveetil Sreelatha, S. Sumitra

Abstract

Latent space discovery in Generative Adversarial Networks (GANs) often suffers from entanglement, where manipulating one attribute inadvertently affects others. We present the Scale Ranking Estimator (SRE), a self-supervised framework that refines latent directions by learning to rank the intensity of visual transformations. By enforcing a consistent relationship between latent step size and visual change, SRE significantly improves disentanglement and identity preservation across diverse datasets without requiring labeled data or external classifiers.

Introduction

Generative Adversarial Networks (GANs) are capable of producing high-fidelity images, yet their latent spaces—the high-dimensional vectors used for generation—remain difficult to navigate. To edit specific attributes (e.g., adding a smile to a face), researchers must identify precise "directions" within this space. Existing approaches typically fall into two categories: supervised methods, which require expensive labeled data, and unsupervised methods, which often produce entangled results where multiple features change simultaneously. This work introduces a self-supervised bridge that achieves the precision of supervised methods without the need for manual labels.

Methodology: The Scale Ranking Estimator (SRE)

The core innovation is the Scale Ranking Estimator (SRE), which operates on a simple intuition: if a latent direction represents a single attribute, a larger "step" in that direction should yield a more pronounced visual change.

The SRE training pipeline: Directions are refined by training a ResNet-18 backbone to rank the magnitude of visual transformations.

The Training Process

  1. Initialization: The process begins with directions discovered by unsupervised methods like SeFa or Latent Discovery (LD).
  2. Ranking Task: The system samples two different magnitudes (scales) for a specific direction and generates two corresponding images.
  3. Self-Supervision: A ResNet-18 backbone is trained to predict which image exhibits the larger transformation.
  4. Iterative Refinement: The SRE and the direction matrix ($D$) are updated alternately. This forces the model to align directions with the most dominant, consistent factors of variation, effectively filtering out noise.
  5. Orthogonality Constraints: Enforcing mathematical orthogonality between directions prevents attribute "bleeding," ensuring that features like hair color and age remain independent.

Experimental Results

The SRE was evaluated across four datasets: CelebA-HQ (faces), AnimeFaces, LSUN-Cars, and 3D Shapes.

Quantitative Improvements

On the synthetic 3D Shapes dataset, applying SRE to the SeFa method increased the Mutual Information Gap (MIG)—a standard metric for disentanglement—by 104.54%. On CelebA-HQ, the "Rescoring" value, which measures attribute correspondence, improved from 0.64 to 7.77. Furthermore, identity preservation accuracy during facial manipulation rose from 0.61 to 0.97.

Correlation heatmaps showing the reduction in attribute entanglement after applying SRE (right) compared to the baseline (left).

Qualitative Analysis

Visual traversals demonstrate smoother transitions and better feature isolation. In the LSUN-Cars dataset, SRE successfully decoupled "car type" from "camera zoom," a common failure point for unsupervised baselines. Additionally, the SRE's internal encodings enable zero-shot attribute-based image retrieval, allowing users to find images with specific intensities of a feature without further training.

Discussion and Limitations

While SRE significantly enhances latent discovery, it remains sensitive to the range of the scale parameter ($\epsilon$). If the range is too narrow, the model lacks sufficient signal; if too wide, image distortion occurs. Future work may explore closed-form analytical solutions to enforce ranking order, potentially reducing training time and improving scalability to even more complex, natural datasets where ground-truth factors are less defined.

Summary updated

BibTeX
@inproceedings{kappiyath2022self,
  author = {Adarsh Kappiyath and Silpa Vadakkeeveetil Sreelatha and S. Sumitra},
  title = {{Self-Supervised Enhancement of Latent Discovery in GANs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=8LJnHktiJO},
}
Figure