Abstract
Bridging the "reality gap" remains a central challenge in Reinforcement Learning (RL) for robotics. While Domain Randomization (DR) provides a framework for robustness, manually tuning simulation parameters is often infeasible. Adaptive Domain Randomization (ADR) automates this process by leveraging real-world data to refine simulation distributions. This paper presents the first systematic benchmark comparing online and offline ADR methods across diverse locomotion tasks. Our findings highlight a fundamental trade-off: online methods offer extreme data efficiency but are susceptible to a "vicious cycle" of poor policy quality, while offline methods like DROPO provide superior robustness by utilizing simulator state resets to prevent error compounding.
Introduction
Reinforcement Learning agents trained in simulation frequently fail when deployed on physical hardware. This discrepancy, known as the reality gap, stems from the simulator's inability to perfectly capture complex physical dynamics such as friction, joint slack, and sensor noise. Domain Randomization (DR) addresses this by training agents across a distribution of simulated environments. However, the success of DR is highly sensitive to the chosen parameter ranges.
Adaptive Domain Randomization (ADR) seeks to automate the tuning of these distributions using small amounts of real-world data. Despite the proliferation of ADR algorithms, the field has lacked a standardized comparison. This study benchmarks four prominent ADR algorithms against a Uniform Domain Randomization (UDR) baseline to evaluate their performance, data efficiency, and scalability in the face of noisy and unmodeled dynamics.
Methodology
The benchmark categorizes ADR approaches into two primary paradigms:
Online Methods
Online methods iteratively collect data using the current policy and update the simulator parameters accordingly.
- SimOpt: This method minimizes the discrepancy between trajectories observed in the real world and those generated in simulation. It functions through an iterative loop of simulator updates followed by policy retraining.
- BayRn: Utilizing Bayesian Optimization, BayRn treats the simulator as a "black box." It searches for parameters that maximize the expected return when the policy is deployed in the real environment.
Offline Methods
Offline methods utilize a fixed dataset of real-world transitions to calibrate the simulator.
- DROID: This approach replays real-world action sequences within the simulator. It uses an evolutionary strategy (CMA-ES) to minimize the Euclidean distance between the resulting simulated states and the observed real-world states.
- DROPO: Similar to DROID, DROPO employs a maximum-likelihood framework. Its defining characteristic is the requirement for "state resets," where the simulator is forced to match the exact state of the real-world data at every transition step to prevent trajectory drift.
Experimental Setup
The algorithms were evaluated using four OpenAI Gym locomotion tasks powered by the MuJoCo physics engine: Hopper, HalfCheetah, Walker2D, and Humanoid. The Humanoid task represents a high-dimensional challenge with over 376 states and 30 randomized parameters.
To simulate real-world complexity, the authors tested three distinct scenarios:
- Vanilla: The simulator perfectly models the underlying physics.
- Noisy: Simulated sensor data is corrupted with noise.
- Unmodeled: Certain physical parameters are hidden from the ADR optimizer, forcing the algorithms to compensate for dynamics they cannot explicitly tune.
Key Insights and Analysis
The Vicious Cycle of Online ADR
A significant finding is the dependency of online methods like SimOpt on the quality of the data-collection policy. If an initial policy performs poorly on the physical robot, the resulting data is uninformative. This leads to inaccurate simulator tuning, which subsequently produces another ineffective policy. This "vicious cycle" suggests that the success of online ADR is heavily gated by the "jump-start" performance of the initial controller.
The Divergence Problem and State Resets
Offline methods that rely on open-loop trajectory replaying (e.g., DROID) often suffer from the divergence problem. Small numerical discrepancies in the physics engine compound over time, causing the simulated agent to drift significantly from the real-world trajectory. DROPO mitigates this by resetting the simulator state at every transition. This provides a cleaner gradient for optimization and was a primary factor in DROPO's superior performance across the benchmark.
Scalability and Efficiency
While Bayesian methods like BayRn are effective in low-dimensional spaces, they struggle to scale. In the Humanoid task, the high dimensionality of the parameter space rendered black-box optimization nearly impossible. Conversely, online methods proved to be remarkably data-efficient, often reaching convergence with as few as five real-world trajectories (approximately 10 seconds of data).
Results
- Performance Leader: DROPO emerged as the most robust algorithm, achieving the highest average returns, particularly in the "Unmodeled" scenario which most closely mimics real-world deployment.
- Data Efficiency: Online methods (SimOpt) demonstrated the best performance-to-data ratio, provided the initial policy was sufficiently functional to gather meaningful data.
- Robustness: Offline methods generally provided more consistent "jump-start" performance compared to online iterations when real-world data was scarce.
Conclusion and Future Work
This benchmark clarifies the trade-offs inherent in ADR. While online methods offer efficiency, their reliance on policy quality creates a bottleneck. Offline methods like DROPO offer a more robust alternative but require simulators that support arbitrary state resets—a feature not available in all proprietary engines.
Future research should focus on extending these benchmarks to physical hardware and exploring non-parametric distribution shapes to better capture multi-modal physical realities that Gaussian distributions may fail to represent.
Summary updated