Statistical Guarantees for Offline Domain Randomization

Arnaud Fickinger, Abderrahim Bendahi, Stuart Russell

Reinforcement learning (RL) agents often struggle when deployed from simulation to the real world. While empirical algorithms like DROPO have shown great success in using offline data to tune simulators and bridge this gap, their mathematical guarantees have remained largely unexplored. This paper provides the first rigorous theoretical foundation for Offline Domain Randomization (ODR), proving that it is statistically consistent—meaning that as you collect more real-world data, the simulator's randomized distribution will correctly converge to the true real-world dynamics.

The Sim-to-Real Gap and Domain Randomization

RL agents are typically trained in simulation because real-world data collection is slow, expensive, and dangerous. However, simulators are never perfect. This discrepancy—the sim-to-real gap—often causes policies that perform perfectly in a simulator to fail miserably when deployed on a real robot.

Domain Randomization (DR) attempts to fix this by training the agent across a wide variety of simulator settings (e.g., varying friction, mass, or motor noise). Standard DR usually picks these ranges uniformly at random.

Standard Domain Randomization samples parameters uniformly.

Offline Domain Randomization (ODR) offers a smarter approach: it uses a small "log" of offline real-world data to find which simulator parameters best explain the real world.

Offline Domain Randomization fits a parameter distribution to real-world data.

Despite ODR's empirical success, it lacked a principled footing. Prior to this work, it was unclear if the fitted distributions would actually converge to the true dynamics as data grew, or what mathematical assumptions were necessary to guarantee that outcome.

Methodology: ODR as Maximum Likelihood Estimation

The authors formalize ODR as a Maximum Likelihood Estimation (MLE) problem.

  1. The Setup: They define a family of simulators parameterized by physical factors ($\xi$).
  2. The Objective: They seek a distribution over these parameters that maximizes the likelihood of observing the transitions found in an offline real-world dataset $\mathcal{D}$.
  3. The Proofs: The core of the paper consists of statistical proofs for two types of consistency:
  4. Weak Consistency: Proving the estimator converges in probability to the true dynamics under mild regularity and identifiability conditions.
  5. Strong Consistency: Proving "almost sure" convergence by adding a Uniform Lipschitz Continuity assumption (essentially requiring that small changes in physical parameters lead to small, predictable changes in transition probabilities).

Key Insights and Theoretical Guarantees

Through their mathematical analysis, the authors uncover several critical insights about when and why ODR works:

  • Identifiability is Key: You can only learn what your data shows you. If your offline data only contains a robot walking on flat ground, ODR might correctly identify the robot's mass but fail to identify the friction coefficient of ice. The authors formalize this as convergence to an "identified set" when data coverage is partial.
  • Smoothness Matters: For ODR to be "strongly" consistent, the simulator's transition physics must be "smooth" (Lipschitz continuous) with respect to its parameters. This justifies why ODR works well for robots governed by classical mechanics but might struggle with systems involving discrete, "jumpy" state changes.
  • Tightening the Bounds: The authors improved upon previous theoretical work, tightening the sim-to-real performance gap bound from $O(M^3 \log^3(MH))$ to $O(M^3 \log(MH))$. This proves that a data-informed randomization distribution significantly reduces the performance drop compared to blind uniform randomization, and does so more efficiently than previously thought.
  • Relaxing Assumptions: The authors show that perfectly independent and identically distributed (i.i.d.) data is not strictly necessary. "Stationary and ergodic" data—which is much more common in real-world robotics logs—is sufficient for the mathematical guarantees to hold.

Limitations and Future Directions

While this work places ODR on a solid theoretical foundation, it does have limitations. The proofs largely assume that the "true" real-world dynamics actually exist within the simulator's parameter family. If the simulator is fundamentally misspecified (e.g., a 2D simulator trying to model a 3D world), the guarantees shift to finding the "best possible" approximation, an area that requires further exploration.

Additionally, maximizing likelihood over complex, non-differentiable simulators is computationally expensive and often requires gradient-free optimizers. Future work may explore extending these proofs to non-parametric distributions (where a Gaussian shape is not assumed) and investigating how ODR interacts with "active" data collection, where the agent deliberately chooses which data to collect to better identify the system.

Summary updated

BibTeX
@inproceedings{fickinger2026statistical,
  author = {Arnaud Fickinger and Abderrahim Bendahi and Stuart Russell},
  title = {{Statistical Guarantees for Offline Domain Randomization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=hQpCwzjQg6},
}
Figure