Does Self-supervised Learning Really Improve Reinforcement Learning from Pixels?

Xiang Li, Jinghuan Shang, Srijan Das, Michael S. Ryoo

Introduction

Learning to act directly from raw pixels is a fundamental challenge in robotics and artificial intelligence. High-dimensional visual inputs and highly correlated reinforcement learning (RL) data often make it difficult for agents to learn efficient internal representations. To address this, researchers have increasingly integrated Self-supervised Learning (SSL) auxiliary tasks—such as predicting rotations or future frames—into RL pipelines. However, recent evidence suggests that simple image augmentations (e.g., random cropping) also provide significant performance boosts. This study investigates whether SSL actually adds value beyond the benefits of the augmentations used within those tasks.

Methods

The authors performed an extensive empirical study using a joint learning framework, where RL and SSL losses are optimized simultaneously. This framework was tested across two major RL paradigms: Soft Actor-Critic (SAC) for continuous control and Rainbow for discrete actions.

The joint learning framework for (a) Soft Actor-Critic (SAC) and (b) Rainbow RL methods.

The study evaluated four primary categories of SSL:

  1. Pairwise Learning: Comparing different augmented "views" of the same image (e.g., CURL, MoCo).
  2. Transformation Awareness: Predicting image manipulations like shuffling or rotation.
  3. Reconstruction: Rebuilding images using autoencoders or Masked Autoencoders.
  4. RL Context Prediction: Predicting future states, actions, or rewards.
Examples of auxiliary SSL tasks: Transformation Awareness (left) and RL Context Prediction (right).

To optimize these configurations, the researchers employed ELo (Evolving Losses), an evolutionary search algorithm based on Particle Swarm Optimization, to find the best weights for SSL losses and augmentation magnitudes. Representation quality was further analyzed using metrics like "Dynamic Awareness" and "Orthogonality."

Results and Key Insights

The study across DeepMind Control Suite, Atari 2600, and real-world robotic tasks yielded several critical findings:

  • Augmentation is the Primary Driver: Most performance gains previously attributed to SSL actually stem from the image augmentations used to set up the SSL tasks. When baseline RL agents are provided with identical augmentations, the SSL advantage typically disappears.
  • No Universal Solution: No single SSL loss or augmentation strategy performed consistently across all environments. A method beneficial for a simple reaching task might degrade performance in complex Atari games.
  • Potential for Interference: Certain SSL losses, such as SimSiam or ShuffleCLS, can be destructive, leading to worse performance than agents using no SSL at all.
  • Metric Disconnect: While SSL often improves representation metrics like orthogonality, these improvements do not reliably correlate with higher agent scores or better policy performance.

Quantitatively, in 11 out of 19 tested SSL configurations on DMControl, the auxiliary loss failed to improve the RL agent over an augmentation-only baseline. In Atari, most SSL losses failed to outperform the vanilla Efficient Rainbow baseline.

Conclusion

The findings suggest that the current "plug and play" approach to integrating SSL losses into RL via joint learning has reached a point of diminishing returns. While pre-training on large datasets remains a promising avenue, the immediate benefits of SSL in joint training are largely redundant when robust image augmentation is employed. Future research should focus on more sophisticated integration strategies that go beyond simple multi-task loss summation.

Summary updated

BibTeX
@inproceedings{li2022does,
  author = {Xiang Li and Jinghuan Shang and Srijan Das and Michael S. Ryoo},
  title = {{Does Self-supervised Learning Really Improve Reinforcement Learning from Pixels?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure