Curriculum in Gradient-Based Meta-Reinforcement Learning

Bhairav Mehta, Tristan Deleu, Sharath Chandra Raparthy, Christopher J. Pal, Liam PaullarXiv 2020

Abstract

Gradient-based meta-reinforcement learning (meta-RL) is highly sensitive to the task distribution encountered during training. We present Meta-ADR (Active Domain Randomization for Meta-RL), an automated curriculum learning framework. By employing a discriminator to identify tasks with high learning potential and Stein Variational Policy Gradient (SVPG) for particle-based optimization, Meta-ADR significantly enhances the stability and generalization of meta-RL agents like MAML across diverse environments.

Introduction

Meta-learning aims to develop agents capable of rapid adaptation to new tasks using minimal samples. However, algorithms such as Model-Agnostic Meta-Learning (MAML) are bottlenecked by their reliance on manually defined task distributions. If the training distribution is too broad, the agent underfits; if too narrow, it overfits, failing to generalize to even minor environmental variations. This "meta-overfitting" often results in shallow adaptation or complete training instability. Meta-ADR addresses this by treating task selection as a dynamic curriculum problem, ensuring the agent is exposed to the most informative tasks throughout training.

Methodology

Meta-ADR introduces an automated curriculum generator that wraps around standard meta-RL algorithms. The framework consists of three core components:

  1. Discriminator-Based Reward: A neural network is trained to distinguish between an agent's trajectories before and after a meta-adaptation gradient step. A high discriminability indicates that the task significantly alters the agent's behavior, suggesting it has high learning potential.
  2. SVPG Task Particles: The system uses Stein Variational Policy Gradient (SVPG) to maintain a set of "particles" representing task parameters. These particles are optimized to find tasks that maximize the discriminator's reward while maintaining diversity to prevent the agent from collapsing onto a single task.
  3. Meta-Learning Loop: The generated tasks are fed into a simulator, and the resulting rollouts are used to update the meta-policy.
The Meta-ADR framework architecture, illustrating the interaction between the meta-learner, discriminator, and SVPG task generator.

Experimental Evaluation

The framework was evaluated on several MuJoCo-based benchmarks, including 2D-Navigation, Ant-Navigation, Ant-Velocity, and Humanoid-Directional tasks. A primary focus was on out-of-distribution (OOD) generalization, where agents were trained on a restricted range of parameters and tested on a much broader set.

Key Results

Meta-ADR demonstrated superior generalization and robustness compared to uniform task sampling. In 2D Navigation, Meta-ADR maintained high performance across the entire goal space, whereas uniform sampling showed significant bias and "patchy" performance. In the Ant-Velocity benchmark, Meta-ADR proved significantly more stable, particularly when the training distribution was intentionally mis-calibrated or difficult.

Performance comparison on the AntVelocity task. Meta-ADR shows more consistent scores across a range of target velocities compared to uniform sampling.

Discussion and Insights

The research highlights that the task distribution is a critical hyperparameter in meta-RL. Shifting the training range slightly can lead to catastrophic failure in standard MAML setups. Meta-ADR mitigates this by "smoothing" the difficulty curve, helping agents overcome natural biases toward easier tasks.

Furthermore, the study identifies "negative adaptation"—where learning steps decrease performance—as a symptom of meta-overfitting. While Meta-ADR improves stability and reduces variance across random seeds, it does not entirely eliminate negative adaptation, suggesting a need for further research into the interaction between reward design and task distributions.

Conclusion

Meta-ADR provides a robust framework for automating task selection in meta-RL. By focusing on tasks that maximize behavioral change post-adaptation, the method ensures stable training and strong generalization to unseen environments. The authors advocate for a shift in benchmarking toward evaluating stability across diverse task distributions rather than just peak performance.

Summary updated

BibTeX
@misc{mehta2020curriculum,
  author = {Bhairav Mehta and Tristan Deleu and Sharath Chandra Raparthy and Christopher J. Pal and Liam Paull},
  title = {{Curriculum in Gradient-Based Meta-Reinforcement Learning}},
  year = {2020},
  eprint = {2002.07956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07956},
}
Figure