Policy Gradient for Robust Markov Decision Processes

Qiuhao Wang, Shaohang Xu, Chin Pang Ho, Marek PetrikarXiv 2024

Introduction

In the field of Reinforcement Learning (RL), agents are typically trained under the assumption that the transition dynamics of their environment are known or can be perfectly modeled. However, in real-world applications—ranging from robotics to finance—the "sim-to-real" gap is a significant hurdle. Small discrepancies in friction, noise, or transition probabilities can cause standard policies to fail.

Robust Markov Decision Processes (RMDPs) address this by considering an "ambiguity set" of possible transition kernels. The goal is to find a policy that performs optimally under the worst-case scenario within this set. While value-based methods for RMDPs exist, they struggle to scale to large or continuous state spaces. This paper introduces Double-Loop Robust Policy Mirror Descent (DRPMD), a framework that brings the scalability of policy gradients to the robust setting with a rare guarantee of global optimality.

The DRPMD Framework

DRPMD utilizes a nested, double-loop algorithmic structure designed to handle the non-convex and often non-differentiable nature of the robust objective:

  1. The Outer Loop (Policy Optimization): This loop employs Policy Mirror Descent to update the agent's policy. By generalizing natural policy gradients and utilizing distance metrics like KL-divergence, it ensures stable updates toward the optimal policy.
  2. The Inner Loop (Robust Evaluation): To evaluate the current policy, the algorithm must solve for the worst-case transition probability. The authors introduce Transition Mirror Ascent (TMA) to solve this inner maximization problem efficiently.

Key Innovations

  • Adaptive Tolerance: A major contribution of this work is the "adaptive tolerance" strategy. Instead of solving the expensive inner "worst-case" problem to high precision in every iteration, DRPMD uses a sequence of increasing precision. Early iterations allow for rougher estimates, which significantly reduces computational overhead without sacrificing final global convergence.
  • Parametric Transitions: To extend the framework to continuous state-action spaces, the authors propose using Gaussian Mixture Models (GMMs) to parameterize transition kernels. This allows the "adversary" in the inner loop to be represented by a learnable model.
  • RMCPMD: For deep RL settings where exact gradients are unavailable, the authors propose a stochastic, Monte-Carlo version of the algorithm (RMCPMD) that relies on sampled transitions.

Theoretical Contributions

This research provides several first-of-their-kind theoretical results for robust policy gradients:

  • Global Optimality for Softmax: The paper provides the first proof that softmax policy parameterization—the standard for discrete action spaces—converges to a global optimum in the robust setting.
  • Convergence Rates: The authors establish a global convergence rate of $O(\epsilon^{-1})$ for general RMDPs. In specific "s-rectangular" cases, where uncertainty is independent across states, they demonstrate a faster linear convergence rate of $O(\log \epsilon^{-1})$.

Empirical Validation

The researchers evaluated DRPMD across three distinct benchmarks to test its efficiency and robustness:

  1. Garnet Problems: In these synthetic finite MDPs, the adaptive tolerance version of the algorithm showed massive speedups. For a 50-state problem, runtime dropped from over 20,000 seconds (using exact solutions) to approximately 2,500–4,000 seconds.
  2. Inventory Management: This classic operations research problem demonstrated the algorithm's effectiveness in continuous state spaces with discrete actions.
  3. Robust Cart-Pole: The authors modified the standard Cart-Pole benchmark with a disturbance factor ($\delta$). Under high uncertainty, the success rate of a standard (non-robust) policy plummeted to 0%. In contrast, the robust policy maintained a ~48.5% success rate, proving its resilience to model perturbations.

Conclusion

DRPMD bridges the gap between robust optimization and scalable policy gradient methods. By proving global optimality for standard parameterizations and introducing adaptive tolerance, the authors provide a mathematically sound and computationally viable path for training RL agents that can survive the unpredictability of the real world. Future work will focus on reducing the variance in the stochastic (Monte-Carlo) version of the algorithm and exploring non-rectangular ambiguity sets where uncertainty is coupled across different states.

Summary updated

BibTeX
@misc{wang2024policy,
  author = {Qiuhao Wang and Shaohang Xu and Chin Pang Ho and Marek Petrik},
  title = {{Policy Gradient for Robust Markov Decision Processes}},
  year = {2024},
  eprint = {2410.22114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.22114},
}
Figure