Generalization in Reinforcement Learning by Soft Data Augmentation
Nicklas Hansen, Xiaolong Wang
TL;DR
This work tackles the generalization gap in vision-based reinforcement learning by decoupling data augmentation from policy optimization through SOft Data Augmentation (SODA). SODA uses a self-supervised latent-mapping objective to maximize information shared between augmented and non-augmented observations while the RL policy is trained only on non-augmented data, improving stability and sample efficiency. Empirical results on DMControl-GB and a robotic manipulation task show that SODA outperforms strong baselines in generalization to unseen environments and under strong visual perturbations, with notable gains in color and video-background scenarios. The approach provides a practical, architecture-agnostic method to leverage robust data augmentations via representation learning without destabilizing RL optimization, and the authors release DMControl-GB as an open benchmark.
Abstract
Extensive efforts have been made to improve the generalization ability of Reinforcement Learning (RL) methods via domain randomization and data augmentation. However, as more factors of variation are introduced during training, optimization becomes increasingly challenging, and empirically may result in lower sample efficiency and unstable training. Instead of learning policies directly from augmented data, we propose SOft Data Augmentation (SODA), a method that decouples augmentation from policy learning. Specifically, SODA imposes a soft constraint on the encoder that aims to maximize the mutual information between latent representations of augmented and non-augmented data, while the RL optimization process uses strictly non-augmented data. Empirical evaluations are performed on diverse tasks from DeepMind Control suite as well as a robotic manipulation task, and we find SODA to significantly advance sample efficiency, generalization, and stability in training over state-of-the-art vision-based RL methods.
