An Optimistic Algorithm for online CMDPS with Anytime Adversarial Constraints

Jiahui Zhu, Kihyun Yu, Dabeen Lee, Xin Liu, Honghao Wei · DOI

Introduction

In Reinforcement Learning (RL), safety is traditionally managed through Constrained Markov Decision Processes (CMDPs). While effective in predictable, stochastic environments, these models often fail when faced with adversarial conditions—where safety constraints are unknown, time-varying, or intentionally hostile. This paper introduces OMDPD (Optimistic Mirror Descent Primal-Dual), a novel framework designed to maintain optimal performance and safety in these challenging "anytime adversarial" scenarios.

The Challenge of Adversarial Safety

Most Safe RL research focuses on stochastic constraints, where risks follow a fixed distribution. In such settings, a "weak constraint violation" metric is often used, allowing safety errors in one episode to be offset by safe behavior in another. However, for safety-critical systems like robotics or autonomous driving, this "averaging out" is unacceptable. A single catastrophic failure cannot be undone by subsequent success.

The authors address this by focusing on strong constraint violation, which forbids error cancellation across episodes. Furthermore, they tackle the adversarial setting, where costs can change abruptly or maliciously. Balancing exploration (learning the environment) with strict adherence to dynamic safety rules requires a more robust approach than traditional stationary models.

The OMDPD Algorithm

The proposed Optimistic Mirror Descent Primal-Dual (OMDPD) algorithm is built on three theoretical pillars:

  1. Optimistic Estimates: By maintaining a "confidence set" of environment models and using Upper Confidence Bound (UCB) bonuses, the agent explores unknown states optimistically regarding rewards but pessimistically regarding costs.
  2. Exponential Lyapunov Potential: To enforce strong safety, the algorithm employs a dual variable update based on the function $\Phi(x) = \exp(\beta x) - 1$. This acts as a high-sensitivity alarm; as violations accumulate, the penalty grows exponentially, forcing immediate safety prioritization.
  3. Optimistic Online Mirror Descent (OMD): This two-phase update (prediction and refinement) allows the agent to "look ahead" and adapt rapidly to adversarial changes in the environment's cost structure.
Theoretical framework and proof map for establishing regret and violation bounds.

A significant advantage of OMDPD is its independence from Slater’s condition. Most existing algorithms assume a strictly feasible (perfectly safe) policy is known beforehand. OMDPD removes this requirement, making it applicable to environments where the safe operating zone is unknown or extremely narrow.

Key Results and Comparative Analysis

The authors prove that OMDPD achieves optimal efficiency, reaching a regret bound of $\tilde{O}(\sqrt{K})$ and a strong constraint violation bound of $\tilde{O}(\sqrt{K})$. These bounds represent the "gold standard" for online learning over $K$ episodes.

Comparison of OMDPD with state-of-the-art algorithms across key performance metrics.

As shown in the comparison table above, OMDPD is the first algorithm to provide guarantees for Adversarial Violation while simultaneously operating without a known safe policy or Slater's condition. In empirical simulations using a synthetic CMDP environment with abrupt cost shifts, the algorithm demonstrated sublinear growth in cumulative violations, confirming its theoretical robustness.

Discussion and Future Directions

While OMDPD marks a significant step forward, several avenues for future research remain. The current work focuses on the "tabular" setting (finite state/action spaces). Extending these guarantees to continuous spaces using deep neural networks is a primary goal. Additionally, the model currently assumes full information for adversarial costs; moving toward "bandit feedback" for costs—where the agent only learns the cost of the action it actually took—would further enhance real-world applicability. Finally, exploring Partially Observable CMDPs (POMDPs) could bridge the gap between this theory and complex, real-world robotics.

Summary updated

BibTeX
@inproceedings{zhu2025optimistic,
  author = {Jiahui Zhu and Kihyun Yu and Dabeen Lee and Xin Liu and Honghao Wei},
  title = {{An Optimistic Algorithm for online CMDPS with Anytime Adversarial Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=fFgiXamW8E},
}
Figure