Near-Optimal Sample Complexity for Online Constrained MDPs Chang Liu, Yunfan Li, Lin F. Yang Abstract Safety is a fundamental challenge in reinforcement learning (RL), particularly in real-world applications such as autonomous driving, robotics, and healthcare. To address this, Constrained Markov Decision Processes (CMDPs) are commonly used to enforce safety constraints while optimizing performance. However, existing methods often suffer from significant safety violations or require a high sample complexity to generate near-optimal policies. We address two settings: relaxed feasibility, where small violations are allowed, and strict feasibility, where no violation is allowed. We propose a model-based primal-dual algorithm that balances regret and bounded constraint violations, drawing on techniques from online RL and constrained optimization. For relaxed feasibility, we prove that our algorithm returns an ε \varepsilon -optimal policy with ε \varepsilon -bounded violation with arbitrarily high probability, requiring O ~ ​ ( S ​ A ​ H 3 ε 2 ) \widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) learning episodes, matching the lower bound for unconstrained MDPs. For strict feasibility, we prove that our algorithm returns an ε \varepsilon -optimal policy with zero violation with arbitrarily high probability, requiring O ~ ​ ( S ​ A ​ H 5 ε 2 ​ ζ 2 ) \widetilde{O}\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) learning episodes, where ζ \zeta is the problem-dependent Slater constant characterizing the size of the feasible region. This result matches the lower bound for learning CMDPs with access to a generative model. Our results demonstrate that learning CMDPs in an online setting is as easy as learning with a generative model and is no more challenging than learning unconstrained MDPs when small violations are allowed. 1 Introduction Safety is a fundamental concern in reinforcement learning (RL), especially in real-world applications such as autonomous driving [ 37 ] , healthcare [ 35 ] , and industrial automation [ 25 ] . Constrained Markov Decision Processes (CMDPs) [ 2 ] are widely used to ensure safety by incorporating safe constraints and safe policies into the decision-making process. These frameworks allow for optimizing performance while limiting risky actions in safety-critical environments, such as preventing collisions in autonomous vehicles or ensuring correct treatment in healthcare. However, during the course of training, many RL methods can suffer from significant safety violations [ 11 , 14 ] , particularly when exploring new states or actions. This is highly problematic in real-world systems where even temporary unsafe actions can result in accidents, equipment damage, or hazardous conditions. For instance, in autonomous driving [ 7 ] , safety violations during training might lead to collisions or dangerous maneuvers, while in robotics [ 28 ] , such violations could cause physical harm to equipment or workers. As a result, it is crucial to design methods that guarantee bounded safety constraint violations, ensuring that any violations during training remain within acceptable limits, thereby preventing catastrophic outcomes while maintaining safety throughout the learning process. Tabular episodic MDPs, one of the most fundamental settings in RL, have been extensively studied, with various methods proposed to solve them [ 5 , 22 , 13 , 42 , 26 , 23 , 41 ] . Many algorithms have been shown to achieve minimax optimal regret \widetilde{O}(\sqrt{SAH^{3}K}) and 41 provided a method to achieve the minimax optimal sample complexity \widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) . Extending to CMDPs, prior works [ 14 , 24 , 6 , 34 , 40 , 8 , 17 , 27 , 20 , 16 ] have proposed methods in various settings that either achieve sublinear regret or return near-optimal algorithms. However, lower bounds and algorithms with provable minimax optimal upper bounds still remain unexplored in most of these works. Two primary feasibility settings in CMDPs are relaxed feasibility and strict feasibility [ 34 , 8 , 17 , 20 ] . In the relaxed feasibility setting, algorithms may return approximately optimal policies that allow small constraint violations. In contrast, in the strict feasibility setting, the learned policies must be near-optimal while ensuring zero constraint violations. The formal formulations for both settings are defined in section 3 . 34 proposed a model-based algorithm that achieves minimax sample complexity in both regimes, but relied on the assumption of a generative model that grants the learner random access to any state-action queries. However, in many real-world scenarios such as robotics and autonomous driving, the learning agent has to collect data online through sequential interactions with the environment. How or whether a minimax optimal sample complexity can be achieved in the online setting, which generalizes the random access setting and is inherently more challenging 39 , remains unknown. This raises the following question: Can we design safe online reinforcement learning (RL) algorithms for both relaxed and strict feasibility settings that achieve near-optimal sample efficiency in large-scale state spaces and long horizons while guaranteeing approximate reward optimality with arbitrarily high probability? In this paper, we affirmatively answer this question by proposing a model-based primal-dual algorithm. Our contributions are summarized as follows: • We propose a model-based primal-dual algorithm with doubling batch updates. In each episode, a policy is derived by mixing policies from multiple iterations of primal-dual updates in a constrained model represented in its Lagrangian form. This policy is then used to gather data to update the empirical transition model. The doubling batch update technique ensures a lazy update of the empirical transition model, allowing us to derive tighter theoretical bounds. • For the relaxed feasibility setting, we prove that our algorithm returns an \varepsilon -optimal policy with at most \varepsilon constraint violation after \widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) of online learning episodes, where S and A is the number of states and actions, H is the horizon. This sample complexity matches the lower bound for unconstrained MDPs: \Omega\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) [ 13 ] , showing that learning CMDPs in the relaxed feasibility setting is as easy as learning unconstrained MDPs. • For the strict feasibility setting, we prove that our algorithm returns an \varepsilon -optimal zero-violation policy after \widetilde{O}\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) of online learning episodes, where \zeta is the problem-dependent Slater constant characterizing the size of the feasible region. This sample complexity matches the lower bound for infinite-horizon discounted CMDPs with access to a generative model: \Omega\left(\frac{SA}{(1-\gamma)^{5}\varepsilon^{2}\zeta^{2}}\right) [ 34 ] , showing that learning CMDPs with online access is as easy as learning CMDPs with random access. Notation. We introduce a set of notation to be used throughout. For any two vectors x,y\in\mathbb{R}^{d} with the same dimension d , we use xy to abbreviate the inner product x^{\top}y , e.g. P_{s,a,h}V_{h+1,r}^{*}=\sum_{s^{\prime}}P_{s,a,h}(s^{\prime})V_{h+1,r}^{*}(s^{\prime}) . For any integer S>0 , any probability vector p\in\Delta_{[S]} and another vector v=\left[v_{i}\right]_{1\leq i\leq S} , we denote by \mathbb{V}(p,v):=\left\langle p,v^{2}\right\rangle-(\langle p,v\rangle)^{2} the associated variance, where v^{2}=\left[v_{i}^{2}\right]_{1\leq i\leq S} represents element-wise square of v . 2 Related Work Constrained Markov Decision Process (CMDP) The Constrained Markov Decision Process (CMDP) [ 2 ] is a key model for addressing safety concerns in reinforcement learning (RL). Many existing works on CMDPs employ a primal-dual approach to achieve sublinear regret while maintaining bounded constraint violations [ 34 , 18 , 30 , 10 , 38 , 12 ] . Another widely-used method is adapting policy gradient algorithms [ 1 , 32 , 31 , 33 ] . Furthermore, 14 introduces a more stringent metric for hard constraint violation, where only positive constraint violations are accumulated. Their approach achieves sublinear regret, constraint violations and hard constraint violation. Recently, 15 extended this idea to a linear setting, obtaining similar results. In practical applications, ensuring strict adherence to safety constraints without violations often requires system-specific assumptions. For instance, 36 assumes regularity in the safety functions, while 3 presumes knowledge of a safe action for each state. Additionally, 24 , 6 assume the existence of a known safe policy and its true constraint value, achieving improved regret bounds and constraint violations compared to 14 . Building on the assumption of a known safe policy and its true constraint value, our work proposes a primal-dual low-switching algorithm, leveraging advanced techniques from standard MDPs. This approach not only improves the regret bound but also maintains a constant constraint violation. 34 solved the infinite-horizon discounted tabular CMDPs in the random access setting. Our work extends their results to tabular CMDPs in the online setting, which serve as a crucial benchmark for safe RL that provides a structured environment for theoretical analysis and algorithmic validation. Further extension to function approximation or multiple constraints is out of the scope of this paper and an interesting topic for future research. Episodic unconstrained MDPs 4 first provided an upper bound of O(\sqrt{S^{2}AKHD^{2}}) . 9 , 13 established lower bounds of \Omega(\sqrt{SAH^{3}K}) for regret and \Omega(SAH^{3}/\varepsilon^{2}) for sample complexity. 29 introduced a posterior sampling approach for RL, achieving minimax-optimal regret bounds of O(\sqrt{SAHK}) under certain conditions. 5 further achieved a minimax optimal regret for a model-based algorithm, and 21 developed similar results for a model-free Q-learning method. Many methods have achieved near-optimal upper bounds [ 42 , 26 , 23 ] . Recently, 41 achieved minimax optimal regret, sample complexity, and burn-in cost, yet such methods are rarely explored in CMDPs. To our knowledge, this work is the first to incorporate state-of-the-art techniques for unconstrained MDPs into CMDPs, achieving minimax optimal performance in online constrained RL. 3 Problem Setup We consider a finite-horizon non-stationary constrained Markov Decision Process (MDP) defined by the tuple M=(\mathcal{S},\mathcal{A},H,P,r,c,b) , where \mathcal{S} is the state space, \mathcal{A} is the action space, and H is the horizon length. The unknown transition probability at each time step is denoted by P_{s,a,h} , where P_{s,a,h}(s^{\prime}) represents the probability of transitioning to state s^{\prime} from state s after taking action a at time step h . The reward function r_{h}:\mathcal{S}\times\mathcal{A}\to[0,1] quantifies the immediate reward the agent receives for taking action a in state s at time step h . Similarly, the cost function c_{h}:\mathcal{S}\times\mathcal{A}\to[0,1] represents safety violations incurred for the same action. We assume that both the reward and cost functions are known to the agent, though the same results can be easily extended to the case where neither function is known. Finally, b\in(0,H] is a predefined safety constraint that limits the cumulative cost over the episode. The agent interacts with the environment over K episodes, each consisting of H steps. At the start of each episode k , the agent selects a randomized policy \pi^{k}=\{\pi^{k}_{h}\}_{h} , where at time step h the policy \pi_{h}^{k}:\mathcal{S}\to\Delta_{\mathcal{A}} prescribes a distribution over actions conditioned on the current state. The policy is executed with the goal of maximizing the cumulative reward while ensuring that the cumulative cost remains within the safety limit. The cumulative value at state s and time step h , with respect to any function g:\mathcal{S}\times\mathcal{A}\to\mathbb{R} , under policy \pi , is defined as: V_{h,g}^{\pi}(s)=\mathbb{E}_{P,\pi}\left[\sum_{t=h}^{H}g(S_{t},A_{t})\middle|S_{h}=s\right] , representing the expected cumulative sum of g(S_{t},A_{t}) from time step h to the end of the episode, given that the process starts in state s at time h . The objective of CMDP is to solve the following constrained optimization problem: \max_{\pi}V_{1,r}^{\pi}(s_{1})\quad\text{s.t.}\quad V_{1,c}^{\pi}(s_{1})\leq b, (1) where V_{1,r}^{\pi}(s_{1}) is the expected cumulative reward value, and V_{1,c}^{\pi}(s_{1}) is the expected cumulative cost value, constrained by the safety threshold b . The optimal policy \pi^{*} solving eq. 1 is defined as \pi^{*}=\operatorname*{arg\,max}_{\pi}V_{1,r}^{\pi}(s_{1})\quad\text{s.t.}\quad V_{1,c}^{\pi}(s_{1})\leq b. The corresponding expected reward and cost value are denoted by V_{1,r}^{*}(s_{1}) and V_{1,c}^{*}(s_{1}) . For a CMDP instance, we define the Slater constant \zeta\coloneqq\max_{\pi}b-V_{1,c}^{\pi}(s_{1}) . The Slater constant \zeta measures the size of the feasible region. We also define the policy that with the minimal cost value: \pi_{c}^{*}\in\operatorname*{arg\,max}_{\pi}b-V_{1,c}^{\pi}(s_{1}) . We now define the regret and constraint violation over K episodes: \textrm{Regret}(K)\coloneq\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right)\quad\textrm{and}\quad\textrm{CV}(K)\coloneq\left(\sum_{k=1}^{K}\left(V_{1,c}^{\pi^{k}}(s_{1}^{k})-b\right)\right)_{+}. (2) We will provide upper bounds on both regret and constraint violation of our algorithm, but more importantly, convert such bounds to our final sample complexity bounds. For a small suboptimality error \varepsilon , we define the two settings as follows: Relaxed feasibility: The agent’s objective is to return a policy that with high probability achieves an approximately optimal reward value, while violates the constraint by a small margin. Formally the agent returns a policy \pi such that with high probability, V_{1,r}^{\pi}(s_{1})\geq V_{1,r}^{*}(s_{1})-\varepsilon,\quad\text{and }\quad V_{1,c}^{\pi}(s_{1})\leq b+\varepsilon. (3) Strict feasibility: The agent’s objective is to return a policy that with high probability achieves an approximately optimal reward value, and simultaneously achieves zero constraint violation. Formally the agent returns a policy \pi such that with high probability, V_{1,r}^{\pi}(s_{1})\geq V_{1,r}^{*}(s_{1})-\varepsilon,\quad\text{and }\quad V_{1,c}^{\pi}(s_{1})\leq b. (4) In the next section, we present our technical methodology to tackle both settings in online CMDPs. 4 Methodology Before introducing our method, we examine the state-of-the-art algorithms in tabular online CMDPs, and discuss why their methods fail to achieve near-optimal sample complexity. One of the biggest challenges in analyzing model-based algorithms in unconstrained MDPs and CMDPs is to decouple the correlation between the empirical model \widehat{P} and the estimate values \widehat{V}^{\pi^{k}} . Indeed, both 24 and 6 get the extra regret terms due to loose decoupling steps. In particular, 6 achieve a regret of \widetilde{O}(\sqrt{S^{2}AH^{6}K}/(b-c^{0})) , where c^{0} is the value of a known safe policy. In both their regret analysis, the authors bound the term \widehat{V}_{1,r}^{\pi^{k}}(s_{1})-V_{1,r}^{\pi^{k}}(s_{1}) by \displaystyle\widehat{V}_{1,r}^{\pi^{k}}(s_{1})-V_{1,r}^{\pi^{k}}(s_{1}) \displaystyle=\sum_{h=1}^{H}\mathbb{E}_{\pi^{k},P}\left[\sum_{s^{\prime}}\left(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}(s^{\prime})-P_{s_{h}^{k},a_{h}^{k},h}(s^{\prime})\right)\widehat{V}_{h+1,r}^{\pi^{k}}(s^{\prime})\right] \displaystyle\leq\sum_{h=1}^{H}\mathbb{E}_{\pi^{k},P}\left[\sum_{s^{\prime}}\left\lvert\widehat{P}_{s_{h}^{k},a_{h}^{k},h}(s^{\prime})-P_{s_{h}^{k},a_{h}^{k},h}(s^{\prime})\right\rvert H\right], where the equality follows from value difference lemma and the inequality follows from Hölder’s inequality and \widehat{V}\leq H . Then they invoke Bernstein’s inequality on the concentration bound of \widehat{P} . This technique is also known to be used in unconstrained MDPs 19 and gives a regret of \widetilde{O}(\sqrt{S^{2}AH^{4}K}) , which is suboptimal compared to the lower bound \Omega(\sqrt{SAH^{3}K}) . Following 19 , subsequent works 5 , 41 introduced different techniques to achieve near-optimal regret, but neither method extends directly to CMDPs. In the regret analysis of 5 , the authors bound \widehat{V}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k})-V_{h,r}^{\pi^{k}}(s_{h}^{k}) by writing it in a recursive form. One of the key steps is to bound the following term as: \displaystyle\left(\widehat{P}_{s,a,h}-P_{s,a,h}\right)\left(\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}-V_{h+1,r}^{*}\right)\leq\sum_{s^{\prime}}\left\lvert\widehat{P}_{s,a,h}(s^{\prime})-P_{s,a,h}(s^{\prime})\right\rvert\cdot\left(\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}(s^{\prime})-V_{h+1,r}^{\pi^{k}}(s^{\prime})\right), where the inequality follows from the optimism of \widehat{V}_{h,\widetilde{r}}^{\pi^{k}} and optimality of V_{h,r}^{*} : \widehat{V}_{h,\widetilde{r}}^{\pi^{k}}(s)\geq V_{h,r}^{*}(s)\geq V_{h,r}^{\pi^{k}}(s),\forall h\in[H],k\in[K],s\in\mathcal{S}. This argument fails in CMDPs, because the optimal policy \pi^{*} in CMDPs is not necessarily optimal for all h\in[H] . The high-level idea of 41 to decouple the correlation between \widehat{P} and \widehat{V} is that, when fixing a “profile” that keeps track of visitation counts for all (s,a,h) tuples, \widehat{V}_{h+1} is independent of \widehat{P}_{h} . A union bound over all possible profiles then gives the desired regret bound. To avoid the number of such profiles being exponential in K , the authors adopt the double batch updates explained later. Although decoupling arises naturally in unconstrained MDPs through backward updates, it is not the case in constrained MDPs. If the policy \pi is determined by enforcing the constraint \widehat{V}_{1,c}^{\pi}\leq b , then \pi and thus \widehat{V}^{\pi}_{h+1} will be inherently correlated to all \widehat{P}_{h} ’s. To tackle these challenges, we use a model-based approach to address the CMDP problem defined in eq. 1 . Adopting the doubling batch updates, we update our empirical transition matrix only when the visitation count of any state-action pair doubles. To be specific, we denote \bar{N}_{h}(s,a) as the total visitation count of state-action pair (s,a) in time step h , N_{h}(s,a,s^{\prime}) as the count of transitions from (s,a) to s^{\prime} since the last update, and N_{h}(s,a)=\sum_{s^{\prime}}N_{h}(s,a,s^{\prime}) as the visitation count of (s,a) since the last update. We update an empirical transition matrix \widehat{P} whenever \bar{N}_{h}(s,a) for any (s,a) doubles, such that \widehat{P}_{s,a,h}(s^{\prime})=\frac{N_{h}(s,a,s^{\prime})}{N_{h}(s,a)} . Note that we will only use the data collected after the last update to calculate \widehat{P} . With \widehat{P} , we are able to formulate an empirical CMDP. We adopt a UCB-style bonus for both reward and cost. For any reward function g and policy \pi , we define the bonus for a (s,a,h,k) tuple as b_{h,g}^{k,\pi}(s,a)=c_{1}\sqrt{\frac{\mathbb{V}(\widehat{P}_{s,a,h},\widehat{V}_{h+1,g}^{\pi})\log(1/\delta^{\prime})}{N_{h}(s,a)}}+c_{2}\frac{H\log(1/\delta^{\prime})}{N_{h}(s,a)}, (5) where c_{1} and c_{2} are constant to be specified later and \delta^{\prime}=\delta/(200SAH^{2}K^{2}) is related to the confidence level \delta . For reward, we add this Bernstein-style bonus b_{h,r}(s,a) to r_{h}(s,a) for each (s,a) to encourage exploration. We denote the optimistically biased reward estimate as \widetilde{r} , i.e., \widetilde{r}_{h}(s,a)=r_{h}(s,a)+b_{h,r}(s,a) . For safety cost, we subtract a Bernstein-style bonus b_{h,c}(s,a) from c_{h}(s,a) . We denote the optimistically biased cost estimate by \underline{c} , i.e., \underline{c}_{h}(s,a)=c_{h}(s,a)-b_{h,c}(s,a) . By using the optimistically biased cost estimate we will underestimate the cumulative cost. To compensate for this and strive to satisfy the safety constraint in the strict feasibility setting, we define a pessimistic constraint constant b^{\prime} for each episode by subtracting a gap \Delta from b , that is, b^{\prime}\coloneq b-\Delta . Whereas for the relaxed feasibility setting, since small violations are allowed, we define an optimistic constraint constant b^{\prime}\coloneq b+\tau . This non-negative optimistic shift \tau is also required to derive \zeta -free results for the relaxed feasibility setting. We will specify the value of \Delta and \tau later. We now introduce an empirical CMDP for each episode k , defined by \widehat{M}_{k}=(\mathcal{S},\mathcal{A},H,\widehat{P},\widetilde{r},\underline{c},b^{\prime}) , and the corresponding optimization problem \widehat{\mathcal{P}}^{k} : \max_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1})\quad\textrm{s.t.}\quad\widehat{V}_{1,\underline{c}}^{\pi}(s_{1})\leq b^{\prime}. (6) As discussed before, directly solving eq. 6 results in complex correlation of \widehat{P} and \widehat{V}^{\pi} , leading to suboptimal results. Therefore, we employ a primal-dual approach, which transforms the constrained optimization problem into a saddle-point problem. Let \lambda\geq 0 be the dual variable associated with the cost constraint. The equivalent saddle-point problem to eq. 6 is: \min_{\lambda\geq 0}\max_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1})-\lambda\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1})-b^{\prime}\right), (7) and we denote (\widehat{\pi}^{k,*},\widehat{\lambda}^{k,*}) as the optimal solutions to the saddle point problem eq. 7 . We solve the saddle-point problem eq. 7 iteratively, and for each iteration t\in[T] , we alternatively update iterates of the primal variable \widehat{\pi}_{t}^{k} and the dual variable \widehat{\lambda}_{t+1}^{k} . The primal update is \widehat{\pi}_{t}^{k}=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1})-\widehat{\lambda}_{t}^{k}\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1})-b^{\prime}\right)=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}-\widehat{\lambda}_{t}^{k}\underline{c}}^{\pi}(s_{1}), (8) where the last equality follows from lemma 15 . By augmenting rewards with the Lagrange-weighted costs, the policy \widehat{\pi}_{t}^{k} can be solved with backward updates, allowing us to decouple \widehat{V}^{\pi}_{h+1} from \widehat{P}_{h} . However, the value estimates \widehat{V}^{\pi} now depend on the dual variable \widehat{\lambda}^{k} that takes continuous values. To retain tractable union bounds in the analysis, we must restrict \widehat{\lambda} to a discrete set. Specifically, we update the dual variable by performing a single gradient descent step with step size \eta . We then discretize the values by rounding the gradient descent result to the nearest element in an \varepsilon -net \Lambda=\{0,\varepsilon_{1},2\varepsilon_{1},\dots,U\} . The resulting dual update is \widehat{\lambda}_{t+1}^{k}=\mathcal{R}_{\Lambda}\left[\widehat{\lambda}_{t}^{k}+\eta\left(\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1})-b^{\prime}\right)\right], (9) where \mathcal{R}_{\Lambda}(\lambda)=\operatorname*{arg\,min}_{p\in\Lambda}\lvert p-\lambda\rvert is a rounding function. Input: \mathcal{S},\mathcal{A},H,K,r,c,\zeta,b^{\prime},c_{1}=460/9,c_{2}=544/9 , \eta=\frac{U}{H\sqrt{T}} , T , \varepsilon_{1} , U . Initialization : for all k\in[K] , \widehat{\lambda}_{1}^{k}\leftarrow 0 , for all (s,a,s^{\prime},h) , set N_{h}(s,a,s^{\prime})\leftarrow 0 , \bar{N}_{h}(s,a,s^{\prime})\leftarrow 0 , N_{h}(s,a)\leftarrow 0 ; for all \pi , set \widehat{V}_{h,\underline{c}}^{\pi}(s)\leftarrow 0 , \widehat{V}_{h,\widetilde{r}}^{\pi}(s)\leftarrow H . for k=1,\cdots,K do for t=1,\cdots,T do \widehat{\pi}_{t}^{k}=\operatorname*{arg\,max}_{\pi}\widehat{V}^{\pi}_{1,\widetilde{r}}(s_{1}^{k})-\widehat{\lambda}^{k}_{t}\widehat{V}^{\pi}_{1,\underline{c}}(s_{1}^{k}) \widehat{\lambda}^{k}_{t+1}=\mathcal{R}_{\Lambda}[\widehat{\lambda}^{k}_{t}-\eta(b^{\prime}-\widehat{V}^{\widehat{\pi}^{k}_{t}}_{1,\underline{c}}(s_{1}^{k}))] \pi^{k}=\frac{1}{T}\sum_{t=1}^{T}\widehat{\pi}^{k}_{t} for h=1,\cdots,H do Observe s_{h}^{k} , take action a_{h}^{k}\sim\pi_{h}^{k}(\cdot|s_{h}^{k}) , receive r_{h}^{k} , c_{h}^{k} , observe s_{h+1}^{k} (s,a,s^{\prime})\leftarrow s_{h}^{k},a_{h}^{k},s_{h+1}^{k} \bar{N_{h}}(s,a)\leftarrow\bar{N_{h}}(s,a)+1 , N_{h}(s,a,s^{\prime})\leftarrow N_{h}(s,a,s^{\prime})+1 if \bar{N}_{h}(s,a)\in\{1,2,4,\cdots,2^{\log_{2}K}\} then N_{h}(s,a)\leftarrow\sum_{\widetilde{s}}N_{h}(s,a,\widetilde{s}) \widehat{P}_{s,a,h}(\widetilde{s})\leftarrow N_{h}(s,a,\widetilde{s})/N_{h}(s,a) TRIGGERED \leftarrow TRUE N_{h}(s,a,\cdot)\leftarrow 0 if TRIGGERED then TRIGGERED \leftarrow FALSE \widehat{V}^{\pi}_{H+1,g}(s)\leftarrow 0,\forall x\in\mathcal{S} for h=H,H-1,\cdots,1 do for (s,a)\in\mathcal{S}\times\mathcal{A} and any \pi do \widehat{Q}^{\pi}_{h,\widetilde{r}}(s,a)=\min\{r_{h}(s,a)+b_{h,r}^{k,t,\pi}(s,a)+\widehat{P}_{s,a,h}\widehat{V}^{\pi}_{h+1,\widetilde{r}},H\} \widehat{V}^{\pi}_{h,\widetilde{r}}(s)=\sum_{a\in\mathcal{A}}\pi(a|s)\widehat{Q}^{\pi}_{h,\widetilde{r}}(s,a) \widehat{Q}^{\pi}_{h,\underline{c}}(s,a)=\max\{c_{h}(s,a)-b_{h,c}^{k,t,\pi}(s,a)+\widehat{P}_{s,a,h}\widehat{V}^{\pi}_{h+1,\underline{c}},0\} \widehat{V}^{\pi}_{h,\underline{c}}(s)=\sum_{a\in\mathcal{A}}\pi(a|s)\widehat{Q}^{\pi}_{h,\underline{c}}(s,a) return \bar{\pi}=\frac{1}{K}\sum_{k=1}^{K}\pi^{k} Algorithm 1 Model-based algorithm for online CMDP Finally, we state our algorithm in algorithm 1 . For each episode, we first execute T iterations of primal and dual updates. The agent executes the mixture policy \pi^{k} and receives the reward, cost, and the next state. We update the empirical model using the doubling technique as described before. In the end, the algorithm outputs the mixture policy \bar{\pi} that mixes all intermediate policies. 5 Main Results and Analysis We first present the regret and constraint violation bounds of our algorithm and proofs, while we leave intermediate lemmas and proofs used to support the main results in the appendix. 5.1 Regret and constraint violation results Theorem 1 (Regret bound of algorithm 1 for relaxed feasibility) . Let b^{\prime}=b+\tau in algorithm 1 for some \tau>0 . With probability at least 1-\delta , the regret of algorithm 1 is \textrm{Regret}(K)=\widetilde{O}\left(\sqrt{SAH^{3}K}+2\varepsilon_{1}HK\sqrt{T}+\frac{H^{2}K}{\tau\sqrt{T}}\right). Proof. Recall the definition of regret: \textrm{Regret}(K)=\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right) . Note that \pi^{*} is the optimal solution to the original CMDP optimization problem eq. 1 , while for each episode \pi^{k} is an approximation solution to the empirical CMDP optimization problem eq. 6 . To cope with the gap between the two policies, we introduce a proxy policy \pi^{\tau,*} defined as the optimal solution to the following optimization problem \pi^{\tau,*}\in\operatorname*{arg\,max}_{\pi}V_{1,r}^{\pi}(s_{1}^{k}),\quad\text{s.t.}\quad V_{1,c}^{\pi}(s_{1}^{k})\leq b^{\prime}=b+\tau. (10) We decompose the regret as \displaystyle\textrm{Regret}(K)= \displaystyle\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\tau,*}}(s_{1}^{k})\right)+\sum_{k=1}^{K}\left(V_{1,r}^{\pi^{\tau,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{\tau,*}}(s_{1}^{k})\right) \displaystyle+\sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\tau,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})\right)+\sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right), and give the regret bound by bounding each term above. The first term is the error incurred by replacing the original constraint constant b by a relaxed empirical constraint constant b^{\prime}=b+\tau for each episode k . Note that by definition of \pi^{*} , we have V_{1,c}^{*}(s_{1})\leq b\leq b^{\prime} . Thus by definition of \pi^{\tau,*} in eq. 10 , we have V_{1,r}^{\pi^{\tau,*}}(s_{1})\geq V_{1,r}^{*}(s_{1}) . Hence, we bound the first term by 0: \sum_{k=1}^{K}(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\tau,*}}(s_{1}^{k}))\leq 0 . By definition of the proxy policy \pi^{\tau,*} in eq. 10 , and noting that \tau is a predetermined constant, we see that \pi^{\tau,*} is a fixed policy that is independent of the online learning process. Thus we can apply lemma 16 and bound the second term by 0: \sum_{k=1}^{K}\left(V_{1,r}^{\pi^{\tau,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{\tau,*}}(s_{1}^{k})\right)\leq 0 . The third term is the optimization error, and it is incurred because \pi^{k} is an approximation solution generated by iterative primal-dual updates. We bound this term by using the primal update rules in lemma 2 and also by lemmas 11 and 12 , we have \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\tau,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})\right)\leq 2\varepsilon_{1}HK\sqrt{T}+\frac{UHK}{\sqrt{T}}\leq 2\varepsilon_{1}HK\sqrt{T}+\frac{H^{2}K}{\tau\sqrt{T}}. Finally, the last term in the regret decomposition is the model prediction error, consisting of the errors caused by inaccurate empirical models and additional bonus terms. Worth mentioning, this term is essentially similar to the entire regret in 41 as the algorithms share the similar exploration bonus and update rules for transition models. We state in lemma 3 the bound with probability 1-\delta , \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right)=\widetilde{O}(\sqrt{SAH^{3}K}). (11) Putting everything together, we conclude our desired regret bound. ∎ Theorem 2 (Regret bound of algorithm 1 for strict feasibility) . Let b^{\prime}=b-\Delta in algorithm 1 for some \Delta>0 . With probability at least 1-\delta , the regret of algorithm 1 is \textrm{Regret}(K)=\widetilde{O}(\sqrt{SAH^{3}K}+\frac{\Delta}{\zeta}HK+2\varepsilon_{1}HK\sqrt{T}+\frac{H^{2}K}{(\zeta-\Delta)\sqrt{T}}). Proof. The proof to theorem 2 follows the similar idea as the proof to theorem 1 . Again, we introduce a proxy policy \pi^{\Delta,*} defined as the optimal solution to the following optimization problem \pi^{\Delta,*}\in\operatorname*{arg\,max}_{\pi}V_{1,r}^{\pi}(s_{1}^{k}),\quad\text{s.t.}\quad V_{1,c}^{\pi}(s_{1}^{k})\leq b^{\prime}=b-\Delta. (12) We decompose the regret as \displaystyle\textrm{Regret}(K)= \displaystyle\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k})\right)+\sum_{k=1}^{K}\left(V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})\right) \displaystyle+\sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})\right)+\sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right), and give the regret bound by bounding each term above. The first term is the error incurred by replacing the original constraint constant b by a more restrictive empirical constraint constant b^{\prime}=b-\Delta for each episode k . We bound the first term in lemma 1 : \sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k})\right)\leq\frac{\Delta}{\zeta}HK. (13) For the second term, we use the similar argument as in the proof to theorem 1 . By definition of the proxy policy \pi^{\Delta,*} in eq. 12 , and noting that \Delta is a predetermined constant, we see that \pi^{\Delta,*} is a fixed policy that is independent of the online learning process. Thus we can apply lemma 16 and bound the second term by 0: \sum_{k=1}^{K}\left(V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})\right)\leq 0 . The last two terms can be bounded with the same argument as in the proof to theorem 1 . Putting everything together, we conclude the regret bound in the strict feasibility setting. ∎ Theorem 3 (Constraint violation bound of algorithm 1 for relaxed feasibility) . Let b^{\prime}=b+\tau in algorithm 1 for some \tau>0 . With probability at least 1-\delta , the constraint violation of algorithm 1 is \textrm{CV}(K)=\widetilde{O}(\sqrt{SAH^{3}K}+\frac{2\varepsilon_{1}H\sqrt{T}+UH/\sqrt{T}}{U-H/\tau}K+K\tau). Proof. Recall the definition of constraint violation and we decompose it as follows: \displaystyle\textrm{CV}(K) \displaystyle=\left(\sum_{k=1}^{K}V_{1,c}^{\pi^{k}}(s_{1}^{k})-b\right)_{+} \displaystyle=\left(\sum_{k=1}^{K}\left(V_{1,c}^{\pi^{k}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})\right)+\sum_{k=1}^{K}\left(\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})-b^{\prime}\right)+\sum_{k=1}^{K}\left(b^{\prime}-b\right)\right)_{+}. For the first term, by definition of optimistically biased estimates of rewards and cost, we note that the analysis of bounding \sum_{k}V_{1,c}^{\pi^{k}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k}) and \sum_{k}\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k}) are analogous, and mostly identical. Hence, by lemma 3 , we have \sum_{k=1}^{K}\left(V_{1,c}^{\pi^{k}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})\right)\leq\widetilde{O}(\sqrt{SAH^{3}K}), (14) with probability at least 1-SAHK\delta^{\prime} . The second term is the optimization error in the primal-dual process. We calculate \pi^{k} as an approximate solution to the empirical optimization problem defined in eq. 6 . Thus, it is not necessarily satisfied that \widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})\leq b^{\prime} . We hence return to the analysis of the primal-dual framework, and adapt techniques used in 18 , 34 . By lemmas 14 , 11 , 13 and 12 , we have \displaystyle\sum_{k=1}^{K}\left(\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})-b^{\prime}\right)\leq\sum_{k=1}^{K}\left(\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})-b^{\prime}\right)_{+}\leq\frac{2\varepsilon_{1}H\sqrt{T}+UH/\sqrt{T}}{U-H/\tau}K, For the third term, we recall the definition of b^{\prime} , and we have \sum_{k=1}^{K}(b^{\prime}-b)=K\tau. Finally, putting everything together, we have the desired upper bound on constraint violation. ∎ Theorem 4 (Constraint violation bound of algorithm 1 for strict feasibility) . Let b^{\prime}=b-\Delta for some \Delta>0 . With probability at least 1-\delta , the constraint violation of algorithm 1 is \textrm{CV}(K)=\widetilde{O}(\sqrt{SAH^{3}K}+\frac{2\varepsilon_{1}H\sqrt{T}+UH/\sqrt{T}}{U-H/(\zeta-\Delta)}K-K\Delta). Proof. We decompose the violation similarly as in the proof to theorem 3 and note that the first two terms can be bounded using the same argument. Then, recall b^{\prime}=b-\Delta , and we immediately have the upper bound on constraint violation for strict feasibility. ∎ 5.2 Sample complexity bounds We present the sample complexity bounds of algorithm 1 . We derive these bounds by converting them from the regret and constraint violation upper bounds presented above. Theorem 5 (Sample complexity of algorithm 1 for relaxed feasibility) . For a fixed \varepsilon\in(0,H] and \delta\in(0,1) , with K=\widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) , T=O\left(\frac{H^{4}}{\varepsilon^{4}}\right) , U=O\left(\frac{H}{\varepsilon}\right) , \varepsilon_{1}=O\left(\frac{\varepsilon^{3}}{H^{3}}\right) , and \tau=\frac{\varepsilon}{2} , algorithm 1 returns a policy \bar{\pi} that satisfies eq. 3 with probability 1-\delta . Proof. Note that \bar{\pi}=\frac{1}{K}\sum_{k=1}^{K}\pi^{k} is a mixture policy, and we have \displaystyle V_{1,r}^{*}(s_{1})-V_{1,r}^{\bar{\pi}}(s_{1})=\frac{1}{K}\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1})-V_{1,r}^{\pi^{k}}(s_{1})\right)=\frac{\textrm{Regret}(K)}{K}, and \displaystyle V_{1,c}^{\bar{\pi}}(s_{1})-b=\frac{1}{K}\sum_{k=1}^{K}\left(V_{1,c}^{\pi^{k}}(s_{1})-b\right)\leq\frac{\textrm{CV}(K)}{K}. By setting K=\widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) , T=O\left(\frac{H^{4}}{\varepsilon^{4}}\right) , U=O\left(\frac{H}{\varepsilon}\right) , \varepsilon_{1}=O\left(\frac{\varepsilon^{3}}{H^{3}}\right) , and \tau=\frac{\varepsilon}{2} , with proper coefficients we have V_{1,r}^{*}(s_{1})-V_{1,r}^{\bar{\pi}}(s_{1})\leq\varepsilon , and V_{1,c}^{\bar{\pi}}(s_{1})-b\leq\varepsilon . ∎ Theorem 5 shows the sample complexity of algorithm 1 is \widetilde{O}\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) in the relaxed feasibility setting. For unconstrained MDPs with online access, 13 provided a lower bound of \Omega\left(\frac{SAH^{3}}{\varepsilon^{2}}\right) for \varepsilon -optimal policy identification. We thus conclude that learning online CMDPs in the relaxed feasibility setting is as easy as learning unconstrained MDPs. Theorem 6 (Sample complexity of algorithm 1 for strict feasibility) . For a fixed \varepsilon\in(0,H-\zeta] and \delta\in(0,1) , with K=\widetilde{O}\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) , T=O\left(\frac{H^{6}}{\zeta^{4}\varepsilon^{2}}\right) , U=O\left(\frac{H^{2}}{\zeta(H-\varepsilon)}\right) , \varepsilon_{1}=O\left(\frac{\varepsilon^{2}\zeta^{2}}{H^{4}}\right) , and \Delta=\frac{\zeta\varepsilon}{2H} , algorithm 1 returns a policy \bar{\pi} that satisfies eq. 4 with probability 1-\delta . Proof. The proof is mostly the same as the proof to theorem 5 : \displaystyle V_{1,r}^{*}(s_{1})-V_{1,r}^{\bar{\pi}}(s_{1})=\frac{1}{K}\sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1})-V_{1,r}^{\pi^{k}}(s_{1})\right)=\frac{\textrm{Regret}(K)}{K}, and \displaystyle V_{1,c}^{\bar{\pi}}(s_{1})-b=\frac{1}{K}\sum_{k=1}^{K}\left(V_{1,c}^{\pi^{k}}(s_{1})-b\right)\leq\frac{\textrm{CV}(K)}{K}. By setting K=\widetilde{O}\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) , T=O\left(\frac{H^{6}}{\zeta^{4}\varepsilon^{2}}\right) , U=O\left(\frac{H^{2}}{\zeta(H-\varepsilon)}\right) , \varepsilon_{1}=O\left(\frac{\varepsilon^{2}\zeta^{2}}{H^{4}}\right) , and \Delta=\frac{\zeta\varepsilon}{2H} , with proper coefficients, we have V_{1,r}^{*}(s_{1})-V_{1,r}^{\bar{\pi}}(s_{1})\leq\varepsilon , and V_{1,c}^{\bar{\pi}}(s_{1})-b\leq 0 . ∎ Theorem 6 shows the sample complexity of algorithm 1 is \widetilde{O}\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) in the strict feasibility setting. With access to a generative model, 34 provided a lower bound of \Omega\left(\frac{SA}{(1-\gamma)^{5}\varepsilon^{2}\zeta^{2}}\right) for infinite-horizon discounted CMDPs, which translates to \Omega\left(\frac{SAH^{5}}{\varepsilon^{2}\zeta^{2}}\right) for episodic CMDPs. Note that this lower bound can be readily applied to learning with online access: Suppose there exists an online algorithm \mathscr{A} achieving better sample complexity than the lower bound for the random access setting. Since trajectories generated in the online setting can be simulated with a generative model, we can easily construct a sampling scheme with the generative model using \mathscr{A} as a subroutine. This contradicts the lower bound. We thus conclude that in the strict feasibility setting, learning CMDPs with online access is as easy as learning CMDPs with random access. NeurIPS Paper Checklist 1. Claims Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? Answer: [Yes] Justification: The contributions and scope of this paper are included in both the abstract and the introduction. Guidelines: • The answer NA means that the abstract and introduction do not include the claims made in the paper. • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. 2. Limitations Question: Does the paper discuss the limitations of the work performed by the authors? Answer: [Yes] Justification: The limitations of this work are discussed in the related work. Guidelines: • The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. • The authors are encouraged to create a separate "Limitations" section in their paper. • The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. • The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. 3. Theory assumptions and proofs Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? Answer: [Yes] Justification: For all main results of this paper, the proof sketch is provided in the main paper, and the complete proof and auxiliary lemmas are included in the appendix, numbered and referenced. Guidelines: • The answer NA means that the paper does not include theoretical results. • All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. • All assumptions should be clearly stated or referenced in the statement of any theorems. • The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. • Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. • Theorems and Lemmas that the proof relies upon should be properly referenced. 4. Experimental result reproducibility Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? Answer: [N/A] Justification: This paper does not include experiments. Guidelines: • The answer NA means that the paper does not include experiments. • If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. • If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. • Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. • While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. 5. Open access to data and code Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? Answer: [N/A] Justification: This paper does not include experiments. Guidelines: • The answer NA means that paper does not include experiments requiring code. • Please see the NeurIPS code and data submission guidelines ( https://nips.cc/public/guides/CodeSubmissionPolicy ) for more details. • While we encourage the release of code and data, we understand that this might not be possible, so “No” is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). • The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines ( https://nips.cc/public/guides/CodeSubmissionPolicy ) for more details. • The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. • The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. • At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. 6. Experimental setting/details Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? Answer: [N/A] Justification: This paper does not include experiments. Guidelines: • The answer NA means that the paper does not include experiments. • The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. • The full details can be provided either with the code, in appendix, or as supplemental material. 7. Experiment statistical significance Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? Answer: [N/A] Justification: This paper does not include experiments. Guidelines: • The answer NA means that the paper does not include experiments. • The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). • The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) • The assumptions made should be given (e.g., Normally distributed errors). • It should be clear whether the error bar is the standard deviation or the standard error of the mean. • It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. • For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). • If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. 8. Experiments compute resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [N/A] Justification: This paper does not include experiments. Guidelines: • The answer NA means that the paper does not include experiments. • The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. • The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. • The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper). 9. Code of ethics Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines ? Answer: [Yes] Justification: The research conducted in this paper conform in every respect with the NeurIPS Code of Ethics. Guidelines: • The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. • If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. • The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). 10. Broader impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [N/A] Justification: There is no societal impact of the work performed. Guidelines: • The answer NA means that there is no societal impact of the work performed. • If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. • The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). 11. Safeguards Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? Answer: [N/A] Justification: This paper poses no such risks. Guidelines: • The answer NA means that the paper poses no such risks. • Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. 12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? Answer: [N/A] Justification: This paper does not use existing assets. Guidelines: • The answer NA means that the paper does not use existing assets. • The authors should cite the original paper that produced the code package or dataset. • The authors should state which version of the asset is used and, if possible, include a URL. • The name of the license (e.g., CC-BY 4.0) should be included for each asset. • For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. • If this information is not available online, the authors are encouraged to reach out to the asset’s creators. 13. New assets Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? Answer: [N/A] Justification: This paper does not release new assets. Guidelines: • The answer NA means that the paper does not release new assets. • Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. • The paper should discuss whether and how consent was obtained from people whose asset is used. • At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. 14. Crowdsourcing and research with human subjects Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? Answer: [N/A] Justification: This paper does not involve crowdsourcing nor research with human subjects. Guidelines: • The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. • Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. • According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. 15. Institutional review board (IRB) approvals or equivalent for research with human subjects Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? Answer: [N/A] Justification: This paper does not involve crowdsourcing nor research with human subjects. Guidelines: • The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. • Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. • We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. • For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. 16. Declaration of LLM usage Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. Answer: [N/A] Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. Guidelines: • The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. • Please refer to our LLM policy ( https://neurips.cc/Conferences/2025/LLM ) for what should or should not be described. Appendix A Regret Analysis Lemma 1 . Let \pi^{\Delta,*} be defined as in eq. 12 , then \sum_{k=1}^{K}\left(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k})\right)\leq\frac{\Delta}{\zeta}HK. Proof. Recall the definition \pi_{c}^{*}=\operatorname*{arg\,max}_{\pi}\,b-V_{1,c}^{\pi}(s_{1}), and \zeta=b-V_{1,c}^{\pi_{c}^{*}}(s_{1}) . For each episode k , we define a fixed policy \mathring{\pi}^{\Delta}=(1-\frac{\Delta}{\zeta})\pi^{*}+\frac{\Delta}{\zeta}\pi_{c}^{*} , and its value function satisfies V_{1,c}^{\mathring{\pi}^{\Delta}}(s_{1})=(1-\frac{\Delta}{\zeta})V_{1,c}^{*}(s_{1})+\frac{\Delta}{\zeta}V_{1,c}^{\pi_{c}^{*}}(s_{1})\leq(1-\frac{\Delta}{\zeta})b+\frac{\Delta}{\zeta}(b-\zeta)=b-\Delta. Then, \displaystyle\sum_{k=1}^{K}V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi^{\Delta,*}}(s_{1}^{k}) \displaystyle\leq\; \displaystyle\sum_{k=1}^{K}V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\mathring{\pi}^{\Delta}}(s_{1}^{k}) \displaystyle=\; \displaystyle\sum_{k=1}^{K}V_{1,r}^{*}(s_{1}^{k})-\left((1-\frac{\Delta}{\zeta})V_{1,r}^{*}(s_{1}^{k})+\frac{\Delta}{\zeta}V_{1,r}^{\pi_{c}^{*}}(s_{1}^{k})\right) \displaystyle=\; \displaystyle\sum_{k=1}^{K}\frac{\Delta}{\zeta}(V_{1,r}^{*}(s_{1}^{k})-V_{1,r}^{\pi_{c}^{*}}(s_{1}^{k})) \displaystyle\leq\; \displaystyle\frac{\Delta}{\zeta}HK, where the first inequality is due to the definition of \pi^{\Delta,*} , i.e., for any policy \pi , s.t. V_{1,c}^{\pi}(s_{1})\leq b^{\prime}=b-\Delta , V_{1,r}^{\pi^{\Delta,*}}(s_{1})\geq V_{1,r}^{\pi}(s_{1}) , and the second inequality follows from V_{1,r}^{*}(s_{1})\leq H . ∎ Lemma 2 . Let \pi^{k} be the mixture policy in algorithm 1 , \pi^{\tau,*} and \pi^{\Delta,*} be defined as in eqs. 10 and 12 , then \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\tau,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})\right)\leq 2\varepsilon_{1}H\sqrt{T}+\frac{UH}{\sqrt{T}}, and \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})\right)\leq 2\varepsilon_{1}H\sqrt{T}+\frac{UH}{\sqrt{T}}. Proof. For any primal-dual iteration t\in[T] , \widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})\leq\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k}). Taking average over T iterations, \frac{1}{T}\sum_{t=1}^{T}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})\right)\leq\frac{1}{T}\sum_{t=1}^{T}\left(\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right). Note that the mixture policy \pi^{k} is the average policies of \widehat{\pi}_{t}^{k} , we have \widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})\leq\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k}). (15) Further, we notice that \widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}\leq V_{1,c}^{\pi^{\Delta,*}}\leq b^{\prime}. (16) Thus, for any episode k , \displaystyle\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k}) \displaystyle= \displaystyle\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{\Delta,*}}(s_{1}^{k})-\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})\right)-\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right) \displaystyle\quad+\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\left(\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right) \displaystyle\leq \displaystyle\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}(\widehat{V}_{1,\underline{c}}^{\pi^{\Delta,*}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})) \displaystyle\leq \displaystyle\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})) \displaystyle\leq \displaystyle 2\varepsilon_{1}H\sqrt{T}+\frac{UH}{\sqrt{T}}, where the first inequality follows from eq. 15 , the second inequality follows from eq. 16 , and the last inequality follows from lemma 14 by letting \lambda=0 The proof for \pi^{\tau,*} is analogous and is thus omitted. ∎ Lemma 3 . \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right)=\widetilde{O}(\sqrt{SAH^{3}K}). Proof. By definition, we write \displaystyle\widehat{V}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k}) \displaystyle=\sum_{a\in\mathcal{A}}\pi^{k}(a|s_{h}^{k})\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a) \displaystyle=\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a_{h}^{k})+\left(\sum_{a\in\mathcal{A}}\pi^{k}(a|s_{h}^{k})\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a)-\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a_{h}^{k})\right) \displaystyle\leq r_{h}(s_{h}^{k},a_{h}^{k})+b_{h}^{k}(s_{h}^{k},a_{h}^{k})+\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}+\phi_{h}^{k} \displaystyle\leq r_{h}(s_{h}^{k},a_{h}^{k})+b_{h}^{k}(s_{h}^{k},a_{h}^{k})+(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}+(P_{s_{h}^{k},a_{h}^{k},h}-\mathds{1}_{\{s_{h+1}^{k}\}})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}} \displaystyle\quad+\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}(s_{h+1}^{k})+\phi_{h}^{k}, where \phi_{h}^{k}=\left(\sum_{a\in\mathcal{A}}\pi^{k}(a|s_{h}^{k})\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a)-\widehat{Q}_{h,\widetilde{r}}^{\pi^{k}}(s_{h}^{k},a_{h}^{k})\right) is a zero-mean random variable conditional on \pi^{k} . Then by summing over H time steps and telescoping, we have \displaystyle\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k}) \displaystyle\leq\sum_{h=1}^{H}r_{h}(s_{h}^{k},a_{h}^{k})+b_{h}^{k}(s_{h}^{k},a_{h}^{k})+(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}} \displaystyle\quad+(P_{s_{h}^{k},a_{h}^{k},h}-\mathds{1}_{\{s_{h+1}^{k}\}})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}+\sum_{h=1}^{H}\phi_{h}^{k}. The term we want to bound is now decomposed as \displaystyle\sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right) \displaystyle\leq\sum_{k=1}^{K}\sum_{h=1}^{H}b_{h}^{k}(s_{h}^{k},a_{h}^{k})+\sum_{k=1}^{K}\sum_{h=1}^{H}(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}+\sum_{k=1}^{K}\sum_{h=1}^{H}\phi_{h}^{k} \displaystyle\quad+\sum_{k=1}^{K}\sum_{h=1}^{H}(P_{s_{h}^{k},a_{h}^{k},h}-\mathds{1}_{\{s_{h+1}^{k}\}})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}+\sum_{k=1}^{K}\left(\sum_{h=1}^{H}r_{h}(s_{h}^{k},a_{h}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right). We apply lemmas 4 , 5 , 7 , 8 and 9 , and conlude that with probability 1-\delta , \sum_{k=1}^{K}\left(\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})-V_{1,r}^{\pi^{k}}(s_{1}^{k})\right)=O\left(\sqrt{SAH^{3}K\log^{5}\frac{SAHK}{\delta}}\right). ∎ Lemma 4 . With probability at least 1-3SAHK\delta^{\prime} , \sum_{k=1}^{K}\sum_{h=1}^{H}b_{h,r}^{k,\pi^{k}}(s_{h}^{k},a_{h}^{k})\leq\widetilde{O}(\sqrt{SAH^{3}K}). Proof. By definition of bonus b_{h,r}^{k,\pi^{k}}(s_{h}^{k},a_{h}^{k}) , we have \sum_{k=1}^{K}\sum_{h=1}^{H},b_{h,r}^{k,\pi^{k}}\left(s_{h}^{k},a_{h}^{k}\right)=\frac{460}{9}\sum_{k,h}\sqrt{\frac{\mathbb{V}\left(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k},\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}\right)\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}\left(s_{h}^{k},a_{h}^{k}\right)}}+\frac{544}{9}\sum_{k,h}\frac{H\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}\left(s_{h}^{k},a_{h}^{k}\right)}. Applying the Cauchy-Schwarz inequality and lemma 17 , we obtain \displaystyle\sum_{k=1}^{K}\sum_{h=1}^{H}b_{h,r}^{k,\pi^{k}}\left(s_{h}^{k},a_{h}^{k}\right)\leq \displaystyle\frac{460}{9}\sqrt{\sum_{k,h}\frac{\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}\left(s_{h}^{k},a_{h}^{k}\right)}}\sqrt{\sum_{k,h}\mathbb{V}\left(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k},\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}\right)} \displaystyle+\frac{544H\log\frac{1}{\delta^{\prime}}}{9}\sum_{k,h}\frac{1}{N_{h}^{k}\left(s_{h}^{k},a_{h}^{k}\right)} \displaystyle\leq \displaystyle\frac{460}{9}\sqrt{2SAH\left(\log_{2}K\right)\left(\log\frac{1}{\delta^{\prime}}\right)\sum_{k,h}\mathbb{V}\left(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k},\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}\right)} \displaystyle+\frac{1088}{9}SAH^{2}\left(\log_{2}K\right)\log\frac{1}{\delta^{\prime}}. Then by lemma 10 , we have the desired result. ∎ Lemma 5 . \sum_{k=1}^{K}\sum_{h=1}^{H}(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}}\leq\widetilde{O}(\sqrt{SAH^{3}K}). Proof. First we notice that \pi^{k} is a mixture policy of \pi^{k}=\frac{1}{T}\sum_{t=1}^{T}\widehat{\pi}_{t}^{k} , then we have \displaystyle\sum_{k=1}^{K}\sum_{h=1}^{H}(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\pi^{k}} \displaystyle=\sum_{k=1}^{K}\sum_{h=1}^{H}(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\frac{1}{T}\sum_{t=1}^{T}\widehat{V}_{h+1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}} \displaystyle=\frac{1}{T}\sum_{t=1}^{T}\sum_{k=1}^{K}\sum_{h=1}^{H}(\widehat{P}_{s_{h}^{k},a_{h}^{k},h}^{k}-P_{s,a,h})\widehat{V}_{h+1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}. Note that given a total profile \mathcal{I}\in\mathcal{C} and a dual variable sequence \lambda\in\Lambda , \widehat{V}_{h+1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}} is determined by \left\{\widehat{P}_{s,a,h^{\prime}}^{\left(I_{s,a,h^{\prime}}^{k}\right)},r_{h^{\prime}}^{\left(I_{s,a,h^{\prime}}^{k}\right)}(s,a),c_{h^{\prime}}^{\left(I_{s,a,h^{\prime}}^{k}\right)}(s,a)\right\}_{h0 , we have \widehat{\lambda}^{k,*}\leq\frac{H}{\tau}. For the strict feasibility setting, let b^{\prime}=b-\Delta , for some \Delta\in(0,\zeta) , we have \widehat{\lambda}^{k,*}\leq\frac{H}{\zeta-\Delta}. Proof. Writing the empirical CMDP in eq. 6 in its Lagrangian form, \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})=\max_{\pi}\min_{\lambda\geq 0}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\lambda\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}\right) Using the linear programming formulation of CMDPs in terms of the state-occupancy measures \mu , we know that both the objective and the constraint are linear functions of \mu , and strong duality holds w.r.t. \mu . Since \mu and \pi have a one-to-one mapping, we can switch the min and the max, implying, \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})=\min_{\lambda\geq 0}\max_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\lambda\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}\right) Since \widehat{\lambda}^{k,*} is the optimal dual variable for the empirical CMDP in eq. 6 and recall \pi_{c}^{*}\in\operatorname*{arg\,max}_{\pi}b-V_{1,r}^{\pi}(s_{1}) , we have \displaystyle\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k}) \displaystyle=\max_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}^{k,*}\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}\right) \displaystyle\geq\widehat{V}_{1,\widetilde{r}}^{\pi_{c}^{*}}(s_{1}^{k})-\widehat{\lambda}^{k,*}\left(\widehat{V}_{1,\underline{c}}^{\pi_{c}^{*}}(s_{1}^{k})-b^{\prime}\right) \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\pi_{c}^{*}}(s_{1}^{k})+\widehat{\lambda}^{k,*}\left((b^{\prime}-b)+(b-V_{1,c}^{\pi_{c}^{*}}(s_{1}^{k}))+(V_{1,c}^{\pi_{c}^{*}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\pi_{c}^{*}}(s_{1}^{k}))\right) Note that \pi_{c}^{*} is a fixed policy and by lemma 16 we have V_{1,c}^{\pi_{c}^{*}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\pi_{c}^{*}}(s_{1}^{k})\geq 0 . Recall that \zeta=b-V_{1,c}^{\pi_{c}^{*}}(s_{1}) , and we have \displaystyle\geq\widehat{V}_{1,\widetilde{r}}^{\pi^{*}_{c}}(s_{1}^{k})+\widehat{\lambda}^{k,*}\left((b^{\prime}-b)+\zeta\right). For the relaxed feasibility setting, we let b^{\prime}=b+\tau for some \tau>0 . Then we have \widehat{\lambda}^{k,*}\leq\frac{\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi_{c}^{*}}(s_{1}^{k})}{\tau+\zeta}\leq\frac{H}{\tau}. Note that the shift \tau>0 is introduced to get rid of \zeta in the results of the relaxed feasibility setting. For the strict feasibility setting, let b^{\prime}=b-\Delta for some \Delta\in(0,\zeta) , we have \widehat{\lambda}^{k,*}\leq\frac{\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi_{c}^{*}}(s_{1}^{k})}{-\Delta+\zeta}\leq\frac{H}{\zeta-\Delta}. ∎ Lemma 12 . Let U>\widehat{\lambda}^{k,*} and for any \widetilde{\pi} s.t. \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})+U\left(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime}\right)_{+}\leq B, we have \left(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime}\right)_{+}\leq\frac{B}{U-\widehat{\lambda}^{k,*}}. Proof. Define \nu(\gamma)=\max_{\pi}\{\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})\mid\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq b^{\prime}-\gamma\} and note that by definition, \nu(0)=\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k}) , and that \nu is a decreasing function for its argument. Then, for any policy \pi s.t. \widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq b^{\prime}-\gamma , we have \displaystyle\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}^{k,*}(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}) \displaystyle\leq\max_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}^{k,*}(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}) \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{\lambda}^{k,*}(\widehat{V}_{1,\underline{c}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-b^{\prime}) \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})=\nu(0)\quad(\text{by strong duality}) This further implies \displaystyle\nu(0)-\widehat{\lambda}^{k,*}\gamma \displaystyle\geq\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}^{k,*}(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime})-\widehat{\lambda}^{k,*}\gamma \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}^{k,*}(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-(b^{\prime}-\gamma)) Since this holds for any policy \pi s.t. \widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq b^{\prime}-\gamma , we have \nu(0)-\widehat{\lambda}^{k,*}\gamma\geq\max_{\pi}\{\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})\mid\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq b^{\prime}-\gamma\}=\nu(\gamma), and thus \widehat{\lambda}^{k,*}\gamma\leq\nu(0)-\nu(\gamma). Now we choose \widetilde{\gamma}=-(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime})_{+} , \displaystyle U-\widehat{\lambda}^{k,*}\lvert\widetilde{\gamma}\rvert \displaystyle=\widehat{\lambda}^{k,*}\widetilde{\gamma}+U\lvert\widetilde{\gamma}\rvert \displaystyle\leq\nu(0)-\nu(\widetilde{\gamma})+U\lvert\widetilde{\gamma}\rvert \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})+U\lvert\widetilde{\gamma}\rvert+\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})-\nu(\widetilde{\gamma}) \displaystyle=\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})+U(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime})_{+}+\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})-\nu(\widetilde{\gamma}) \displaystyle\leq B+\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k})-\nu(\widetilde{\gamma}). Now let us bound \nu(\widetilde{\gamma}) : \displaystyle\nu(\widetilde{\gamma}) \displaystyle=\max_{\pi}\{\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})\mid\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq b^{\prime}+(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime})_{+}\} \displaystyle\geq\max_{\pi}\{\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})\mid\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})\leq\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})\}\quad(\text{tightening the constraint}) \displaystyle\geq\widehat{V}_{1,\widetilde{r}}^{\widetilde{\pi}}(s_{1}^{k}). Finally, U-\widehat{\lambda}^{k,*}\lvert\widetilde{\gamma}\rvert\leq B\implies(\widehat{V}_{1,\underline{c}}^{\widetilde{\pi}}(s_{1}^{k})-b^{\prime})_{+}\leq\frac{B}{U-\widehat{\lambda}^{k,*}}. ∎ Lemma 13 . \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})+\lambda\left(\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})-b^{\prime}\right)\leq\frac{1}{T}\sum_{t=1}^{T}(\widehat{\lambda}_{t}^{k}-\lambda)\left(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right). Proof. For any episode k and any time step t in the primal-dual iterations, the primal update ensures that for any policy \pi , \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}(\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})-b^{\prime})\geq\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1}^{k})-\widehat{\lambda}_{t}^{k}(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1}^{k})-b^{\prime}). Let \pi be \widehat{\pi}^{k,*} , and rearrange: \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\leq\widehat{\lambda}_{t}^{k}(\widehat{V}_{1,\underline{c}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})). Note that \widehat{\pi}^{k,*} is the solution to the empirical CMDP in eq. 6 , thus \widehat{V}_{1,\underline{c}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})\leq b^{\prime} , and we have \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\leq\widehat{\lambda}_{t}^{k}(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})). Take average over T iterations, \frac{1}{T}\sum_{t=1}^{T}\left(\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right)\leq\frac{1}{T}\sum_{t=1}^{T}\widehat{\lambda}_{t}^{k}\left(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right). To use lemma 14 , we rewrite as \frac{1}{T}\sum_{t=1}^{T}\left(\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right)+\frac{1}{T}\sum_{t=1}^{T}\lambda\left(\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})-b^{\prime}\right)\leq\frac{1}{T}\sum_{t=1}^{T}(\widehat{\lambda}_{t}^{k}-\lambda)\left(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right). Note that \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k}) is constant throughout T primal-dual iterations, and \pi^{k} is a mixture policy, then \widehat{V}_{1,\widetilde{r}}^{\widehat{\pi}^{k,*}}(s_{1}^{k})-\widehat{V}_{1,\widetilde{r}}^{\pi^{k}}(s_{1}^{k})+\lambda\left(\widehat{V}_{1,\underline{c}}^{\pi^{k}}(s_{1}^{k})-b^{\prime}\right)\leq\frac{1}{T}\sum_{t=1}^{T}(\widehat{\lambda}_{t}^{k}-\lambda)\left(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right). ∎ Lemma 14 . Recall we set \eta=\frac{U}{H\sqrt{T}} . For any episode k , any \lambda\in[0,U] , and primal and dual updates in eqs. 8 and 9 , we have \frac{1}{T}\sum_{t=1}^{T}\left(\widehat{\lambda}_{t}^{k}-\lambda\right)\left(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}^{k}}(s_{1}^{k})\right)\leq 2\varepsilon_{1}H\sqrt{T}+\frac{UH}{\sqrt{T}}. Proof. In this proof, for the simplicity of notations, we will only focus on primal-dual iterations in an arbitrary episode k\in[K] , and thus we will drop all dependency on k when the context is clear. The dual update is given by \widehat{\lambda}_{t+1}=\mathcal{R}_{\Lambda}[\widehat{\lambda}_{t}-\eta(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))]. Particularly, we denote \widehat{\lambda}^{\prime}_{t+1}=P_{[0,U]}[\widehat{\lambda}_{t}-\eta(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))]. First, we shall look at \lvert\widehat{\lambda}_{t}-\lambda\rvert : \displaystyle\lvert\widehat{\lambda}_{t+1}-\lambda\rvert \displaystyle=\lvert\mathcal{R}_{\Lambda}[\widehat{\lambda}^{\prime}_{t+1}]-\lambda\rvert=\lvert\mathcal{R}_{\Lambda}[\widehat{\lambda}^{\prime}_{t+1}]-\widehat{\lambda}^{\prime}_{t+1}+\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert \displaystyle\leq\lvert\mathcal{R}_{\Lambda}[\widehat{\lambda}^{\prime}_{t+1}]-\widehat{\lambda}^{\prime}_{t+1}\rvert+\lvert\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert \displaystyle\leq\varepsilon_{1}+\lvert\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert. Take square on both sides, \displaystyle\lvert\widehat{\lambda}_{t+1}-\lambda\rvert^{2} \displaystyle\leq\varepsilon_{1}^{2}+2\varepsilon_{1}\lvert\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert+\lvert\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert^{2} \displaystyle\leq\varepsilon_{1}^{2}+2\varepsilon_{1}U+\lvert\widehat{\lambda}^{\prime}_{t+1}-\lambda\rvert^{2} \displaystyle\leq\varepsilon_{1}^{2}+2\varepsilon_{1}U+\lvert\widehat{\lambda}_{t}-\eta(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))-\lambda\rvert^{2} \displaystyle=\varepsilon_{1}^{2}+2\varepsilon_{1}U+\lvert\widehat{\lambda}_{t}-\lambda\rvert^{2}-2\eta(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))(\widehat{\lambda}_{t}-\lambda)+\eta^{2}(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))^{2} \displaystyle\leq\varepsilon_{1}^{2}+2\varepsilon_{1}U+\lvert\widehat{\lambda}_{t}-\lambda\rvert^{2}-2\eta(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))(\widehat{\lambda}_{t}-\lambda)+\eta^{2}H^{2}. Now we have (\widehat{\lambda}_{t}-\lambda)(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1}))\leq\frac{\varepsilon_{1}^{2}+2\varepsilon_{1}U+\eta^{2}H^{2}}{2\eta}+\frac{\lvert\widehat{\lambda}_{t}-\lambda\rvert^{2}-\lvert\widehat{\lambda}_{t+1}-\lambda\rvert^{2}}{2\eta}. By taking average over T iterations and telescoping, we have \displaystyle\frac{1}{T}\sum_{t=1}^{T}(\widehat{\lambda}_{t}-\lambda)(b^{\prime}-\widehat{V}_{1,\underline{c}}^{\widehat{\pi}_{t}}(s_{1})) \displaystyle\leq\frac{\varepsilon_{1}^{2}+2\varepsilon_{1}U+\eta^{2}H^{2}}{2\eta}+\frac{\lvert\lambda_{1}-\lambda\rvert^{2}-\lvert\lambda_{T+1}-\lambda\rvert^{2}}{2\eta T} \displaystyle\leq\frac{\varepsilon_{1}^{2}+2\varepsilon_{1}U+\eta^{2}H^{2}}{2\eta}+\frac{\lvert\lambda_{1}-\lambda\rvert^{2}}{2\eta T} \displaystyle\leq\frac{\varepsilon_{1}^{2}+2\varepsilon_{1}U+\eta^{2}H^{2}}{2\eta}+\frac{U^{2}}{2\eta T} \displaystyle\leq\frac{2\varepsilon_{1}U}{\eta}+\frac{\eta H^{2}}{2}+\frac{U^{2}}{2\eta T} \displaystyle=2\varepsilon_{1}H\sqrt{T}+\frac{UH}{\sqrt{T}}. ∎ Appendix C Useful Lemmas Lemma 15 (Primal update) . We re-state the primal update in eq. 8 : \widehat{\pi}_{t}^{k}=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1})-\widehat{\lambda}_{t}^{k}\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1})-b^{\prime}\right)=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}-\widehat{\lambda}_{t}^{k}\underline{c}}^{\pi}(s_{1}). Proof. Note the estimate value functions \widehat{V}_{1,g}^{\pi} of any reward-like function g:\mathcal{S}\times\mathcal{A}\rightarrow\mathbb{R} is given by: \widehat{V}_{1,g}^{\pi}(s)=\mathbb{E}_{\widehat{P},\pi}\left[\sum_{t=1}^{H}g(S_{t},A_{t})|S_{1}=s\right]. Then we have \displaystyle\widehat{\pi}_{t}^{k} \displaystyle=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}}^{\pi}(s_{1})-\widehat{\lambda}_{t}^{k}\left(\widehat{V}_{1,\underline{c}}^{\pi}(s_{1})-b^{\prime}\right) \displaystyle=\operatorname*{arg\,max}_{\pi}\mathbb{E}_{\widehat{P},\pi}\left[\sum_{t=1}^{H}\widetilde{r}(S_{t},A_{t})|S_{1}=s_{1}\right]-\widehat{\lambda}_{t}^{k}\cdot\mathbb{E}_{\widehat{P},\pi}\left[\sum_{t=1}^{H}\underline{c}(S_{t},A_{t})|S_{1}=s_{1}\right]+\widehat{\lambda}_{t}^{k}\cdot b^{\prime}. \displaystyle=\operatorname*{arg\,max}_{\pi}\mathbb{E}_{\widehat{P},\pi}\left[\sum_{t=1}^{H}(\widetilde{r}-\widehat{\lambda}_{t}^{k}\underline{c})(S_{t},A_{t})|S_{1}=s_{1}\right] \displaystyle=\operatorname*{arg\,max}_{\pi}\widehat{V}_{1,\widetilde{r}-\widehat{\lambda}_{t}^{k}\underline{c}}^{\pi}(s_{1}), where the second-to-last equality follows from the linearity of expectation and reward-like functions, and the last equality follows from the definition of estimate value functions. ∎ Lemma 16 (Optimism) . With probability at least 1-2\delta^{\prime} , for any fixed policy \pi , reward function g and s\in\mathcal{S},h\in[H] , we have \widehat{V}_{h,\widetilde{g}}^{\pi}(s)\geq V_{h,g}^{\pi}(s)\geq\widehat{V}_{h,\underline{g}}^{\pi}(s). Proof. First, we define the following function f(p,v,n)\coloneqq\langle p,v\rangle+\max\left\{\frac{20}{3}\sqrt{\frac{\mathbb{V}(p,v)\log\frac{1}{\delta^{\prime}}}{n}},\frac{400}{9}\frac{H\log\frac{1}{\delta^{\prime}}}{n}\right\} for any vector p\in\Delta^{S} , any non-negative vector v\in\mathbb{R}^{S} obeying \|v\|_{\infty}\leq H , and any positive integer n . We claim that f(p,v,n)\text{ is non-decreasing in each entry of }v. (17) To justify this claim, consider any 1\leq s\leq S , and let us freeze p,n and all but the s -th entries of v . It then suffices to observe that (i) f is a continuous function, and (ii) except for at most two possible choices of v(s) that obey \frac{20}{3}\sqrt{\frac{V(p,v)\log\frac{1}{\delta^{\prime}}}{n}}=\frac{400}{9}\frac{H\log\frac{1}{\delta^{\prime}}}{n} , one can use the properties of p and v to calculate \displaystyle\frac{\partial f(p,v,n)}{\partial v(s)} \displaystyle=p(s)+\frac{20}{3}\mathds{1}\left\{\frac{20}{3}\sqrt{\frac{\mathbb{V}(p,v)\log\frac{1}{\delta^{\prime}}}{n}}\geq\frac{400}{9}\frac{H\log\frac{1}{\delta^{\prime}}}{n}\right\}\frac{p(s)(v(s)-\langle p,v\rangle)\sqrt{\log\frac{1}{\delta^{\prime}}}}{\sqrt{n\mathbb{V}(p,v)}} \displaystyle=p(s)+\mathds{1}\left\{\sqrt{n\mathbb{V}(p,v)\log\frac{1}{\delta^{\prime}}}\geq\frac{20}{3}H\log\frac{1}{\delta^{\prime}}\right\}\frac{\frac{20}{3}H\log\frac{1}{\delta^{\prime}}}{\sqrt{n\mathbb{V}(p,v)\log\frac{1}{\delta^{\prime}}}}\cdot\frac{p(s)(v(s)-\langle p,v\rangle)}{H} \displaystyle\geq\min\left\{p(s)+p(s)\frac{(v(s)-\langle p,v\rangle)}{H},p(s)\right\} \displaystyle\geq p(s)\min\left\{\frac{H+v(s)-\langle p,v\rangle}{H},1\right\}\geq 0, thus establishing the claim. We now proceed to the proof of lemma 16 . Consider any (h,k,s,a) , and we divide into two cases. Case 1: N_{h}^{k}(s,a)\leq 2 . In this case, the following trivial bounds arise directly from the value function initiation: \widehat{Q}_{h,\widetilde{g}}^{\pi}(s,a)=H\geq Q_{h,g}^{\pi}(s,a)\geq 0=\widehat{Q}_{h,\underline{g}}^{\pi}(s,a), \widehat{V}_{h,\widetilde{g}}^{\pi}(s)=H\geq V_{h,g}^{\pi}(s)\geq 0=\widehat{V}_{h,\underline{g}}^{\pi}(s). Case 2: N_{h}^{k}(s,a)>2 . Suppose now that \widehat{Q}_{h+1,\widetilde{g}}^{\pi}\geq Q_{h+1,g}^{\pi}\geq\widehat{Q}_{h+1,\underline{g}}^{\pi} , which also implies that \widehat{V}_{h+1,\widetilde{g}}^{\pi}\geq V_{h+1,g}^{\pi}\geq\widehat{V}_{h+1,\underline{g}}^{\pi} . If \widehat{Q}_{h,\widetilde{g}}^{\pi}(s,a)=H , then \widehat{Q}_{h,\widetilde{g}}^{\pi}(s,a)\geq Q_{h,g}^{\pi}(s,a) holds trivially, and hence it suffices to look at the case with \widehat{Q}_{h,\widetilde{g}}^{\pi}(s,a)2\sqrt{\frac{\mathbb{V}\left(\widehat{P}_{s,a,h}^{k},V_{h+1,g}^{\pi}\right)\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}(s,a)}}+\frac{14H\log\frac{1}{\delta^{\prime}}}{3N_{h}^{k}(s,a)}\right\} \displaystyle\leq\mathbb{P}\left\{\left|\left\langle\widehat{P}_{s,a,h}^{k}-P_{s,a,h},V_{h+1,g}^{\pi}\right\rangle\right|>\sqrt{\frac{2\mathbb{V}\left(\widehat{P}_{s,a,h}^{k},V_{h+1,g}^{\pi}\right)\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}(s,a)-1}}+\frac{7H\log\frac{1}{\delta^{\prime}}}{3N_{h}^{k}(s,a)-1}\right\}\leq 2\delta^{\prime}. This implies that with probability at least 1-2\delta^{\prime} , \displaystyle f\left(\widehat{P}_{s,a,h}^{k},V_{h+1,g}^{\pi},N_{h}^{k}(s,a)\right)=\left\langle P_{s,a,h},V_{h+1,g}^{\pi}\right\rangle+\left\langle\widehat{P}_{s,a,h}^{k}-P_{s,a,h},V_{h+1,g}^{\pi}\right\rangle \displaystyle+\max\left\{\frac{20}{3}\sqrt{\frac{\mathbb{V}\left(\widehat{P}_{s,a,h}^{k},V_{h+1,g}^{\pi}\right)\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}(s,a)}},\frac{400}{9}\frac{H\log\frac{1}{\delta^{\prime}}}{N_{h}^{k}(s,a)}\right\} \displaystyle\geq\left\langle P_{s,a,h},V_{h+1,g}^{\pi}\right\rangle. Substitution into eq. 18 gives: with probability at least 1-2\delta^{\prime} , \widehat{Q}_{h,\widetilde{g}}^{\pi}(s,a)\geq g_{h}(s,a)+\left\langle P_{s,a,h},V_{h+1,g}^{\pi}\right\rangle=Q_{h,g}^{\pi}(s,a). The proof for Q_{h,g}^{\pi}\geq\widehat{Q}_{h,\underline{g}}^{\pi} is analogous and we leave out here. ∎ Lemma 17 . Recall the definition of N^{k}_{h}(s^{k}_{h},a^{k}_{h}) in algorithm 1 . It holds that: \sum_{k=1}^{K}\sum_{h=1}^{H}\frac{1}{\max\{N^{k}_{h}(s^{k}_{h},a^{k}_{h}),1\}}\leq 2SAH\log_{2}K. Proof. In view of the doubling batch update rule, it is easily seen that: for any given (s,a,h) , \sum_{k=1}^{K}\frac{1}{\max\{N^{k}_{h}(s^{k}_{h},a^{k}_{h}),1\}}\mathds{1}\left\{(s,a)=(s^{k}_{h},a^{k}_{h})\right\}\leq 2\log_{2}K, since each (s,a,h) is associated with at most \log_{2}K epochs. Summing over (s,a,h) completes the proof. ∎ Lemma 18 (Freedman’s inequality) . Let (M_{n})_{n\geq 0} be a martingale such that M_{0}=0 and |M_{n}-M_{n-1}|\leq c ( \forall n\geq 1 ) hold for some quantity c>0 . Define \text{Var}_{n}:=\sum_{k=1}^{n}\mathbb{E}\left[(M_{k}-M_{k-1})^{2}\middle|\mathcal{F}_{k-1}\right] for every n\geq 0 , where \mathcal{F}_{k} is the \sigma -algebra generated by (M_{1},\dots,M_{k}) . Then for any integer n\geq 1 and any \epsilon,\delta>0 , one has \mathbb{P}\left[|M_{n}|\geq 2\sqrt{2}\sqrt{\text{Var}_{n}\log\frac{1}{\delta}}+2\sqrt{\epsilon\log\frac{1}{\delta}}+2c\log\frac{1}{\delta}\right]\leq 2\left(\log_{2}\left(\frac{nc^{2}}{\epsilon}\right)+1\right)\delta.