EqR: Equivariant Representations for Data-Efficient Reinforcement Learning

Arnab Kumar Mondal, Vineet Jain, Kaleem Siddiqi, Siamak RavanbakhshICLR 2022

TL;DR

Deep Reinforcement Learning (RL) is notoriously data-hungry, often requiring millions of interactions to learn even simple tasks. To address this, researchers introduce EqR (Equivariant Representations for RL), a method that forces an AI's internal model of the world to obey mathematical symmetries using Lie groups. By structuring the latent space so that complex visual changes become simple matrix multiplications, EqR drastically improves learning speed and sets a new state-of-the-art on the data-limited Atari 100K benchmark.

The Challenge of Sample Efficiency

In deep RL, agents typically learn by trial and error, using only a sparse reward signal (like a game score) to figure out how to process high-dimensional inputs (like raw pixels). This approach is incredibly inefficient.

To speed up learning, researchers try to give the AI "inductive biases"—helpful assumptions about how the world works. One powerful assumption is symmetry (e.g., a car behaves the same way whether it is on the left side of the screen or the right). However, previous attempts to use symmetries in RL either required humans to hard-code the exact transformations beforehand or only worked with simple, linear visual changes. Real-world and video game symmetries are often complex and non-linear. This paper tackles the challenge of learning these non-linear symmetry transformations directly from the data to make RL vastly more sample-efficient.

Methods: Structuring the Latent Space

The authors propose a latent variable model that maps high-dimensional image states into a structured mathematical space.

Commutative diagram illustrating the action and group equivariant transitions in the latent space.

Here is how the framework operates:

  • Lie Algebraic Parameterization: Instead of standard vector embeddings, the model encodes states and actions as matrices belonging to a Lie group (specifically, subgroups like SE(2), which handles 2D translations and rotations). This is the secret sauce: it guarantees that transformations in the latent space are linear and mathematically well-behaved, even if the visual changes in the pixel space are messy and non-linear.
  • Latent Transition Model: To predict the next state, the model simply multiplies the current state matrix by the action matrix.
  • Symmetry-Based Losses: The network is trained using three specific loss functions:
  • Action Equivariant Transition Loss ($L_{AET}$): Ensures that taking an action in the real world matches the matrix multiplication in the latent space.
  • Group Equivariant Transition Loss ($L_{GET}$): Ensures the transition rules remain consistent even if the state-action pair undergoes a symmetry transformation (e.g., the physics of a jumping character shouldn't change just because we shifted the camera).
  • Reward Loss ($L_R$): Matches the latent state to the actual game reward to prevent the representation from collapsing into meaningless noise.

The authors bolt this representation learning engine onto a standard model-free RL algorithm (Rainbow DQN) augmented with self-predictive techniques.

Key Insights

  • Linearizing the Non-Linear: The most elegant insight is that by forcing embeddings into a Lie group, highly non-linear visual transformations (like a sprite rotating and scaling in pixels) are untangled into clean, linear matrix multiplications in the AI's "brain."
  • Decoupling Physics from Rewards: The authors note that the "physics" of an environment often have symmetries that the rewards do not (e.g., moving in a 2D grid is symmetric, but the reward is only at one specific non-symmetric goal location). By modeling transition symmetries separately from reward symmetries, the model gains a much stronger, more accurate inductive bias.
  • Disentanglement via Blocks: By structuring the latent space as a combination of independent "blocks" (subgroups), the model naturally disentangles different moving parts of the environment. If one object moves, only one block of the matrix needs to update.

Key Results on Atari 100K

The model is evaluated on the Atari 100K benchmark, a notoriously difficult variation of the standard Atari suite (26 games) where the agent is only allowed 100,000 environment steps to learn. This equates to roughly two hours of human gameplay, making it the gold standard for testing data-efficient RL.

Aggregate performance metrics comparing EqR variants against baselines on the Atari 100K benchmark.
  • State-of-the-Art Efficiency: EqR significantly outperforms comparable data-efficient RL methods (like SPR, DrQ, CURL, and DER).
  • Quantitative Leap: The best EqR model achieves a Mean Human-Normalized Score (HNS) of 0.886, a massive jump over the previous best baseline (SPR at 0.704).
  • Super-human Performance: Within just 100K steps, the model achieved super-human performance on 8 out of the 26 games, and beat all prior methods on 13 of them.
  • Ablation Findings: The action-equivariance loss ($L_{AET}$) provides the largest performance boost. Adding strict group equivariance ($L_{GET}$) helps significantly in 17 specific games that feature strong inherent symmetries (like Pong or Freeway).

Limitations and Future Work

The authors acknowledge that enforcing strict symmetry ($L_{GET}$) can actually hurt performance in games that contain highly asymmetric elements. The model currently lacks a theoretically grounded way to gracefully combine symmetric and asymmetric features.

Looking forward, the authors plan to apply this framework to pure model-based RL and test it in 3D continuous control environments (like robotics simulations in MuJoCo), where 3D spatial symmetries (the SE(3) Lie group) are highly relevant. They also suggest exploring how these representations can help agents generalize across entirely different tasks.

Summary updated

BibTeX
@inproceedings{mondal2022eqr,
  author = {Arnab Kumar Mondal and Vineet Jain and Kaleem Siddiqi and Siamak Ravanbakhsh},
  title = {{EqR: Equivariant Representations for Data-Efficient Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=4JlwgTbmzXQ},
}
Figure