Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation
About
While agents trained by Reinforcement Learning (RL) can solve increasingly challenging tasks directly from visual observations, generalizing learned skills to novel environments remains very challenging. Extensive use of data augmentation is a promising technique for improving generalization in RL, but it is often found to decrease sample efficiency and can even lead to divergence. In this paper, we investigate causes of instability when using data augmentation in common off-policy RL algorithms. We identify two problems, both rooted in high-variance Q-targets. Based on our findings, we propose a simple yet effective technique for stabilizing this class of algorithms under augmentation. We perform extensive empirical evaluation of image-based RL using both ConvNets and Vision Transformers (ViT) on a family of benchmarks based on DeepMind Control Suite, as well as in robotic manipulation tasks. Our method greatly improves stability and sample efficiency of ConvNets under augmentation, and achieves generalization results competitive with state-of-the-art methods for image-based RL in environments with unseen visuals. We further show that our method scales to RL with ViT-based architectures, and that data augmentation may be especially important in this setting.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Continuous Control | DMC-GB video hard | Cartpole Swingup Score4.01e+4 | 18 | |
| Visual Reinforcement Learning | DMControl Walker Walk | Episode Return747 | 16 | |
| Visual Reinforcement Learning | DMControl Reacher Easy | Episode Return811 | 16 | |
| Visual Reinforcement Learning | DMControl Ball in cup, Catch | Episode Return915 | 16 | |
| Visual Reinforcement Learning | DMControl Cheetah Run | Episode Return375 | 16 | |
| Visual Reinforcement Learning | DMControl Finger, Spin | Episode Return859 | 16 | |
| Visual Reinforcement Learning | DMControl Cartpole, Swingup | Episode Return727 | 16 | |
| Continuous Control | DMC-GB video easy | Cartpole Swingup Score782 | 12 | |
| Finger Spin | DMControl Novel view (test) | Reward505 | 12 | |
| Cup Catch | DMControl Novel view (test) | Reward743.5 | 12 |