We study episodic constrained Markov decision processes with adversarial losses under stochastic hard constraints. Specifically, starting from a known strictly feasible policy with margin , 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 . Interestingly, they also provide a lower bound of order for the same setting, where is the Slater margin of the offline problem and can be much larger than . 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 . Finally, we provide a matching lower bound, showing that the dependence on , , in the regret bound is optimal up to logarithmic factors.

生成讲解博客的中文版本

生成AI智能校验的中文版本