Learning Invariant Representations for Reinforcement Learning without Reconstruction

Amy Zhang, Rowan Thomas McAllister, Roberto Calandra, Yarin Gal, Sergey Levine

Deep Reinforcement Learning (RL) has seen massive success in clean simulations, but transitioning these agents to the visually complex real world remains a significant challenge. Most visual RL agents rely on representation learning—often via pixel reconstruction (autoencoders) or contrastive learning—to compress high-dimensional images into manageable vectors.

However, these methods are inherently task-agnostic. A reconstruction-based agent wastes limited neural capacity trying to model every cloud in the sky or leaf on a tree, even if those details have zero impact on the task at hand. In the real world, most visual information is simply distraction.

The Solution: Deep Bisimulation for Control (DBC)

To address this inefficiency, the authors introduce Deep Bisimulation for Control (DBC). The core idea is to train an encoder such that the distance between two points in the latent (hidden) space represents how "behaviorally different" those two states are, entirely bypassing the need for pixel reconstruction.

DBC maps visually distinct but behaviorally identical states to the same point in latent space, ignoring irrelevant background details.

DBC relies on bisimulation metrics. Two states are considered "bisimilar" if they yield the same immediate reward and result in equivalent distributions of future states. Instead of a reconstruction loss, DBC minimizes a loss function enforcing a simple rule: the distance between two latent representations must equal the difference in their immediate rewards plus the distance between their predicted next-state distributions.

The "aha moment" of this approach is behavioral equivalence. An agent doesn't need to know what an object looks like; it only needs to know how it behaves relative to the goal. If a red car and a blue truck block a path in the exact same way, DBC treats them as the same state.

Key Results and Performance

The authors evaluated DBC against state-of-the-art baselines (like SLAC and DeepMDP) across standard DeepMind Control (DMC) tasks, DMC tasks modified with complex distractors, and the CARLA driving simulator.

  • Robustness to Distraction: In a modified DMC setting where a natural video plays in the background, standard methods like SLAC failed completely. DBC, however, maintained performance nearly identical to the "clean" version of the task.
  • High-Fidelity Driving (CARLA): In a complex highway driving task, the agent must navigate traffic while ignoring visual changes like clouds, weather, and time of day. DBC achieved a 46.8% improvement in success rate over the next best baseline by successfully learning to ignore the sky and roadside scenery.
  • Zero-Shot Generalization: An agent trained with simple moving circle distractors was able to generalize to natural video backgrounds without further training, proving it had learned to ignore the background entirely.

Theoretical Insights and Future Work

Beyond empirical success, the paper provides a theoretical bridge to causal inference. The authors prove that bisimulation partitions correspond to the "causal ancestors" of the reward. If a variable doesn't causally affect the reward or future movement, DBC will eventually learn to ignore it. Furthermore, they provide a theoretical guarantee that the error in the agent's value function is bounded by the quality of the bisimulation representation.

While highly effective, DBC currently assumes a "Block MDP" structure, meaning the current image (or a small stack of images) contains all necessary information, which may not hold in highly partially-observed environments. Additionally, while DBC avoids the computational cost of a heavy image decoder, calculating distances between all pairs in a batch for the bisimulation loss introduces its own overhead. Future work may explore using DBC's latent dynamics model for multi-step planning to further boost performance.

Summary updated

BibTeX
@inproceedings{zhang2021learning,
  author = {Amy Zhang and Rowan Thomas McAllister and Roberto Calandra and Yarin Gal and Sergey Levine},
  title = {{Learning Invariant Representations for Reinforcement Learning without Reconstruction}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=-2FCwDKRREu},
}
Figure