NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Measuring Visual Generalization in Continuous Control from Pixels

Jake Grigsby, Yanjun Jane QiOpenReview 2020

Abstract

Self-supervised learning and data augmentation have significantly reduced the performance gap between state and image-based reinforcement learning agents in continuous control tasks. However, it is still unclear whether current techniques can face a variety of visual conditions required by real-world environments. We propose a challenging benchmark that tests agents' visual generalization by adding graphical variety to existing continuous control domains. Our empirical analysis shows that current methods struggle to generalize across a diverse set of visual changes, and we examine the specific factors of variation that make these tasks difficult. We find that data augmentation techniques outperform self-supervised learning approaches and that more significant image transformations provide better visual generalization.

Introduction

Reinforcement Learning (RL) has achieved remarkable success in simulated environments. However, transitioning these agents to real-world applications remains a "Grand Challenge" due to the sim-to-real gap. While simulators often feature static lighting, uniform textures, and fixed camera angles, real-world environments are characterized by dynamic shadows, diverse floorings, and shifting perspectives. Most current research prioritizes sample efficiency, often neglecting visual generalization. Agents may learn to perform tasks by overfitting to specific pixel patterns—a phenomenon termed "observational overfitting"—rather than mastering the underlying physics. This study quantifies this overfitting and evaluates algorithmic techniques for improving robustness to visual noise.

The DeepMind Control Remastered (DMCR) Benchmark

To address the lack of challenging visual environments, we introduce the DeepMind Control Remastered (DMCR) benchmark. Built upon the standard DeepMind Control Suite (DMC), DMCR modifies the MuJoCo renderer to support "visual seeds." Each seed generates a unique environment by varying floor textures (e.g., rock, grass, ice), backgrounds (using natural landscape photography), robot body colors, and lighting/camera properties. This framework allows for millions of visually distinct versions of the same physical task, facilitating rigorous zero-shot generalization testing.

Standard visual state $\phi_0(s_0)$ in the DMCR benchmark.

Methods

We evaluate three primary categories of pixel-based RL:

  1. Auxiliary Losses: Methods such as SAC+AE (autoencoder reconstruction) and CURL (contrastive learning) which aim to learn robust representations.
  2. Data Augmentation: Techniques like RAD and DrQ that apply random crops or translations to force invariance to spatial shifts.
  3. Advanced Alterations: We specifically test Color Jitter (CJ) and Network Randomization (NR). NR utilizes a fixed, randomly initialized convolutional layer to scramble input colors and textures, creating a synthetic variety of training environments.

The core algorithm employed is Soft Actor-Critic (SAC), a state-of-the-art off-policy method for continuous control.

Results and Discussion

Our analysis reveals that agents trained on default DMC visuals suffer from catastrophic generalization failure, with error rates often exceeding 90% when tested on DMCR. Standard SAC+AE and CURL agents saw performance drop from near-perfect returns (900+) to nearly zero.

Key findings include:

  • Augmentation Trumps Complexity: Simple data augmentations often outperform complex self-supervised auxiliary losses in handling novel visual environments.
  • Sensitivity to Color and Texture: Changes in floor texture and background are the most disruptive factors. While spatial augmentations (like cropping) are insufficient, color-altering techniques (CJ and NR) significantly improve performance by preventing reliance on specific color cues.
  • Invariance through Regularization: Explicitly regularizing the encoder to be invariant to augmentations stabilizes training and improves representation consistency.

Conclusion

Current RL agents are prone to observational overfitting, mastering specific visual patterns rather than task physics. While heavy data augmentation offers a promising path toward visual generalization, challenges remain. Future work should explore few-shot adaptation and more drastic perspective changes to further bridge the sim-to-real gap.

Summary updated

BibTeX
@misc{grigsby2020measuring,
  author = {Jake Grigsby and Yanjun Jane Qi},
  title = {{Measuring Visual Generalization in Continuous Control from Pixels}},
  year = {2020},
  eprint = {2010.06740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06740},
  howpublished = {OpenReview},
}
Figure