Task-Relevant Representation Decoupling for Visual Reinforcement Learning Generalization


Abstract

Visual Reinforcement Learning (VRL) has achieved considerable success in solving control tasks. However, generalizing learned policies to new environments remains a major challenge, as agents often overfit to task-irrelevant features in the training environment. To solve this problem, we introduce the concept of decoupling observations into task-relevant and task-irrelevant representations. Building on this idea, we propose a self-supervised Task-Relevant Representation Decoupling (T2RD) algorithm for VRL. This algorithm consists of three components: task-relevant representation consistency, cross-reconstruction, and cross-dynamic prediction. The first two components achieve the decoupling of content and style features, but the resulting content representations are not necessarily task-relevant. To further refine task-relevant features from content representations, we design the third component that introduces dynamic prediction. T2RD achieves State-Of-The-Art (SOTA) generalization performance and sample efficiency in the DeepMind Control Suite and Robotic Manipulation tasks.

<ccs2012> <concept> <concept_id>10010147.10010178.10010224.10010240.10010241</concept_id> <concept_desc>Computing methodologies Image representations</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10010147.10010178.10010224.10010225</concept_id> <concept_desc>Computing methodologies Computer vision tasks</concept_desc> <concept_significance>500</concept_significance> </concept> </ccs2012>

1 Introduction↩︎

Visual Reinforcement Learning (VRL) has achieved tremendous success in various fields, including video games [1], [2], robotic manipulation [3][5], and autonomous navigation [6], [7]. However, high-dimensional image observations inherently contain redundant, task-irrelevant details, which makes the agent prone to overfitting the training environment. This poses significant challenges in generalizing learned policies to new environments with visual changes. Therefore, it is crucial to improve the generalization ability of VRL.

To learn policies robust to visual changes, previous methods can be broadly categorized into two types. One is data augmentation  [8][12], aiming to cover sufficient environmental changes during training that also exist in the testing environment. The other is designing self-supervised auxiliary tasks [13][18] to assign certain properties to the representation. However, representations obtained from previous self-supervised auxiliary tasks don’t explicitly strip away task-irrelevant information. The policies based on these representations may also overfit to task-irrelevant features, thereby affecting policies’ generalization ability.

To address this problem, as shown in Figure  1, we propose the idea of decoupling the observations into task-relevant and task-irrelevant representations. Then, the task-relevant representations are utilized to support learning policies. This decoupling idea has two advantages: 1) The representations supporting policy learning are expected to exclude task-irrelevant information, making policies focus more on the task-relevant parts of the observations and thus promoting policy generalization; 2) By explicitly ignoring task-irrelevant features, the burden on the agent to process unnecessary information is reduced, thereby improving sample efficiency.

Figure 1: The core idea of our method. We decouple the visual observation into task-relevant representation and task-irrelevant representation. Task-relevant representations have domain-invariant properties, allowing them to generalize well across different domains.

Based on the idea mentioned above, we introduce the Task-Relevant Representation Decoupling (T2RD) method for VRL, which is capable of zero-shot generalization to unseen visual scenarios. Specifically, to achieve the decoupling effect, T2RD consists of three components: task-relevant representation consistency, cross-reconstruction, and cross-dynamic prediction. The first two components are designed to separate content and style features visually. However, the resulting content representations may not necessarily be task-relevant. To further refine task-relevant features from the content representation, we designed the third component that integrates dynamic prediction, thereby achieving the decoupling of task-relevant and task-irrelevant features.

T2RD has two principal advancements: 1) Its representation decoupling module is self-supervised. Although there are similar decoupling ideas [19][22] in the field of Computer Vision (CV), most of them are supervised and require labeled datasets or even paired datasets. 2) It is more suitable for VRL tasks. Compared to methods that merely perform foreground-background segmentation [23] or content-style separation [24], our decoupling approach is more applicable to generalization tasks in VRL, achieving separation between task-relevant and task-irrelevant features.

Additionally, we propose a simple yet effective combined data augmentation technique for VRL. Recent methods mostly select a single data augmentation technique [11], [14], [15], [25]. However, these methods suffer from generalization bias, meaning that their generalization ability is heavily influenced by what data augmentation techniques they choose. By simply combining Random Convolution [14] and Random Overlay [25], we increase the diversity of augmentations, alleviating the generalization bias and thereby improving the algorithm’s generalization performance.

We conduct extensive experiments on two benchmarks: DeepMind Control Suite Generalization Benchmark (DMControl-GB)  [25], [26] and Robotic Manipulation  [27]. The agent is trained in a fixed environment and evaluated for its generalization ability to unseen environments during training. The experimental results demonstrate that our method exhibits state-of-the-art generalization performance and sample efficiency.

Our main contributions are emphasized as follows:

  • We introduce the concept of decoupling observations into task-relevant features and task-irrelevant features in VRL, and then use only task-relevant features for policy learning.

  • We propose a self-supervised representation decoupling framework suitable for VRL, which can effectively achieve the decoupling of task-relevant features and task-irrelevant features.

  • We propose a simple yet effective combined data augmentation technique, which significantly improves the generalization performance of VRL, as evidenced by experiments.

  • Extensive experiments prove that T2RD achieves state-of-the-art generalization performance and sample efficiency.

2 RELATED WORK↩︎

2.1 Data Augmentation in Visual RL↩︎

Data augmentation has been shown to improve the generalization ability of visual reinforcement learning algorithms. RAD  [8] pioneers the broad application of data augmentation in RL, improving sample efficiency and generalization. DrQ  [9] aggregates multiple data augmentations, regularizing learning directly from pixels by averaging across multiple image transformations for the Q-function and Q target function. SODA  [14] proposes a soft data augmentation method that decouples data augmentation from policy learning and introduces a novel data augmentation approach that linearly adds observations with additional images. TLDA  [11] introduces task-aware Lipschitz data augmentation, explicitly identifying task-relevant pixels with large Lipschitz constants and augmenting only task-irrelevant pixels. Compared with single data augmentations, our combined data augmentation method increases the diversity of augmentation, which can alleviate the issue of generalization bias. At the same time, using different augmentations improves the network’s robustness to visual changes.

2.2 Generalization in Visual RL↩︎

Researchers have studied how to improve the generalization ability of visual reinforcement learning from various aspects. Beyond data augmentation, existing works primarily pursue generalization by learning invariant representations, which can be broadly categorized into three main approaches. First, one category uses self-supervised objectives to learn representations. These methods impose auxiliary self-supervised tasks on visual data to encourage the model to learn general features beneficial for the task. Representative works include using contrastive learning (CURL [16]), consistency regularization (SODA [14]), domain-invariant representation learning [28], or foreground/saliency extraction (VAI [23], SGQN [29]). Second, another category leverages the intrinsic structure of the Markov Decision Process (MDP) and RL characteristics. This includes using bisimulation metrics [30] to group behaviorally similar states (DBC [17], Chen et al. [31]), achieving policy adaptation after deployment via inverse dynamics prediction (PAD [32]), stabilizing Q-learning through asymmetric data augmentation (SVEA [25]), bidirectionally predicting environment dynamics (BiT [15]), leveraging long-term information [33], or designing temporal contrastive losses [34]. Other strategies involve robustness-oriented learning and analysis [35][37] and designing intrinsic reward systems to achieve self-supervised domain adaptation [38]. While these methods effectively learn a single, robust representation by implicitly ignoring distractors, T2RD’s philosophy is different. We argue for explicitly decoupling an observation into task-relevant and task-irrelevant streams, then using dynamic prediction to ensure the task-relevant stream is behaviorally meaningful, which is a more direct path. Third, a powerful paradigm utilizes pre-trained Visual Foundation Models (VFMs). For instance, some works use SAM for object segmentation to remove background distractors [39], or directly employ general VFM features as input (PIE-G [40], Zhong et al. [41]). However, the features of the segmented objects themselves—their color, texture, or lighting—can still be task-irrelevant and cause overfitting. T2RD is positioned to address this problem by further decoupling an object’s task-relevant state from its superficial appearance.

2.3 Representation Decoupling↩︎

Human perceptual systems often distinguish between content and style to better understand observations [20], and in artificial intelligence, decomposed representations of content and style are also highly needed. In computer vision, for example, Lorenz et al. [42] separate appearance and shape by learning consistent parts across instances of the same category, while Wu et al. [43] introduce a two-branch autoencoder to disentangle objects into content and style representations. Ren et al. [44] propose a content-style disentanglement module by encoding dominant image factors. Yin et al. [24] model the content-style representation as a token-level bipartite graph.

This principle of learning informative representations also extends to visual recognition and spatio-temporal modeling [45], [46], as well as medical image analysis [47], and a related line of work leverages direct human perceptual cues to guide agents; for example, human gaze data can direct an agent’s attention for efficient imitation learning [48], and human-generated saliency has been used to guide value estimation in visual RL [49]. While these methods validate the benefit of isolating task-relevant information, they share a common limitation with most computer vision decoupling approaches: reliance on external supervision, whether paired datasets, labeled medical data, or direct human input. T2RD is distinct in that it learns this decoupling in a self-supervised manner tailored for VRL, using only the standard reward signal without external labels or human guidance.

