Learning Disentangled Representations and Group Structure of Dynamical Environments

Robin Quessard, Thomas D. Barrett, William R. Clements

Overview

Learning "disentangled" representations—where independent factors of a scene, like an object's color, size, or position, are separated into distinct parts of the data—is a notoriously difficult unsupervised machine learning challenge. While most existing methods focus on static images (e.g., $\beta$-VAE), this research argues that true disentanglement is best understood through dynamics: how things change when we interact with them.

Drawing inspiration from physics, the authors utilize "symmetry groups"—mathematical structures describing transformations that preserve the nature of an object. Previously, symmetry-based models required researchers to pre-define the symmetry group. This paper introduces a framework that uses group representation theory to learn these disentangled latent representations without prior knowledge of the environment's underlying symmetries. By representing transformations as sparse rotation matrices, the model can discover the intrinsic structure of an environment and significantly improve long-term state predictions.

Methodology

The authors propose a framework where an environment is modeled by an encoder, a decoder, and a set of learnable transformation matrices. The core idea is to map observations into a latent space where the environment's transitions can be represented by linear transformations.

Commutative diagram illustrating the mapping between observation space and latent space under transformations

The methodology relies on three key pillars:

  1. Spherical Latent Space: Observations are encoded into a unit-norm spherical latent space.
  2. $SO(n)$ Parameterization: Instead of arbitrary matrices, transformations are represented using the Special Orthogonal group $SO(n)$—the group of all rotations in $n$ dimensions. Any rotation in $n$ dimensions can be decomposed into a product of $n(n-1)/2$ simple 2D plane rotations.
  3. Disentanglement Regularization ($L_{ent}$): To ensure the representation is disentangled, specific actions (like "move left") should affect the smallest possible number of dimensions in the latent space. The authors introduce a sparsity-inducing loss function that penalizes the use of extra rotation planes, effectively acting like a "Lasso" penalty for group transformations.

The model is trained to minimize reconstruction loss over a sequence of actions. It learns to map an initial observation to the latent space, apply a series of learned rotation matrices corresponding to the actions taken, and then decode the result back into the predicted observation.

Experimental Datasets

The framework was evaluated on three distinct types of symmetric environments:

  • Torus-world (Flatland): A 2D grid where a ball moves up, down, left, or right. Because the boundaries are periodic, the topology is mathematically a torus.
  • 3D Teapot: A dataset featuring a 3D teapot that can be rotated around three axes and change between five different background colors.
  • Continuous Sphere: A ball moving on the surface of a sphere under continuous rotations, representing a Lie group ($SO(3)$) rather than discrete steps.

Key Insights and Results

Dynamics Reveal Topology

The model successfully recovered the toroidal structure of the "Flatland" environment even when using one-hot encodings where standard VAEs (which rely on visual overlap) completely failed. This proves that interaction data contains structural information that static data does not.

Comparison of latent representations showing the proposed method recovering the toroidal structure against baseline VAEs

Subspace Separation and Interpretability

In the teapot experiment, the model automatically assigned the "color change" transformation to a 2D subspace and the "spatial rotation" transformations to a separate 3D subspace, without being told that color and rotation were different categories of change.

Furthermore, with the $L_{ent}$ regularization, the learned rotation matrices became highly sparse and interpretable. In the grid world, "Up/Down" actions rotated in one plane while "Left/Right" rotated in a completely orthogonal plane.

Disentanglement Aids Prediction

A major finding is the strong correlation between the quality of disentanglement and the accuracy of long-horizon predictions. By forcing the model to learn a "clean" group structure, it becomes much better at predicting where an object will be 250 steps into the future because it isn't accumulating "noise" from entangled dimensions. In multi-step prediction tasks, the proposed method significantly outperformed "direct prediction" models, maintaining a low error rate long after the baseline error exploded.

Limitations and Future Directions

While highly effective, the parameterization requires $O(n^2)$ rotation matrices. This could become a computational bottleneck for extremely complex environments requiring very high-dimensional latent spaces. Additionally, the model assumes the environment's symmetries can be represented by $SO(n)$. While expressive, some real-world environments might involve non-compact groups or symmetries that don't fit neatly into this framework. Future work will likely explore moving beyond $SO(n)$ to more expressive groups and applying this methodology to more complex, less "perfectly" symmetric real-world datasets.

Summary updated

BibTeX
@inproceedings{quessard2020learning,
  author = {Robin Quessard and Thomas D. Barrett and William R. Clements},
  title = {{Learning Disentangled Representations and Group Structure of Dynamical Environments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=WMQA9EdRRa},
}
Figure