Introduction
Reinforcement Learning (RL) has achieved remarkable success in simulated environments, yet transitioning these agents to the real world remains a significant challenge. This "sim-to-real gap" arises because RL agents are often brittle; slight deviations in environmental parameters—such as friction, gravity, or sensor noise—can lead to catastrophic failure. Standard Robust RL (RRL) methods, such as adversarial training or heuristic perturbations, often lack rigorous theoretical guarantees regarding their performance under varying dynamics.
This paper introduces a theoretically grounded framework for RRL by utilizing the Wasserstein distance to constrain environmental uncertainties. By leveraging the strong duality of Wasserstein metrics, the authors transform a complex infinite-dimensional optimization problem into a practical, finite-dimensional "risk-aware" algorithm: Wasserstein Robust Advantage Actor-Critic (WRAAC).
Methodology: The Wasserstein Uncertainty Set
The core innovation lies in how the environment's uncertainty is modeled. Instead of assuming a fixed transition model, the authors define a "Wasserstein ball" of possible transition kernels centered around a reference model. Any environment within this "distance" is considered a valid possibility the agent must handle.
The Duality Trick
Searching through every possible transition kernel within this ball is computationally intractable. However, the authors prove that by using strong duality, this search can be reduced to a much simpler problem. They demonstrate that being robust to changes in dynamics is mathematically equivalent to being "risk-aware" regarding state perturbations. This allows the agent to achieve robustness by solving a moderated Bellman equation that accounts for local state disturbances rather than simulating every possible environment.
The WRAAC Algorithm
The WRAAC algorithm implements this theory within a two-stage Actor-Critic framework:
- Inner Loop: Identifies the "worst-case" perturbation for the current state within the defined Wasserstein ball.
- Outer Loop: Updates the Critic to estimate values under these worst-case conditions and optimizes the Actor to find the best policy given the adversarial environment.
Experimental Evaluation
The authors evaluated WRAAC using the standard Cart-Pole environment from OpenAI Gym. To test robustness, they systematically modified the physics of the environment beyond the training parameters in two ways:
- Force Magnitude: Varying the strength of the "push" applied to the cart.
- Pole Mass: Increasing the weight of the pole the cart balances.
Results and Discussion
The experimental results demonstrate that WRAAC provides significantly better stability than standard baseline models like Advantage Actor-Critic (A2C).
Superior Stability to Force Perturbations
As shown in Figure 1, the standard A2C baseline (labeled ac) fails rapidly as the force magnitude increases beyond its training regime. In contrast, WRAAC (labeled robustac) maintains a high survival time even when the force magnitude is increased by a factor of ten, demonstrating a much wider "safety bubble."
Graceful Degradation under Mass Changes
When the pole mass was increased, both models eventually reached their limits. However, WRAAC exhibited a more gradual decline in performance compared to the sharp "cliff" observed in the baseline model. This suggests that the Wasserstein constraint allows the agent to generalize its balancing strategy more effectively to heavier loads.
Conclusion
By defining uncertainty through the Wasserstein metric, this work provides a mathematically rigorous approach to robust RL. The WRAAC algorithm effectively "certifies" a level of robustness, ensuring predictable performance within a pre-defined uncertainty set. While currently tested on lower-dimensional tasks like Cart-Pole, the framework's ability to reduce infinite-dimensional dynamics optimization to local state perturbations offers a promising path toward robust sim-to-real transfer in more complex robotic systems.
Summary updated