Bring Your Own (Non-Robust) Algorithm to Solve Robust MDPs by Estimating The Worst Kernel

Kaixin Wang, Uri Gadot, Navdeep Kumar, Kfir Y. Levy, Shie Mannor · DOI

Abstract

Robust Markov Decision Processes (RMDPs) provide a framework for sequential decision-making that is robust to perturbations on the transition kernel. However, current RMDP methods are often limited to small-scale problems, hindering their use in high-dimensional domains. To bridge this gap, we present EWoK, a novel online approach to solve RMDP that Estimates the Worst transition Kernel to learn robust policies. Unlike previous works that regularize the policy or value updates, EWoK achieves robustness by simulating the worst scenarios for the agent while retaining complete flexibility in the learning process. Notably, EWoK can be applied on top of any off-the-shelf non-robust RL algorithm, enabling easy scaling to high-dimensional domains. Our experiments, spanning from simple Cartpole to high-dimensional DeepMind Control Suite environments, demonstrate the effectiveness and applicability of the EWoK paradigm as a practical method for learning robust policies.

Introduction

Standard Reinforcement Learning (RL) operates under a "nominal" assumption: the environment the agent trains in is exactly the same as the one it will face during deployment. In the real world, this is rarely true. A robot trained in a smooth simulator might encounter friction, different gravity, or sensor noise—a problem known as the "sim-to-real gap."

Robust Markov Decision Processes (RMDPs) were designed to solve this by finding policies that perform well even if the environment's transition rules (the "kernel") are perturbed. However, traditional RMDP solvers have a massive scalability problem. They are usually limited to small, discrete grids or are mathematically tied to specific algorithmic architectures. EWoK addresses the need for a robust RL method that is both algorithm-agnostic and scalable to high-dimensional, continuous control tasks.

The EWoK Framework

The core innovation of EWoK is shifting the burden of robustness from the agent's learning algorithm to the environment simulation itself. Instead of changing how the agent updates its neural networks, EWoK changes what the agent "sees" during training.

Conceptual comparison: Traditional Robust RL (left) vs. the EWoK approach (right).

As illustrated above, while traditional methods require specialized robust algorithms, EWoK allows the use of any standard, non-robust RL algorithm (like PPO, SAC, or TD3) by training it against an "Estimated worst transition kernel." This kernel acts as an adversary, choosing outcomes that are most challenging for the agent's current policy.

The Resampling Mechanism

The transition from a nominal environment to a robust one is achieved through a three-step resampling process:

  1. Simulate: For a given state and action, the nominal environment generates $N$ possible next-state candidates.
  2. Evaluate: EWoK uses the agent's current value function to identify which of these $N$ states is the "worst" (leads to the lowest expected future reward).
  3. Resample: It selects one of these states to be the actual next state, with a probability weighted toward the lower-value states.
The EWoK resampling mechanism for estimating the worst-case transition kernel.

This approach is "oblivious" because it doesn't need to know which physical parameters (like gravity or mass) might change; it only needs to know which resulting states are disadvantageous for the agent.

Experimental Evaluation

The researchers evaluated EWoK across a spectrum of complexity:

  • Cliff Walking: A grid-world used to visualize how robust policies learn to stay further away from hazards.
  • Cartpole: A standard discrete control benchmark.
  • DeepMind Control Suite: High-dimensional, continuous control tasks including Walker-stand, Walker-walk, and Walker-run.

To test robustness, the team perturbed physical parameters—such as mass, pole length, gravity, and joint damping—that the agent never encountered during standard training.

Key Results and Insights

  • Superior Scaling: EWoK is the first robust method demonstrated to work effectively on the DeepMind Control Suite, a benchmark where previous RMDP methods typically struggle.
  • Performance Stability: In Cartpole, when gravity or mass was shifted far from training values, standard PPO and DQN performance plummeted. EWoK’s performance remained significantly flatter and more reliable.
  • The Robustness Trade-off: In the "Walker-run" task, EWoK achieved slightly lower rewards than standard SAC in the perfect training environment. However, as soon as physical perturbations were introduced, the standard agent failed completely, while the EWoK agent continued to function. This highlights the "insurance policy" nature of robust RL.
  • The $\kappa$ (Kappa) Parameter: EWoK introduces $\kappa$ as a "robustness temperature." A low $\kappa$ makes the environment extremely pessimistic, while a high $\kappa$ makes it behave like a standard environment, giving practitioners a simple dial to tune the trade-off between peak performance and stability.

Limitations and Future Work

The primary limitation of EWoK is computational overhead. Because it requires sampling $N$ next states for every transition, it multiplies simulation time. Future work suggests combining EWoK with World Models (learned neural simulators). If an agent learns a model of the world, it can perform the worst-case resampling entirely in its "imagination," potentially removing the need for multiple calls to the actual simulator and making the process significantly more efficient.

Summary updated

BibTeX
@inproceedings{wang2024bring,
  author = {Kaixin Wang and Uri Gadot and Navdeep Kumar and Kfir Y. Levy and Shie Mannor},
  title = {{Bring Your Own (Non-Robust) Algorithm to Solve Robust MDPs by Estimating The Worst Kernel}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=UqoG0YRfQx},
}
Figure