cs.LGOct 8, 2026

Toward Optimal Regret in Adversarial MDPs with Stochastic Hard Constraints

Authors: Qian Zuo, Francesco Emanuele Stradi

Organizations: University of Edinburgh · Politecnico di Milano

Abstract

We study episodic constrained Markov decision processes with adversarial losses under stochastic hard constraints. Specifically, starting from a known strictly feasible policy with margin dd, we seek to obtain optimal regret while satisfying the expected cost constraints in every episode. In this setting, Stradi et al. (2025) show that a carefully designed mixing rule attains regret of order O~(T/min⁡{d,d2})\widetilde{\mathcal{O}}(\sqrt{T}/\min\{d,d^2\}). Interestingly, they also provide a lower bound of order Ω(T/ρ)Ω(\sqrt{T}/ρ) for the same setting, where ρρ is the Slater margin of the offline problem and can be much larger than dd. In this work, we build on their approach to obtain optimal regret dependence on these margins. Specifically, we propose MA-OPS, an algorithm that combines an optimistic search for the Slater margin with a pessimistic evaluation of the selected policies to safely learn a policy with a large feasibility margin. This policy is then used to minimize regret while satisfying the constraints at every episode. In particular, we show that MA-OPS attains regret O~(T/ρ+1/(dρ))\widetilde{\mathcal{O}}(\sqrt{T}/ρ+ 1/(dρ)). Finally, we provide a matching lower bound, showing that the dependence on TT, dd, ρρ in the regret bound is optimal up to logarithmic factors.

Figures & tables

Explore similar work

Sep 24, 2025cs.LG

Beyond Slater's Condition in Online CMDPs with Stochastic and Adversarial Constraints

We study \emph{online episodic Constrained Markov Decision Processes} (CMDPs) under both stochastic and adversarial constraints. We provide a novel algorithm whose guarantees greatly improve those of the state-of-the-art best-of-both-worlds algorithm introduced by Stradi et al. (2025). In the stochastic regime, \emph{i.e.}, when the constraints are sampled from fixed but unknown distributions, our method achieves O~(T)\widetilde{\mathcal{O}}(\sqrt{T}) regret and constraint violation without relying on Slater's condition, thereby handling settings where no strictly feasible solution exists. Moreover, we provide guarantees on the stronger notion of \emph{positive} constraint violation, which does not allow to recover from large violation in the early episodes by playing strictly safe policies. In the adversarial regime, \emph{i.e.}, when the constraints may change arbitrarily between episodes, our algorithm ensures sublinear constraint violation without Slater's condition, and achieves sublinear αα-regret with respect to the \emph{unconstrained} optimum, where αα is a suitably defined multiplicative approximation factor. We further validate our results through synthetic experiments, showing the practical effectiveness of our algorithm.
Oct 1, 2026cs.LG

Rate-Optimal Algorithm for Adversarial Linear CMDPs

We study episodic adversarial linear constrained Markov decision processes (CMDPs) with unknown transitions, where both the loss and constraint functions may vary adversarially across episodes. The best previous algorithm achieves O~(K3/4)\widetilde{\mathcal{O}}(K^{3/4}) regret and cumulative constraint violation, leaving a gap to the optimal O~(K)\widetilde{\mathcal{O}}(\sqrt{K}) dependence on the number of episodes KK. We close this gap by proposing a new primal dual algorithm that achieves O~(K)\widetilde{\mathcal{O}}(\sqrt{K}) regret and cumulative constraint violation without assuming Slater's condition. We further extend the algorithm to achieve the same O~(K)\widetilde{\mathcal{O}}(\sqrt{K}) guarantees for regret and hard constraint violation, which does not allow constraint violations to cancel across episodes. The main challenge is that learning linear CMDPs requires uniform concentration over a value function class with a controlled covering number, whereas standard techniques in constrained online learning, such as policy mixing, can make this class more complex. Our algorithm combines adaptive Follow the Regularized Leader (FTRL), contracted value estimation, and an exponential Lyapunov function. An adaptive dual regularizer offsets the dependence on the dual weights in the primal regret bound, removing the need for policy mixing. We further show that the normalization in the FTRL update bounds the policy parameters independently of the magnitudes of the dual weights, which explains why the resulting policy class remains compatible with uniform concentration. Under feature access, the computational complexity is independent of the size of the state space.
Jun 30, 2026cs.LG

Constrained Online Convex Optimization without Slater's Condition

We study constrained online convex optimization with adversarial losses and stochastic or adversarial constraints. For stochastic constraints, existing algorithms that achieve nearly optimal regret and constraint violation bounds typically rely on regularity assumptions such as Slater's condition, while adversarial-constraint algorithms avoid these assumptions by using a rather restrictive round-wise feasible comparator. We bridge this gap with an anytime primal-dual framework that incorporates an adaptive regularizer into the dual update. The regularizer stabilizes the dual process without relying on the negative drift induced by Slater's condition. For stochastic constraints and convex losses, our algorithm achieves O(T)O(\sqrt{T}) expected regret and O(Tlog⁡T)O(\sqrt{T}\log T) expected cumulative constraint violation. Furthermore, we show that our algorithm also admits high-probability bounds of the same order on regret and constraint violation. For strongly convex losses, the regret bound improves to O(log⁡T)O(\log T) with a violation bound of the same order. With a minor modification, the framework also applies to adversarial constraints and provides guarantees for hard constraint violation.