Abstract
Deep reinforcement learning (RL) agents are notorious for memorizing training environments, leading to poor generalization in novel settings. This paper introduces Data-regularized Actor-Critic (DrAC), a theoretically grounded framework for applying data augmentation to actor-critic algorithms. To address the challenge of selecting task-specific transformations, we propose UCB-DrAC, which uses a multi-armed bandit algorithm to automatically discover optimal augmentations during training. Our methods achieve state-of-the-art results on the Procgen benchmark, improving test performance by 40% over standard PPO.
Introduction: The Generalization Gap in RL
In computer vision, data augmentation is a standard technique to prevent overfitting. However, its application in Reinforcement Learning faces two significant hurdles. First, there is a theoretical conflict: standard algorithms like PPO rely on importance sampling; naively replacing real observations with augmented ones in the replay buffer invalidates the underlying policy gradient estimates. Second, there is a practical selection problem: augmentations are not universally beneficial. For instance, horizontal flipping might help in a generic platformer but could be catastrophic for an agent learning to navigate based on left-right cues.
Methodology
To overcome these challenges, we propose a two-pronged approach.
1. Data-regularized Actor-Critic (DrAC)
DrAC avoids corrupting the core RL objective by treating augmentation as a regularization task. Instead of training directly on augmented images, DrAC adds two specific terms to the loss function:
- Policy Regularization: Minimizes the KL divergence between the action distributions of original and augmented observations.
- Value Regularization: Minimizes the mean squared error between the value estimates for original and augmented observations.
2. Automatic Augmentation Selection (UCB-DrAC)
Rather than manually tuning augmentations, UCB-DrAC treats the selection process as a multi-armed bandit problem. Using the Upper Confidence Bound (UCB) algorithm, the agent tracks the rewards associated with different transformations (e.g., crop, grayscale, color-jitter). It balances the exploitation of high-performing augmentations with the exploration of others, ensuring the most effective visual invariance is learned for each specific task.
Experimental Evaluation
We evaluated our approach on two challenging benchmarks: the Procgen Benchmark, consisting of 16 procedurally generated games, and the DeepMind Control (DMC) Suite with Distractors, which adds complex visual noise to continuous control tasks.
Key Results
- Procgen Performance: UCB-DrAC established a new state-of-the-art, outperforming standard PPO by 40% in test environments and 19% in training environments. It also surpassed specialized baselines like Mixreg and PLR.
- Robustness to Distractors: In DMC tasks with natural video backgrounds, UCB-DrAC successfully maintained performance while vanilla PPO and naive augmentation methods failed to converge.
- Representation Learning: Analysis indicates that UCB-DrAC promotes "cycle-consistency," allowing agents to develop internal representations that are invariant to irrelevant visual changes, such as background shifts.
Discussion and Conclusion
Our findings suggest that the key to effective augmentation in RL lies in proper regularization and automated selection. While meta-learning approaches were explored, the simplicity and stability of the UCB bandit algorithm proved superior. Future work may involve expanding the search space of augmentations beyond discrete predefined sets to further enhance the flexibility of the UCB-DrAC framework.
Summary updated