Abstract
Visual Reinforcement Learning (VRL) agents often struggle to generalize when faced with task-irrelevant visual distractions. This paper introduces a novel representation learning approach that trains agents to predict the Reward Sequence Distribution (RSD-OA)—the probabilistic distribution of future rewards conditioned on an initial observation and a sequence of actions. By focusing on reward dynamics rather than observation transitions, the proposed CRESP-T framework enables agents to capture essential task physics while remaining invariant to visual noise. Experimental results on the Distracting Control Suite demonstrate significant performance improvements over state-of-the-art baselines.
Introduction
Reinforcement Learning from pixels has enabled agents to solve complex control tasks. However, a significant hurdle remains: generalization. An agent trained in a specific visual environment often fails when deployed in a setting with different backgrounds or lighting, even if the underlying task dynamics are identical. This paper addresses this challenge by proposing a representation learning signal that is inherently invariant to visual distractions.
The Generalization Gap in VRL
In Partially Observed Markov Decision Processes (POMDPs), image observations contain both task-relevant information (e.g., joint angles) and task-irrelevant distractions (e.g., moving backgrounds). Traditional self-supervised methods often learn features by predicting future observations. However, this creates a "trap": because future observations include distractions, the agent ends up modeling the noise itself. When the noise changes in a new environment, the learned representations fail to generalize.
Reward Sequence Distribution (RSD-OA)
The authors propose using the Reward Sequence Distribution (RSD-OA) as a supervision signal. RSD-OA is the distribution of a sequence of future rewards given a starting observation and a predefined sequence of actions.
Crucially, rewards are tied to the underlying task state, not the visual pixels. Therefore, the mapping from a latent state to a reward sequence is invariant to visual distractions. By conditioning the prediction only on the initial observation and a sequence of actions, the model never needs to process distracting future frames during representation learning. This forces the encoder to extract only the features from the first frame that are necessary to predict the task's progression, effectively treating reward as a proxy for physics.
The CRESP-T Framework
To implement this idea, the authors developed CRESP (Characteristic Reward Sequence Prediction). Since reward distributions can be complex, CRESP utilizes characteristic functions—the Fourier transform of a probability density function—to represent and compare distributions efficiently in spectral space.
CRESP-T is an enhanced version that employs a Transformer architecture to model temporal dependencies within action and reward sequences. It introduces a spectral cosine similarity loss to capture the "phase" information of the reward distribution, making the learning process more robust. As shown in the architecture diagram, the encoder $\Phi$ produces a representation that is used by both the RL agent (Actor-Critic) and the CRESP-T predictor $\Psi$.
Experimental Evaluation
The method was evaluated using the DeepMind Control (DMC) Suite combined with the Distracting Control Suite (DCS). The DCS introduces dynamic backgrounds (using DAVIS 2017 videos) and smoothly shifting colors. Agents were trained in environments with limited distractions and tested in unseen environments with significantly stronger noise to measure zero-shot generalization.
Performance and Robustness
CRESP-T demonstrated substantial leads over state-of-the-art baselines such as DrQ, CURL, and DBC.
As illustrated in the results, CRESP-T achieved an average gain of +20.1% in dynamic background settings and a dramatic +55.1% in dynamic color settings compared to the best prior methods. Furthermore, CRESP-T outperformed the basic CRESP model by an average of 23.5%, validating the use of the Transformer architecture for capturing long-term dependencies. Visualization via t-SNE confirmed that CRESP-T groups observations based on underlying physical states rather than visual similarities of distractions. While the Transformer adds some overhead, training remains computationally feasible, requiring approximately 32 hours on a single consumer-grade GPU.
Conclusion
By shifting the focus from observation prediction to reward sequence distribution prediction, this work provides a robust path toward generalizable Visual Reinforcement Learning. The CRESP-T framework effectively filters out visual noise, capturing the essential dynamics of the task. Future work may explore the application of this approach to offline RL and environments with highly sparse or noisy reward signals.
Summary updated