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).
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.
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, andPandaPickCubeOrientation, 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
AcrobotSwingupminimum 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