Abstract
Domain randomization (DR) is a successful technique for learning robust policies for robot systems when the dynamics of the target robot system are unknown. The success of policies trained with DR, however, is highly dependent on the correct selection of the randomization distribution. In this paper, we consider the problem of finding good domain randomization parameters for simulation without prior access to data from the target system. We explore the use of gradient-based search methods to learn a domain randomization that ensures policy success while remaining wide enough to capture target system dynamics. We show how adapting the domain randomization distribution while training context-conditioned policies results in improvements on jump-start and asymptotic performance when transferring a learned policy to the target environment.
Introduction: The Reality Gap and the Goldilocks Problem
Training reinforcement learning (RL) policies in simulation and transferring them to physical robots often fails due to the "reality gap"—the inevitable differences between simulated and real-world dynamics. Domain Randomization (DR) tackles this by training the policy across a wide variety of simulated environments (e.g., varying friction, mass, or damping).
However, selecting the right DR distribution is a "Goldilocks problem." If the distribution is too narrow, the policy won't generalize to the real world. If it's too wide, the simulator might generate physically impossible or unsolvable environments, wasting the model's finite learning capacity and causing training to fail. Most existing methods rely on real-world data to fine-tune these distributions. This paper addresses the extreme, zero-data case: how can we automatically find a good DR distribution purely in simulation, ensuring it is wide enough to generalize but focused enough to be solvable?
LSDR: Learning the Sweet-spot Distribution Range
The authors propose LSDR (Learning the Sweet-spot Distribution Range). Instead of sampling simulator parameters from a fixed, manually defined range, LSDR concurrently learns both the robot's policy and the distribution of the simulator parameters.
Core Mechanics
- Context-Conditioned Policies: The RL policy is fed a "context vector" representing the current simulator parameters (like mass or friction), allowing it to adapt its actions based on the environment's physics. The policy is optimized using Proximal Policy Optimization (PPO).
- Distribution Optimization: The simulator parameters are drawn from a learned surrogate distribution. This distribution is updated using gradient ascent to maximize the policy's expected reward. Essentially, the simulator learns to propose environments where the agent can actually succeed.
- KL-Divergence Regularization: To prevent the distribution from collapsing to only the easiest environments, the authors add a KL-divergence penalty. This forces the learned distribution to remain diverse relative to a broad, uniform prior distribution.
- Worst-Case Optimization: The authors also experiment with using EPOpt-PPO, an optimizer that focuses policy updates on the worst-performing environments, further encouraging robustness and mitigating the bias toward easy environments.
Experimental Setup
The method is evaluated on standard continuous control locomotion benchmarks from the OpenAI Gym MuJoCo suite, specifically the Hopper and Half-Cheetah environments. The authors randomize physical context variables including torso size, density, foot friction, and joint damping.
Key Results
- Automatic Range Discovery: For the Hopper's torso size, the algorithm started with a blindly wide prior range of $[-0.1, 0.2]$ and successfully converged to a physically plausible, solvable range of $[0.0015, 0.09]$.
- Faster Convergence: When using the EPOpt-PPO variant, LSDR achieved a cumulative reward of >3000 on the Hopper task in roughly half the epochs required by a baseline using a fixed, uniform DR distribution.
- Better Asymptotic Performance: Across both Hopper and Half-Cheetah tasks, policies trained with the dynamically learned DR distribution (LSDR) achieved higher final rewards and exhibited lower variance across random seeds compared to policies trained with fixed domain randomization.
Limitations and Future Work
Limitations: The paper relies on explicit context encoding (feeding the exact simulator parameters to the policy as input), which might not always be perfectly known or measurable during a real-world deployment. Additionally, the method currently uses relatively simple parameterizations for the distributions (discrete bins or multivariate Gaussians).
Future Work: The authors suggest exploring more flexible parameterizations for the DR distribution to capture more complex environmental dynamics. They also plan to explore better, more nuanced objectives for learning the distribution beyond simple reward maximization and KL regularization.
Summary updated