3 Preliminaries↩︎

3.1 Visual Reinforcement Learning↩︎

Due to the partial observability of images in Visual Reinforcement Learning (VRL), the interaction between an agent and the environment is modeled as a Partially Observable Markov Decision Process (POMDP), represented by the tuple \(\mathcal{M} = \langle \mathcal{S}, \mathcal{O}, \mathcal{A}, \mathcal{P}, \mathcal{Z}, r, \mathcal{\gamma} \rangle\), where \(\mathcal{S}\) is the state space, \(\mathcal{O}\) is the high-dimensional observation space, \(\mathcal{A}\) is the action space, \(\mathcal{P}(\mathbf{s}_{t+1} \mid \mathbf{s}_{t}, a_{t})\) is the state transition function, \(\mathcal{Z}(\mathbf{o}_{t} \mid \mathbf{s}_{t})\) is the observation-emission distribution, \(r:\mathcal{S}\times \mathcal{A}\mapsto \mathbb{R}\) is the scalar reward function, and \(\gamma \in \left [ 0,1 \right )\) is the discount factor.

The objective is to learn the optimal policy \(\pi^*\) that maximizes the cumulative reward return: \[\pi^* = \arg \max_{\pi} \; \mathbb{E}_{\,\mathbf{o}_t \sim \mathcal{Z}(\cdot \mid \mathbf{s}_t),\; a_t \sim \pi(\cdot \mid \mathbf{o}_t),\; \mathbf{s}_{t+1} \sim \mathcal{P}(\cdot \mid \mathbf{s}_t, a_t)} \Big[ \sum_{t=1}^{T} \gamma^t \, r(\mathbf{s}_{t}, a_{t}) \Big]\] starting from the initial state \(\mathbf{s}_0 \in \mathcal{S}\) and taking actions \(a_t\) chosen by the observation-conditional policy \(\pi_{\theta}(\cdot \mid \mathbf{o}_t)\), while observations are generated via \(\mathcal{Z}(\mathbf{o}_t \mid \mathbf{s}_t)\) and the environment transitions to \(\mathbf{s}_{t+1}\) according to \(\mathcal{P}(\cdot \mid \mathbf{s}_t, a_t)\). The policy is parameterized by learnable parameters \(\theta\).

3.2 Generalization in VRL↩︎

In terms of generalization of visual reinforcement learning, we consider a set of POMDPs denoted by \(\mathbf{M} = \{ \mathcal{M}_1, \mathcal{M}_2, \ldots, \mathcal{M}_n \}\), where each POMDP \(\mathcal{M}_i\) has its own observation space \(O_i\) but shares a common underlying state space \(\mathcal{S}\) and state transition function \(\mathcal{P}\). During training, we only have access to a specific POMDP, denoted as \(\mathcal{M}_i\). Our goal is to train an agent on a specific scenario \(\mathcal{M}_i\) to learn a policy \(\pi^*_G\) that maximizes the expected cumulative reward across the entire set of POMDPs \(\mathbf{M}\), in a zero-shot generalization manner.

Figure 2: Overview of our model. Our model includes two branches: the online branch and the target branch. T2RD consists of three components: task-relevant representation consistency, cross-reconstruction, and cross-dynamic prediction. Our objective is to achieve the decoupling of task-relevant and task-irrelevant features through the above three modules. Subsequently, only the task-relevant features are used for policy learning.

4 METHOD↩︎

4.1 Overview↩︎

As shown in Figure 2, we propose Task-Relevant Representation Decoupling (T2RD). Our architecture is inspired by successful self-supervised learning methods such as BYOL [13] and adopts a dual-branch design: an online branch and a target branch. The core idea is that the online branch is trained to learn from the representations produced by the target branch, which evolves slowly and thus provides a stable regression target. This setup mitigates training instability and helps prevent collapse to trivial solutions.

The online branch comprises three components, each serving a distinct purpose: an encoder \(f_{\theta}\) that extracts latent representations from pixels, a dual-head projection \(g_{\theta}\) that decouples the representation into task-relevant content and task-irrelevant style, and a predictor head \(h_{\theta}\) that learns to predict the target-branch representation from the online-branch representation. By requiring a non-trivial mapping between the online and target branches, this predictor helps avoid representation collapse. The target branch has a structurally identical encoder \(f_{\varphi}\) and dual-head projection \(g_{\varphi}\), but no predictor.

For policy learning, we adopt Soft Actor-Critic (SAC) [50]. As shown in Figure 3, the T2RD module serves as a representation learner: we first decouple visual inputs into task-relevant and task-irrelevant features, then feed only the task-relevant representations to SAC.

4.2 Self-Supervised Decoupling of Latent Representations↩︎

Our decoupling process begins with data preparation and augmentation. During training, we sample a batch of transitions \(\{o_t, a_t, r_t, o_{t+1}\} \sim \mathcal{B}\) from a replay buffer \(\mathcal{B}\). For each observation \(o_t\), we generate an augmented view \(o_t' = t(o_t)\) using our combined data augmentation, which samples a transformation \(t\) with equal probability from a set of augmentations \(\mathcal{T}\) (containing Random Overlay and Random Convolution). As depicted in Figure 2, the augmented observation \(o_t'\) is subsequently processed by the online branch, while the original observation \(o_t\) is fed into the target branch.

A crucial element of this dual-branch setup is preventing the model from collapsing. This is achieved by managing the target network’s updates. We apply a stop-gradient to the target branch’s output, preventing gradients from flowing into it. Instead of being trained via backpropagation, its parameters \(\varphi\) are updated as a slow-moving average of the online network’s parameters \(\theta\). This Exponential Moving Average (EMA) update ensures the target network provides a stable and consistent objective, which is essential for stabilizing the entire self-supervised training process: \[\varphi_{n+1} \leftarrow (1 - \rho) \varphi_n + \rho \theta_n,\] where \(\rho\) is the momentum coefficient for the EMA update, with its specific value listed in the hyperparameters of Table 4. Our self-supervised representation learning process is then driven by three key objectives, which we detail below.

4.2.1 Task-Relevant Representation Consistency.↩︎

The first objective ensures that the core “content” of an observation remains consistent even when its “style” is changed by data augmentation. The augmented observation \(o_{t}'\) and the original observation \(o_{t}\) share the same underlying state. Therefore, their task-relevant representations should be close. Thus, the content features \({\mu}_{{t}}\), \({\mu}_{{t}}'\) extracted from \({o}_{{t}}\) and \({o}_{{t}}'\) should be consistent. The objective function of task-relevant representation consistency can be expressed as: \[L_{\text{consis}} = \mathbb{E}_{\tau \sim D_{\text{env}}} \left[\| \mu_{t}' - \mu_{t} \|_2^2 \right], \label{Equ2}\tag{1}\] where \(D_{\text{env}}\) is the replay buffer. Equation 1 ensures the consistency of content features between the original and augmented images, thereby excluding style-related information from the obtained content representations \(\mu\). Such content representations possess domain-invariant properties, facilitating better generalization across different domains.

4.2.2 Cross-Reconstruction for Decoupling.↩︎

To decouple content and style, we introduce a reconstruction objective. The logic is as follows: while the consistency loss in Equation 1 drives the content representation \(\mu\) to become style-invariant, we must also ensure information sufficiency and separability. The reconstruction objective guarantees that the combination of \(\mu\) and \(\epsilon\) preserves the complete information of the original observation \(o\). Thus, as \(\mu\) is purified of style, the style information is naturally compressed into \(\epsilon\).

