Robust Adversarial Policy Optimization Under Dynamics Uncertainty

Mintae Kim, Koushil Sreenath · Submission to ICLR 2026 · Rejected

TL;DR

Robust Adversarial Policy Optimization (RAPO) is a new framework that prevents reinforcement learning (RL) policies from collapsing when they encounter environments different from their training simulations. By combining an adversarial network that "stresses" specific trajectories with a smart reweighting scheme for environment ensembles, RAPO achieves superior out-of-distribution (OOD) robustness without the over-conservatism or instability typical of prior methods.

What Problem Does This Paper Address?

Reinforcement learning often suffers from a "sim-to-real" gap: a policy that performs perfectly in a simulator might fail catastrophically in the real world because of slight differences in physics, such as friction, mass, or motor lag.

Existing solutions generally fall into two camps, both with flaws:

  1. Domain Randomization (DR): This involves training on a wide variety of environments. However, it treats all variations as equally important, often leading to "lazy" or overly cautious policies that underperform in the most likely scenarios.
  2. Adversarial RL: This pits the agent against an adversary that tries to make it fail. While powerful, these methods are notoriously unstable and often focus on narrow "blind spots," failing to generalize to a broad range of uncertainties.

The authors tackle the central question: How can we design RL algorithms robust to dynamics uncertainty without collapsing into conservatism or training instability?

Methods

RAPO approaches this through the lens of Distributionally Robust RL, using a mathematical "dual formulation" that turns a hard optimization problem into a tractable one involving two complementary layers:

  • Trajectory-Level Steering (AdvNet): The authors introduce an adversarial network called AdvNet. Instead of generating explicit physical perturbations, AdvNet predicts a "dual temperature" ($\eta$) for every state-action pair. This temperature is used to "exponentially tilt" the trajectory distribution, effectively forcing the agent to focus on local vulnerabilities and low-return outcomes that it might otherwise ignore.
  • Model-Level Sampling (Boltzmann Reweighting): On a global scale, RAPO maintains an ensemble of environments with different physical parameters. Rather than sampling these uniformly, it uses Boltzmann reweighting. It assigns higher weights to environments where the current policy is struggling, ensuring the agent spends more time learning to handle its own specific weaknesses across the ensemble.

By combining these, RAPO creates a two-layer defense: AdvNet guards against local fragility within a rollout, while Boltzmann reweighting protects against global model misspecification.

Datasets

The authors evaluated RAPO on two main benchmarks:

  1. MuJoCo Locomotion Tasks: Standard benchmarks including Walker2d, Ant, HalfCheetah, and Hopper. They performed "robustness sweeps," varying parameters like mass, inertia, friction, and torque scaling from 0.5x to 1.5x the nominal values.
  2. Quadrotor Payload Tracking: A more complex task involving a drone carrying a cable-suspended payload. This environment includes per-step random force/torque disturbances and shifts in payload mass and cable length, testing both step-level and episode-level robustness.

Key Insights and Ideas

  • The Two-Temperature View: The paper elegantly shows that a single joint information budget (KL-divergence) naturally decomposes into two "temperatures": $\eta$ for trajectory-level risk and $\beta$ for model-level risk. This provides a theoretical foundation for why the two-layer approach works.
  • Quadratic Error Stability: A major "aha" moment is the proof that even if AdvNet makes imperfect predictions, the resulting error in the value function only grows quadratically. This explains why the method is much more stable than traditional adversarial training.
  • Principled Trade-offs: The KL-divergence budget acts as a "robustness knob." By adjusting this single parameter, researchers can precisely tune the trade-off between peak performance in a perfect simulator and safety in an uncertain real-world environment.

Key Results

  • Superior OOD Generalization: In the MuJoCo locomotion tasks, RAPO maintained high returns at extreme parameter scales (e.g., 0.5x or 1.5x mass) where standard PPO and even Domain Randomization (PPO+DR) collapsed.
  • Zero-Crash Performance: In the Quadrotor payload tracking task, RAPO was the only algorithm to achieve a 0% crash rate in out-of-distribution environments. For comparison, standard PPO crashed 40% of the time, and even the adversarial baseline (RARL) crashed 25% of the time.
  • Efficiency: RAPO matches the performance of standard PPO in-distribution, meaning you don't have to sacrifice "normal" performance to gain robustness.

Limitations and Future Work

  • Computational Cost: RAPO is not "free." It requires running ensemble rollouts and training the AdvNet, making it more computationally expensive per training step than standard PPO.
  • Aleatoric Uncertainty: The current framework focuses primarily on epistemic uncertainty (uncertainty about the model/physics) rather than aleatoric uncertainty (intrinsic randomness in the environment).
  • Future Directions: The authors suggest integrating RAPO with model-based planning (like Dyna-style rollouts) to reduce the interaction cost with the simulator while maintaining the same level of robustness. They also propose pre-training ensembles on real-world data to further bridge the sim-to-real gap.

Summary updated

Abstract

Reinforcement learning (RL) policies often fail under dynamics that differ from training, a gap not fully addressed by domain randomization or existing adversarial RL methods. Distributionally robust RL provides a formal remedy but still relies on surrogate adversaries to approximate intractable primal problems, leaving blind spots that potentially cause instability and over-conservatism. We propose a dual formulation that directly exposes the robustness–performance trade-off. At the trajectory level, a temperature parameter from the dual is approximated with an adversarial network, yielding efficient and stable worst-case rollouts within a divergence bound. At the model level, we employ Boltzmann reweighting over dynamics ensembles, focusing on more adverse environments to the current policy rather than uniform sampling. Two components act independently and complement each other: trajectory-level steering ensures robust rollouts, while model-level sampling provides policy-sensitive coverage of adverse dynamics. The resulting framework, robust adversarial policy optimization (RAPO) outperforms robust RL baselines, improving resilience to uncertainty and generalization to out-of-distribution dynamics while maintaining dual tractability.
BibTeX
@misc{kim2026robust,
  author = {Mintae Kim and Koushil Sreenath},
  title = {{Robust Adversarial Policy Optimization Under Dynamics Uncertainty}},
  year = {2026},
  eprint = {2604.10974},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.10974},
}
Figure