Skip to main content
QUICK REVIEW

[Paper Review] Disentangled Representations from Non-Disentangled Models

Valentin Khrulkov, Leyla Mirvakhabova|arXiv (Cornell University)|Feb 11, 2021
Adversarial Robustness in Machine LearningComputer Science50 references8 citations
TL;DR

This paper proposes post hoc disentanglement by extracting disentangled representations from pretrained generative models—specifically StyleGAN2—without using disentanglement regularization during training. By leveraging latent space analysis techniques like DeepSpectral and ClosedForm, the method achieves state-of-the-art disentanglement performance on benchmark datasets with minimal hyperparameter tuning, demonstrating that disentangled factors can emerge naturally in high-quality GANs.

ABSTRACT

Constructing disentangled representations is known to be a difficult task, especially in the unsupervised scenario. The dominating paradigm of unsupervised disentanglement is currently to train a generative model that separates different factors of variation in its latent space. This separation is typically enforced by training with specific regularization terms in the model's objective function. These terms, however, introduce additional hyperparameters responsible for the trade-off between disentanglement and generation quality. While tuning these hyperparameters is crucial for proper disentanglement, it is often unclear how to tune them without external supervision. This paper investigates an alternative route to disentangled representations. Namely, we propose to extract such representations from the state-of-the-art generative models trained without disentangling terms in their objectives. This paradigm of post hoc disentanglement employs little or no hyperparameters when learning representations while achieving results on par with existing state-of-the-art, as shown by comparison in terms of established disentanglement metrics, fairness, and the abstract reasoning task. All our code and models are publicly available.

Motivation & Objective

  • To address the challenge of hyperparameter sensitivity in unsupervised disentanglement learning, especially in the absence of ground-truth factor labels.
  • To investigate whether disentangled representations can be extracted from pretrained generative models trained without disentanglement regularization.
  • To develop a post hoc disentanglement framework that avoids the need for iterative hyperparameter tuning of regularization terms.
  • To evaluate the utility of such extracted representations in downstream tasks like abstract reasoning and fairness.

Proposed method

  • The method extracts disentangled representations from pretrained StyleGAN2 generators by identifying latent directions that correspond to individual factors of variation.
  • It employs a spectral clustering-based technique (DeepSpectral) to identify directions in the latent space that are maximally correlated with specific factors of variation.
  • The approach uses a linear probe to estimate the correlation between latent directions and ground-truth factors, enabling selection of disentangled components.
  • It applies a closed-form solution (ClosedForm) to identify directions with high mutual information to factors, avoiding iterative optimization.
  • The framework is general and can be applied to any generative model with an explicit latent space, including GANs, VAEs, and normalizing flows.
  • The encoder is trained on synthetic data generated by the GAN, and the resulting representations are evaluated using standard disentanglement metrics.

Experimental results

Research questions

  • RQ1Can disentangled representations be effectively extracted from non-disentangled generative models like StyleGAN2 without additional regularization during training?
  • RQ2How does post hoc disentanglement compare to end-to-end disentangled models in terms of standard disentanglement metrics and downstream task performance?
  • RQ3To what extent do the latent directions in pretrained GANs already encode disentangled factors of variation, even without explicit disentanglement objectives?
  • RQ4Can the proposed method achieve competitive performance on abstract reasoning and fairness benchmarks without relying on VAE-based architectures or complex hyperparameter tuning?

Key findings

  • The proposed post hoc disentanglement method achieves MIG scores competitive with state-of-the-art methods, including InfoStyleGAN*, on all evaluated datasets.
  • On the 3D Shapes dataset, the DeepSpectral method achieves the highest possible MIG score and the best average result among GAN-based methods.
  • The method achieves over 95% accuracy on the abstract reasoning task using a WReN model, comparable to SOTA VAE-based models.
  • In fairness evaluation, the method produces lower-variance unfairness scores than VAE-based baselines, with distributions comparable to or better than those of prior methods.
  • The results suggest that the latent space of StyleGAN2 already contains highly disentangled directions, reducing the need for auxiliary regularization.
  • Experiments on ProGAN show slightly inferior performance, which is attributed to the larger distribution gap between real data and ProGAN-generated samples.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.