NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Disentangling factors of variation in deep representations using adversarial training

Michaël Mathieu, Junbo Jake Zhao, Pablo Sprechmann, Aditya Ramesh, Yann LeCun

Abstract

This paper introduces a conditional generative model that separates "specified" factors of variation (e.g., object identity) from "unspecified" factors (e.g., pose or lighting) without requiring perfectly aligned training pairs. By combining Variational Autoencoders (VAEs) with adversarial training, the model learns an embedding space where the "style" of one image can be transferred onto the "content" of another, even for identities not seen during training.

Introduction

A fundamental challenge in deep learning is understanding the underlying "factors of variation" that constitute an image. For instance, a facial image is a composite of identity (who the person is) and viewing conditions (lighting, angle, expression). While supervised learning excels at identifying labels, it often discards "nuisance" factors to achieve invariance. Conversely, generative models must retain all information for reconstruction but often fail to separate these factors into independent codes without highly controlled, aligned data. This research addresses the challenge of achieving disentanglement in a general setting using only basic class labels.

Methodology

The authors propose a hybrid architecture merging Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs).

The Split Encoder and Variational Framework

The model employs an encoder that maps an image into two distinct latent vectors: $s$ (the specified component, related to the label) and $z$ (the unspecified component, capturing residual style). Like a standard VAE, the model minimizes reconstruction error and utilizes a KL-divergence term to regularize the latent space.

Overview of the VAE-GAN architecture. The encoder splits the representation into specified (s) and unspecified (z) components, while an adversarial discriminator enforces disentanglement through a swapping mechanism.

Adversarial Swapping Regularization

To prevent the model from collapsing—where all information is hidden in the $z$ vector—the authors introduce an adversarial discriminator. During training, the model generates a "hybrid" image using the style ($z$) from image A and the identity ($s$) from image B. The discriminator ensures this hybrid image remains a valid representative of image B's class. This "swap trick" forces the model to make $s$ and $z$ truly independent.

Generalization

Unlike models using fixed one-hot vectors, this framework represents $s$ as a continuous vector. This allows the model to generalize to unseen identities, enabling the transfer of poses or styles to novel objects.

Experimental Results

The model was evaluated on four datasets: MNIST (digits), Sprites (video game characters), NORB (3D toy objects), and Extended-YaleB (faces).

Quantitative and Qualitative Disentanglement

Quantitative tests on the Sprites dataset showed that a classifier trained on $s$ achieved 94.8% accuracy, while one trained on $z$ performed near random chance (~40%), confirming successful factor separation. Qualitatively, the model produced sharp, realistic textures, avoiding the typical blurriness of VAEs due to the GAN discriminator.

Results on the Sprites dataset. The left panel shows the model's ability to swap identity and pose factors. The right panel demonstrates smooth interpolation between different character states.

Image Analogies and Interpolation

The model demonstrates impressive "image analogies." For example, in the YaleB dataset, illumination from one individual can be applied to another's face with high fidelity. Furthermore, walking through the latent space between images results in smooth transitions of identity and pose independently, suggesting a well-organized manifold.

Discussion and Limitations

While effective, the model faces several challenges:

  • Sample Complexity: Large numbers of samples are required to cover the full range of variations in complex datasets like NORB.
  • Internal Entanglement: While $s$ and $z$ are separated, factors within these vectors (e.g., lighting vs. rotation in $z$) may remain tangled.
  • Symmetry: The model occasionally struggles with highly symmetric objects where data scarcity leads to reconstruction uncertainty.

Future work may involve using pre-trained embeddings or more sophisticated adversarial losses to enhance stability and the quality of disentanglement.

Summary updated

BibTeX
@inproceedings{mathieu2016disentangling,
  author = {Michaël Mathieu and Junbo Jake Zhao and Pablo Sprechmann and Aditya Ramesh and Yann LeCun},
  title = {{Disentangling factors of variation in deep representations using adversarial training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=SyWc8vbOZB},
}
Figure