Towards Control-Centric Representations in Reinforcement Learning from Images

Chen Liu, Hongyu Zang, Xin Li, Yong Heng, Yifei Wang, Zhen Fang, Yisen Wang, Mingzhong Wang · Submission to ICLR 2024 · Rejected

TL;DR

Learning visual representations that ignore background distractions while capturing critical control dynamics is a core challenge in image-based reinforcement learning (RL). This paper introduces ReBis, a framework that pairs bisimulation metrics with masked latent-space reconstruction driven by a Transformer. By combining behavioral similarity with reward-free predictive modeling, ReBis resolves bisimulation's catastrophic feature collapse in sparse-reward environments and significantly boosts sample efficiency on Atari and DeepMind Control benchmarks.

What Problem Does This Paper Address?

When RL agents learn directly from raw pixels, observations are cluttered with high-dimensional redundancies and task-irrelevant visual noise (like an uncontrollable background video). While bisimulation metrics offer a theoretically grounded way to map states by their behavioral equivalence (grouping states with similar immediate rewards and future transition distributions), standard implementations face two critical pitfalls:

  1. Inaccurate Dynamics Modeling: Standard bisimulation approaches approximate latent transitions with Gaussian distributions, which struggle to capture multi-modal, complex environments and can lead to unboundedly expanding estimation errors.
  2. Feature Collapse in Sparse Rewards: Because bisimulation relies heavily on reward signals, in environments where rewards are sparse or constantly zero, the bisimulation loss collapses: all states are judged identical ($d^\pi(s_i, s_j) = 0$), wiping out essential state information needed for control.

Methods

The authors propose ReBis (latent REconstruction with BISimulation measurement), an auxiliary representation learning framework:

Masked Frames ──> Online CNN ──> Transformer ──> Predicted Latent ──┐
                                                                     ├─> Latent Recon Loss
Original Frames ──> Target CNN (EMA) ─────────────> Target Latent ───┴─> Bisimulation Loss
  • Spatiotemporal Masking & Siamese Encoding: ReBis samples consecutive observation sequences and applies 3D block-wise (cube) masking to remove visual redundancy. Masked observations pass through an online CNN encoder $\phi$, while unmasked observations pass through an exponential moving average (EMA) momentum encoder $\hat{\phi}$.
  • Transformer as Implicit Dynamics: Instead of reconstructing raw pixels (which retains unhelpful background details) or using an explicit Gaussian transition model, a Transformer encoder processes the masked latent states alongside action embeddings and relative position tokens. The Transformer acts as a highly expressive, multi-modal implicit dynamics model.
  • Dual Learning Objective: $$\mathcal{L} = \mathcal{L}_{\text{behavior}} + \beta \mathcal{L}_{\text{reconstruction}}$$
  • $\mathcal{L}_{\text{behavior}}$ minimizes the mean squared error between the cosine distance of target embeddings and their bisimulation-projected distance.
  • $\mathcal{L}_{\text{reconstruction}}$ forces the Transformer's output to match the target encoder’s unmasked representations, preserving reward-free, control-centric temporal dynamics.

Datasets

  • Atari-100k: 26 discrete-control games limited to 100k interaction steps (400k frames), used to benchmark sample efficiency with a Rainbow RL base agent.
  • DeepMind Control Suite (DMControl-500k & 100k): 11 continuous-control tasks powered by MuJoCo, tested using Soft Actor-Critic (SAC), featuring challenging exploration and sparse rewards (e.g., Cartpole Swingup Sparse, Finger Turn Hard, Ball in Cup Catch).
  • DMControl with Natural Distractions: Standard DMControl environments modified by superimposing video backgrounds from the Kinetics human action video dataset to test generalization and robustness against visual noise.

Key Insights and Ideas

  • Reconstruction Prevents Bisimulation Collapse: The authors prove that zero-reward settings cause trivial state collapse in bisimulation (Theorem 4). However, using asymmetric latent prediction acts as a low-pass spectral filter that strictly increases the effective rank (dimensionality) of the representations with every gradient step (Theorem 5), completely preventing collapse.
  • Latent over Pixel Reconstruction: Reconstructing pixel frames forces models to waste capacity modeling irrelevant background textures. Reconstructing latent features retains only the high-level spatiotemporal structure needed for decision-making.
  • Lower Masking Ratios in Control: While computer vision masked autoencoders (MAE) often mask 80–90% of visual patches, the authors discovered that an optimal masking ratio for control sequences is around 50%. Higher masking ratios strip away tiny, essential control details (like the position of a small ball or joint tip).

Key Results

  • Atari-100k: ReBis achieved the highest Interquartile Mean (IQM: 0.501) and lowest Optimality Gap (OG: 0.488) among all compared methods (including MLR, SimSR, PlayVirtual, SPR, and DrQ), setting top scores in 16 out of 26 games.
  • Sparse Reward Continuous Control: On DMControl-500k, ReBis outperformed all baselines. In Cartpole Swingup Sparse, ReBis reached an average score of 518 ± 45, compared to SimSR's 103 ± 59 and MLR's 67 ± 27 (DrQ and CURL scored 0).
  • Robustness to Distractions: When tested on unseen Kinetics video backgrounds, ReBis maintained high performance where others degraded sharply (e.g., scoring 216 ± 15 on distracted Cartpole Swingup Sparse vs. $\le 25$ for all baselines). Grad-CAM heatmaps confirmed that ReBis strictly focuses on controllable body joints while ignoring moving background scenes.

Limitations and Future Work

  • Computational Overhead: Incorporating a Transformer into the representation module adds computational cost compared to simple CNN encoders (though wall-clock training was slightly faster than MLR: 8.1 vs. 8.6 hours on Atari).
  • Deployment & Pretraining: Future research could extend ReBis to offline RL datasets, using the framework as a general pretraining objective to produce frozen, control-centric encoders for downstream policy learning.

Summary updated

BibTeX
@misc{liu2023towards,
  author = {Chen Liu and Hongyu Zang and Xin Li and Yong Heng and Yifei Wang and Zhen Fang and Yisen Wang and Mingzhong Wang},
  title = {{Towards Control-Centric Representations in Reinforcement Learning from Images}},
  year = {2023},
  eprint = {2310.16655},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16655},
}
Figure