Abstract
Training reinforcement learning (RL) agents directly from raw visual inputs is a fundamental challenge due to high data dimensionality and the tendency of agents to overfit. While recent research has focused on complex auxiliary tasks—such as world models or contrastive learning—to improve sample efficiency, we demonstrate that simple image augmentation is a remarkably powerful regularizer. We introduce Data-regularized Q (DrQ), a method that applies random shifts to input images and regularizes the Q-function through multi-view averaging. DrQ achieves state-of-the-art performance on the DeepMind Control Suite and Atari 100k benchmarks, proving that simple data-driven regularization can outperform complex architectural additions.
Introduction
The goal of pixel-based RL is to learn optimal behaviors directly from visual observations. However, standard model-free algorithms like Soft Actor-Critic (SAC) often fail in this regime, especially when data is scarce. In the "low-data" regime (e.g., 100k environment steps), high-capacity convolutional encoders tend to memorize specific pixel patterns rather than learning generalizable features, leading to poor performance.
To combat this, previous state-of-the-art methods introduced significant complexity. For example, PlaNet and Dreamer learn latent world models, SAC-AE uses autoencoders for reconstruction, and CURL employs contrastive learning. While effective, these methods add computational overhead and architectural complexity. DrQ asks a fundamental question: Can we achieve similar or better efficiency using only basic data augmentation?
The DrQ Algorithm
DrQ (Data-regularized Q) introduces three simple regularization mechanisms that can be integrated into any off-policy RL algorithm without changing the underlying loss functions or adding new neural networks.
- Image Augmentation: Every transition sampled from the replay buffer undergoes a "random shift"—the image is padded and then randomly cropped. This ensures the agent rarely sees the exact same pixel configuration twice.
- Target Q-Value Regularization: When computing the target for the Bellman update, DrQ averages the Q-values of $K$ different augmentations of the next state. This reduces the variance of the target estimate.
- Q-Function Regularization: The critic network itself is trained by averaging the Q-values over $M$ different augmentations of the current state.
Crucially, DrQ uses "optimality invariant" augmentations. Unlike classification tasks where a vertical flip might be acceptable, RL requires augmentations that preserve the value and optimal action of a state. Random shifts satisfy this property for most spatial tasks.
Results
The authors evaluated DrQ on the DeepMind Control Suite (DMC) and the Atari 100k benchmark.
As shown in the figure above, DrQ significantly improves the performance and stability of SAC across multiple tasks. A key finding is that DrQ resolves the "overfitting paradox": while larger networks typically perform worse in pixel-based RL due to overfitting, DrQ allows agents to finally leverage high-capacity encoders effectively. In the bottom row of the figure, performance is consistently high regardless of the specific encoder architecture used (Impala, DQN, Dreamer, etc.), whereas unmodified SAC (top row) shows high variance and lower overall returns.
On the Atari 100k benchmark, DrQ achieved a median human-normalized score of 0.268, surpassing previous leaders like OTRainbow and CURL. Furthermore, because it lacks auxiliary losses, DrQ is significantly faster in terms of wall-clock time than its competitors.
Conclusion
DrQ demonstrates that simple image augmentation, when properly integrated into the Q-learning framework, is a highly effective tool for sample-efficient RL from pixels. It provides a "free" performance boost with negligible computational cost and minimal implementation effort. Future work may explore how to adapt these augmentations for non-spatial features or discrete action domains where the performance gap remains an open challenge.
Summary updated