NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Constrained Reinforcement Learning

Yue Wang, Fei Miao, Shaofeng Zou

TL;DR

Standard constrained reinforcement learning (RL) ensures safety in training, but real-world model mismatch or perturbations can easily lead to catastrophic constraint violations. This paper formalizes Robust Constrained RL, proving that the classic guarantee of zero duality gap breaks down under model uncertainty. To resolve this, the authors introduce a smooth, model-free robust primal-dual algorithm with provable convergence, finite-sample guarantees, and robust constraint satisfaction.

What Problem Does This Paper Address?

In safe RL, agents typically solve a Constrained Markov Decision Process (CMDP): maximize a reward while ensuring costs or utilities stay within safe bounds (e.g., ensuring a drone does not deplete its battery). However, real-world deployment often involves simulator inaccuracies, non-stationarity, or adversarial shifts.

When the deployment environment deviates from training, existing CMDP algorithms often fail—not only suffering reward degradation, but more dangerously, severely violating safety constraints. While robust MDPs tackle model shifts and constrained MDPs handle safety, unifying them into a robust constrained setting poses severe theoretical and practical roadblocks.

Methods

The authors formulate the robust CMDP problem over an $(s,a)$-rectangular uncertainty set $\mathcal{P}$, requiring that utility constraints hold for every transition model $P \in \mathcal{P}$ while maximizing the worst-case cumulative reward.

Key methodological contributions include:

  1. Dual Formulation for Robust CMDPs: Because the worst-case transition dynamics differ across reward and utility functions, the Lagrangian objective is linear in the dual variable $\lambda$ but non-concave in the policy parameters $\theta$. Under Slater’s condition, the authors prove that the optimal dual multiplier $\lambda^*$ is bounded.
  2. Robust Primal-Dual (RPD) Algorithm: An alternating projected gradient descent-ascent algorithm. To stabilize and accelerate dual updates, the authors regularize the dual objective with a monotonically decaying quadratic term $\frac{b_t}{2}\lambda^2$.
  3. Smooth Approximation for $\delta$-Contamination: Under standard $\delta$-contamination uncertainty sets, the robust Bellman operator uses a non-differentiable minimum operator ($\min_{s'} V(s')$). The authors replace this with a smooth Log-Sum-Exp ($\mathrm{LSE}$) operator, proving that the approximation error shrinks predictably as the temperature parameter $\sigma \to -\infty$, while restoring Lipschitz smoothness.
  4. Online Model-Free Algorithm: Combining smoothed robust policy evaluation (via smoothed robust Temporal Difference learning) with robust policy improvement yields an online, sample-based actor-critic framework.
                  ┌───────────────────────────────────────┐
                  │      Smoothed Robust TD (Critic)       │
                  │   Estimates worst-case V_r and V_c    │
                  └──────────────────┬────────────────────┘
                                     │
                                     ▼
┌─────────────────────────┐       Gradient       ┌────────────────────────┐
│   Dual Descent (λ)      │◄────────────────────►│   Primal Ascent (θ)    │
│ Penalizes unsafe models │                      │ Optimizes worst-case r │
└─────────────────────────┘                      └────────────────────────┘

Datasets

The authors evaluate their method on three benchmark environments adapted for safe, robust evaluation:

  • Garnet Problems: Randomly generated abstract MDPs, denoted $\mathcal{G}(20, 10)$ with 20 states and 10 actions, with uniform random reward/utility functions.
  • $8 \times 8$ Frozen-Lake (OpenAI Gym): A navigation grid containing hazard holes ($r = -10, c = 0$), a goal ($r = 20, c = 1$), and random intermediate utilities.
  • Taxi Environment (OpenAI Gym): A $5 \times 5$ grid-world where an agent picks up and drops off passengers ($r = 20$ for success, $-1$ step penalty) while respecting random state-action utilities.

Evaluations were performed under perturbation probabilities $\delta \in \{0.2, 0.3\}$.

Key Insights and Ideas

  • Robust Visitation Distributions Are Non-Convex: In standard CMDPs, the set of state-action visitation distributions is convex, guaranteeing strong duality (zero duality gap). The authors present a counterexample demonstrating that under model uncertainty, the robust visitation distribution set is non-convex. Strong duality is therefore not guaranteed.
  • Heuristic Robust Gradient Updates Are Flawed: Prior work combined robust policy evaluation with non-robust policy gradient updates. The authors point out that because the worst-case transition kernel itself depends directly on the policy $\pi$, naive policy gradients do not correspond to the true gradient of the robust value function.
  • Guaranteed Feasibility at Stationarity: Convergence to stationary points of non-convex/non-concave Lagrangians does not typically imply feasibility. The authors show that when the dual upper bound $\Lambda^*$ is sufficiently large, the stationary point is guaranteed to be $2\epsilon$-feasible.

Key Results

  • Theoretical Complexity: The RPD algorithm achieves an $\epsilon$-stationary point with an iteration complexity of $\mathcal{O}(\epsilon^{-4})$. In the model-free setting with biased gradient estimates, it converges to within $(1 + \sqrt{2})\epsilon$ of stationarity with sample complexity scaling as $\mathcal{O}(\epsilon^{-4})$.
  • Safety Under Uncertainty: In Frozen-Lake, Garnet, and Taxi experiments, standard non-robust primal-dual methods consistently violate safety thresholds under model perturbation.
  • Superior Robust Return: While both RPD and previous heuristic robust methods satisfy safety thresholds ($V_c \ge b$), RPD achieves strictly higher worst-case rewards across all benchmarks because its policy updates follow the true robust gradient.

Limitations and Future Work

  • Uncertainty Set Specificity: Explicit smooth gradients and model-free TD algorithms were primarily derived for $\delta$-contamination models. Extending model-free guarantees to Wasserstein, Total Variation, or KL-divergence balls requires alternative robust gradient formulations.
  • Tabular Scope: The finite-sample model-free analysis is formulated in the tabular setting; evaluating performance with deep neural network function approximation in complex continuous control benchmarks remains an important next step.

Summary updated

BibTeX
@inproceedings{wang2023robust,
  author = {Yue Wang and Fei Miao and Shaofeng Zou},
  title = {{Robust Constrained Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=KzfhxLoh6s0},
}
Figure