Linear Disentangled Representations and Unsupervised Action Estimation

Matthew Painter, Adam Prügel-Bennett, Jonathon S. Hare

Disentangled representation learning has seen a surge in interest, generally focusing on new models that optimize disparate disentanglement metrics. Symmetry-Based Disentangled Representation Learning (SBDRL) introduced a robust mathematical framework defining a "linear disentangled representation." This framework determined that such representations depend on a particular decomposition of the symmetry group acting on the data, showing that actions manifest through irreducible group representations acting on independent representational subspaces.

While previous work proposed the first model to induce a linear disentangled representation in a Variational Auto-Encoder (VAE), it required labeled action sequences. This paper introduces Reinforced GroupVAE (RGrVAE), a framework that learns these linear disentangled representations entirely unsupervised, discovering the underlying symmetries of data without requiring action labels.

Background & Motivation

In deep learning, "disentanglement" is the holy grail of representation: we want a VAE to learn a latent space where one dimension controls the X-position of an object, another its color, and a third its rotation, all independently.

While many VAE variants exist, most rely on heuristic metrics. SBDRL suggests that disentanglement should be defined through Group Theory. In this view, "actions" in the world (like moving an object) should correspond to linear transformations in the latent space. The catch is that previous state-of-the-art models, like ForwardVAE, required action supervision. They needed to be explicitly told what action occurred between frames. This work asks: Can we learn these linear symmetries entirely unsupervised, just by observing sequences of data?

Proposed Method: Reinforced GroupVAE (RGrVAE)

The authors propose RGrVAE to bridge the gap between unsupervised learning and linear disentanglement. The architecture consists of three main components:

  1. A Standard VAE: Encodes an image $x$ into a latent vector $z$ and decodes it back.
  2. Internal Representation Matrices ($A_i$): A set of learnable matrices representing potential "actions" or symmetries (e.g., small rotations or steps in a grid).
  3. A Policy Network: A small CNN that looks at a pair of images (before and after an action) and predicts which internal matrix $A_i$ most likely explains the transition.
RGrVAE Architecture

Because the selection of a matrix is a discrete choice, the authors use Policy Gradients (REINFORCE) to train the network. The "reward" for the policy is how well the predicted latent state $\hat{z}_a$ (calculated by applying the chosen matrix to the first latent) matches the actual encoded latent $z_a$ of the second image.

Additionally, the authors introduce a new metric, the Independence Score, which explicitly measures whether actions operate on independent subspaces of the latent vector, providing a more targeted evaluation for SBDRL than traditional metrics.

Key Insights and Results

The model was evaluated on two primary benchmarks: Flatland (a simple 2D grid world testing basic translation symmetries) and dSprites (a complex dataset testing the model's ability to disentangle four independent symmetries simultaneously: scale, rotation, X, and Y position).

Experimental Results
  • Standard VAEs aren't "naturally" linear: The authors empirically prove that standard VAEs (like $\beta$-VAE or FactorVAE) do not learn linear disentangled representations on their own. The loss landscape must be explicitly structured to favor these symmetries.
  • Performance Parity: RGrVAE achieves reconstruction errors and independence scores nearly identical to ForwardVAE, despite lacking ground-truth action labels. On Flatland, RGrVAE achieved an Independence Score of 0.960, compared to the supervised 0.989.
  • Sparsity through "Over-representation": If the model is given more potential action matrices than there are actual symmetries in the data, it learns to use only the necessary ones. It ignores the "superfluous" matrices, effectively discovering the true number of factors of variation.
  • Robustness: The model remains stable under visual noise (Gaussian and Salt & Pepper). While complex backgrounds slowed down convergence, the model still eventually found the correct representations.

Limitations and Future Work

While RGrVAE successfully learns complex symmetries directly from pixels, it assumes that only a single action occurs between two observed frames. In real-world video, multiple factors might change simultaneously. Furthermore, while the model estimates which action happened, the type of group (e.g., cyclic groups) must still be predefined. Future work will look toward models that can discover the mathematical structure of the symmetry group itself from scratch and handle the computational costs of scaling policy gradients to larger action spaces.

Summary updated

BibTeX
@inproceedings{painter2020linear,
  author = {Matthew Painter and Adam Prügel-Bennett and Jonathon S. Hare},
  title = {{Linear Disentangled Representations and Unsupervised Action Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=6bu_FutSelP},
}
Figure