Building on this, we introduce a novel twist to the standard reconstruction approach: cross-reconstruction. This technique forces a cleaner and more robust separation of content and style. Specifically, we reconstruct the full latent representation \(z_t\) of the original observation by combining the content representation \(\mu_t'\) from the augmented view with the style representation \(\epsilon_t\) from the original view: \[\hat{z}_t = d_\xi(\mu_{t}', \epsilon_t), \label{Equ3}\tag{2}\] The cross-reconstruction objective then minimizes the difference between the reconstructed \(\hat{z}_t\) and the original \(z_t\): \[L_{\text{recon}} = \mathbb{E}_{{\tau} \sim D_{\text{env}}} \left[\| z_t - \hat{z}_t \|_2^2 \right]. \label{Equ4}\tag{3}\] The “cross” design is critical: if the content representation \(\mu_t'\) still contains any style information from the augmented view, it will conflict with the style \(\epsilon_t\) from the original view, leading to a poor reconstruction and a high loss. This incentivizes the model to learn a pure, decoupled content representation.

4.2.3 Dynamic Prediction for Task-Relevance.↩︎

The first two components successfully decouple observations into a style-invariant “content” stream and a “style” stream. However, the obtained content representation is not guaranteed to be task-relevant. For example, the agent’s shadow might be considered content, but it is irrelevant for controlling the agent. To solve this, we introduce a dynamic prediction module. The intuition is that a truly task-relevant representation must contain information that is predictive of future states under the agent’s actions. By enforcing this predictive constraint, we refine the content representation to be specifically task-relevant. This crucial step elevates our framework from a simple content-style separator to a true decoupler of task-relevant and task-irrelevant features.

We also implement a cross-domain prediction technique here. Specifically, we use the task-relevant representation (\(\mu_t'\)) from the augmented view and the agent’s action (\(a_t\)) to predict the task-relevant representation (\(\mu_{t+1}\)) of the original next state: \[\hat{\mu}_{t+1} = P_v(\mu_{t}', a_{t}). \label{Equ5}\tag{4}\] This cross-domain objective is a powerful regularizer for generalization. It forces the representation \(\mu\) to be not only predictive but also domain-invariant, as it must bridge the visual gap between the augmented and original observation domains to succeed. The cross-dynamic prediction objective is: \[L_{\text{dynamic}} = \mathbb{E}_{{\tau} \sim D_{\text{env}}} \left[\| \hat{\mu}_{t+1} - \mu_{t+1} \|_2^2 \right]. \label{Equ6}\tag{5}\]

4.2.4 Overall Objective.↩︎

We jointly optimize the three objectives. The overall objective function for our self-supervised module is: \[L_{T2RD} = \lambda_1 \cdot L_{\text{consis}} + \lambda_2 \cdot L_{\text{recon}} + \lambda_3 \cdot L_{\text{dynamic}}.\] Here, \(\lambda_1\), \(\lambda_2\), and \(\lambda_3\) are scalar coefficients (with \(\lambda_i>0\)) that balance the contribution of each loss term. The specific values used in our experiments are summarized in Table 4.

Figure 3: Policy Learner. The observation {o}_{{t}} is decoupled into the task-relevant representation \mu_t and the task-irrelevant representation \epsilon_t through an encoder {f}_{{{\theta}}} and a dual-head projection {g}_{{{\theta}}}. Then, only the task-relevant representation \mu_t is utilized for policy learning.
Figure 4: T2RD

4.3 Policy Learner↩︎

T2RD, as a representation decoupling module, is independent of the policy learner and applicable to any visual reinforcement learning (RL) algorithm. We use the Soft Actor-Critic (SAC) algorithm for policy learning. SAC is an actor-critic RL approach based on the maximum entropy framework, concurrently learning the Q function and the policy network \(\pi_{{\theta}}\), to maximize the expected cumulative reward. Specifically, as shown in Figure  3, the observation \({o}_{{t}}\) is decoupled into the task-relevant representation \(\mu_t\) and task-irrelevant representation \(\epsilon_t\) through the encoder \({f}_{{\theta}}\) and the dual-head mapping \({g}_{{\theta}}\). Then, the policy learner uses only the task-relevant representation \(\mu_t\) for policy learning. As shown in Algorithm 4, the optimization of representation learning \(L_{T2RD}\) alternates with the optimization of reinforcement learning \(L_{RL}\) with \({\omega}\) steps. The two optimization objectives jointly update the parameter \(\theta\).

4.4 Discussions↩︎

1) What sets T2RD apart from other self-supervised auxiliary methods? We explicitly aim to decouple task-relevant and task-irrelevant features in the observation, where the encoding processes of task-relevant and task-irrelevant features complement each other. This deepens the understanding of visual observations, thereby obtaining more precise task-relevant representations. For instance, knowing what is wrong can lead to a clearer understanding of what is right. Furthermore, during policy learning, by explicitly discarding task-irrelevant features, we can reduce the burden of information processing on the agent, thereby improving sample efficiency.

2) Why does T2RD greatly benefit from our combined data augmentation? As shown in the subsequent experimental section, while other algorithms also benefit from our combined data augmentation, the improvements are not as substantial as those seen with T2RD. We argue that while the combined data augmentation increases augmentation diversity, it may also lead to some interference and conflicts among them. Thanks to T2RD’s robust decoupling capabilities, it can fully exploit this increased diversity, maximizing the advantages of the combined data augmentation.

4.5 Theoretical Analysis↩︎

To ground our framework theoretically, we connect our approach to bisimulation metrics [17], [30], which quantify behavioral similarity between states in an MDP. The metric \(d_{\mathcal{M}}(s_i, s_j)\) is defined as the fixed point of the following Bellman-like operator: \[\label{eq:bisim} d_{\mathcal{M}}(s_i, s_j) = \max_{a \in \mathcal{A}} \left( |r(s_i, a) - r(s_j, a)| + \gamma W_1(\mathcal{P}(\cdot|s_i, a), \mathcal{P}(\cdot|s_j, a); d_{\mathcal{M}}) \right).\tag{6}\] where \(W_1\) is the 1-Wasserstein distance measuring the difference between next-state transition distributions. Crucially, this metric provides an upper bound on the optimal value function difference:

Theorem 1 (Ferns et al. [30]). For any two states \(s_i, s_j \in \mathcal{S}\), the difference in their optimal value functions is bounded by their bisimulation distance: \[\label{eq:ferns95bound} |V^*(s_i) - V^*(s_j)| \le d_{\mathcal{M}}(s_i, s_j).\tag{7}\] This provides a clear analytical path: if T2RD learns a representation \(\mu\) where the latent distance \(||\mu(o_i) - \mu(o_j)||_2\) approximates the bisimulation distance \(d_{\mathcal{M}}\), we can then bound the error of a value function learned upon this representation. Our complete objective is designed to provide a strong inductive bias for learning such a metric from high-dimensional observations.

4.5.1 Connecting T2RD Losses to the Bisimulation Metric↩︎

We first map high-dimensional observations to states and then establish the connection with the bisimulation metric.

State Invariance and Sufficiency (\(L_{\text{consis}}\) & \(L_{\text{recon}}\)). The bisimulation metric is defined over underlying states \(s\), while our agent sees observations \(o\). Therefore, the representation must be invariant to task-irrelevant visual features while remaining sufficient information for control.

(1) The consistency loss (\(L_{\text{consis}}\)) enforces state invariance. Since an observation \(o_t\) and its augmentation \(o_t'\) correspond to the same underlying state \(s_t\), their task-relevant representations should be identical. Minimizing \(||\mu_{t}^{\prime}-\mu_{t}||_{2}^{2}\) achieves precisely this.

(2) The cross-reconstruction loss (\(L_{\text{recon}}\)) ensures information sufficiency and separation. First, reconstruction guarantees that the learned representations (\(\mu\), \(\epsilon\)) retain sufficient information from the high-dimensional observations \(o\). Second, by forcing the decoder to reconstruct the original latent state \(z_t\) from the augmented task-relevant content \(\mu_t'\) and the original task-irrelevant style \(\epsilon_t\), it ensures that the task-relevant content representation \(\mu\) is purged of style information. This mechanism acts as a practical information bottleneck, ensuring that the learned distance \(||\mu_i - \mu_j||_2\) reflects differences between underlying states (\(s_i, s_j\)), not superficial visual distractors.

Dynamics and Rewards (\(L_{\text{dynamic}}\) & \(L_{\text{RL}}\)). The bisimulation metric in Equation 6 has two components: reward difference and transition dynamics difference. Our framework addresses both.

(1) The cross-dynamic prediction loss (\(L_{\text{dynamic}}\)) encourages representations \(\mu\) to respect the MDP’s transition dynamics, acting as a practical, sample-based proxy for minimizing the Wasserstein distance term in the bisimulation metric.

(2) The reward term is implicitly modeled by the downstream policy learner (\(L_{\text{RL}}\)). As described in Algorithm 4, the encoder’s parameters \(\theta\) are updated by gradients from both \(L_{\text{T2RD}}\) and the reward-driven SAC loss \(L_{\text{RL}}\) [50]. The gradients from the SAC critic, which minimizes Bellman error, force the representation \(\mu\) to distinguish between states that lead to different rewards.

This joint optimization ensures our learned representation \(\mu\) is sensitive to both rewards and dynamics, thereby learning a functional approximation of the full bisimulation metric.

4.5.2 Bound on the Action-Value Function↩︎

Based on the argument that our learning objective guides the representation to satisfy the properties of a bisimulation metric, we can establish a bound on the action-value function’s error.

Theorem 2. Under the assumption that the learned representation \(\mu\) yields a distance metric \(d_{\mu}(s_i, s_j) = ||\mu(o_i) - \mu(o_j)||_2\) that approximates the true bisimulation metric up to a bounded error \(\epsilon_{\text{T2RD}}+ \epsilon_{\text{RL}}\) (i.e., \(|d_{\mu}(s_i,s_j) - d_{\mathcal{M}}(s_i, s_j)| \le \epsilon_{\text{T2RD}}+ \epsilon_{\text{RL}}\)), let \(\hat{Q}(\mu(o), a)\) be the action-value function learned on the representations produced by an encoder trained with the combined T2RD and SAC objectives, and let \(Q^*(s, a)\) be the true optimal action-value function for the underlying state \(s\). The suboptimality is bounded as follows: \[\label{eq:our95bound} \max_{s, a} |Q^*(s, a) - \hat{Q}(\mu(o), a)| \le \frac{\epsilon_{\text{T2RD}} + \epsilon_{\text{RL}}}{1-\gamma}\tag{8}\] where \(\epsilon_{\text{T2RD}}\) is the representation error, which our framework is designed to minimize via the \(L_{\text{T2RD}}\) objective, and \(\epsilon_{\text{RL}}\) is the Bellman error from the policy learner, controlled by the converged \(L_{\text{RL}}\) loss.

5 Experiments↩︎

In this section, we conduct extensive experiments on DeepMind Control Suite Generalization Benchmark (DMControl-GB)  [26] and Robotic Manipulation tasks  [27] to validate the generalization performance and sample efficiency of our method. The agent is trained in a fixed environment, and we evaluate the algorithm’s generalization ability to unseen environments with more complex backgrounds or color variations.

Baselines. We compare our approach with other SOTA algorithms: 1) DrQ  [9] applies data augmentation to both Q-values and target Q-values during TD updates. 2) SODA  [14] proposes soft data augmentation and employs a BYOL-like architecture to learn consistent representations. 3) SVEA  [25] only applies data augmentation to the Q values without augmenting target Q values. 4) TLDA  [11] introduces task-aware Lipschitz data augmentation. 5) PIE-G  [40] utilizes ImageNet  [51] pre-trained encoders to provide a fairly general representation for RL. 6) SGQN  [29] learns masks through saliency maps and consistency regularization to exclude irrelevant pixels. 7) BiT  [15] introduces a bidirectional transition model. 8) TRP  [52] introduces the truncated return prediction task, promoting cross-domain policy consistency. 9) Visarl [49] leverages human-generated saliency maps to guide visual RL, using human perceptual cues to focus learning on task-relevant regions.

