Combining Reconstruction and Contrastive Methods for Multimodal Representations in RL

Philipp Becker, Sebastian Mossburger, Fabian Otto, Gerhard Neumann

TL;DR

Reinforcement learning (RL) agents interacting with the physical world often receive a mixture of high-dimensional, noisy sensory inputs (like vision) and compact, clean internal signals (like proprioception). Rather than treating every modality with the same learning objective, CoRAL (Contrastive Reconstructive Aggregated representation Learning) applies contrastive losses to visual streams to filter out visual distractions while using reconstruction losses on proprioception to anchor precise physical dynamics. This asymmetric combination consistently outperforms uniform representation strategies across 26 diverse continuous control, locomotion, and manipulation tasks.

What Problem Does This Paper Address?

In visual RL, agents are commonly plagued by task-irrelevant distractors (e.g., dynamic backgrounds, lighting shifts, and occlusions). Generative world models based on Recurrent State Space Models (RSSMs) typically train via observation reconstruction:

  • Reconstruction forces the model to capture all visual details, causing it to waste capacity on spurious background noise.
  • Contrastive learning discards task-irrelevant visual information well, but risks representation collapse and often fails to capture fine-grained physical dynamics needed for control.

Real-world robots, however, do not rely on vision alone; they have direct access to low-dimensional proprioception (joint angles, velocities, torques). Previous multimodal RL approaches either apply a single loss across all inputs or naively concatenate proprioceptive features to image embeddings. This paper asks: Can we achieve the best of both worlds by tailoring self-supervised objectives to the unique information density of each modality?

Methods

CoRAL introduces a unified framework within RSSMs that pairs different self-supervised objectives based on the sensor type:

  1. Interchangeable Representation Losses: By recognizing that likelihood-based reconstruction $\mathbb{E}[\log p(o \mid z)]$ can be formally swapped with mutual information $I(o, z)$ estimated via InfoNCE bounds, the authors mix-and-match loss terms across sensor modalities:
  2. Contrastive loss (InfoNCE) for high-dimensional visual modalities (RGB/Depth) to ignore task-irrelevant visual clutter.
  3. Reconstruction loss (log-likelihood) for concise, low-dimensional proprioceptive signals to prevent latent collapse and preserve dynamics.
  4. Two Instantiations:
  5. Variational CoRAL (V-CoRAL): Generalizes the variational lower bound (ELBO) by replacing the visual reconstruction likelihood with an InfoNCE mutual information estimate between current latent state $z_t$ and image $o_t$.
  6. Predictive CoRAL (P-CoRAL): Built on Contrastive Predictive Coding (CPC), maximizing mutual information between the prior latent state $z_{t-1}$ and the future observation $o_t$, paired with a one-step-ahead proprioceptive reconstruction likelihood and a small KL regularization term.
  7. Versatile Backbones: CoRAL representations support both model-free policies (Soft Actor-Critic) and model-based policies (latent imagination).
   [ Proprioception ] ──> [ Encoder ] ──┐
                                       ├──> [ RSSM Latent State z_t ] ──> Policy / Critic
   [ Egocentric Vision] ─> [ Encoder ] ──┘         │             │
                                                   │             ▼
                         Reconstruction Loss <─────┘      Contrastive Loss
                         (Log-Likelihood)                 (InfoNCE / Mutual Info)

Datasets & Benchmarks

The authors evaluate CoRAL across 26 continuous control tasks grouped into four suites:

  • DeepMind Control (DMC) with Video Backgrounds: 7 standard DMC tasks rendered over complex, colored videos from the Kinetics-400 dataset.
  • DMC with Occlusions: 7 DMC tasks occluded by moving disks, testing temporal state tracking under partial observability.
  • Locomotion Suite (New): 6 tasks (e.g., Hurdle Cheetah, Hurdle Walker, Ant Walls, Quadruped Escape) where agents must fuse egocentric vision to detect obstacles and proprioception to navigate and balance.
  • Manipulation Suite (New): 6 tasks built on ManiSkill2 with photo-realistic ReplicaCAD scenes and varying lighting. Tasks test static manipulation (LiftCube, PushCube, TurnFaucet) and mobile manipulation (OpenCabinetDrawer in RGB/Depth and OpenCabinetDoor in RGBD) across randomized object geometries and positions.

Key Insights and Ideas

  • Asymmetric Losses Prevent Failure Modes: Grounding the latent dynamics in proprioceptive reconstruction prevents contrastive visual features from collapsing, while contrastive vision prevents background noise from poisoning the world model.
  • Variational vs. Predictive Trade-off:
  • V-CoRAL excels in filtering out static visual distractors and scene noise (dominant in Video Backgrounds and Manipulation).
  • P-CoRAL excels when agents must propagate information across time under partial observability (dominant in Occlusions and Locomotion).
  • Narrowing the Model-Based Gap: Contrastive world models notoriously underperform model-free agents in RL. Retaining reconstruction on proprioception allows CoRAL to learn significantly better forward dynamics, nearly closing this performance gap.

Key Results

  • Occlusions: P-CoRAL achieves an aggregate interquartile mean (IQM) return of ~750, approaching the distractor-free benchmark (~900). Ablations using a single modality or naive feature concatenation fail to exceed 200.
  • Manipulation: On photorealistic ManiSkill2 tasks, V-CoRAL achieves a 68% success rate and P-CoRAL achieves 58%. Fully contrastive baselines fail completely (~0%), and no ablative variant surpasses 42%.
  • Locomotion: P-CoRAL significantly outpaces purely reconstructive world models and baselines like DrQ-v2 and RePo, particularly when obstacle colors are randomized.

Limitations and Future Work

  • No Single Winner: Neither V-CoRAL nor P-CoRAL universally dominates; picking the best paradigm currently depends on whether the dominant environmental challenge is visual noise vs. temporal occlusion.
  • Manual Modality Routing: The choice of which loss applies to which modality is hand-engineered based on prior knowledge of sensor properties rather than learned adaptively.
  • Model-Based Lag: Although CoRAL mitigates the contrastive degradation in world models, model-free learners still occasionally outperform model-based latent imagination when contrastive image losses are used.

Summary updated

BibTeX
@inproceedings{becker2024combining,
  author = {Philipp Becker and Sebastian Mossburger and Fabian Otto and Gerhard Neumann},
  title = {{Combining Reconstruction and Contrastive Methods for Multimodal Representations in RL}},
  booktitle = {ARLET @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=WU3fhJw4Jv},
}
Figure