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

Rectified Robust Policy Optimization for Model-Uncertain Constrained Reinforcement Learning without Strong Duality

Shaocong Ma, Ziyi Chen, Yi Zhou, Heng Huang

Introduction

Robust constrained reinforcement learning (RL) is essential for deploying agents in real-world environments where safety is paramount and the underlying model is uncertain. While standard constrained RL often relies on primal-dual methods, these approaches assume a mathematical property known as strong duality. This paper identifies a fundamental theoretical gap: in the presence of model uncertainty, strong duality typically fails. To address this, the authors introduce Rectified Robust Policy Optimization (RRPO), a primal-only algorithm that ensures safety and near-optimal performance without relying on dual variables.

The Theoretical Roadblock: The Duality Gap

In constrained RL, researchers often transform a constrained problem (the primal) into an unconstrained one using Lagrange multipliers (the dual). This transformation is valid only if strong duality holds—meaning the solution to the dual problem is identical to the solution of the primal.

The authors provide a formal proof and a concrete counterexample demonstrating that model uncertainty breaks this property. In robust settings, where the agent must optimize for the worst-case scenario within an uncertainty set, the "duality gap" can lead traditional algorithms to oscillate or converge to unsafe policies.

Transitions under actions $a_0$ and $a_1$ in a counterexample MDP demonstrating the duality gap.

As shown in the figure above, simple MDP structures can exhibit behaviors under uncertainty that prevent the standard Lagrangian approach from finding the optimal feasible policy. This discovery explains why previous robust constrained RL methods often struggled with stability.

Rectified Robust Policy Optimization (RRPO)

To bypass the duality gap, RRPO adopts a "primal-only" strategy. Instead of updating dual variables, it operates directly on the policy through a "rectification" mechanism. The algorithm maintains a record of the "best feasible policy" ($\pi_{out}$) and switches between different optimization modes based on the agent's current performance and safety:

  1. Robust Policy Evaluation: The algorithm estimates the worst-case value of the current policy across the uncertainty set (e.g., variations in transition probabilities).
  2. Constraint Rectification: If the policy violates safety constraints in the worst-case scenario, RRPO ignores rewards and focuses exclusively on restoring safety.
  3. Objective Rectification: If the agent is safe but its reward falls below the "best feasible" level, it prioritizes recovering that performance.
  4. Threshold Updates: When the agent is both safe and high-performing, it updates its "best seen" record and continues to optimize for higher rewards.

This logic acts like a rectifier in an electrical circuit, smoothing out the oscillations typically seen in primal-dual methods and ensuring stable convergence.

Key Results and Insights

The authors evaluated RRPO across several challenging environments:

  • Gridworld: RRPO learned a conservative, safe path in a "slippery" environment where non-robust methods failed.
  • Mountain Car: The agent successfully balanced climbing a hill with a speed limit constraint under perturbed gravity.
  • HalfCheetah-v4: In high-dimensional locomotion, RRPO outperformed robust primal-dual baselines, achieving higher rewards while strictly adhering to energy consumption limits.

Theoretical Efficiency

Despite the complexity of handling uncertainty, RRPO achieves an iteration complexity of $O(\epsilon^{-2})$. This matches the best-known theoretical lower bounds for non-robust constrained RL, proving that robustness does not necessarily require a significant computational overhead.

Conclusion

By proving the existence of the duality gap in robust constrained RL, this work resolves a significant theoretical question. RRPO provides a stable, primal-only alternative that avoids the pitfalls of traditional dual-based methods. Its ability to maintain safety under model mismatch while achieving optimal iteration complexity makes it a powerful tool for reliable real-world reinforcement learning.

Summary updated

BibTeX
@article{ma2025rectified,
  author = {Shaocong Ma and Ziyi Chen and Yi Zhou and Heng Huang},
  title = {{Rectified Robust Policy Optimization for Model-Uncertain Constrained Reinforcement Learning without Strong Duality}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=7l63xwAgAW},
}
Figure