Assessing Transferability from Simulation to Reality for Reinforcement Learning

Fabio Muratore, Michael Gienger, Jan Peters · DOI

Training robots in simulation is a cornerstone of modern reinforcement learning (RL), offering a fast and safe environment for parallel experimentation. However, the "reality gap" remains a significant hurdle: policies that perform perfectly in simulation often fail on real hardware because they have learned to exploit unrealistic quirks in the physics engine.

In their research, Fabio Muratore and colleagues from TU Darmstadt and the Honda Research Institute propose SPOTA (Simulation-based Policy Optimization with Transferability Assessment), a meta-algorithm designed to measure this gap and determine exactly when a simulated policy is robust enough for real-world deployment.

The Challenge: Simulation Optimization Bias (SOB)

The core problem addressed is Simulation Optimization Bias (SOB). Much like overfitting in traditional machine learning, SOB occurs when an RL agent learns a control strategy that relies on specific errors or simplifications in a simulator's friction or mass models.

Conceptual visualization of Simulation Optimization Bias (SOB), illustrating the gap between simulated return estimates and actual performance.

As illustrated above, sample-based optimization is inherently biased toward overestimating performance. The simulator effectively "lies" to the agent about its efficacy, leading to a discrepancy between the estimated return and the true return on physical hardware. While Domain Randomization (DR)—varying physical parameters during training—is a common remedy, it often lacks a clear stopping criterion. SPOTA seeks to provide a mathematical foundation for this process.

Methodology: The SPOTA Framework

SPOTA frames the transfer problem using stochastic programming and introduces a novel statistical stopping criterion. Key components of the algorithm include:

  • Domain Randomization: Training occurs across a distribution of simulators with varying parameters such as gravity, mass, and motor efficiency.
  • Reference Solutions: To measure how much performance is lost due to lack of perfect information, SPOTA trains multiple "reference" policies on specific sets of domains to act as benchmarks.
  • UCBOG (Upper Confidence Bound on the Optimality Gap): Using bootstrapping, the algorithm calculates a high-confidence upper bound on the error. Training only concludes once this UCBOG metric falls below a user-defined threshold.

Experimental Validation

The researchers evaluated SPOTA on two under-actuated nonlinear control problems using Quanser hardware: a 2 DoF Ball-Balancer and a Cart-Pole (Linear Inverted Pendulum).

The experimental platforms used for validation: the Quanser 2 DoF Ball-Balancer (left) and the Cart-Pole system (right).

Custom simulation wrappers were built to randomize parameters like gear backlash and ball radius, ensuring the agent could not "memorize" the physics of a single environment.

Key Results and Sim-to-Real Transfer

The study compared SPOTA against vanilla PPO (Proximal Policy Optimization) and EPOpt. The results highlighted a stark contrast in transferability:

  • Zero-Shot Success: Both SPOTA and EPOpt achieved successful zero-shot transfer, with policies learned in simulation working immediately on real hardware.
  • PPO Failure: Despite "solving" the nominal simulation, vanilla PPO failed in almost every real-world trial, proving it was not robust to physical deviations.
  • Predictive Metrics: The UCBOG metric successfully predicted transferability, providing a quantitative "trust" score that correlated with real-world stability.

Conclusion and Future Directions

While SPOTA is computationally expensive—requiring the training of multiple reference policies—it offers a principled way to bridge the reality gap. Future work may involve using Bayesian Optimization to select simulation domains more efficiently, potentially reducing the sample complexity of the training process. By treating robustness as a form of regularization, SPOTA moves the field closer to reliable, automated robot training.

Summary updated

BibTeX
@article{muratore2019assessing,
  author = {Fabio Muratore and Michael Gienger and Jan Peters},
  title = {{Assessing Transferability from Simulation to Reality for Reinforcement Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2019},
  doi = {10.1109/tpami.2019.2952353},
}
Figure