Data Augmentations. Random Overlay  [14] is an augmentation that performs linear interpolation between the original observation and another image randomly sampled from Places dataset  [53], a dataset containing ten million scene photographs; Random Convolution  [54] is an augmentation method that integrates a convolutional layer with random parameters into the observation, preserving the overall shape while adding a blurring effect to the texture features. The effects of the two data augmentations are shown in Figure 5. We adopt a combination of the above two data augmentations, that is, each batch randomly selects Random Overlay and Random Convolution with equal probability.

Figure 5: Examples of data augmentation. We separately present the original observation and the results after applying two data augmentation techniques: Random Overlay and Random Convolution.

5.1 DeepMind Control Suite↩︎

We evaluate the generalization performance and sample efficiency of T2RD across five tasks in DMControl-GB: “Walker Walk”, “Walker Stand”, “Ball in Cup Catch”, “Finger Spin”, and “Cartpole Swingup”. We conduct these assessments under three environmental settings: “Color Hard”, “Video Easy”, and “Video Hard”. In the “Color Hard” setting, the evaluation is carried out in environments where the colors of task-relevant objects (e.g., the agent’s body) and the background and ground are randomized. This setup directly tests the policy’s ability to generalize to changes in the appearance of the agent itself, not just background variations. In the “Video” setting, the evaluation is conducted in environments with various natural video backgrounds. Figure 6 provides examples of observations in both the training and three test environments. We train the agent for a total of 500,000 steps, conducting evaluations every 10,000 steps by calculating the average return over 30 episodes. We stack three frames to form an observation with dimensions of 9 \(\times\) 100 \(\times\) 100. We then apply the random crop to the observation, resulting in dimensions of 9 \(\times\) 84 \(\times\) 84.

Figure 6: Examples of DMControl-GB. We separately present the training example observations and three test settings: “Color Hard”, “Video Easy” and “Video Hard”.
Table 1: Comparison with the SOTA on DMControl-GB. We report the mean and standard deviation of episode returns for 5 different seeds. The best performance is indicated in bold.
DMControl-GB DrQ  [9] SODA  [14] SVEA  [25] TLDA  [11] PIE-G  [40] SGQN  [29] BiT  [15] TRP  [52] Visarl [49] T2RD
(Color-Hard)
Walker, Walk 520 \(\pm\) 91 692 \(\pm\) 68 749 \(\pm\) 61 823 \(\pm\) 58 884 \(\pm\) 20 780 \(\pm\) 58 662 \(\pm\) 64 823 \(\pm\) 28 823 \(\pm\) 55 849 \(\pm\) 37
Walker, Stand 770 \(\pm\) 71 893 \(\pm\) 12 933 \(\pm\) 24 947 \(\pm\) 26 960 \(\pm\) 15 929 \(\pm\) 12 903 \(\pm\) 21 936 \(\pm\) 13 - 964 \(\pm\) 8
Ball_in_cup, Catch 365 \(\pm\) 210 949 \(\pm\) 19 959 \(\pm\) 5 930 \(\pm\) 40 964 \(\pm\) 7 864 \(\pm\) 75 946 \(\pm\) 25 826 \(\pm\) 118 962 \(\pm\) 14 965 \(\pm\) 4
Finger, Spin 776 \(\pm\) 134 793 \(\pm\) 128 972 \(\pm\) 6 876 \(\pm\) 45 922 \(\pm\) 54 874 \(\pm\) 31 889 \(\pm\) 61 918 \(\pm\) 34 823 \(\pm\) 102 984 \(\pm\) 3
Cartpole, Swingup 586 \(\pm\) 52 805 \(\pm\) 28 832 \(\pm\) 23 760 \(\pm\) 60 749 \(\pm\) 46 777 \(\pm\) 25 802 \(\pm\) 32 799 \(\pm\) 40 870 \(\pm\) 21 857 \(\pm\) 12
DMControl-GB DrQ SODA SVEA TLDA PIE-G SGQN BiT TRP Visarl T2RD
(Video-Easy)
Walker, Walk 682 \(\pm\) 89 768 \(\pm\) 38 819 \(\pm\) 71 868 \(\pm\) 63 871 \(\pm\) 22 865 \(\pm\) 13 832 \(\pm\) 42 871 \(\pm\) 18 756 \(\pm\) 42 821 \(\pm\) 15
Walker, Stand 873 \(\pm\) 83 955 \(\pm\) 13 961 \(\pm\) 8 946 \(\pm\) 6 957 \(\pm\) 12 955 \(\pm\) 9 960 \(\pm\) 3 965 \(\pm\) 8 - 972 \(\pm\) 3
Ball_in_cup, Catch 318 \(\pm\) 157 857 \(\pm\) 56 871 \(\pm\) 106 855 \(\pm\) 56 922 \(\pm\) 20 950 \(\pm\) 24 899 \(\pm\) 23 624 \(\pm\) 244 802 \(\pm\) 78 893 \(\pm\) 43
Finger, Spin 533 \(\pm\) 119 695 \(\pm\) 97 808 \(\pm\) 33 756 \(\pm\) 87 837 \(\pm\) 107 956 \(\pm\) 26 835 \(\pm\) 25 816 \(\pm\) 26 702 \(\pm\) 83 966 \(\pm\) 10
Cartpole, Swingup 485 \(\pm\) 105 758 \(\pm\) 62 782 \(\pm\) 27 671 \(\pm\) 57 587 \(\pm\) 61 761 \(\pm\) 28 779 \(\pm\) 34 733 \(\pm\) 62 730 \(\pm\) 32 847 \(\pm\) 11
DMControl-GB DrQ SODA SVEA TLDA PIE-G SGQN BiT TRP Visarl T2RD
(Video-Hard)
Walker, Walk 121 \(\pm\) 52 312 \(\pm\) 32 385 \(\pm\) 63 271 \(\pm\) 55 600 \(\pm\) 28 739 \(\pm\) 21 325 \(\pm\) 56 355 \(\pm\) 69 - 444 \(\pm\) 27
Walker, Stand 252 \(\pm\) 57 771 \(\pm\) 83 834 \(\pm\) 76 769 \(\pm\) 59 852 \(\pm\) 56 851 \(\pm\) 24 829 \(\pm\) 24 824 \(\pm\) 2 - 895 \(\pm\) 43
Ball_in_cup, Catch 100 \(\pm\) 40 327 \(\pm\) 100 403 \(\pm\) 174 457 \(\pm\) 16 786 \(\pm\) 47 782 \(\pm\) 57 570 \(\pm\) 71 274 \(\pm\) 50 - 616 \(\pm\) 38
Finger, Spin 38 \(\pm\) 13 302 \(\pm\) 41 335 \(\pm\) 58 224 \(\pm\) 56 762 \(\pm\) 59 822 \(\pm\) 24 400 \(\pm\) 13 261 \(\pm\) 4 - 833 \(\pm\) 18
Cartpole, Swingup 136 \(\pm\) 29 429 \(\pm\) 64 393 \(\pm\) 45 223 \(\pm\) 62 401 \(\pm\) 21 544 \(\pm\) 43 526 \(\pm\) 40 333 \(\pm\) 27 - 725 \(\pm\) 37

T2RD exhibits the best generalization performance. Table 1 shows the generalization results of T2RD and other SOTA algorithms in DMControl-GB tasks. Our algorithm performs exceptionally well, achieving the best results in 9 out of 15 tasks. Particularly in the “Cartpole Swingup” task of the “Video Hard” setting, compared to the suboptimal algorithm, our method achieves a 33% improvement. Overall, T2RD demonstrates outstanding generalization performance across all tasks in various testing environments.

