Introduction
In the field of visual Reinforcement Learning (RL), agents are typically trained within pristine, simulated environments characterized by static backgrounds and controlled lighting. However, the transition from simulation to the real world introduces significant challenges. Real-world environments are inherently "noisy," containing flickering screens, moving shadows, and cluttered backgrounds that are irrelevant to the task at hand. Standard visual RL models often struggle in these settings because they attempt to process and model every visual element within their field of view, regardless of its relevance.
Researchers from the University of Washington and MIT have introduced RePo (Resilient Model-Based RL), a framework designed to help agents distinguish between task-relevant signals and "spurious variations." By regularizing the predictability of internal representations, RePo enables robots to ignore environmental noise and adapt to novel visual scenes without retraining their underlying policies.
The Problem: The Cost of Reconstruction
Visual model-based RL agents generally encode high-dimensional images into low-dimensional "latent states." Popular architectures, such as Dreamer, achieve this by utilizing a reconstruction loss—essentially trying to recreate the original image from the latent state. While effective in simple environments, this approach creates a vulnerability: the agent exhausts its limited computational capacity attempting to model every distractor, such as a moving leaf or a background television.
When these agents encounter a distribution shift—moving from a training environment to a new scene with different background features—they often fail. Their visual encoders encounter unfamiliar features that they were never trained to ignore, leading to a breakdown in the agent's decision-making process.
Methodology
RePo addresses these vulnerabilities through two primary innovations: Predictability-Regularized Representations and Test-Time Adaptation (TTA) via Support Constraints.
1. Predictability-Regularized Representations
Instead of relying on a reconstruction loss, RePo utilizes an Information Bottleneck. The objective is to maximize the mutual information between the latent state and the reward while simultaneously minimizing the information flow from the raw observation to the latent state.
This is achieved by forcing the "latent posterior" (the state calculated with the current image) to match the "latent prior" (the state predicted based on previous states and actions, without the current image). If a visual feature is unpredictable and does not contribute to reward prediction, the bottleneck forces the model to discard it. This effectively filters out task-irrelevant distractors that are not influenced by the agent's actions.
2. Test-Time Adaptation (TTA) via Support Constraints
To handle new environments, RePo introduces a reward-free alignment procedure. Traditional domain adaptation often attempts to match the exact data distributions of two environments, which is difficult in RL where agent behavior changes. RePo instead employs a support constraint. This ensures that the features produced in a new environment fall within the "support" (the range and style) of the features encountered during training. This allows the agent to re-align its visual processing to a new background using only a few unlabeled trajectories.
Experimental Evaluation
The researchers evaluated RePo across three distinct domains:
- Distracted DeepMind Control (DMC) Suite: Standard benchmarks (e.g., Walker, Cheetah) modified with high-definition natural videos playing in the background.
- Realistic ManiSkill: A robot manipulation benchmark featuring cluttered 3D scans of human homes from the Matterport3D dataset.
- Lazy TurtleBot: A real-world deployment where a physical mobile robot navigated a room while two televisions played random YouTube videos.
Results and Key Insights
RePo demonstrated superior robustness and adaptation capabilities compared to established baselines like Dreamer and TD-MPC:
- Robustness to Distraction: On the Distracted DMC suite, RePo achieved higher returns and faster learning by successfully ignoring video backgrounds. In ManiSkill's cluttered environments, RePo reached saturating performance, while Dreamer failed by attempting to memorize irrelevant furniture details.
- Real-World Success: In the TurtleBot navigation task, RePo achieved a 62.5% success rate. In contrast, Dreamer failed completely (0% success) as it was unable to ignore the background televisions.
- Efficient Adaptation: Through its TTA scheme, RePo recovered near-peak performance in new environments within 50,000 environment steps, even without access to a reward signal in the new domain.
Discussion and Future Work
The core insight of RePo is that "lossless" compression is a liability in noisy environments. By intentionally discarding information that is neither predictable nor reward-relevant, the agent becomes more focused and parsimonious.
However, this approach results in task-specific models; because RePo discards everything not related to the current reward, the learned dynamics model cannot be easily repurposed for different tasks in the same environment. Future research may explore multi-task versions of RePo that predict multiple reward objectives to create more versatile, yet still robust, representations. Additionally, the authors aim to investigate how regularized predictability can support continual learning in ever-changing human-centric environments.
Summary updated