Abstract
Reinforcement Learning (RL) agents trained on visual observations often suffer from severe overfitting, failing to generalize to even minor environmental changes. While Data Augmentation (DA) is a standard solution in supervised learning, its application in off-policy RL frequently leads to training instability. This paper introduces SVEA (Stabilized Q-Value Estimation under Augmentation), a framework that decouples augmentation from the bootstrapping process. SVEA enables the use of strong data augmentations without sacrificing stability, achieving state-of-the-art generalization across various benchmarks and successfully scaling image-based RL to Vision Transformers (ViTs).
Introduction
Training RL agents directly from high-dimensional visual inputs, such as camera feeds, is a core challenge in robotics and autonomous systems. A primary hurdle is the tendency of these agents to overfit to specific visual features—like background textures or lighting—that are irrelevant to the underlying task. Consequently, an agent that performs perfectly in a training simulator may fail entirely when deployed in a slightly different environment.
In computer vision, Data Augmentation (DA) is the primary tool for teaching models invariance to such visual noise. However, applying DA to off-policy RL is non-trivial. Previous research has shown that while simple spatial shifts can improve performance, more aggressive augmentations (e.g., color jitter, random convolutions) often cause the learning process to diverge or stall. This work identifies the root causes of this instability and proposes a robust architectural solution.
The Challenges of Data Augmentation in RL
The authors identify two primary "pitfalls" that hinder the integration of strong DA in RL:
- Non-deterministic Q-targets: In off-policy RL, the agent learns by "bootstrapping"—predicting the value of the current state based on the estimated value of the next state. If the next state is augmented, it introduces significant variance into the target signal, making the optimization landscape highly unstable.
- Over-regularization: If an agent is trained exclusively on augmented data, the "noise" from the augmentations can dominate the gradient signal, preventing the agent from learning the fundamental dynamics of the task.
The SVEA Framework
To address these pitfalls, the authors propose SVEA, which modifies the standard Deep Q-Learning objective through three key mechanisms:
- Stable Bootstrapping: SVEA calculates the target Q-value using the unaugmented next state. By keeping the target "clean," the agent avoids the high variance associated with augmented bootstrapping.
- Data-Mixing Objective: The Q-function (the critic) is trained on a mixed batch of both clean and augmented versions of the current state. This ensures the agent maintains high performance on the base task while simultaneously learning to be invariant to visual perturbations.
- Clean Actor Optimization: The policy (the actor) is updated using only unaugmented data. Since the actor shares a visual encoder with the critic, it benefits from the critic's learned representations without being exposed to noisy observations during its own update phase.
Empirical Evaluation and Results
SVEA was evaluated on the DeepMind Control Suite (DMControl), the DMControl Generalization Benchmark (DMControl-GB), and the Distracting Control Suite. These benchmarks test agents on their ability to handle unseen colors, video backgrounds, and dynamic distractions.
State-of-the-Art Generalization
SVEA consistently outperformed existing methods like DrQ, RAD, and CURL. For instance, on the Walker, walk task with complex video backgrounds, SVEA achieved a return of 819, surpassing the previous best of 768.
Scaling to Vision Transformers
A significant contribution of this work is the successful application of Vision Transformers (ViTs) to image-based RL. The authors found that while ViTs are even more prone to overfitting than ConvNets, SVEA provides the necessary stabilization for them to thrive. SVEA with a ViT encoder reached a mean return of 877 on the Walker generalization task, notably higher than the 760 achieved by the ConvNet-based version.
Training Efficiency
Beyond performance, SVEA is highly efficient. It matches the sample efficiency of unaugmented agents and is approximately 6x faster in wall-clock training time than competing methods like DrQ when those methods are tuned to match SVEA's generalization capabilities.
Conclusion
SVEA demonstrates that the "deadly triad" of RL instability can be managed even under strong data augmentation by carefully decoupling the bootstrapping process. By providing a simple, parameter-free modification to the Q-learning objective, SVEA sets a new standard for visual generalization in RL and opens the door for more complex architectures like Vision Transformers to be used effectively in control tasks.
Summary updated