Generating Automatic Curricula via Self-Supervised Active Domain Randomization

Sharath Chandra Raparthy, Bhairav Mehta, Florian Golemo, Liam PaullarXiv 2020

Abstract

Goal-directed Reinforcement Learning (RL) traditionally considers an agent interacting with an environment, prescribing a real-valued reward to an agent proportional to the completion of some goal. Goal-directed RL has seen large gains in sample efficiency, due to the ease of reusing or generating new experience by proposing goals. One approach, self-play, allows an agent to "play" against itself by alternatively setting and accomplishing goals, creating a learned curriculum through which an agent can learn to accomplish progressively more difficult goals. However, self-play has been limited to goal curriculum learning or learning progressively harder goals within a single environment. Recent work on robotic agents has shown that varying the environment during training, for example with domain randomization, leads to more robust transfer. As a result, we extend the self-play framework to jointly learn a goal and environment curriculum, leading to an approach that learns the most fruitful domain randomization strategy with self-play. Our method, Self-Supervised Active Domain Randomization (SS-ADR), generates a coupled goal-task curriculum, where agents learn through progressively more difficult tasks and environment variations. By encouraging the agent to try tasks that are just outside of its current capabilities, SS-ADR builds a domain randomization curriculum that enables state-of-the-art results on various sim2real transfer tasks. Our results show that a curriculum of co-evolving the environment difficulty together with the difficulty of goals set in each environment provides practical benefits in the goal-directed tasks tested.

Introduction

Reinforcement Learning (RL) for robotics often faces two major bottlenecks: reward engineering and the reality gap. Designing a reward function that leads to desired behavior is often a trial-and-error process, while policies trained in simulation frequently fail when deployed on real hardware due to physical discrepancies like friction or motor torque variations.

This paper introduces Self-Supervised Active Domain Randomization (SS-ADR), a framework that automatically trains robust robotic agents by co-evolving two curricula: what the agent should do (goals) and where it should do it (environment conditions). By combining asymmetric self-play with active domain randomization, the system generates a "Goldilocks" training regime—tasks that are just beyond the agent's current reach—leading to superior sim-to-real transfer.

Methodology: The SS-ADR Framework

The authors propose SS-ADR, which merges two powerful concepts to solve the curriculum problem without manual intervention.

Overview of the SS-ADR framework showing the interaction between Alice, Bob, and the SVPG-driven simulator.

Asymmetric Self-Play

The system uses two "brains," Alice and Bob. Alice explores a "reference" (standard) environment and sets a target state (a goal). Bob then tries to reach that same goal in a randomized environment. Alice is rewarded when she can complete a task quickly that Bob cannot yet do. This naturally pushes the goal difficulty forward as Bob improves.

Active Domain Randomization (ADR)

Instead of picking environment parameters (like friction) at random, SS-ADR uses Stein Variational Policy Gradient (SVPG) particles to search for the most informative environment instances. These ADR particles are updated using Alice’s self-play reward, forcing the environment curriculum to evolve in lockstep with the goal curriculum. If Bob becomes proficient in a specific environment, the system finds a harder one to maintain an optimal challenge level.

Experimental Setup

The researchers evaluated their method on two continuous control robotic tasks using both simulated environments and real-world Poppy Ergo Jr. robots to test zero-shot transfer:

  1. ErgoReacher: A 4-Degree-of-Freedom (DoF) robotic arm moving to various imaginary goals.
  2. ErgoPusher: A 3-DoF robotic arm tasked with pushing a puck to a target location.
Simulated and real-world task environments: (a) Simulated ErgoReacher, (b) Real ErgoReacher, (c) Simulated ErgoPusher, (d) Real ErgoPusher.

Key Results and Insights

  • Superior Robustness: In both ErgoReacher and ErgoPusher, SS-ADR significantly outperformed Uniform Domain Randomization (UDR) and standard self-play. On real robots, SS-ADR achieved the lowest average final distance to the goal.
  • Self-Calibration: SS-ADR is "self-calibrating." If provided with a range of parameters that includes physically impossible or "broken" simulations, the system learns to avoid those regions, whereas standard UDR often gets stuck trying to solve unsolvable tasks.
  • Stability and Efficiency: SS-ADR showed much more consistent performance across different random seeds compared to ADR alone. By focusing on the "frontier" of Bob's capabilities, the agent avoids the unpredictable behavior often seen in uniform sampling.

Conclusion

SS-ADR demonstrates that a single self-supervised reward—the time difference between Alice and Bob—is sufficient to drive the learning of both task complexity and environmental robustness. This co-evolution prevents degenerate solutions and provides a practical path for robust sim-to-real transfer in goal-directed robotic tasks. Future work may explore scaling this framework to higher-dimensional tasks like complex dexterous manipulation.

Summary updated

BibTeX
@misc{raparthy2020generating,
  author = {Sharath Chandra Raparthy and Bhairav Mehta and Florian Golemo and Liam Paull},
  title = {{Generating Automatic Curricula via Self-Supervised Active Domain Randomization}},
  year = {2020},
  eprint = {2002.07911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07911},
}
Figure