Distributionally Robust Domain Randomization with Learned Risk-Sensitive Dynamics Samplers

Sukchul Jeong, Insoon YangNeurIPS 2026

TL;DR

Training robots in simulation usually relies on randomizing physics parameters uniformly, which produces agents that do great on average—until they hit a rare, tricky edge case in the real world and fail spectacularly. This paper introduces Risk-Sensitive Domain Randomization (RSDR), a method that learns an adaptive "soft adversary" to automatically find and practice on the exact physics variations where the current policy is weakest. Best of all, it piggybacks on standard reinforcement learning rollouts, adding virtually zero extra simulation cost.

What Problem Does This Paper Address?

To get reinforcement learning (RL) policies to transfer from a simulator to the real world ("sim-to-real"), engineers use Domain Randomization (DR): scrambling simulator parameters like friction, mass, and motor strength at the start of every episode.

Usually, this scrambling is done uniformly across a hand-picked range. The catch? Real-world robot failures aren't governed by average conditions; they happen in the "left tail"—those rare, nasty combinations of slippery floors and heavy payloads. Optimizing for average return leaves policies brittle to these edge cases.

Existing fixes have awkward trade-offs. Curriculum-based DR methods adaptively prioritize easy tasks to help the agent learn, biasing toward the "right tail" rather than robustness. Conversely, robust RL methods like EPOpt explicitly optimize worst-case returns by throwing away all the "good" trajectories and only training on the worst $\epsilon$-fraction of rollouts—a brute-force strategy that wastes massive amounts of simulation data. How do we explicitly hunt down failure-prone physics without tanking sample efficiency?

Methods

Instead of classical robust RL—which tweaks transition probabilities at every single timestep—the authors formulate Distributionally Robust Optimization (DRO) at the episode level, directly over the latent physics parameters $\xi$.

They evaluate a policy against the worst-case distribution of physics parameters within a KL-divergence budget around a uniform reference distribution ($\nu_0$). Mathematically, this yields a clean, closed-form "soft adversary" that reweights the reference distribution exponentially based on the policy's expected return $J(\theta; \xi)$:

$$\nu_\beta(\xi) \propto \exp(\beta J(\theta; \xi)) \nu_0(\xi)$$

Here, the temperature $\beta$ is a continuous risk-sensitivity dial: $\beta < 0$ amplifies low-return, failure-prone physics (robust), $\beta = 0$ is standard uniform DR, and $\beta > 0$ favors high-return, easy physics (optimistic/curriculum).

Figure 2: Illustration of the tilted-family view used by RSDR. The sampler targets pβ(X) ∝ exp(βE(X)), where E(X) is defined in Appendix G.1. Curriculum-based DR methods can be viewed through the same tilted-family lens, corresponding most closely to the β > 0 risk-seeking regime (Appendix C). By controlling the risk parameter β, RSDR can sample from regions near maximizers (easy regions) or minimizers (hard regions).

Because the policy is constantly improving, its weaknesses are a moving target, and returns can only be observed via black-box rollouts. RSDR solves this by training a Gaussian mixture sampler ($\nu_\phi$) via reverse-KL variational inference alongside a standard PPO agent. In each iteration, the sampler generates physics parameters, PPO rolls out trajectories to update the policy, and RSDR reuses those exact same rollouts to update the sampler.

Figure 1: Overview of our framework (left) and its training procedure (right). RSDR alternates between policy optimization under the current domain sampler and sampler optimization toward the exponentially tilted target distribution νβ ∝exp(βJπ)ν0 induced by the current policy. The risk parameter β controls the degree of risk sensitivity in the sampler; in the robust regime emphasized in this paper, negative β increases sampling mass on adverse domains. In practice, we update the policy with PPO [Schulman et al., 2017] and reuse the same on-policy rollouts to update the sampler, so sampler learning incurs no additional environment interactions.

Datasets

Because this is an online reinforcement learning paper, there are no static datasets. Instead, the authors evaluate RSDR using:

  • A synthetic toy MDP where the policy-dependent target distribution can be tracked analytically.
  • Six continuous-control benchmarks from MuJoCo Playground: AcrobotSwingup, CartpoleSwingup, CheetahRun, WalkerWalk, PandaOpenCabinet, and PandaPickCubeOrientation, all modified with episode-wise physics randomization.

