Skip to main content
QUICK REVIEW

[Paper Review] Do Generative Models Know Disentanglement? Contrastive Learning is All You Need

Xuanchi Ren, Tao Yang|arXiv (Cornell University)|Feb 21, 2021
Generative Adversarial Networks and Image SynthesisComputer Science32 references9 citations
TL;DR

This paper proposes Disentanglement via Contrast (DisCo), a model-agnostic, unsupervised method that discovers disentangled representations in pretrained generative models (GAN, VAE, Flow) without explicit disentanglement regularization. By using a navigator to explore latent directions and a contrastive encoder with a difference operator in the variation space, DisCo achieves state-of-the-art disentanglement performance through contrastive learning and entropy-based domination loss.

ABSTRACT

Disentangled generative models are typically trained with an extra regularization term, which encourages the traversal of each latent factor to make a distinct and independent change at the cost of generation quality. When traversing the latent space of generative models trained without the disentanglement term, the generated samples show semantically meaningful change, raising the question: do generative models know disentanglement? We propose an unsupervised and model-agnostic method: Disentanglement via Contrast (DisCo) in the Variation Space. DisCo consists of: (i) a Navigator providing traversal directions in the latent space, and (ii) a $\Delta$-Contrastor composed of two shared-weight Encoders, which encode image pairs along these directions to disentangled representations respectively, and a difference operator to map the encoded representations to the Variation Space. We propose two more key techniques for DisCo: entropy-based domination loss to make the encoded representations more disentangled and the strategy of flipping hard negatives to address directions with the same semantic meaning. By optimizing the Navigator to discover disentangled directions in the latent space and Encoders to extract disentangled representations from images with Contrastive Learning, DisCo achieves the state-of-the-art disentanglement given pretrained non-disentangled generative models, including GAN, VAE, and Flow. Project page at this https URL.

Motivation & Objective

  • To investigate whether pretrained generative models inherently possess disentangled representations without explicit regularization.
  • To address the trade-off between disentanglement and generation quality caused by standard disentanglement regularization terms.
  • To develop a model-agnostic, unsupervised method that discovers disentangled directions in the latent space of non-disentangled generative models.
  • To improve disentanglement performance using contrastive learning without requiring ground-truth factor annotations.
  • To mitigate semantic ambiguity in traversal directions by identifying and flipping hard negatives with similar meanings.

Proposed method

  • A Navigator module explores the latent space to generate traversal directions, identifying meaningful semantic changes.
  • A Δ-Contrastor uses two shared-weight encoders to encode image pairs along traversal directions into disentangled representations.
  • The difference operator maps the encoded representations into the Variation Space, enabling contrastive learning on semantic variations.
  • An entropy-based domination loss encourages the encoded representations to be more disentangled by promoting diversity and independence.
  • A hard negative flipping strategy improves robustness by identifying and reversing directions with semantically similar changes.
  • The method is trained end-to-end using contrastive learning objectives, enabling disentanglement discovery without supervision.

Experimental results

Research questions

  • RQ1Can pretrained generative models like GANs, VAEs, and flows inherently learn disentangled representations without explicit disentanglement regularization?
  • RQ2Can contrastive learning in the variation space effectively discover disentangled directions in the latent space of non-disentangled models?
  • RQ3How does the entropy-based domination loss improve disentanglement quality compared to standard contrastive objectives?
  • RQ4To what extent does hard negative flipping enhance the semantic distinctiveness of learned traversal directions?
  • RQ5Does DisCo achieve state-of-the-art disentanglement performance across diverse generative models without retraining?

Key findings

  • DisCo achieves state-of-the-art disentanglement performance on benchmark datasets using only pretrained, non-disentangled generative models such as GANs, VAEs, and normalizing flows.
  • The method successfully discovers semantically meaningful and independent disentangled factors in the latent space without any supervision or architectural modifications.
  • The entropy-based domination loss significantly improves disentanglement quality by promoting representation diversity and independence.
  • The hard negative flipping strategy effectively reduces semantic ambiguity in traversal directions, enhancing the distinctiveness of learned factors.
  • DisCo is model-agnostic and works across multiple generative model architectures, demonstrating broad applicability.
  • The approach achieves high disentanglement scores without retraining the generative model, preserving generation quality.

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.