T2RD has the highest sample efficiency. In Figure 7, we present the training curves of our method compared to SGQN, BiT, and TRP across five different tasks, with each algorithm running 5 seeds per task. Our method exhibits superior sample efficiency and asymptotic performance. Moreover, as illustrated in Figure  8, our method maintains excellent sample efficiency and asymptotic performance when generalized to previously unseen environments.

Figure 7: Sample efficiency. We visualize the training curves of T2RD, SGQN, BiT, and TRP. The solid line represents the mean reported, and the shading represents the standard deviation. It can be seen that T2RD has the best sample efficiency and asymptotic performance.
Figure 8: Test curves on DMControl-GB. We compare the test curves of T2RD with SGQN, BiT, and TRP on three tasks in DMControl-GB: “Cartpole Swingup”, “Finger Spin”, and “Walker Stand”, across three different environmental settings: Color Hard, Video Easy, and Video Hard.

T2RD successfully learns task-relevant representations. In Figure  9, we use t-SNE to visualize the features learned by our method and by SGQN, SVEA, and PIE-G. We first randomly select 10 observations originating from different states in the “Cartpole Swingup” task and then replace their backgrounds with 40 unseen images. The 400 processed images are then embedded by the learned encoder of each algorithm. Observations from the same state are represented by the same color. From Figure  9, we can observe that T2RD achieves the most effective aggregation for observations from the same state and effective separation between different states.

Figure 9: t-SNE of representation. We visualize the representations learned from T2RD, SGQN, PIEG, SVEA. T2RD exhibits the best intra-class cohesion and inter-class separation.
Figure 10: t-SNE visualization of decoupled task-relevant and task-irrelevant features across training steps.

T2RD can effectively achieve decoupling. To validate that T2RD can effectively decouple task-relevant and task-irrelevant features, we conduct both quantitative and qualitative analyses.

First, we present t-SNE visualizations in Figure 10 to quantitatively analyze the learned representations over time. For this experiment, we take a single observation, create 80 variants by replacing its background with unseen images, and feed them into the T2RD encoder at different training checkpoints. As the figure illustrates, the task-relevant representations (orange dots) become progressively more concentrated into a cluster. This indicates that the model learns to map the same underlying state to a consistent representation, regardless of the visual background. Conversely, the task-irrelevant representations (blue dots) become more dispersed and gradually separable from the task-relevant features. This indicates that T2RD has learned the ability to decouple task-relevant and task-irrelevant features within visual observations.

Second, to provide more direct, qualitative proof, we conduct a cross-reconstruction experiment, visualized in Figure 11. This involves reconstructing an original observation \(o_t\) by combining the task-relevant representation \(\mu_t'\) from a visually distinct augmented view \(o_t'\) with the task-irrelevant representation \(\epsilon_t\) from the original view \(o_t\). The result is a powerful demonstration of decoupling: the reconstructed image successfully captures the agent’s posture (task-relevant) from the original observation, while completely ignoring the distracting background or color perturbation (task-irrelevant) introduced in the augmented view. Together, these visualizations provide strong evidence that T2RD effectively decouples task-relevant content from task-irrelevant style.

Figure 11: Cross-reconstruction visualization. We use the task-relevant features (content) \mu_t' from the augmented observation o_t' and the task-irrelevant features (style) \epsilon_t from the original observation to perform cross-reconstruction, obtaining the reconstructed image \hat{o}_t. Successful reconstruction indicates that the T2RD learns truly decoupled representations.
Figure 12: Visualizations of attention maps. We visualize the attention areas of our algorithm under different backgrounds in DMControl-GB.

T2RD accurately identifies task-relevant regions. In Figure 12, we visualize the attention regions of T2RD under different backgrounds in DMControl-GB: “Training”, “Color Hard”, “Video Easy”, and “Video Hard”. T2RD can accurately perceive task-relevant regions in visual observations, regardless of the presence of background interference. This provides the agent with reliable task-relevant representations for learning generalizable policies.

5.2 Robotic Manipulation↩︎

In addition to DeepMind control tasks, we also conduct experiments on Robotic Manipulation tasks. We consider two goal-reaching tasks: 1) Reach, where the robotic arm attempts to reach a red mask on the tabletop; 2) Peg in box, where the objective is to control the robotic arm to insert a peg into a box. The dimensions of the observation are 3 \(\times\) 100 \(\times\) 100. We perform a random crop on the observation to obtain a cropped observation with dimensions of 3 \(\times\) 84 \(\times\) 84. The agent is trained in a fixed background and tested in environments where key information is retained while the texture or color of the background is disturbed. We train the agent for 500,000 steps, conducting tests every 10,000 steps by calculating the average episode return over 30 episodes. For each task, we employ four test environments: Test1, Test2, Test3, and Test4. Figure 13 provides examples of observations in both the training and four test environments. We compare our algorithm against SAC, SODA, SVEA, SGQN, BiT, and TRP.

Figure 13: Examples of Robotic Manipulation. We present training example observations and four test settings for the “Reach” and “Peg in box” tasks.

The results are shown in Table ¿tbl:table:robot?, where T2RD achieves state-of-the-art performance in 7 out of 8 test environments. In the Reach task, T2RD shows the best performance in Test1, Test3, and Test4 environments, and even in Test2, we are the second-best algorithm. Compared to the second-best algorithm, our average performance improves by 40.1%. In the Peg in box task, T2RD outperforms all other algorithms in all test environments. Compared to the second-best algorithm, our average performance improves by 57.1%. The above experimental results demonstrate the superiority of our algorithm. Additionally, T2RD proves applicable to various VRL tasks.

Figure 14: Ablation Study on DMControl-GB. We conduct ablation studies on the “Cartpole Swingup” and “Finger Spin” tasks under the “Video Hard” setting.

5.3 Ablation Study↩︎

We conduct ablation experiments on the DMControl-GB to assess the impact of each objective function proposed by T2RD. The experimental results are shown in Figure 14, where “T2RD (w/o consistency loss)” marks the absence of the task-relevant representation consistency module; “T2RD (w/o reconstruction)” indicates the exclusion of the cross-reconstruction module; “T2RD (w/o dynamic prediction)” denotes the omission of the cross-dynamic prediction module; “Baseline” represents the fundamental version of the T2RD algorithm, which omits these three objective functions but retains the combined data augmentation.

From Figure  14, it’s clear that T2RD achieves superior sample efficiency and asymptotic performance. The comparison between “T2RD (w/o dynamic prediction)” and T2RD underscores the critical role of dynamic prediction in learning task-relevant representations within our decoupling framework. Nonetheless, even without dynamic prediction, methods that separate content and style at the visual level remain effective, continuing to surpass other SOTA algorithms. Additionally, the “T2RD (w/o reconstruction)” curve shows that the decoupling of content and style facilitates the learning of representations that are robust to visual changes. Finally, “T2RD (w/o consistency loss)” also achieves excellent experimental results, but there is still a certain gap compared to T2RD. This suggests that the task-relevant representation consistency module contributes to learning domain-invariant representations, which promotes generalization.

Additionally, we conduct ablation experiments on three modules in Robotic Manipulation tasks, with the results shown in Table ¿tbl:table:Robotic32ablation?. The experimental results show that removing any one of the three modules leads to a decrease in performance. In summary, these three modules are complementary and work together to achieve the decoupling of task-relevant and task-irrelevant features, thereby promoting the generalization of VRL.

5.4 Variant Experiments↩︎

To provide deeper insights into our key design choices beyond the module-level ablations in Section 5.3, we conduct a series of more fine-grained variant experiments. The results are shown in Table ¿tbl:table:variation? and Table [tbl:tab32varient32augmentation32results]. We analyze structural variants, key mechanisms, and data augmentation methods.

5.4.1 Analysis of Structural Variants↩︎

We first explore several structural variants of T2RD. “T2RD-Alt. Branch” employs an alternative reconstruction branch using \(\mu_{t}\) and \(\epsilon_{t}'\) to reconstruct \(z_{t}'\). In Table ¿tbl:table:variation?, “T2RD-Dual” indicates the simultaneous use of both the primary and alternative reconstruction branches. “T2RD-Pixel Recon.” denotes pixel-based reconstruction, meaning that instead of reconstructing back to the latent representation \(z_{t}\), we reconstruct back to the observation \(o_{t}\).

