Efficient Scheduling of Data Augmentation for Deep Reinforcement Learning

Jungseul Ok · DOI

Abstract

Data augmentation (DA) is a cornerstone of generalization in deep learning, yet its application in Reinforcement Learning (RL) is often hindered by the "interference" it causes with the primary task. This paper introduces UCB-ExDA, a novel framework that adaptively schedules the application of augmentations. By distinguishing between augmentations applied during training (Intra Distillation) and those applied as a post-processing step (Extra Distillation), the framework maximizes both sample efficiency and final performance on unseen environments. Evaluations on the OpenAI Procgen benchmark demonstrate that UCB-ExDA significantly outperforms existing baselines while maintaining high computational efficiency.

Introduction

In deep reinforcement learning, agents frequently overfit to the specific visual characteristics of their training environments. When moved to a new environment—even one with identical mechanics but different backgrounds or layouts—performance often collapses. While data augmentation techniques like random cropping or color jittering are standard solutions in supervised learning, they present a unique challenge in RL: interference.

Because RL is a non-stationary process where the agent’s policy and data distribution are constantly evolving, forcing the agent to maintain consistency across augmented views can distract it from mastering the core task. This paper addresses the "Goldilocks problem" of RL augmentation: determining which augmentations to use and, crucially, when to use them to ensure robust generalization without sacrificing training speed.

Methodology

Distillation with Augmented Observations (DA)

The authors propose a standalone network distillation method termed DA. Unlike traditional methods that merge RL and augmentation losses into a single objective, DA explicitly preserves the agent’s current response to original inputs while injecting the augmentation prior. This separation allows the agent to learn the task dynamics first and the invariance properties second.

Scheduling Strategies: InDA vs. ExDA

The framework defines two distinct scheduling extremes:

  1. Intra Distillation (InDA): Augmentation is interleaved throughout the entire RL training process. This is useful for tasks where generalization is required early to make any progress.
  2. Extra Distillation (ExDA): Augmentation is postponed until after the primary RL training is complete. This allows the agent to focus purely on the task initially, then "fine-tune" its generalization capabilities using stored transitions without requiring additional environment samples.

The UCB-ExDA Framework

To automate the selection of these strategies, the authors developed UCB-ExDA. This system utilizes a Multi-Armed Bandit algorithm (Upper Confidence Bound) to decide which augmentation—or the "no augmentation" option—to apply during the training phase. Once training concludes, a final ExDA phase is executed to extract any remaining generalization benefits from the full suite of available augmentations.

Experimental Setup

The primary evaluation was conducted on the OpenAI Procgen benchmark, which consists of 16 procedurally generated games. Agents were trained on "easybg" (simplified backgrounds) and tested on "test-bg" (unseen backgrounds) and "test-lv" (unseen levels). To demonstrate the framework's versatility, the authors also performed experiments on the DeepMind Control Suite (DMC) using the Soft Actor-Critic (SAC) algorithm.

Key Insights

The Importance of "Doing Nothing"

A critical component of the UCB framework is the inclusion of a "no augmentation" arm. In games like Heist, where visual augmentations can be highly distracting, the agent learns to ignore DA during the main training phase, relying instead on the post-hoc ExDA phase to gain robustness. This prevents the performance degradation often seen in static augmentation methods.

Post-Hoc Generalization Injection

One of the paper's most significant findings is that generalization can be effectively "injected" after training. Applying ExDA at the end of the training cycle can boost test scores significantly without slowing down the initial learning phase. This suggests that the features required for task mastery and those required for generalization are not always mutually exclusive but can be learned sequentially.

Computational Efficiency

ExDA is approximately five times more efficient than InDA. Because it does not require constant environment interaction or complex gradient calculations across the entire training run, it offers a low-cost method for improving agent robustness.

Results and Discussion

UCB-ExDA consistently outperformed established baselines such as DrAC and RAD. For example, in the game Chaser, the framework achieved a test-bg score of 3.18, whereas the standard DrAC baseline scored only 0.1.

Furthermore, the framework demonstrated remarkable stability. When "harmful" augmentations (such as those that obscure the screen) were introduced, ExDA simply ignored the bad prior. In contrast, concurrent methods often saw their performance collapse under the same conditions. This robustness makes UCB-ExDA a reliable choice for complex environments where the utility of specific augmentations is not known a priori.

Conclusion and Future Work

UCB-ExDA successfully balances the trade-off between sample efficiency and generalization by treating augmentation as a schedulable resource. While the current implementation uses a discrete set of augmentations, future research could explore optimizing augmentation parameters (e.g., the intensity of color shifts) in a continuous space. Additionally, integrating data condensation techniques could further accelerate the distillation process, making high-performance generalization even more accessible for resource-constrained RL applications.

Summary updated

BibTeX
@inproceedings{ok2022efficient,
  author = {Jungseul Ok},
  title = {{Efficient Scheduling of Data Augmentation for Deep Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=7KKL3Z5sod},
}
Figure