arXiv:2610.02520cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02520

Instance-Dependent Regret for CMDPs with Step-Wise Constraints

Qian Zuo, Francesco Emanuele Stradi, Leyang Xue, Sattar Vakili

Abstract

We study online learning in episodic tabular constrained Markov decision processes with step-wise safety constraints. In such a setting, the constraints induce a safe subgraph that shapes the variance of cumulative rewards under feasible policies and, consequently, the difficulty of learning. Exploiting this structure, however, requires learning which actions are safe while controlling constraint violations. We propose Safe Variance-Adaptive Exploration (SVAE), an efficient algorithm that learns candidate safe subgraphs and performs variance-adaptive optimistic planning within them. With high probability, SVAE achieves cumulative regret of order O(SAHmin⁡{VΣ,KVar∗}+SAH3min⁡{K,C}+S2AH2)\mathcal{O}(\sqrt{SAH} \min\{\mathbb{V}_{\Sigma}, KVar^*\} + S\sqrt{AH^3} \min\{K, \mathcal{C}\} + S^2 AH^2) over KK episodes, where HH is the horizon of a single episode, while SS and AA are the numbers of states and actions, respectively. Here, Var∗Var^* is the maximum return variance among safe policies, VΣ\mathbb{V}_{\Sigma} is the variance accumulated before the first unsafe action is encountered, and C\mathcal{C} captures the statistical complexity of eliminating actions incorrectly considered potentially safe. SVAE additionally attains O~(HSAK+S2AH2)\widetilde{\mathcal{O}}(H\sqrt{SAK} + S^2 AH^2) step-wise constraint violation and a gap-dependent violation bound that is polylogarithmic in KK. Finally, we establish a lower bound showing that dependence on these instance-specific quantities is unavoidable.

1 Introduction

Constrained Markov decision processes (CMDPs) are widely used to model sequential decision making in robotics, autonomous driving, and wireless networks [Achiam et al., 2017, Liu et al., 2021, Bura et al., 2022]. The objective is to maximize expected cumulative reward subject to safety or resource constraints, commonly imposed on expected cumulative costs [Altman, 1999, Miryoosefi and Jin, 2022, Stradi et al., 2025a]. The potential harm from individual unsafe decisions motivates step-wise safety constraints, which impose a mean-cost threshold at each decision [Xiong et al., 2023, Shi et al., 2023]. Violation is measured by summing positive excesses above this threshold without cancellation [Wei et al., 2024]. In this work, we study online learning in episodic tabular constrained MDPs under this kind of step-wise constraint.

Instance-dependent regret bounds distinguish the statistical difficulty of individual problems—namely, instances—and provide sharper guarantees on easier ones [Zanette and Brunskill, 2019, Dann et al., 2021]. In unconstrained reinforcement learning, variance-dependent analyses relate regret to the uncertainty induced by rewards and transitions [Talebi and Maillard, 2018, Zhou et al., 2023b, Zhao et al., 2023, Chen et al., 2025]. Such bounds can retain worst-case guarantees while improving on low-variance instances, including nearly constant regret in deterministic environments [Zhou et al., 2023b, Zamir et al., 2026]. In CMDPs, unknown costs and transitions determine which policies are feasible [Bura et al., 2022, Yu et al., 2025]. Exploratory policies can be unsafe, so their returns need not share the low variance of safe policies. Whether the benefits of variance-dependent learning can be retained under step-wise constraints is still unclear.

Step-wise safety constraints can be represented by a safe subgraph that retains actions satisfying the cost threshold and leading only to states with feasible future decisions [Xiong et al., 2023, Shi et al., 2023]. Our key observation is that even though learning under unknown constraints generally poses additional challenges, safety constraints can still simplify reward learning by removing stochastic branches or reducing differences in expected future rewards across possible next states under feasible policies. Even when the rewards and the transition kernel are fixed, changing costs can alter the safe subgraph and thereby reshape variances. However, small cost gaps and rare transitions to states with no feasible policy can still make safety identification difficult. Understanding how the safe subgraph relates to the variance and the statistical complexity is therefore central to instance-dependent regret analysis. These observations lead to the following questions:

(i) Is it possible to design a computationally efficient algorithm that achieves variance-dependent regret bounds and sublinear cumulative step-wise violation?

(ii) How does the induced safe subgraph shape the statistical complexity of learning under step-wise constraints?

To answer these questions, we first characterize how the induced safe subgraph shapes the variances and the safety identification complexity. We then propose Safe Variance-Adaptive Exploration (SVAE), which separates safe-subgraph learning from variance-adaptive planning. The algorithm learns candidate safe actions using variance-independent cost lower confidence bounds and observed successors, and plans optimistically over these sets using empirical reward and transition variances. We further evaluate SVAE and examine the effect of safe-subgraph properties on regret in synthetic experiments (Appendix H).

Our contributions can be summarized as follows.

• Safe-subgraph structure and variance In Section 3, we represent step-wise safety constraints through their induced safe subgraph and define two distinct variance quantities: (i) the maximum safe-policy return variance Var∗\text{Var}^* is the largest variance of the total episode return over all safe policies, and (ii) the trajectory-based total variance VΣ\mathbb{V}_{\Sigma} sums reward variances and transition variances before the first unsafe action in each episode. We establish a tight bound on transition variance in terms of stochastic branching depth and differences in expected cumulative rewards across successor states within the safe subgraph.

• Safety identification complexity In Section 3.3, we introduce a reward-independent instance quantity C to measure the difficulty of ruling out unsafe actions at states reachable under safe policies. Lower bounds for valid elimination establish its necessity.

• Efficient variance-adaptive exploration In Section 4, we develop SVAE, an efficient algorithm that exploits low return variance within the unknown safe subgraph without prior knowledge of a safe policy. SVAE maintains candidate action sets that retain all safe actions with high probability and uses the resulting candidate subgraph to adapt its exploration bonuses to empirical reward and next-state value variances.

• Instance-dependent learning guarantees In Section 5.1, we show that our algorithm attains, for a CMDP with SS states, AA actions, horizon HH, a cumulative regret bound over KK episodes of order O~(SAHmin⁡{VΣ,KVar⋆}+SAH3min⁡{K,C}+S2AH2)\widetilde{\mathcal{O}}(\sqrt{SAH\min\{\mathbb{V}_{\Sigma}, K\mathrm{Var}^\star\}} + S\sqrt{AH^3\min\{K, \mathcal{C}\}} + S^2AH^2). Here O~\widetilde{\mathcal{O}} hides polylogarithmic factors. Regret is polylogarithmic in KK on fixed instances with Var⋆=0\mathrm{Var}^\star = 0, while both regret and cumulative step-wise violation retain O~(K)\widetilde{\mathcal{O}}(\sqrt{K}) worst-case dependence. Step-wise violation is also polylogarithmic in KK for a fixed positive cost gap (Theorem 3).

• Regret lower bound In Section 5.2, we establish a regret lower bound, showing that both return variance and safety identification dependencies are unavoidable.

References (53)