The experimental results in Table ¿tbl:table:variation? reveal that both the “T2RD-Alt. Branch” and “T2RD-Dual” are less effective than our primary T2RD design. We argue that the task-irrelevant representations of the augmented observations (\(\epsilon_t'\)) contain too many distracting elements, leading to algorithm divergence. Furthermore, we find that reconstruction based on latent representations is more effective than pixel-based reconstruction (“T2RD-Pixel Recon.” in Table ¿tbl:table:variation?), a finding also supported by previous research [55].

5.4.2 Analysis of Key Design Mechanisms↩︎

To provide a more fine-grained analysis, we evaluate the specific impact of our cross-domain strategy and the EMA update mechanism.

Cross-Domain vs. Same-Domain. To isolate the effect of our cross-domain strategy, we test two variants. “T2RD-NonCross-Recon.” performs same-domain reconstruction (using \(\mu_{t}\) and \(\epsilon_{t}\) to reconstruct \(z_{t}\)). “T2RD-NonCross-Pred.” performs same-domain prediction (using the augmented representation \(\mu_t'\) to predict the next augmented representation \(\mu_{t+1}'\)). As shown in Table ¿tbl:table:variation?, T2RD with its cross-domain objectives significantly outperforms both of these variants. This demonstrates that enforcing consistency across different visual domains (original vs. augmented) is a powerful constraint that promotes the learning of more robust and generalizable representations.

Importance of EMA. We introduce “T2RD (w/o EMA)”, where the target network parameters are updated via a direct copy from the online network instead of the EMA update. The results in Table ¿tbl:table:variation? show a noticeable drop in performance compared to the standard T2RD. This empirically confirms that the EMA is a crucial component for stabilizing the self-supervised training process by providing a consistent and slowly evolving target, which helps prevent representational collapse.

5.4.3 Analysis of Data Augmentation Methods↩︎

In addition to structural variant experiments, we conduct variant experiments on data augmentation, comparing the experimental results of the T2RD algorithm using Random Overlay, Random Convolution, and combined data augmentation. The experimental results are shown in Table [tbl:tab32varient32augmentation32results], where T2RD (conv) indicates the use of Random Convolution as a replacement for the combined data augmentation technique in the T2RD algorithm. Similarly, T2RD (overlay) refers to the use of Random Overlay data augmentation. The experimental results demonstrate that combined data augmentation significantly improves the generalization performance of the algorithm compared to single data augmentation methods. As discussed in the methods section, T2RD greatly benefits from combined data augmentation due to its strong decoupling ability. T2RD can fully exploit the advantages brought by increased augmentation diversity, alleviating the issue of generalization bias. Additionally, thanks to its strong decoupling capabilities, T2RD is less affected by conflicts between different augmentations, thus maximizing the benefits of combined data augmentation.

l | c | c cc Task & Data Augmentation & Color Hard & Video Easy & Video Hard
& T2RD (conv) & \(973 \pm 8\) & \(605 \pm 19\) & \(227 \pm 35\)
& T2RD (overlay) & \(882 \pm 23\) & \(866 \pm 8\) & \(464 \pm 62\)
& T2RD & 984 \(\pm\) 3 & 966 \(\pm\) 10& 833 \(\pm\) 18
& T2RD (conv) & \(854 \pm 11\) & \(589 \pm 33\) & \(213 \pm 36\)
& T2RD (overlay) & \(751 \pm 47\) & \(749 \pm 52\) & \(519 \pm 42\)
& T2RD & 857 \(\pm\) 12 & 847 \(\pm\) 11 & 725 \(\pm\) 37
& T2RD (conv) & \(948 \pm 7\) & \(709 \pm 21\) & \(413 \pm 46\)
& T2RD (overlay) & \(902 \pm 29\) & \(964 \pm 6\) & \(845 \pm 22\)
& T2RD & 964 \(\pm\) 8 & 972 \(\pm\) 3 & 895 \(\pm\) 43

Table 2: SODA and SVEA with Specific Data Augmentations. Results for SODA and SVEA trained with single augmentations (Random Convolution (Conv) or Random Overlay (Overlay)) on “Color-Hard” (color perturbations) and “Video-Easy” settings (background perturbations).
DMControl-GB SODA (Conv) SODA (Overlay) SVEA (Conv) SVEA (Overlay)
(Color-Hard)
Walker, Walk 697 \(\pm\) 66 692 \(\pm\) 68 760 \(\pm\) 145 749 \(\pm\) 61
Walker, Stand 930 \(\pm\) 12 893 \(\pm\) 12 942 \(\pm\) 26 933 \(\pm\) 24
Ball_in_cup, Catch 892 \(\pm\) 37 949 \(\pm\) 19 961 \(\pm\) 7 959 \(\pm\) 5
Finger, Spin 892 \(\pm\) 52 793 \(\pm\) 128 977 \(\pm\) 5 972 \(\pm\) 6
Cartpole, Swingup 831 \(\pm\) 21 805 \(\pm\) 28 837 \(\pm\) 23 832 \(\pm\) 23
DMControl-GB SODA (Conv) SODA (Overlay) SVEA (Conv) SVEA (Overlay)
(Video-Easy)
Walker, Walk 635 \(\pm\) 48 768 \(\pm\) 38 612 \(\pm\) 144 819 \(\pm\) 71
Walker, Stand 903 \(\pm\) 56 955 \(\pm\) 13 795 \(\pm\) 70 961 \(\pm\) 8
Ball_in_cup, Catch 539 \(\pm\) 111 875 \(\pm\) 56 659 \(\pm\) 110 871 \(\pm\) 106
Finger, Spin 363 \(\pm\) 185 695 \(\pm\) 97 764 \(\pm\) 86 808 \(\pm\) 33
Cartpole, Swingup 474 \(\pm\) 143 758 \(\pm\) 62 606 \(\pm\) 86 782 \(\pm\) 27

5.5 Analysis of Combined Data Augmentation and Generalization Bias↩︎

Many VRL algorithms exhibit generalization bias by relying on a single data augmentation, where performance becomes overly dependent on the specific transformations seen during training. For instance, an agent trained only on “color” augmentation (like Random Convolution) is good at handling color changes but poor at handling background changes, and vice versa.

To empirically demonstrate this, we conduct an experiment where we train SODA [14] and SVEA [25] with each of these single augmentations separately. The results, presented in Table 2, clearly confirm the existence of this bias. In the “Color-Hard” setting, agents trained with Random Convolution generally outperform those trained with Random Overlay. Conversely, in the “Video-Easy” setting, agents trained with Random Overlay are significantly superior. This confirms that relying on a single augmentation leads to policies that are brittle to other forms of visual change.

Our proposed combined data augmentation method effectively mitigates this bias. In Table ¿tbl:tab:combined95data95augmentation?, we apply the combined augmentation strategy to several baseline algorithms. As shown, the performance of baselines such as SODA [14] and SVEA [25] not only improves significantly but also becomes more balanced across the three distinct test environments (“Color Hard”, “Video Easy”, and “Video Hard”). This provides strong evidence that our combined strategy alleviates generalization bias by breaking the agent’s dependence on a single type of visual perturbation.

However, this analysis also highlights the unique synergy between our architecture and the augmentation strategy. While the baselines benefit from the combined augmentation, T2RD’s performance (as shown in Table ¿tbl:tab:combined95data95augmentation?) remains markedly superior. We argue that although increasing augmentation diversity is beneficial, it can also introduce interference or conflicts among different transformations. Thanks to T2RD’s robust decoupling capability, it can fully exploit this increased diversity—maximizing the advantages of combined data augmentation where other methods may struggle. For example, the slight performance drop observed for SGQN [29] on one task suggests that, without a strong decoupling mechanism, increased augmentation diversity may sometimes interfere with methods that rely heavily on fine-grained visual cues such as saliency maps. This demonstrates that the observed gains arise not from augmentation alone, but from the powerful combination of our novel architecture and the augmentation strategy.

Finally, we explore the impact of the sampling probability \(p\) for Random Overlay within our combined approach. The specific experimental results are shown in Table 3. The results indicate that when \(p = 0.5\), i.e., when Random Convolution and Random Overlay are chosen with equal probability, we observe the best experimental outcomes, reinforcing the idea that balanced diversity is key to effective data augmentation.

l | c | c | c|c Task & Algorithm & Color-Hard & Video-Easy & Video-Hard
& SODA & \(793 \pm 128 \rightarrow 927 \pm 27\) & \(695 \pm 97 \rightarrow 847 \pm 63\) & \(302 \pm 41 \rightarrow 522 \pm 72\)
& SVEA & \(972 \pm 6 \rightarrow 977 \pm 5\) & \(808 \pm 33 \rightarrow 904 \pm 22\) & \(335 \pm 58 \rightarrow 650 \pm 42\)
& TLDA & \(876 \pm 45 \rightarrow 881 \pm 18\) & \(756 \pm 87 \rightarrow 860 \pm 26\) & \(224 \pm 56 \rightarrow 450 \pm 47\)
& SGQN & \(874 \pm 31 \rightarrow 923 \pm 41\) & \(956 \pm 26 \rightarrow 906 \pm 16\) & \(822 \pm 24 \rightarrow 746 \pm 27\)
& BiT & \(889 \pm 61 \rightarrow 910 \pm 52\) & \(835 \pm 25 \rightarrow 820 \pm 27\) & \(400 \pm 13 \rightarrow 507 \pm 47\)
& T2RD & \(\mathbf{984 \pm 3}\) & \(\mathbf{966 \pm 10}\) & \(\mathbf{833 \pm 18}\)
& SODA & \(805 \pm 28 \rightarrow 833 \pm 23\) & \(758 \pm 62 \rightarrow 777 \pm 37\) & \(429 \pm 64 \rightarrow 481 \pm 45\)
& SVEA & \(832 \pm 23 \rightarrow 842 \pm 27\) & \(782 \pm 27 \rightarrow 828 \pm 32\) & \(393 \pm 45 \rightarrow 592 \pm 123\)
& TLDA & \(760 \pm 60 \rightarrow 786 \pm 53\) & \(671 \pm 57 \rightarrow 705 \pm 56\) & \(223 \pm 62 \rightarrow 329 \pm 47\)
& SGQN & \(777 \pm 25 \rightarrow 800 \pm 26\) & \(761 \pm 28 \rightarrow 758 \pm 35\) & \(544 \pm 43 \rightarrow 596 \pm 92\)
& BiT & \(802 \pm 32 \rightarrow 838 \pm 24\) & \(779 \pm 34 \rightarrow 810 \pm 20\) & \(526 \pm 40 \rightarrow 585 \pm 41\)
& T2RD & \(\mathbf{857 \pm 12}\) & \(\mathbf{847 \pm 11}\) & \(\mathbf{725 \pm 37}\)

Table 3: Experimental results for different data augmentation sampling probability parameter \(p\). We select “Finger Spin” task from DMControl-GB to conduct experiments under three environmental settings: “Color Hard”, “Video Easy”, and “Video Hard”.
Finger, \(p = 0.1\) \(p = 0.3\) \(p = 0.5\) \(p = 0.7\) \(p = 0.9\)
Spin
Color Hard 968 \(\pm\) 12 943 \(\pm\) 11 984 \(\pm\) 3 969 \(\pm\) 19 975 \(\pm\) 9
Video Easy 719 \(\pm\) 33 923 \(\pm\) 18 966 \(\pm\) 10 958 \(\pm\) 17 961 \(\pm\) 8
Video Hard 459 \(\pm\) 27 651 \(\pm\) 49 833 \(\pm\) 18 813 \(\pm\) 18 703 \(\pm\) 26
Table 4: Hyperparameters adopted in DMControl-GB and Robotic Manipulation tasks.
Hyperparameter DMControl-GB Robotic Manipulation
Frame rendering \(84 \times 84 \times 3\) \(84 \times 84 \times 3\)
Frame stack 3 1
Action repeat 8 (Cartpole Swingup), 2 (Finger Spin), 4 (otherwise) 1
Random shift \(\pm 4\) pixels \(\pm 4\) pixels
Discount factor \(\gamma\) 0.99 0.99
Episode length 1000 50
Train steps \(0.5\)M \(0.5\)M
Replay buffer size \(0.5\)M \(0.5\)M
Optimizer (\(\alpha\)) Adam(lr = \(1\mathrm{e}{-4}\), \(\beta_1\) = 0.5, \(\beta_2\) = 0.999) Adam(lr = \(1\mathrm{e}{-4}\), \(\beta_1\) = 0.5, \(\beta_2\) = 0.999)
Optimizer (RL) Adam(lr = \(1\mathrm{e}{-3}\), \(\beta_1\) = 0.9, \(\beta_2\) = 0.999) Adam(lr = \(1\mathrm{e}{-3}\), \(\beta_1\) = 0.9, \(\beta_2\) = 0.999)
Optimizer (T2RD) Adam(lr = \(3\mathrm{e}{-4}\), \(\beta_2\) = 0.999) Adam(lr = \(3\mathrm{e}{-4}\), \(\beta_2\) = 0.999)
Batch size (RL) 128 128
Batch size (T2RD) 128 256
Actor update freq. 2 2
Critic target update freq. 2 2
Aux update freq. 2 2
EMA update coef. \(\rho\) 0.005 0.005
Aug sampling prob. \(p\) 0.5 0.5
Loss coefficient \(\lambda_1\) 1 1
Loss coefficient \(\lambda_2\) 100 100
Loss coefficient \(\lambda_3\) 0.1 0.1

6 Reproducibility↩︎

Implementation Details. To ensure a fair comparison, we use the same hyperparameter settings as most methods, such as SODA and SVEA, in the DeepMind Control Suite. In Robotic Manipulation tasks, our hyperparameters follow those used in SGQN. The specific hyperparameter settings are detailed in Table 4.

Network Architecture Details. We adopt a BYOL-inspired architecture for representation learning. The observation encoder \(f_{\theta}\) is an 11-layer CNN that maps stacked observations (9 \(\times\) 84 \(\times\) 84) to 14112-dimensional latent vectors, which are projected to 200 dimensions and then split into task-relevant and task-irrelevant features (100 each) by a dual-head MLP \(g_{\theta}\). A predictor network \(h_{\theta}\), consisting of a linear layer with batch normalization and ReLU, encourages consistency between augmented and original task-relevant representations. To achieve decoupling, we use two auxiliary modules: (i) a cross-reconstruction network with two linear layers and one ReLU, which combines \(\mu_t'\) and \(\epsilon_t\) to reconstruct \(z_t\); and (ii) a cross-dynamic prediction network with three linear layers and two ReLUs, which predicts the next-step task-relevant features \(\mu_{t+1}\) from \(\mu_t'\) and action \(a_t\). For policy learning, we adopt SAC, where the actor and critic are standard three-layer MLPs with ReLU activations. The policy learner shares the encoder and projection with T2RD, ensuring that only task-relevant features are used for control. The SAC objective \(L_{\mathrm{RL}}\) and the self-supervised objective \(L_{\mathrm{T2RD}}\) are jointly optimized using Adam, with alternating updates every \(\omega\) steps.

7 Conclusion↩︎

We introduce the concept of decoupling observations into task-relevant and task-irrelevant features in Visual Reinforcement Learning (VRL), making the learned policy more robust to task-irrelevant visual changes. Based on this idea, we propose Task-Relevant Representation Decoupling (T2RD), a self-supervised algorithm for VRL. T2RD consists of three components: task-relevant representation consistency, cross-reconstruction, and cross-dynamic prediction. The first two components achieve decoupling of content and style features at the visual level, while the third part learns task-relevant representations through dynamic prediction. In addition, we propose a simple yet effective combined data augmentation approach. We conduct extensive experiments to verify the generalization ability and sample efficiency of T2RD across the DeepMind Control Suite and Robotic Manipulation tasks.

8 Limitations and Future Work↩︎

Despite the strong generalization performance of T2RD, we acknowledge several limitations that also point to future directions.

First, T2RD assumes visual observations can be decoupled into task-relevant “content” and task-irrelevant “style” streams. While this assumption holds in many benchmarks, it may fail when task-relevant cues are intertwined with style, such as navigation relying on specific terrain textures. In such cases, the model might treat crucial information as irrelevant. Future work could explore causal inference or adaptive mechanisms to dynamically identify task-relevant features.

Second, although T2RD is trained from scratch, its principle of decoupling remains highly relevant in the era of Visual Foundation Models (VFMs). Object-centric features extracted by VFMs still mix relevant states (e.g., pose) with irrelevant appearance (e.g., texture, lighting). Applying T2RD as a lightweight, self-supervised fine-tuning module to these features is a promising direction.

Finally, extending T2RD to real-world robotics is essential. The simulation-to-reality gap in lighting, textures, and object appearance often causes policy failures. Our decoupling approach is well-suited to mitigate this challenge, and validating T2RD on physical robots is a key future step.

This work was supported by the National Natural Science Foundation of China (No. 62576029) and the National Natural Science Foundation of China (No. 62536001).

References↩︎

[1]
Bohan Zhou, Ke Li, Jiechuan Jiang, and Zongqing Lu.2023. . arXiv preprint arXiv:2306.12860(2023).
[2]
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis.2015. . Nat.518, 7540(2015), 529–533.
[3]
Yevgen Chebotar, Quan Vuong, Karol Hausman, Fei Xia, Yao Lu, Alex Irpan, Aviral Kumar, Tianhe Yu, Alexander Herzog, Karl Pertsch, et al2023. . In Conference on Robot Learning. PMLR, 3909–3928.
[4]
Wenlong Huang, Chen Wang, Ruohan Zhang, Yunzhu Li, Jiajun Wu, and Li Fei-Fei.2023. . arXiv preprint arXiv:2307.05973(2023).
[5]
Jinwen Wang, Youfang Lin, Xiaobo Hu, Siyu Yang, Sheng Han, Shuo Wang, and Kai Lv.2025. . In Proceedings of the 33rd ACM International Conference on Multimedia. 679–688.
[6]
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel.2016. . J. Mach. Learn. Res.17(2016), 39:1–39:40.
[7]
Shuo Wang, Zhihao Wu, Xiaobo Hu, Youfang Lin, and Kai Lv.2023. . IEEE Transactions on Multimedia25(2023), 8920–8932.
[8]
Michael Laskin, Kimin Lee, Adam Stooke, Lerrel Pinto, Pieter Abbeel, and Aravind Srinivas.2020. . In Advances in Neural Information Processing Systems 33 (2020).
[9]
Denis Yarats, Ilya Kostrikov, and Rob Fergus.2021. . In 9th International Conference on Learning Representations, ICLR 2021. OpenReview.net.
[10]
Linxi Fan, Guanzhi Wang, De-An Huang, Zhiding Yu, Li Fei-Fei, Yuke Zhu, and Animashree Anandkumar.2021. . In Proceedings of the 38th International Conference on Machine Learning, ICML 2021(Proceedings of Machine Learning Research, Vol. 139). PMLR, 3088–3099.
[11]
Zhecheng Yuan, Guozheng Ma, Yao Mu, Bo Xia, Bo Yuan, Xueqian Wang, Ping Luo, and Huazhe Xu.2022. . In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI 2022. ijcai.org, 3702–3708.
[12]
Lu Li, Jiafei Lyu, Guozheng Ma, Zilin Wang, Zhenjie Yang, Xiu Li, and Zhiheng Li.2023. . arXiv preprint arXiv:2306.00656(2023).
[13]
Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Ávila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko.2020. . In Advances in Neural Information Processing Systems 33 (2020).
[14]
Nicklas Hansen Xiaolong Wang.2021. . In 2021 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 13611–13617.
[15]
Xiaobo Hu, Youfang Lin, Yue Liu, Jinwen Wang, Shuo Wang, Hehe Fan, and Kai Lv.2025. . ACM Transactions on Multimedia Computing, Communications and Applications(2025).
[16]
Michael Laskin, Aravind Srinivas, and Pieter Abbeel.2020. . In Proceedings of the 37th International Conference on Machine Learning, ICML 2020(Proceedings of Machine Learning Research, Vol. 119). PMLR, 5639–5650.
[17]
Amy Zhang, Rowan Thomas McAllister, Roberto Calandra, Yarin Gal, and Sergey Levine.2021. . In 9th International Conference on Learning Representations, ICLR 2021. OpenReview.net.
[18]
Xiaobo Hu, Youfang Lin, Jinwen Wang, Yue Liu, Shuo Wang, Hehe Fan, and Kai Lv.2025. . Neural Networks(2025), 108265.
[19]
Abel Gonzalez-Garcia, Joost van de Weijer, and Yoshua Bengio.2018. . In Advances in Neural Information Processing Systems 31 (2018). 1294–1305.
[20]
Joshua B. Tenenbaum William T. Freeman.2000. . Neural Comput.12, 6(2000), 1247–1283.
[21]
Michaël Mathieu, Junbo Jake Zhao, Pablo Sprechmann, Aditya Ramesh, and Yann LeCun.2016. . In Advances in Neural Information Processing Systems 29 (2016). 5041–5049.
[22]
Eduardo Hugo Sanchez, Mathieu Serrurier, and Mathias Ortner.2020. . In Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXII(Lecture Notes in Computer Science, Vol. 12367). Springer, 205–221.
[23]
Xudong Wang, Long Lian, and Stella X. Yu.2021. . In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021. 6677–6687.
[24]
Dacheng Yin, Xuanchi Ren, Chong Luo, Yuwang Wang, Zhiwei Xiong, and Wenjun Zeng.2022. . In The Tenth International Conference on Learning Representations, ICLR 2022. OpenReview.net.
[25]
Nicklas Hansen, Hao Su, and Xiaolong Wang.2021. . In Advances in Neural Information Processing Systems 34 (2021). 3680–3693.
[26]
Yuval Tassa, Yotam Doron, Alistair Muldal, Tom Erez, Yazhe Li, Diego de Las Casas, David Budden, Abbas Abdolmaleki, Josh Merel, Andrew Lefrancq, et al2018. . arXiv preprint arXiv:1801.00690(2018).
[27]
Rishabh Jangir, Nicklas Hansen, Sambaran Ghosal, Mohit Jain, and Xiaolong Wang.2022. . IEEE Robotics Autom. Lett.7, 2(2022), 3046–3053.
[28]
Shuo Wang, Zhihao Wu, Jinwen Wang, Xiaobo Hu, Youfang Lin, and Kai Lv.2024. . In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI 2024. ijcai.org, 1389–1397.
[29]
David Bertoin, Adil Zouitine, Mehdi Zouitine, and Emmanuel Rachelson.2022. . Advances in Neural Information Processing Systems35(2022), 30693–30706.
[30]
Norm Ferns, Prakash Panangaden, and Doina Precup.2011. . SIAM J. Comput.40, 6(2011), 1662–1714.
[31]
Jianda Chen Sinno Jialin Pan.2022. . In Advances in Neural Information Processing Systems 35 (2022).
[32]
Nicklas Hansen, Rishabh Jangir, Yu Sun, Guillem Alenyà, Pieter Abbeel, Alexei A. Efros, Lerrel Pinto, and Xiaolong Wang.2021. . In 9th International Conference on Learning Representations, ICLR 2021. OpenReview.net.
[33]
Rui Yang, Jie Wang, Qijie Peng, Ruibo Guo, Guoping Wu, and Bin Li.2025. . In The Thirteenth International Conference on Learning Representations, ICLR 2025. OpenReview.net.
[34]
Ruijie Zheng, Xiyao Wang, Yanchao Sun, Shuang Ma, Jieyu Zhao, Huazhe Xu, Hal Daumé III, and Furong Huang.2023. . In Advances in Neural Information Processing Systems 36 (2023).
[35]
Fangwei Zhong, Peng Sun, Wenhan Luo, Tingyun Yan, and Yizhou Wang.2021. . In Proceedings of the 38th International Conference on Machine Learning, ICML 2021(Proceedings of Machine Learning Research, Vol. 139), Marina Meila Tong Zhang(Eds.). PMLR, 12782–12792.
[36]
Wenhan Luo, Peng Sun, Fangwei Zhong, Wei Liu, Tong Zhang, and Yizhou Wang.2020. . IEEE Trans. Pattern Anal. Mach. Intell.42, 6(2020), 1317–1332.
[37]
Ruihan Zhang Jun Sun.2024. . In International Conference on Computer Aided Verification. Springer, 352–376.
[38]
Yiming Zuo, Weichao Qiu, Lingxi Xie, Fangwei Zhong, Yizhou Wang, and Alan L. Yuille.2019. . In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019. Computer Vision Foundation / IEEE, 4214–4223.
[39]
Ziyu Wang, Yanjie Ze, Yifei Sun, Zhecheng Yuan, and Huazhe Xu.2023. . arXiv preprint arXiv:2312.17116(2023).
[40]
Zhecheng Yuan, Zhengrong Xue, Bo Yuan, Xueqian Wang, Yi Wu, Yang Gao, and Huazhe Xu.2022. . In Advances in Neural Information Processing Systems 35 (2022).
[41]
Fangwei Zhong, Kui Wu, Hai Ci, Churan Wang, and Hao Chen.2024. . In Computer Vision - ECCV 2024 - 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part LXXIII(Lecture Notes in Computer Science, Vol. 15131). Springer, 139–155.
[42]
Dominik Lorenz, Leonard Bereska, Timo Milbich, and Björn Ommer.2019. . In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019. Computer Vision Foundation / IEEE, 10955–10964.
[43]
Wayne Wu, Kaidi Cao, Cheng Li, Chen Qian, and Chen Change Loy.2019. . In Deep Generative Models for Highly Structured Data, ICLR 2019 Workshop. OpenReview.net.
[44]
Xuanchi Ren, Tao Yang, Yuwang Wang, and Wenjun Zeng.2021. . In IEEE/CVF International Conference on Computer Vision Workshops, ICCVW 2021. IEEE, 1823–1832.
[45]
Hehe Fan, Liang Zheng, Chenggang Yan, and Yi Yang.2018. . ACM Transactions on Multimedia Computing, Communications, and Applications14, 4(2018), 1–18.
[46]
Hehe Fan, Yi Yang, and Mohan Kankanhalli.2022. . IEEE Transactions on Pattern Analysis and Machine Intelligence45, 2(2022), 2181–2192.
[47]
Chu-ran Wang, Fei Gao, Fandong Zhang, Fangwei Zhong, Yizhou Yu, and Yizhou Wang.2022. . In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA(Proceedings of Machine Learning Research, Vol. 162). PMLR, 22652–22664.
[48]
Akanksha Saran, Ruohan Zhang, Elaine Schaertl Short, and Scott Niekum.2021. . In AAMAS ’21: 20th International Conference on Autonomous Agents and Multiagent Systems, Virtual Event, United Kingdom, May 3-7, 2021. ACM, 1109–1117.
[49]
Anthony Liang, Jesse Thomason, and Erdem Biyik.2024. . In IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2024,. IEEE, 2907–2912.
[50]
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine.2018. . In Proceedings of the 35th International Conference on Machine Learning, ICML 2018(Proceedings of Machine Learning Research, Vol. 80). PMLR, 1856–1865.
[51]
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei.2009. . In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2009. IEEE, 248–255.
[52]
Shuo Wang, Zhihao Wu, Xiaobo Hu, Jinwen Wang, Youfang Lin, and Kai Lv.2024. . In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024. AAAI Press, 5590–5598.
[53]
Bolei Zhou, Àgata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba.2018. . IEEE Trans. Pattern Anal. Mach. Intell.40, 6(2018), 1452–1464.
[54]
Zhenlin Xu, Deyi Liu, Junlin Yang, Colin Raffel, and Marc Niethammer.2021. . In 9th International Conference on Learning Representations, ICLR 2021. OpenReview.net.
[55]
Masashi Okada Tadahiro Taniguchi.2021. . In IEEE International Conference on Robotics and Automation, ICRA 2021. IEEE, 4209–4215.