Symmetry-Based Disentangled Representation Learning requires Interaction with Environments

Hugo Caselles-Dupré, Michaël Garcia Ortiz, David Filliat

This paper, presented at NeurIPS 2019, provides a theoretical and empirical argument for a fundamental shift in how we approach disentangled representation learning. While most research focuses on learning from static datasets, the authors demonstrate that to truly capture the "symmetries" of a world, an agent must interact with its environment.

The Problem: Defining and Learning Disentanglement

In machine learning, "disentanglement" is the holy grail of representation: we want a model to separate the underlying factors of a scene (like an object's position, its color, and its shape) into independent variables. However, the field has long struggled with a formal definition of what "disentangled" actually means.

A recent promising framework is Symmetry-Based Disentangled Representation Learning (SBDRL), which uses group theory to define disentanglement. In this view, a representation is disentangled if it reflects the symmetries of the world—for example, moving an object to the right should only affect the "x-position" part of the representation while leaving "color" and "size" invariant.

The authors tackle a critical question: Can an agent learn these symmetries just by looking at a pile of photos? They argue that static data is insufficient to distinguish between different underlying world structures.

Methods: The Necessity of Interaction

The paper combines mathematical proofs with a novel deep learning architecture to address this limitation.

  1. The Interaction Proof (Theorem 1): The authors provide a formal proof showing that for any set of static images, there are multiple "worlds" with different symmetry behaviors that could have produced them. Therefore, an agent must see transitions—how an action $a_t$ changes state $o_t$ to $o_{t+1}$—to identify the true symmetries.
  2. Forward-VAE (End-to-End Learning): This is their primary architectural contribution. It is a VAE variant that includes a "forward loss" to force the latent space to be "Linear SB-disentangled" (LSB). Specifically, it learns an action matrix $\hat{A}(a_t)$ for every action. The model is trained to ensure that applying this matrix to a latent vector $z_t$ results in the latent vector of the next state $z_{t+1}$.
The Flatland environment and the Forward-VAE architecture.

Experimental Setup: Flatland

To test their theories, the authors use Flatland, a lightweight 2D environment consisting of a simple 2D plane containing a single circular agent. The world is cyclic (a torus); if the agent moves off the top edge, it reappears at the bottom. They collected 10,000 transitions $(o_t, a_t, o_{t+1})$ consisting of the agent's movement (up, down, left, right).

Key Insights

  • Transitions are Fundamental: The most significant realization is that "disentanglement" isn't just a property of a static image, but a property of how the world changes. Without interaction, the model is merely guessing at the underlying structure.
  • The 4D Requirement for a 2D World: To represent a 2D cyclic world linearly, you actually need a 4D latent space. The authors show that a 2D representation cannot linearly model a cycle. By using two complex numbers (represented as 4 real dimensions), the Forward-VAE can model movements as simple rotations, which are linear transformations.
  • Action as a Proxy for Symmetry: In the real world, we don't always know the mathematical "group" of symmetries. The authors suggest that high-level agent actions (like "move left") can serve as practical replacements for these abstract symmetries during training.

Key Results

  • Successful Linearization: The Forward-VAE successfully learned to represent the agent's position in a 4D space where actions corresponded to rotation matrices. The error between the predicted next state and the actual next state was extremely low (on the order of $10^{-4}$).
  • Downstream Efficiency: They tested the learned representations on an inverse model task (predicting which action was taken given two consecutive images).
Validation accuracy of a Random Forest classifier on the inverse model task.

As shown above, SB-disentangled representations allowed very simple, low-capacity classifiers (like shallow Random Forests) to solve the task efficiently. In contrast, non-disentangled representations (like standard Auto-Encoders) required much deeper, more complex models to achieve similar accuracy. Furthermore, SB-disentangled representations reached 100% accuracy with far fewer samples (1k vs 10k) than standard auto-encoders.

Limitations and Future Work

While groundbreaking, the current work uses a very basic 2D world with one object. In complex scenes, symmetries are often "broken" (e.g., you cannot move right if there is a wall). The authors suggest that future work should focus on "local" SB-disentanglement, where the group structure only holds in certain parts of the state space. Additionally, because this paper assumes the agent already has a set of high-level actions, a major next step is "active search"—having the agent experiment with the world to discover which actions correspond to symmetries in the first place.

Summary updated

BibTeX
@inproceedings{casellesdupre2019symmetry,
  author = {Hugo Caselles-Dupré and Michaël Garcia Ortiz and David Filliat},
  title = {{Symmetry-Based Disentangled Representation Learning requires Interaction with Environments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=TNZj8DEKUb},
}
Figure