Key Insights and Ideas

  • Curriculum and Robustness are two sides of the same coin: One of the neatest conceptual takeaways is that curriculum learning and adversarial robustness belong to the exact same exponential-tilting family. Flipping the sign of a single scalar $\beta$ smoothly transitions a sampler from seeking easy tasks ($\beta > 0$) to hunting down failure modes ($\beta < 0$).
  • Tracking a moving target for free: As an agent plugs one vulnerability, a new worst-case physics combination emerges elsewhere. Amortized variational inference tracks this shifting landscape online while reusing on-policy PPO trajectories—meaning zero extra environment interactions are needed to learn the adversary.
  • Episode-wise robustness transfers to drifting physics: Even though RSDR holds physics parameters constant within each training episode, the resulting policies remain surprisingly resilient when tested against non-stationary attacks where physics actively drift mid-episode.

Key Results

The authors measure left-tail robustness using Minimum Return and $\text{CVaR}_{10}$ (the average return of the worst 10% of physics configurations):

  • Consistent tail gains: Using a practical default of $\beta = -20$ improves $\text{CVaR}_{10}$ over Uniform DR by 6.7% to 24.0% across all six MuJoCo tasks, while mean returns stay competitive (shifting by only $-2.3\%$ to $+5.1\%$). It also consistently beats adaptive curriculum baselines (AutoDR, DORAEMON, GoFlow).
  • Beating EPOpt at a fraction of the cost: Across four tasks compared against best-tuned EPOpt, RSDR achieves higher $\text{CVaR}_{10}$ and minimum returns across the board (for example, pushing AcrobotSwingup minimum return from 178.76 with EPOpt to 383.93 with RSDR at $\beta = -30$).
  • Negligible overhead: Because RSDR doesn't discard rollouts, it adds less than 2% wall-clock training time over Uniform DR, whereas EPOpt adds 5.50% to 40.38% overhead to collect enough worst-case trajectories.

Limitations and Future Work

  • Surrogate vs. exact radius: Fixing $\beta$ acts as a fixed-temperature surrogate rather than enforcing a strict, constant KL-divergence radius at every policy step (though the authors do explore a proof-of-concept adaptive-$\beta$ controller in the appendix).
  • Untested schedules: While the math unifies optimistic ($\beta > 0$) and robust ($\beta < 0$) sampling, the authors haven't yet explored annealing schedules that start optimistic for exploration and gradually turn adversarial for robustness.
  • Sim-to-sim only: All experiments take place in simulation. Validating RSDR on physical robots—where unmodeled dynamics, sensor noise, and reality gaps go beyond neat parameter ranges—remains open future work.

Summary updated

Abstract

Domain randomization (DR) improves sim-to-real transfer by training policies over randomized simulator dynamics, but standard DR optimizes average performance under a fixed sampler and can miss rare failure-prone domains. We propose Risk-Sensitive Domain Randomization (RSDR), a distributionally robust formulation of episodic DR that evaluates each policy against the worst-case distribution over dynamics parameters under a fixed-temperature KL-regularized entropic-risk objective. The resulting soft adversary has an exponential-tilting form, yielding a single temperature-controlled sampler family: negative temperatures emphasize low-return domains for robustness, zero corresponds to uniform DR, and positive temperatures give an optimistic sampler closely related to curriculum-style DR. Because this target changes with the policy and returns are observed only through rollouts, RSDR learns an amortized dynamics sampler by reverse-KL variational inference while reusing on-policy PPO trajectories. Across six domain-randomized MuJoCo Playground tasks, robust RSDR improves CVaR and minimum-return metrics over uniform and adaptive DR baselines. It also outperforms best-tuned EPOpt on the four tasks evaluated with EPOpt.
BibTeX
@inproceedings{jeong2026distributionally,
  author = {Sukchul Jeong and Insoon Yang},
  title = {{Distributionally Robust Domain Randomization with Learned Risk-Sensitive Dynamics Samplers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=i1x7979VN8},
}
Figure