Weakly Supervised Disentanglement with Guarantees

Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, Ben Poole

This ICLR 2020 paper, "Weakly Supervised Disentanglement with Guarantees," provides a much-needed theoretical foundation for a field that has recently moved away from purely unsupervised methods.

TL;DR

This paper provides a rigorous theoretical framework for weakly supervised disentangled representation learning. By decomposing disentanglement into two primitives—"consistency" and "restrictiveness"—the authors prove when specific types of weak supervision (like pairing or ranking) are sufficient to guarantee that learned latent variables align with true real-world factors.

What Problem Does This Paper Address?

Disentanglement aims to learn representations where each dimension corresponds to a single real-world factor of variation (e.g., one dimension for "object color," another for "rotation"). For years, the community focused on unsupervised disentanglement. However, a landmark 2019 paper by Locatello et al. proved that unsupervised disentanglement is theoretically impossible without specific inductive biases.

This realization shifted the field toward weak supervision—using small amounts of extra information (like "these two images share the same object type") to guide the model. While these methods showed empirical success, there was no formal logic to explain why or when a specific type of weak supervision would actually guarantee a disentangled result.

Methods

The authors formalize weak supervision as distribution matching in an augmented space. Instead of just matching the distribution of single images, the model must match the distribution of pairs or labeled subsets provided by the supervision.

The core of their contribution is the decomposition of disentanglement into two "atoms":

  1. Generator Consistency: If you fix a latent variable $Z_i$, the corresponding ground-truth factor $S_i$ in the generated image must stay the same.
  2. Generator Restrictiveness: If you change only $Z_i$, then only the ground-truth factor $S_i$ should change in the output.

The authors then introduce a Calculus of Disentanglement. This is a set of logical rules (Union and Intersection rules) that allow researchers to combine simple guarantees. For example, if you have one dataset that guarantees consistency for factors $\{A, B\}$ and another for $\{B, C\}$, the calculus proves you have guaranteed consistency for the intersection, factor $B$.

They apply this framework to three practical weak supervision methods:

  • Restricted Labeling: Observing a subset of ground-truth factors.
  • Match Pairing: Using pairs of images known to share a specific factor.
  • Rank Pairing: Using pairs where one image is known to have a "greater" value of a factor than the other (e.g., "this object is larger than that one").
Graphical models of weak supervision methods

Datasets

The authors validated their theory across five prominent disentanglement benchmarks:

  • Shapes3D and dSprites: Synthetic 2D/3D shapes with clear factors like color, scale, and orientation.
  • Scream-dSprites: A version of dSprites with complex "Scream" painting backgrounds to act as nuisance variables.
  • SmallNORB: Images of 3D toys under different lighting and angles.
  • Cars3D: Rendered CAD models of cars.

Key Insights and Ideas

  • Disentanglement is not a monolith: By breaking it into consistency and restrictiveness, the authors show that most weak supervision methods only naturally guarantee consistency. Restrictiveness often comes from the "complement" (supervising everything else).
  • The "Aha!" of Intersection: The calculus shows that you don't need to label every factor perfectly. If you have overlapping "weak" datasets, the math "triangulates" the correct factors.
  • The Role of Model Bias: Interestingly, the experiments showed that consistency and restrictiveness are highly correlated in practice, even when the supervision only guarantees one. This suggests that standard neural network architectures have an inherent inductive bias that helps "fill in the gaps" of the theoretical guarantees.

Key Results

  • Theorem 1: The authors mathematically prove that Restricted Labeling, Match Pairing, and Rank Pairing all guarantee consistency for the targeted factors.
  • Empirical Validation: Using GANs for distribution matching, they showed that their weakly supervised models consistently achieved high disentanglement scores (measured by the Mutual Information Gap) across all five datasets, often outperforming fully supervised models.
Example of a disentangled representation
  • Predictive Power: The "Calculus of Disentanglement" accurately predicted the results of ablation studies. When the calculus said a factor should be isolated via intersection, the heatmaps confirmed high scores on that specific diagonal.

Limitations and Future Work

  • Distribution Matching Sensitivity: The guarantees only hold if the learning algorithm (e.g., a GAN) successfully matches the target distribution. In practice, GAN training can be unstable, leading to "anomalies" where the theory predicts disentanglement but the model fails to converge.
  • Rank Pairing Scope: Currently, rank pairing is restricted to one-dimensional factors with a clear ordering.
  • Invertibility: The theory assumes the generator is a deterministic, invertible function. While this holds for many models, it may not perfectly describe all generative architectures.
  • Future Directions: The authors suggest applying this framework to other learning algorithms (like VAEs) and exploring more complex forms of weak supervision.

Summary updated

BibTeX
@inproceedings{shu2020weakly,
  author = {Rui Shu and Yining Chen and Abhishek Kumar and Stefano Ermon and Ben Poole},
  title = {{Weakly Supervised Disentanglement with Guarantees}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=hA-gANoEsb},
}
Figure