Abstract
Learning self-supervised representations using reconstruction or contrastive losses improves performance and sample complexity of image-based and multimodal reinforcement learning (RL). Here, different self-supervised loss functions have distinct advantages and limitations depending on the information density of the underlying sensor modality. Reconstruction provides strong learning signals but is susceptible to distractions and spurious information. While contrastive approaches can ignore those, they may fail to capture all relevant details and can lead to representation collapse. For multimodal RL, this suggests that different modalities should be treated differently based on the amount of distractions in the signal. We propose Contrastive Reconstructive Aggregated representation Learning (CoRAL), a unified framework enabling us to choose the most appropriate self-supervised loss for each sensor modality and allowing the representation to better focus on relevant aspects. We evaluate CoRAL's benefits on a wide range of tasks with images containing distractions or occlusions, a new locomotion suite, and a challenging manipulation suite with visually realistic distractions. Our results show that learning a multimodal representation by combining contrastive and reconstruction-based losses can significantly improve performance and solve tasks that are out of reach for more naive representation learning approaches and other recent baselines.
Introduction
Reinforcement Learning (RL) agents in real-world scenarios must process a variety of sensory inputs, typically combining high-dimensional visual data from cameras with low-dimensional, precise internal states known as proprioception (e.g., joint angles and velocities). The challenge lies in how to represent this multimodal data effectively.
Traditionally, researchers have relied on two main paths: reconstruction, where the agent attempts to re-draw its observations, and contrastive learning, where the agent learns to distinguish between similar and different scenes. While reconstruction provides a rich learning signal, it often fails when environments contain irrelevant "noise," such as a moving background. Conversely, contrastive learning is robust to noise but can miss fine-grained details or suffer from representation collapse. This paper argues that a "one-size-fits-all" loss function is suboptimal for multimodal agents and proposes a hybrid approach.
Methodology: The CoRAL Framework
The authors introduce CoRAL (Contrastive Reconstructive Aggregated representation Learning), a unified framework built on Recurrent State Space Models (RSSMs). CoRAL's core innovation is the ability to assign different self-supervised learning objectives to different sensors based on their information density.
CoRAL leverages the mathematical insight that likelihood-based reconstruction and mutual information-based contrastive losses are interchangeable. This allows the framework to use a reconstruction loss for proprioception—where every bit of data is task-relevant—and an InfoNCE contrastive loss for images to ignore environmental "noise." The framework comes in two primary "flavors":
- V-CoRAL (Variational): Acts as a "spatial filter," focusing on the current timestep to filter out static visual distractions.
- P-CoRAL (Predictive): Acts as a "temporal filter," focusing on predicting the future. This is particularly effective for tasks involving occlusions, where the agent must maintain an internal representation of objects even when they are temporarily hidden.
Experimental Setup
The researchers evaluated CoRAL across three increasingly difficult suites:
- Modified DeepMind Control (DMC) Suite: Standard tasks (like Cheetah Run) modified with random video backgrounds and moving disk occlusions.
- Locomotion Suite: Six tasks where agents (e.g., Ant or Cheetah) navigate obstacles using egocentric (first-person) vision.
- Manipulation Suite: Built on ManiSkill2, featuring tasks like opening cabinets or picking up cubes against visually realistic backgrounds with varying lighting conditions.
Key Results and Insights
CoRAL consistently outperformed baselines that applied the same loss function to all modalities. In the challenging Manipulation suite, V-CoRAL achieved a 68% success rate, while naive approaches using only contrastive losses or simple concatenation failed almost entirely, often yielding less than a 10% success rate.
Information Density and Anchoring
A critical insight from the study is that different sensors have different information densities. Proprioception is "dense" (every bit is useful), while images are "sparse" (most pixels are irrelevant background). By anchoring the representation with a reconstruction loss on proprioception, the agent maintains a stable "ground truth" of its own body. This stability prevents the contrastive visual representation from collapsing, allowing the agent to focus on task-relevant visual features.
Robustness to Occlusion
On DMC tasks with occlusions, P-CoRAL reached a return of approximately 750, nearly matching the performance of agents seeing perfectly clear images. Image-only contrastive methods struggled in these scenarios, often failing to beat a baseline that only had access to proprioceptive data. This highlights the importance of the predictive temporal filtering provided by the P-CoRAL variant.
Conclusion and Future Work
CoRAL demonstrates that combining contrastive and reconstruction-based losses can significantly improve multimodal RL performance, especially in distracted or occluded environments. While the framework currently requires a manual choice between V-CoRAL and P-CoRAL based on the task type, future work could explore automated methods for balancing these objectives. Additionally, while CoRAL improves model-based efficiency, closing the performance gap between model-free and model-based agents in high-noise environments remains an open challenge.
Summary updated