Learning Disentangled Representations via Mutual Information Estimation

Eduardo Hugo Sanchez, Mathieu Serrurier, Mathias Ortner

TL;DR

This paper introduces a novel unsupervised framework for learning disentangled representations—separating shared features (common to a pair of images) from exclusive features (unique to each). By replacing computationally expensive image reconstruction (VAEs/GANs) with Mutual Information (MI) estimation, the authors achieve state-of-the-art disentanglement that is faster to train and more robust for downstream tasks like classification and satellite imagery analysis.

What Problem Does This Paper Address?

In representation learning, we want a compact "code" that describes an image. Ideally, this code is disentangled: different parts of the code should represent independent attributes (e.g., one part for the shape of an object, another for its color).

Most existing methods rely on "reconstruction-based" models like Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs). These models learn by trying to recreate the original pixels from the code. However, pixel-perfect reconstruction is computationally heavy and often forces the model to waste capacity on irrelevant details (like noise) just to get the image back.

The authors tackle a specific flavor of this: paired data disentanglement. If you have two images of the same digit but in different colors, how do you extract a "shared" representation (the digit identity) and an "exclusive" representation (the specific colors) without the overhead of generating images?

Conceptual overview of representation disentanglement using a pair of images (X and Y) with shared digit identity but different background and digit colors.

Methods

The authors propose a two-stage training procedure based on Mutual Information Estimation, specifically leveraging the Deep InfoMax approach.

  1. Shared Representation Learning: The model uses two encoders to extract shared features ($S_X, S_Y$) from a pair of images. To ensure these features only contain common information, they use Crossed Mutual Information. They maximize the MI between Image $X$ and the shared representation of Image $Y$ (and vice versa). If the representations were unique to one image, this "swap" would fail.
  2. Exclusive Representation Learning: Once the shared part is fixed, the model learns an exclusive encoder ($E_X$). It maximizes the MI between the image and the combined code $[S_X, E_X]$ to ensure all information is captured.
  3. Adversarial Disentanglement: To prevent the exclusive part from "leaking" into the shared part, they introduce an adversarial objective. A discriminator tries to distinguish between the joint distribution of shared/exclusive features and the product of their marginals. Minimizing this is equivalent to minimizing the MI between the two components, forcing them to be independent.

Crucially, this entire process happens in the "latent space." There is no decoder and no pixel-level reconstruction.

Datasets

The model was evaluated on four distinct datasets:

  • Colored-MNIST: A synthetic dataset where digits have different background and foreground colors.
  • 3D Shapes: 480,000 images of 3D objects with six factors of variation (shape, scale, orientation, and three color types).
  • IAM Handwriting: A real-world dataset of handwritten English text, used to separate writer style (shared) from the specific word written (exclusive).
  • Sentinel-2: Real satellite imagery used to learn representations that are robust to seasonal changes and atmospheric conditions.

Key Insights and Ideas

  • MI > Reconstruction: By focusing on Mutual Information rather than pixel reconstruction, the model ignores "low-level" noise and focuses on "high-level" salient features. This makes it significantly faster—training on Colored-MNIST took 20 minutes per epoch compared to 115 minutes for GAN-based competitors.
  • The Power of the "Swap": The "Crossed MI" trick is the secret sauce. By forcing the representation of Image A to be predictive of Image B, the model is mathematically discouraged from storing any information that isn't present in both.
  • Stability: The authors found that standard MI estimators diverge when you try to minimize them. Switching to an adversarial (GAN-style) discriminator for the minimization step provided the stability needed to actually achieve disentanglement.

Key Results

  • Superior Disentanglement: On the 3D Shapes dataset, the model achieved near-perfect scores in separating attributes. For example, when classifying "Object Scale" from the shared representation, it hit 99.99% accuracy, while its accuracy on "Floor Color" (which should be exclusive) was near-random (9.96%). Competitive VAE/GAN models often "leaked" color information into the shared representation.
  • Downstream Performance: On the EuroSAT satellite classification task, the MI-based representations reached 93.11% accuracy, outperforming VAEs (87.64%) and specialized VAE-GAN hybrids (92.38%).
  • Image Retrieval: The authors demonstrated that you could use the shared representation to find "the same digit in any color" and the exclusive representation to find "any digit with this specific color scheme," proving the features were truly separated.

Limitations and Future Work

  • Two-Stage Rigidity: The current approach requires learning the shared representation first and then the exclusive one. A simultaneous one-stage training process might be more elegant but harder to stabilize.
  • Pair Dependency: The method relies on having pairs of images that share attributes. While common in many domains (like video frames or multi-view setups), it isn't applicable to completely unstructured, single-image datasets.
  • Future Directions: The authors suggest this could be a powerful pre-processing step for unsupervised image segmentation and object detection, especially in domains like satellite imagery where labels are scarce.

Summary updated

BibTeX
@inproceedings{sanchez2020learning,
  author = {Eduardo Hugo Sanchez and Mathieu Serrurier and Mathias Ortner},
  title = {{Learning Disentangled Representations via Mutual Information Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58542-6\_13},
}
Figure