Learning General Parameterized Policies for Infinite Horizon Average Reward Constrained MDPs via Primal-Dual Policy Gradient Algorithm

Qinbo Bai
Purdue University
West Lafayette, IN 47906
bai113@purdue.edu
Washim Uddin Mondal
Indian Institute of Technology Kanpur
Kanpur, UP, India 208016
wmondal@iitk.ac.in
Vaneet Aggarwal
Purdue University
West Lafayette, IN 47906
vaneet@purdue.edu


Abstract

This paper explores the realm of infinite horizon average reward Constrained Markov Decision Processes (CMDPs). To the best of our knowledge, this work is the first to delve into the regret and constraint violation analysis of average reward CMDPs with a general policy parametrization. To address this challenge, we propose a primal dual-based policy gradient algorithm that adeptly manages the constraints while ensuring a low regret guarantee toward achieving a global optimal policy. In particular, our proposed algorithm achieves \(\tilde{\mathcal{O}}({T}^{4/5})\) objective regret and \(\tilde{\mathcal{O}}({T}^{4/5})\) constraint violation bounds.

1 Introduction↩︎

The framework of Reinforcement Learning (RL) is concerned with a class of problems where an agent learns to yield the maximum cumulative reward in an unknown environment via repeated interaction. RL finds applications in diverse areas, such as wireless communication, transportation, and epidemic control [1][3]. RL problems are mainly categorized into three setups: episodic, infinite horizon discounted reward, and infinite horizon average reward. Among them, the infinite horizon average reward setup is particularly significant for real-world applications. It aligns with most of the practical scenarios and captures their long-term goals. Some applications in real life require the learning procedure to respect the boundaries of certain constraints. In an epidemic control setup, for example, vaccination policies must take the supply shortage (budget constraint) into account. Such restrictive decision-making routines are described by constrained Markov Decision Processes (CMDP) [4][6]. Existing papers on CMDPs utilize either a tabular or a linear MDP structure. This work provides the first algorithm for an infinite horizon average reward CMDP with general parametrization and proves its sub-linear regret and constraint violation bounds.

There are two primary ways to solve a CMDP problem in the infinite horizon average reward setting. The first one, known as the model-based approach, involves constructing estimates of the transition probabilities of the underlying CMDP, which are subsequently utilized to derive policies [5][7]. The caveat of this approach is the large memory requirement to store the estimated parameters, which effectively curtails its applicability to CMDPs with large state spaces. The alternative strategy, known as the model-free approach, either directly estimates the policy function or maintains an estimate of the \(Q\) function, which is subsequently used for policy generation [8]. Model-free algorithms typically demand lower memory and computational resources than their model-based counterparts. Although the CMDP has been solved in a model-free manner in the tabular [8] and linear [9] setups, its exploration with the general parameterization is still open and is the goal of this paper.

Table 1: This table summarizes the different model-based and mode-free state-of-the-art algorithms available in the literature for average reward CMDPs. We note that our proposed algorithm is the first to analyze the regret and constraint violation for average reward CMDP with general parametrization. Here, the parameter \(d\) refers to the dimension of the feature map for linear MDPs.
Algorithm Regret Violation Model-free Setting
Algorithm 1 in [6] \(\tilde{\mathcal{O}}(\sqrt{T})\) \(\tilde{\mathcal{O}}(\sqrt{T})\) No Tabular
Algorithm 2 in [6] \(\tilde{\mathcal{O}}(T^{2/3})\) \(\tilde{\mathcal{O}}(T^{2/3})\) No Tabular
UC-CURL and PS-CURL [5] \(\tilde{\mathcal{O}}(\sqrt{T})\) \(0\) No Tabular
Algorithm 2 in [9] \(\tilde{\mathcal{O}}((dT)^{3/4})\) \(\tilde{\mathcal{O}}((dT)^{3/4})\) No Linear MDP
Algorithm 3 in [9] \(\tilde{\mathcal{O}}(\sqrt{T})\) \(\tilde{\mathcal{O}}(\sqrt{T})\) No Linear MDP
Triple-QA [8] \(\tilde{\mathcal{O}}(T^{5/6})\) \(0\) Yes Tabular
This paper \(\tilde{\mathcal{O}}(T^{\frac{4}{5}})\) \(\tilde{\mathcal{O}}(T^{\frac{4}{5}})\) Yes General Parameterization

General parameterization indexes the policies by finite-dimensional parameters (e.g., weights of neural networks) to accommodate large state spaces. The learning is manifested by updating these parameters using policy gradient (PG)-type algorithms. Note that PG algorithms are primarily studied in discounted reward setups. For example, [10] characterizes the sample complexities of the PG and the Natural PG (NPG) algorithms with softmax and direct parameterization. Similar results for general parameterization are obtained by [11], [12]. The regret analysis of a PG algorithm with the general parameterization has been recently performed for an infinite horizon average reward MDP without constraints [13]. Similar regret and constraint violation analysis for the average reward CMDP is still missing in the literature. In this paper, we bridge this gap.

Challenges and Contribution: We propose a PG-based algorithm with general parameterized policies for the average reward CMDP and establish its sublinear regret and constraint violation bounds. In particular, assuming the underlying CMDP to be ergodic, we demonstrate that our PG algorithm achieves an average optimality rate of \(\tilde{\mathcal{O}}(T^{-\frac{1}{5}})\) and average constraint violation rate of \(\tilde{\mathcal{O}}(T^{-\frac{1}{5}})\). Invoking this convergence result, we establish that our algorithm achieves regret and constraint violation bounds of \(\tilde{\mathcal{O}}(T^{\frac{4}{5}})\). Apart from providing the first sublinear regret guarantee for the average reward CMDP with general parameterization, our work also improves the state-of-the-art regret guarantee, \(\tilde{\mathcal{O}}(T^{5/6})\) in the model-free tabular setup [8].

Despite the availability of sample complexity analysis of PG algorithms with constraints in the discounted reward setup [4], [14] and PG algorithms without constraint in average reward setup [13], obtaining sublinear regret and constraint violation bounds for their average reward counterpart is challenging.

  • [4], [14] solely needs an estimate of the value function \(V\) while we additionally need the estimate of the gain function, \(J\).

  • [4], [14] assume access to a simulator to generate unbiased value estimates. In contrast, our algorithm uses a sample trajectory of length \(H\) to estimate the values and gains and does not assume the availability of a simulator.

  • The first-order convergence analysis (Lemma 6) differs from that in [13]. Note that both of these papers use an ascent-like inequality. In [13], this bounds the term \(J(\theta_{k+1})-J(\theta_k)\). The final result is obtained by calculating a sum over \(k\) which cancels the intermediate terms and leaves us with \(J(\theta_K)-J(\theta_1)\). We would like to emphasize that the cancellation of the intermediate terms is crucial to establishing the result. However, a similar effort in our case only leads to a bound of \(J_{\mathrm{L}}(\theta_{k+1}, \lambda_k)-J_{\mathrm{L}}(\theta_k, \lambda_k)\). Note that directly performing a sum over this difference does not lead to the cancellation of intermediate terms. We had to take a different route and apply the bounds of the Lagrange multipliers and the estimate of the constraint function to achieve that goal.

  • After solving the problems mentioned above, we prove \(\tilde{\mathcal{O}}(T^{-\frac{1}{5}})\) convergence rate of the Lagrange function. Unfortunately, the strong duality property, which is central to proving convergence results of CMDPs for tabular and softmax policies, does not hold under the general parameterization. As a result, the convergence result for the dual problem does not automatically translate to that for the primal problem, which is a main difference from [13]. We overcome this barrier by introducing a novel constraint violation analysis and a series of intermediate results (Lemma 16-18) that help disentangle the regret and constraint violation rates from the Lagrange convergence. It is important to mention that although the techniques applied are inspired by the [14], those techniques cannot be directly adopted for average reward MDPs. This is primarily because the estimate \(\hat{J}_c(\theta_k)\) is biased in the average case. To the best of our knowledge, constraint violation analysis with a biased estimate of the cost value is not available in the literature and is performed for the first time in our paper.

  • Due to the presence of the Lagrange multiplier, the convergence analysis of a CMDP is much more convoluted than its unconstrained counterpart. The learning rate of the Lagrange update, \(\beta\), turns out to be pivotal in determining the growth rate of regret and constraint violation. Low values of \(\beta\) push the regret down while simultaneously increasing the constraint violation. Finding the optimal value of \(\beta\) that judiciously balances these two competing goals is one of the cornerstones of our analysis.

Related work for unconstrained average reward RL: In the absence of constraints, both model-based and model-free tabular setups have been widely studied for infinite horizon average reward MDPs. For example, the model-based algorithms proposed by [15], [16] achieve the optimal regret bound of \(\tilde{\mathcal{O}}(\sqrt{T})\). Similarly, the model-free algorithm proposed by [17] for tabular MDP results in \(\tilde{\mathcal{O}}(\sqrt{T})\) regret. Regret analysis for average reward MDP with general parametrization has been recently studied in [13], where a regret bound of \(\tilde{\mathcal{O}}({T}^{3/4})\) is derived.

Related work for constrained RL: The constrained reinforcement learning problem has been extensively studied both for infinite horizon discounted reward and episodic MDPs. For example, discounted reward CMDPs have been recently studied in the tabular setup [18], with both softmax [14], [19], and general policy parameterization [4], [12], [14], [19]. Moreover, [20][22] investigated episodic CMDPs in the tabular setting.

Recently, the infinite horizon average reward CMDPs have been investigated in model-based setups [5][7], tabular model-free setting [8] and linear CMDP setting [9]. For model-based CMDP setup, [6] proposed a model-based online mirror descent algorithm in the ergodic setting which achieves \(\mathcal{\tilde{O}}(\sqrt{T})\) for regret and violation at the same time. [7] proposed algorithms based on the posterior sampling and the optimism principle that achieve \(\mathcal{\tilde{O}}(\sqrt{T})\) regret with zero constraint violations in the ergodic setting. However, the above model-based algorithms cannot be extended to large state space. In the tabular model-free setup, the algorithm proposed by [8] achieves a regret of \(\tilde{\mathcal{O}}({T}^{5/6})\) with zero constraint violations. Finally, in the linear CMDP setting, [9] achieves \(\tilde{\mathcal{O}}(\sqrt{T})\) regret bound with zero constraint violation. Note that the linear CMDP setting assumes that the transition probability has a certain linear structure with a known feature map which is not realistic. Table 1 summarizes all relevant works. Unfortunately, none of these papers study the infinite horizon average reward CMDPs with general parametrization which is the main focus of our article.

Additionally, for the weakly communicating setting, [6] proposed a model-based algorithm achieving \(\mathcal{\tilde{O}}(T^{2/3})\) for both regret and violation in tabular case. [9] further extends such result to linear MDP setting with \(\mathcal{\tilde{O}}(T^{3/4})\) regret and violation. In general, it is difficult to propose a model-free algorithm with provable guarantees for Constrained MDPs (CMDPs) without considering the ergodic model. [6] pointed out several extra challenges in Weakly communicating MDP compared to the ergodic case. For example, there is no uniform bound for the span of the value function for all stationary policies. It is also unclear how to estimate a policy’s bias function accurately without the estimated model, which is an important step for estimating the policy gradient.

2 Formulation↩︎

This paper analyzes an infinite-horizon average reward constrained Markov Decision Process (CMDP) denoted as \(\mathcal{M}=(\mathcal{S},\mathcal{A}, r, c, P,\rho)\) where \(\mathcal{S}\) denotes the state space, \(\mathcal{A}\) is the action space of size \(A\), \(r:\mathcal{S}\times\mathcal{A}\rightarrow [0,1]\) is the reward function, \(c:\mathcal{S}\times\mathcal{A}\rightarrow [-1,1]\) is the constraint cost function, \(P:\mathcal{S}\times\mathcal{A}\rightarrow \Delta^{|\mathcal{S}|}\) is the state transition function where \(\Delta^{|\mathcal{S}|}\) denotes a probability simplex with dimension \(|\mathcal{S}|\), and \(\rho\in\Delta^{|\mathcal{S}|}\) is the initial distribution of states. A policy \(\pi\in\Pi:\mathcal{S}\rightarrow \Delta^{A}\) maps the current state to an action distribution. The average reward and cost of a policy, \(\pi\), is, \[\label{Eq95reward} J_{g,\rho}^{\pi}\triangleq \lim\limits_{T\rightarrow \infty}\frac{1}{T}\mathbf{E}\bigg[\sum_{t=0}^{T-1}g(s_t,a_t)\bigg|s_0\sim \rho, \pi\bigg]\tag{1}\] where \(g=r, c\) for average reward and cost respectively. The expectation is calculated over the distribution of all sampled trajectories \(\{(s_t, a_t)\}_{t=0}^{\infty}\) where \(a_t\sim \pi(s_t)\), \(s_{t+1}\sim P(\cdot|s_t, a_t)\), \(\forall t\in\{0, 1, \cdots\}\). For notational convenience, we shall drop the dependence on \(\rho\) whenever there is no confusion. Our goal is to maximize the average reward function while ensuring that the average cost is above a given threshold. Without loss of generality, we can mathematically write this problem as, \[\begin{align} \label{eq:def95unparametrized95optimization} \begin{aligned} \max_{\pi\in\Pi} ~& J_r^{\pi} ~~ \text{s.t.} ~ J_c^{\pi}\geq 0 \end{aligned} \end{align}\tag{2}\] However, the above problem becomes difficult to handle when the underlying state space, \(\mathcal{S}\) is large. Therefore, we consider a class of parametrized policies, \(\{\pi_\theta|\theta\in \Theta\}\) whose elements are indexed by a \(\mathrm{d}\)-dimensional parameter, \(\theta\in\mathbb{R}^{\mathrm{d}}\) where \(\mathrm{d}\ll|\mathcal{S}||\mathcal{A}|\). Thus, the original problem in Eq 2 can be reformulated as the following parameterized problem. \[\begin{align} \label{eq:def95constrained95optimization} \begin{aligned} \max_{\theta\in\Theta} ~& J_r^{\pi_{\theta}} ~~\text{s.t.} ~J_c^{\pi_{\theta}}\geq 0 \end{aligned} \end{align}\tag{3}\] We denote \(J_g^{\pi_\theta} = J_g(\theta)\), \(g\in\{r, c\}\) for notational convenience. Let, \(P^{\pi_{\theta}}:\mathcal{S}\rightarrow \Delta^{|\mathcal{S}|}\) be a transition function induced by \(\pi_\theta\) and defined as, \(P^{\pi_{\theta}}(s, s') = \sum_{a\in\mathcal{A}}P(s'|s,a)\pi_{\theta}(a|s)\), \(\forall s, s'\). If \(\mathcal{M}\) is such that for every policy \(\pi\), the function, \(P^{\pi}\) is irreducible and aperiodic, then \(\mathcal{M}\) is called ergodic.

Assumption 1. The CMDP \(\mathcal{M}\) is ergodic.

Ergodicity is a common assumption in the literature [23], [24]. If \(\mathcal{M}\) is ergodic, then \(\forall \theta\), there exists a unique stationary distribution, \(d^{\pi_{\theta}}\in \Delta^{|\mathcal{S}|}\) given as follows. \[\begin{align} d^{\pi_{\theta}}(s) = \lim_{T\rightarrow \infty}\dfrac{1}{T}\sum_{t=0}^{T-1} \mathrm{Pr}(s_t=s|s_0\sim \rho, \pi_{\theta}) \end{align}\] Ergodicity implies that \(d^{\pi_{\theta}}\) is independent of the initial distribution, \(\rho\), and obeys \(P^{\pi_{\theta}}d^{\pi_{\theta}}=d^{\pi_{\theta}}\). Hence, the average reward and cost functions can be expressed as, \[\begin{align} \label{eq95r95pi95theta} J_g(\theta) = \mathbf{E}_{s\sim d^{\pi_{\theta}}, a\sim \pi_{\theta}(s)}[g(s, a)] = (d^{\pi_{\theta}})^T g^{\pi_{\theta}} \end{align}\tag{4}\] where \(g^{\pi_{\theta}}(s) \triangleq \sum_{a\in\mathcal{A}}g(s, a)\pi_{\theta}(a|s), ~g\in\{r, c\}\). Note that the functions \(J_g(\theta)\), \(g\in\{r, c\}\) are also independent of the initial distribution, \(\rho\). Furthermore, \(\forall \theta\), there exist a function \(Q_g^{\pi_{\theta}}: \mathcal{S}\times \mathcal{A}\rightarrow \mathbb{R}\) such that the following Bellman equation is satisfied \(\forall (s, a)\in\mathcal{S}\times\mathcal{A}\). \[\label{eq95bellman} Q_g^{\pi_{\theta}}(s,a)=g(s,a)-J_g(\theta)+\mathbf{E}_{s'\sim P(\cdot|s, a)}\left[V_g^{\pi_{\theta}}(s')\right]\tag{5}\] where \(g\in\{r, c\}\) and \(V_g^{\pi_{\theta}}:\mathcal{S}\rightarrow \mathbb{R}\) is given as \(V_g^{\pi_{\theta}}(s) = \sum_{a\in\mathcal{A}}\pi_{\theta} (a|s)Q_g^{\pi_{\theta}}(s, a), ~\forall s\in\mathcal{S}\). Note that if \(Q_g^{\pi_{\theta}}\) satisfies \((\ref{eq95bellman})\), then it is also satisfied by \(Q_g^{\pi_{\theta}}+c\) for any arbitrary, \(c\). To uniquely define the value functions, we assume that \(\sum_{s\in\mathcal{S}}d^{\pi_{\theta}}(s)V_g^{\pi_{\theta}}(s)=0\). In this case, \(V_g^{\pi_{\theta}}(s)\) is given by, \[\label{def95v95pi95theta95s} \begin{align} V_g^{\pi_{\theta}}(s) &= \sum_{t=0}^{\infty} \sum_{s'\in\mathcal{S}}\left[(P^{\pi_{\theta}})^t(s, s') - d^{\pi_{\theta}}(s')\right]g^{\pi_{\theta}}(s')= \sum_{t=0}^{\infty}\mathbf{E}\left[\left\{g(s_t,a_t)-J_g(\theta)\right\}\big\vert s_0=s\right] \end{align}\tag{6}\] where the expectation is computed over all \(\pi_{\theta}\)-induced trajectories. In a similar way, \(\forall (s, a)\), one can uniquely define \(Q_g^{\pi_{\theta}}(s, a)\), \(g\in\{r, c\}\) as follows. \[\label{def95q95pi95theta95s} Q_g^{\pi_{\theta}}(s,a)=\sum_{t=0}^{\infty}\mathbf{E}\left[\big\{g(s_t,a_t)-J_g(\theta)\big\}\big\vert s_0=s,a_0=a\right]\tag{7}\] Moreover, the advantage function \(A_g^{\pi_{\theta}}:\mathcal{S}\times \mathcal{A}\rightarrow \mathbb{R}\) is defined such that \(A_g^{\pi_{\theta}}(s, a) \triangleq Q_g^{\pi_{\theta}}(s, a) - V_g^{\pi_{\theta}}(s)\), \(\forall (s, a)\), \(\forall g\in\{r, c\}\). Assumption 1 also implies the existence of a finite mixing time. Specifically, for an ergodic MDP, \(\mathcal{M}\), the mixing time is defined as follows.

Definition 1. The mixing time, \(t_{\mathrm{mix}}^\theta\), of the CMDP \(\mathcal{M}\) for a parameterized policy, \(\pi_\theta\), is defined as, \(t_{\mathrm{mix}}^{\theta}\triangleq \min\left\lbrace t\geq 1\big| \norm{(P^{\pi_{\theta}})^t(s, \cdot) - d^{\pi_\theta}}\leq \frac{1}{4}, \forall s\right\rbrace\). The overall mixing time is \(t_{\mathrm{mix}}\triangleq \sup_{\theta\in\Theta} t^{\theta}_{\mathrm{mix}}\). In this paper, \(t_{\mathrm{mix}}\) is finite due to ergodicity.

Mixing time characterizes how fast a CMDP converges to its stationary state distribution, \(d^{\pi_\theta}\), under a given policy, \(\pi_\theta\). We also define the hitting time as follows.

Definition 2. The hitting time of an ergodic CMDP \(\mathcal{M}\) with respect to a policy, \(\pi_\theta\), is defined as \(t_{\mathrm{hit}}^{\theta}\triangleq \max_{s\in\mathcal{S}} [d^{\pi_{\theta}}(s)]^{-1}\). The overall hitting time is defined as \(t_{\mathrm{hit}}\triangleq \sup_{\theta\in\Theta} t^{\theta}_{\mathrm{hit}}\). In this paper, \(t_{\mathrm{hit}}\) is finite due to ergodicity as well.

Define \(\pi^*\) as the optimal solution to the unparameterized problem \(\eqref{eq:def95unparametrized95optimization}\). For a given CMDP \(\mathcal{M}\), and a time horizon \(T\), the regret and constraint violation of any algorithm \(\mathbb{A}\) is defined as follows. \[\begin{align} \mathrm{Reg}_T(\mathbb{A}, \mathcal{M}) \triangleq \sum_{t=0}^{T-1} \left(J_r^{\pi^*}-r(s_t, a_t)\right), \; \mathrm{Vio}_T(\mathbb{A}, \mathcal{M}) \triangleq -\sum_{t=0}^{T-1} c(s_t, a_t) \end{align}\] where the algorithm, \(\mathbb{A}\), executes the actions, \(\{a_t\}\), \(t\in\{0, 1, \cdots \}\) based on the trajectory observed up to time, \(t\), and the state, \(s_{t+1}\) is decided according to the state transition function, \(P\). For simplicity, we shall denote the regret and constraint violation as \(\mathrm{Reg}_T\) and \(\mathrm{Vio}_T\) respectively. Our goal is to design an algorithm \(\mathbb{A}\) that achieves low regret and constraint violation bounds.

3 Proposed Algorithm↩︎

We solve \(\eqref{eq:def95constrained95optimization}\) via a primal-dual algorithm based on the following problem. \[\begin{align} \label{eq:def95saddle95point95opt} \max_{\theta\in\Theta}\min_{\lambda\geq 0}~ J_{\mathrm{L}}(\theta, \lambda), \end{align}\tag{8}\] where \(J_{\mathrm{L}}(\theta, \lambda) \triangleq J_r(\theta) +\lambda J_c(\theta)\). The function, \(J_{\mathrm{L}}(\cdot, \cdot)\), is called the Lagrange function and \(\lambda\) the Lagrange multiplier. Our algorithm updates the pair \((\theta, \lambda)\) following the policy gradient iteration as shown below \(\forall k\in\{1, \cdots, K\}\) with an initial point \((\theta_1, \lambda_1)\), \(\lambda_1=0\). \[\begin{align} \label{eq:update} \begin{aligned} \theta_{k+1} &= \theta_k+\alpha\nabla_\theta J_{\mathrm{L}}(\theta_k, \lambda_k),~ \lambda_{k+1} = \mathcal{P}_{[0,\frac{2}{\delta}]}[\lambda_k -\beta J_c(\theta_k)] \end{aligned} \end{align}\tag{9}\] where \(\alpha\) and \(\beta\) are learning parameters and \(\delta\) is the Slater parameter introduced in the following assumption. Finally, for any set, \(\Lambda\), \(\mathcal{P}_{\Lambda}[\cdot]\) denotes projection onto \(\Lambda\). The assumption stated below ensures that we have at least one feasible interior point solution to 2 .

Assumption 2 (Slater condition). There exists a \(\delta\in (0, 1)\) and \(\bar{\theta} \in \Theta\) such that \(J_{c}(\bar{\theta}) \geq \delta\).

Note that in 9 , the dual update is projected onto the set \([0,\frac{2}{\delta}]\) because the optimal dual variable for the parameterized problem is bounded in Lemma 16. The gradient of \(J_{\mathrm{L}}(\cdot, \lambda)\) can be computed by invoking a variant of the well-known policy gradient theorem [25].

Lemma 1. The gradient of \(J_{\mathrm{L}}(\cdot, \lambda)\) is computed as, \[\begin{align} \nabla_{\theta} J_{\mathrm{L}}(\theta, \lambda) =\mathbf{E}_{s\sim d^{\pi_{\theta}},a\sim\pi_{\theta}(s)}\big[A_{\mathrm{L},\lambda}^{\pi_{\theta}}(s,a)\nabla_{\theta}\log\pi_{\theta}(a|s)\big] \end{align}\]

Figure 1: Primal-Dual Parameterized Policy Gradient

where \(\forall (s, a)\), \(A_{\mathrm{L},\lambda}^{\pi_\theta}(s,a)\triangleq A_r^{\pi_\theta}(s, a)+\lambda A_c^{\pi_\theta}(s, a)\), and \(\{A_g^{\pi_\theta}\}_{g\in\{r, c\}}\) are the advantage functions corresponding to reward and cost. In typical RL scenarios, learners do not have access to the state transition function, \(P\), and thereby to the functions \(d^{\pi_\theta}\) and \(A^{\pi_\theta}_{\mathrm{L}, \lambda}\). This makes computing the exact gradient a difficult task. In Algorithm 1, we demonstrate how one can still obtain good estimates of the gradient using sampled trajectories.

Algorithm 1 runs \(K\) epochs, each of duration \(H=16t_{\mathrm{hit}}t_{\mathrm{mix}}T^{\xi}(\log T)^2\) where \(\xi\in (0, 1)\) defines a constant whose value is specified later. Clearly, \(K=T/H\). Note that the learner is assumed to know the horizon length, \(T\). This can be relaxed utilizing the well-known doubling trick [26]. Additionally, it is assumed that the algorithm is aware of the mixing time and the hitting time. This assumption is common in the literature [13], [17]. The first step in obtaining a gradient estimate is estimating the advantage value for a given pair \((s, a)\). This can be accomplished via Algorithm 2. At the \(k\)th epoch, a \(\pi_{\theta_k}\)-induced trajectory, \(\mathcal{T}_k=\{(s_t, a_t)\}_{t=(k-1)H}^{kH-1}\) is obtained and subsequently passed to Algorithm 2 that searches for subtrajectories within it that start with a given state \(s\), are of length \(N=4t_{\mathrm{mix}}(\log T)\), and are at least \(N\) distance apart from each other. Assume that there are \(M\) such subtrajectories. Let the total reward and cost of the \(i\)th subtrajectory be \(\{r_i, c_i\}\) respectively and \(\tau_i\) be its starting time. The value function estimates for the \(k\)th epoch are \[\begin{align} \label{eq:eq951395new95rev} \hat{Q}_g^{\pi_{\theta_k}}(s, a) = \dfrac{1}{\pi_{\theta_k}(a|s)} \left[\dfrac{1}{M}\sum_{i=1}^M g_i \mathrm{1}(a_{\tau_i}=a)\right], ~\hat{V}_g^{\pi_{\theta_k}}(s) = \dfrac{1}{M}\sum_{i=1}^M g_i , ~~\forall g\in\{r, c\} \end{align}\tag{10}\]

This leads to the following advantage estimator. \[\begin{align} \hat{A}^{\pi_{\theta_k}}_{\mathrm{L}, \lambda_k} (s, a) = \hat{A}^{\pi_{\theta_k}}_{r} (s, a) + \lambda_k \hat{A}^{\pi_{\theta_k}}_{c} (s, a), \end{align}\]

where \(\hat{A}^{\pi_{\theta_k}}_{g}(s, a) = \hat{Q}^{\pi_{\theta_k}}_{g}(s, a) - \hat{V}^{\pi_{\theta_k}}_{g}(s)\), \(g\in\{r,c\}\). Finally, the gradient estimator is, \[\begin{align} \label{eq95grad95estimate} & \omega_k\triangleq\hat{\nabla}_{\theta} J_{\mathrm{L}}(\theta_k,\lambda_k) =\dfrac{1}{H}\sum_{t=t_k}^{t_{k+1}-1}\hat{A}_{\mathrm{L},\lambda_k}^{\pi_{\theta_k}}(s_{t}, a_{t})\nabla_{\theta}\log \pi_{\theta_k}(a_{t}|s_{t}) \end{align}\tag{11}\] where \(t_k=(k-1)H\) is the starting time of the \(k\)th epoch. The parameters are updated following [udpates95algorotihm]. To update the Lagrange multiplier, we need an estimation of \(J_c(\theta_k)\), which is obtained as the average cost of the \(k\)th epoch. It should be noted that we remove the first \(N\) samples from the \(k\)th epoch because we require the state distribution emanating from the remaining samples to be close enough to the stationary distribution \(d^{\pi_{\theta_k}}\), which is the key to make \(\hat{J}_c(\theta_k)\) close to \(J_c(\theta_k)\). The following lemma demonstrates that \(\hat{A}_{\mathrm{L},\lambda_k}^{\pi_{\theta_k}}(s, a)\) is a good estimator of \(A_{\mathrm{L},\lambda_k}^{\pi_{\theta_k}}(s, a)\).

Figure 2: Advantage Estimation

Lemma 2. The following inequality holds \(\forall k\), \(\forall (s, a)\) and sufficiently large \(T\). \[\label{eq95good95estimator} \mathbf{E}\bigg[\bigg(\hat{A}_{\mathrm{L}, \lambda_k}^{\pi_{\theta_k}}(s, a)-A^{\pi_{\theta_k}}_{\mathrm{L}, \lambda_k}(s, a)\bigg)^2\bigg] \leq \mathcal{O}\left(\dfrac{ t_{\mathrm{hit}}N^3\log T}{\delta^2 H\pi_{\theta_k}(a|s)}\right) =\mathcal{O}\left(\dfrac{t_{\mathrm{mix}}^2(\log T)^2}{\delta^2T^{\xi}\pi_{\theta_k}(a|s)}\right)\tag{12}\]

Lemma 2 shows that the \(L_2\) error of our proposed advantage estimator can be bounded above as \(\tilde{\mathcal{O}}(T^{-\xi})\). We later utilize the above result to prove the goodness of the gradient estimator. It is to be clarified that our Algorithm 2 is inspired by Algorithm 2 of [17]. However, while the authors of [17] choose \(H=\tilde{\mathcal{O}}(1)\), we adapt \(H=\tilde{\mathcal{O}}(T^{\xi})\). This subtle change is important in proving a sublinear regret for general parametrization.

4 Global Convergence Analysis↩︎

This section first shows that the sequence \(\{\theta_k, \lambda_k\}_{k=1}^K\) produced by Algorithm 1 is such that their associated Lagrange sequence \(\{J_{\mathrm{L}}(\theta_k, \lambda_k)\}_{k=1}^{\infty}\) converges globally. By expanding the Lagrange function, we then exhibit convergence of each of its components \(\{J_g(\theta_k, \lambda_k)\}_{k=1}^K\), \(g\in\{r,c\}\). This is later used for regret and constraint violation analysis. Before delving into the details, we would like to state a few necessary assumptions.

Assumption 3. The score function (stated below) is \(G\)-Lipschitz and \(B\)-smooth. Specifically, \(\forall \theta, \theta_1,\theta_2 \in\Theta\), and \(\forall (s,a)\), the following inequalities hold. \[\begin{align} \Vert \nabla_\theta\log\pi_\theta(a\vert s)\Vert\leq G,\; \Vert \nabla_\theta\log\pi_{\theta_1}(a\vert s)-\nabla_\theta\log\pi_{\theta_2}(a\vert s)\Vert\leq B\Vert \theta_1-\theta_2\Vert\quad \end{align}\]

Remark 1. The Lipschitz and smoothness properties of the score function are commonly assumed for policy gradient analyses [27][29]. These assumptions hold for simple parameterization classes such as Gaussian policies.

Note that by combining Assumption 3 with Lemma 2 and using the gradient estimator as given in \((\ref{eq95grad95estimate})\), one can deduce the following result.

Lemma 3. The following inequality holds \(\forall k\) provided that assumptions 1 and 3 are true. \[\begin{align} \mathbf{E}\left[\norm{\omega_k-\nabla_{\theta}J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\right]\leq \tilde{\mathcal{O}}\left(\delta^{-2}AG^2t_{\mathrm{mix}}^2T^{-\xi}\right) \end{align}\]

Lemma 3 claims that the gradient estimation error can be bounded as \(\tilde{\mathcal{O}}(T^{-\xi})\). We will use this result later to prove the global convergence of our algorithm.

Assumption 4. Let the transferred compatible function approximation error be defined as follows. \[\begin{align} \label{eq:transfer95error} \begin{aligned} L_{d^{\pi^*},\pi^*}(\omega^*_{\theta, \lambda},\theta, \lambda) = \mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(s)}\bigg[\bigg(\nabla_\theta\log\pi_{\theta}(a\vert s)\cdot \omega^*_{\theta, \lambda}-A_{\mathrm{L}, \lambda}^{\pi_\theta}(s,a)\bigg)^2\bigg] \end{aligned} \end{align}\tag{13}\] where \(\pi^*\) is the optimal solution of unparameterized problem in \(\eqref{eq:def95unparametrized95optimization}\) and \[\begin{align} \label{eq:NPG95direction} \begin{aligned} \omega^*_{\theta, \lambda}=\arg \min_{\omega\in\mathbb{R}^{\mathrm{d}}}~\mathbf{E}_{s\sim d^{\pi_{\theta}}}\mathbf{E}_{a\sim\pi_{\theta}( s)}\bigg[\bigg(\nabla_\theta\log\pi_{\theta}(a\vert s)\cdot\omega-A_{\mathrm{L}, \lambda}^{\pi_{\theta}}(s,a)\bigg)^2\bigg] \end{aligned} \end{align}\tag{14}\] We assume that \(L_{d^{\pi^*},\pi^*}(\omega^*_{\theta, \lambda},\theta, \lambda)\leq \epsilon_{\mathrm{bias}}\), \(\lambda\in [0, \frac{2}{\delta}]\) and \(\theta\in\Theta\) where \(\epsilon_{\mathrm{bias}}\) is a positive constant.

Remark 2. The transferred compatible function approximation error quantifies the expressivity of the parameterized policy class. We can show that \(\epsilon_{\mathrm{bias}}=0\) for softmax parameterization [10] and linear MDPs [30]. If the policy class is restricted, i.e., it does not contain all stochastic policies, \(\epsilon_{\mathrm{bias}}\) turns out to be strictly positive. However, if the policy class is parameterized by a rich neural network, then \(\epsilon_{\mathrm{bias}}\) can be assumed to be negligibly small [31]. Such assumptions are common [10], [29].

Remark 3. Note that \(\omega^*_{\theta, \lambda}\) defined in 14 can be written as, \[\begin{align} \omega^*_{\theta, \lambda} = F_{\rho}(\theta)^{\dagger} \mathbf{E}_{s\sim d_\rho^{\pi_{\theta}}}\mathbf{E}_{a\sim\pi_{\theta}( s)}\left[\nabla_{\theta}\log\pi_{\theta}(a|s)A_{\mathrm{L},\lambda}^{\pi_{\theta}}(s, a)\right] \end{align}\] where \(\dagger\) is the Moore-Penrose pseudoinverse and \(F_{\rho}(\theta)\) is the Fisher information matrix defined as, \[\begin{align} F_{\rho}(\theta) = \mathbf{E}_{s\sim d_\rho^{\pi_{\theta}}}\mathbf{E}_{a\sim\pi_{\theta}(\cdot\vert s)}[\nabla_{\theta}\log\pi_{\theta}(a|s)(\nabla_{\theta}\log\pi_{\theta}(a|s))^T] \end{align}\]

Assumption 5. There exists a constant \(\mu_F>0\) such that \(F_{\rho}(\theta)-\mu_F I_{\mathrm{d}}\) is positive semidefinite where \(I_{\mathrm{d}}\) is an identity matrix of dimension, \(\mathrm{d}\).

Assumption 5 is also called Fisher-non-degenerate policy assumption and is quite common in the literature [29], [32], [33] in the policy gradient analysis. [29][Assumption 2.1] provided a detailed discussion on the requirement of policy class to satisfy the assumption 5. Moreover, [34] describes a class of policies that obeys assumptions \(\ref{ass95score}-\ref{ass954}\) simultaneously. The Lagrange difference lemma stated below is important in establishing global convergence.

Lemma 4. With a slight abuse of notation, let \(J_{\mathrm{L}}(\pi,\lambda)=J_r^{\pi}+\lambda J_c^{\pi}\). For any two policies \(\pi\), \(\pi'\), the following result holds \(\forall \lambda>0\). \[J_{\mathrm{L}}(\pi,\lambda)-J_{\mathrm{L}}(\pi',\lambda)=\mathbf{E}_{s\sim d^{\pi}}\mathbf{E}_{a\sim\pi( s)}\big[A_{\mathrm{L},\lambda}^{\pi'}(s,a)\big]\]

We now present a general framework for the convergence analysis of Algorithm 1.

Lemma 5. If the policy parameters, \(\{\theta_k, \lambda_k\}_{k=1}^K\) are updated via \(\eqref{udpates95algorotihm}\) and assumptions 3, 4,and 5 hold, then we have the following inequality for any \(K\), \[\label{eq:general95bound} \begin{align} \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg(J_{\mathrm{L}}(\pi^*, \lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)\bigg)&\leq \sqrt{\epsilon_{\mathrm{bias}}}+\frac{G}{K}\sum_{k}^{K}\mathbf{E}\Vert(\omega_k-\omega^*_k)\Vert+\frac{B\alpha}{2K}\sum_{k=1}^{K}\mathbf{E}\Vert\omega_k\Vert^2\nonumber \\ &+\frac{1}{\alpha K}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))] \end{align}\tag{15}\] where \(\omega^*_k:=\omega^*_{\theta_k, \lambda_k}\), \(\omega^*_{\theta_k,\lambda_k}\) is defined in 14 , and \(\pi^*\) is the optimal solution to the problem \(\eqref{eq:def95unparametrized95optimization}\).

Lemma 5 proves that the optimality error of the Lagrange sequence can be bounded by the average first-order and second-order norms of the intermediate gradients. Note the presence of \(\epsilon_{\mathrm{bias}}\) in the result. If the policy class is severely restricted, the optimality bound loses its importance. Consider the expectation of the second term in 15 . Note that, \[\label{eq95second95term95bound} \begin{align} &\bigg(\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\Vert\omega_k-\omega^*_k\Vert\bigg)^2\leq \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert\omega_k-\omega^*_k\Vert^2\bigg]\nonumber=\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert\omega_k-F_\rho(\theta_k)^\dagger\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg]\\ &\leq \frac{2}{K}\sum_{k=1}^{K}\Bigg\lbrace \mathbf{E}\bigg[\Vert\omega_k-\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg]\nonumber+ \mathbf{E}\bigg[\Vert \nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)- F_\rho(\theta_k)^\dagger\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg]\Bigg\rbrace \\ &\overset{(a)}{\leq} \frac{2}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert \omega_k-\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg]\nonumber+\frac{2}{K}\sum_{k=1}^{K}\left(1+\dfrac{1}{\mu_F^2}\right)\mathbf{E}\bigg[\Vert \nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg] \end{align}\tag{16}\]

where \((a)\) follows from Assumption 5. The expectation of the third term in 15 can be bounded as \[\label{eq95third95term95bound} \dfrac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert\omega_k\Vert^2\bigg]\leq \dfrac{1}{K}\sum_{k=1}^{K}\mathbf{E}\left[\norm{\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\right] \nonumber+ \dfrac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert \omega_k-\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\bigg]\tag{17}\] In both \(\eqref{eq95second95term95bound}\) and \(\eqref{eq95third95term95bound}\), \(\mathbf{E}\norm{\omega_k-\nabla_{\theta}J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\) is bounded above by Lemma 3. To bound the term, \(\mathbf{E}\norm{\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\), the following lemma is applied.

Lemma 6. Let \(J_{g}(\cdot)\) be \(L\)-smooth, \(\forall g\in\{r, c\}\) and \(\alpha = \frac{1}{4L(1+\frac{2}{\delta})}\). Then the following holds. \[\label{eq952495new} \dfrac{1}{K}\sum_{k=1}^{K} \norm{\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 \leq \frac{288L}{\delta^2 K} +\dfrac{3}{K}\sum_{k=1}^{K}\Vert\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2+\beta\tag{18}\]

Note the presence of \(\beta\) in 18 . To ensure convergence, \(\beta\) must be a function of \(T\). Invoking Lemma 3, we get the following relation under the same set of assumptions and the choice of parameters as in Lemma 6. \[\begin{align} \label{eq9533} \begin{aligned} \dfrac{1}{K}\sum_{k=1}^{K} \mathbf{E}\norm{\nabla_\theta J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\leq \tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}\right)+\tilde{\mathcal{O}}\left(\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}\right)+\beta \end{aligned} \end{align}\tag{19}\] Applying Lemma 3 and 19 in 17 , we arrive at, \[\begin{align} \label{eq9534} \dfrac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\Vert\omega_k\Vert^2\bigg]&\leq \tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}\right)+\beta \end{align}\tag{20}\] Similarly, using \((\ref{eq95second95term95bound})\), we deduce the following. \[\begin{align} \label{eq9535} \begin{aligned} \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\Vert\omega_k-\omega^*_k\Vert \leq \left(1+\dfrac{1}{\mu_F}\right)\sqrt{\beta}+ \left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right) \end{aligned} \end{align}\tag{21}\] Inequalities 20 and 21 lead to the following global convergence of the Lagrange function.

Lemma 7. Let \(\{\theta_k\}_{k=1}^{K}\) be as described in Lemma 5. If assumptions 1\(-\)5 hold, \(\{J_{g}(\cdot)\}_{g\in\{r,c\}}\) are \(L\)-smooth functions, \(\alpha=\frac{1}{4L(1+\frac{2}{\delta})}\), \(K=\frac{T}{H}\), and \(H=16t_{\mathrm{mix}}t_{\mathrm{hit}}T^{\xi}(\log_2 T)^2\), then \[\begin{align} &\frac{1}{K}\sum_{k=1}^{K} \mathbf{E}\bigg(J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)\bigg)\leq G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}+\beta\right)+\mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}\delta }\bigg) + \sqrt{\epsilon_{\mathrm{bias}}} \end{align}\]

Lemma 7 establishes that the average difference between \(J_{\mathrm{L}}(\pi^*, \lambda_k)\) and \(J_{\mathrm{L}}(\theta_k, \lambda_k)\) is \(\tilde{\mathcal{O}}(\sqrt{\beta}+T^{-\xi/2}+T^{-(1-\xi)/2})\). Expanding the function, \(J_{\mathrm{L}}\), and utilizing the update rule of the Lagrange multiplier, we achieve the global convergence for the objective and the constraint in Theorem 1 (stated below). In its proof, Lemma 18 (stated in the appendix) serves as an important tool in disentangling the convergence rates of regret and constraint violation. Interestingly, Lemma 18 is built upon the strong duality property of the unparameterized optimization 2 and has no apparent direct connection with the parameterized setup.

Theorem 1. Consider the same parameters as in Lemma 7 and set \(\beta=T^{-2/5}\), \(\xi = 2/5\). We have, \[\begin{align} \begin{aligned} \frac{1}{K}&\sum_{k=1}^{K}\mathbf{E}\bigg(J_r^{\pi^*}-J_r(\theta_k)\bigg)\leq \sqrt{\epsilon_{\mathrm{bias}}}+\dfrac{\sqrt{A}G^2t_{\mathrm{mix}}}{\delta}\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(T^{-1/5}\right)\\ \frac{1}{K}&\sum_{k=1}^{K}\mathbf{E}\bigg(-J_c(\theta_k)\bigg)\leq \delta\sqrt{\epsilon_{\mathrm{bias}}} + \tilde{\mathcal{O}}\left(\dfrac{t_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta T^{1/5}}\right) + \sqrt{A}G^2t_{\mathrm{mix}}\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left( T^{-1/5}\right) \end{aligned} \end{align}\] where \(\pi^*\) is a solution to 2 . In the above bounds, we write only the dominating terms of \(T\).

Theorem 1 establishes \(\tilde{\mathcal{O}}(T^{-1/5})\) convergence rates for both the objective and the constraint violation.

5 Regret and Violation Analysis↩︎

In this section, we use the convergence result of the previous section to bound the expected regret and constraint violation of Algorithm 1. Note that the regret and constraint violation decompose as, \[\begin{align} &\mathrm{Reg}_T = \sum_{t=0}^{T-1} \left(J_r^{\pi^*} - r(s_t, a_t)\right)=H\sum_{k=1}^{K}\left(J_r^{\pi^*}-J({\theta_k})\right)+\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \left(J(\theta_k)-r(s_t, a_t)\right)\\ &\mathrm{Vio}_T =\sum_{t=0}^{T-1} \left(-c(s_t, a_t)\right)=H\sum_{k=1}^{K}\left(-J_c({\theta_k})\right)+\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \left(J_c(\theta_k)-c(s_t, a_t)\right)\nonumber \end{align}\]

where \(\mathcal{I}_k\triangleq \{(k-1)H, \cdots, kH-1\}\). Observe that the expectation of the first terms in regret and violation can be bounded by Theorem 1. The expectation of the second term in regret and violation can be expanded as follows, \[\label{eq9538} \begin{align} &\mathbf{E}\left[\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \left(J_g(\theta_k)-g(s_t, a_t)\right)\right]\overset{(a)}{=}\mathbf{E}\left[\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \mathbf{E}_{s'\sim P(\cdot|s_t, a_t)}[V_g^{\pi_{\theta_k}}(s')]-Q_g^{\pi_{\theta_k}}(s_t, a_t)\right]\\ &\overset{(b)}{=}\mathbf{E}\left[\sum_{k=}^{K}\sum_{t\in\mathcal{I}_k} V_g^{\pi_{\theta_k}}(s_{t+1})-V_g^{\pi_{\theta_k}}(s_t)\right]=\mathbf{E}\left[\sum_{k=1}^{K} V_g^{\pi_{\theta_k}}(s_{kH})-V_g^{\pi_{\theta_k}}(s_{(k-1)H})\right]\\ &=\mathbf{E}\left[\sum_{k=1}^{K-1} V_g^{\pi_{\theta_{k+1}}}(s_{kH})-V_g^{\pi_{\theta_k}}(s_{kH})\right]+\mathbf{E}\left[V_g^{\pi_{\theta_K}}(s_{T})-V_g^{\pi_{\theta_0}}(s_{0})\right] \end{align}\tag{22}\]

where \(g\in\{r, c\}\). Equality \((a)\) uses the Bellman equation and \((b)\) follows from the definition of \(Q_g\). The first term in the last line of Eq. 22 can be upper bounded by Lemma 8 (stated below). On the other hand, the second term can be upper bounded as \(\mathcal{O}(t_{\mathrm{mix}})\) using Lemma 9.

Lemma 8. If assumptions 1 and 3 hold, then for \(K=\frac{T}{H}\) where \(H=16t_{\mathrm{mix}}t_{\mathrm{hit}}T^{\frac{2}{5}}(\log_2 T)^2\), the following inequalities hold \(\forall k\), \(\forall (s, a)\) and sufficiently large \(T\): \[\begin{align} &(a)\,|\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_{k}}(a|s)|\leq G\norm{\theta_{k+1}-\theta_k}\\ &(b)\, \sum_{k=1}^{K}\mathbf{E}|J_g(\theta_{k+1})-J_g(\theta_k)| \leq\mathcal{\tilde{O}}\left(\dfrac{\alpha AG}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right)\\ &(c)\, \sum_{k=1}^K\mathbf{E}|V_g^{\pi_{\theta_{k+1}}}(s_k) - V_g^{\pi_{\theta_{k}}}(s_k)| \leq \mathcal{\tilde{O}}\left(\dfrac{\alpha AG t_{\mathrm{mix}}}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right) \end{align}\] where \(g\in\{r, c\}\), and \(\{s_k\}_{k=1}^K\) is an arbitrary sequence of states.

Lemma 8 states that the obtained policy parameters are such that the average consecutive difference in the sequence \(\{J_g(\theta_k)\}_{k=1}^K\), \(g\in\{r, c\}\) decreases with time horizon, \(T\). We would like to emphasize that Lemma 8 works for both reward and constraint functions. Hence, we can prove our regret guarantee and constraint violation as shown below.

Theorem 2. If assumptions 1\(-\)5 hold, \(J_g(\cdot)\)’s are \(L\)-smooth, \(\forall g\in\{r, c\}\) and \(T\) are sufficiently large, then our proposed Algorithm 1 achieves the following expected regret and constraint violation bounds with learning rates \(\alpha=\frac{1}{4L(1+\frac{2}{\delta})}\) and \(\beta=T^{-2/5}\). \[\begin{align} \label{eq95regret} &\mathbf{E}\left[\mathrm{Reg}_{T}\right] \leq T\sqrt{\epsilon_{\mathrm{bias}}} +\tilde{\mathcal{O}}(T^{4/5})+\mathcal{O}(t_{\mathrm{mix}})\\ &\mathbf{E}\left[\mathrm{Vio}_{T}\right] \leq T\delta\sqrt{\epsilon_{\mathrm{bias}}} +\tilde{\mathcal{O}}(T^{4/5})+\mathcal{O}(t_{\mathrm{mix}}) \end{align}\tag{23}\]

The detailed expressions of these bounds are provided in the Appendix. Here, we keep only those terms that emphasize the order of \(T\). Note that our result outperforms the state-of-the-art model-free tabular result in average-reward CMDP [8]. However, our regret bound is worse than that achievable in average reward unconstrained MDP with general parameterization [13]. Interestingly, the gap between the convergence results of constrained and unconstrained setups is a common observation across the literature. For example, in the tabular model-free average reward MDP, the state-of-the-art regret bound for unconstrained setup, \(\tilde{\mathcal{O}}(T^{1/2})\) [17], is better than that in the constrained setup, \(\tilde{\mathcal{O}}(T^{5/6})\) [8].

6 Conclusions↩︎

This paper establishes the first sublinear regret and constraint violation bounds in the average reward CMDP setup with general parametrization (and do not assume the underlying constrained Markov Decision Process (CMDP) to be tabular or linear). We show that our proposed algorithm achieves \(\tilde{\mathcal{O}}(T^{4/5})\) regret and constraint violation bounds where \(T\) is the time horizon. Note that the state of the art in unconstrained counterpart is \(\tilde{\mathcal{O}}({T}^{3/4})\). Closing this gap by designing more efficient algorithms is an open question in the average reward CMDP literature with the general parametrization. Moreover, our current algorithm requires the knowledge of mixing time. Relaxing such assumptions is another important future direction in realistic settings. For further discussions on future work directions, the readers are referred to [35].

7 Acknowledgement↩︎

This research was supported in part by the National Science Foundation under grant CCF-2149588 and Cisco, Inc.

8 Proofs for Lemmas in Section 3↩︎

8.1 Proof of Lemma 1↩︎

Since the first step of the proof works in the same way for functions \(J_r\) and \(J_c\), we use the generic notations \(J_g, V_g, Q_g\) where \(g=r,c\) and derive the following. \[\label{eq9522} \begin{align} &\nabla_{\theta} V_g^{\pi_{\theta_k}}(s) =\nabla_{\theta}\bigg(\sum_{a}\pi_{\theta}(a|s)Q_g^{\pi_{\theta}}(s, a)\bigg)\\ &=\sum_{a}\bigg(\nabla_{\theta}\pi_{\theta}(a|s)\bigg)Q_g^{\pi_{\theta}}(s, a)+\sum_{a}\pi_\theta(a|s)\nabla_{\theta} Q_g^{\pi_{\theta}}(s, a)\\ &\overset{(a)}=\sum_{a}\pi_{\theta}(a|s)\bigg(\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg)Q_g^{\pi_{\theta}}(s, a)+\sum_{a}\pi_\theta(a|s)\nabla_{\theta} \bigg(g(s, a)-J_g(\theta)+\sum_{s'}P(s'|s, a)V_g^{\pi_{\theta}}(s')\bigg)\\ &=\sum_{a}\pi_\theta(a|s)\bigg(\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg)Q_g^{\pi_{\theta}}(s, a)+\sum_{a}\pi_\theta(a|s) \bigg(\sum_{s'}P(s'|s,a)\nabla_{\theta} V_g^{\pi_{\theta}}(s')\bigg) - \nabla_{\theta}J_g(\theta) \end{align}\tag{24}\] where the step (a) is a consequence of \(\nabla_{\theta}\log\pi_{\theta}=\frac{\nabla\pi_{\theta}}{\pi_{\theta}}\) and the Bellman equation. Multiplying both sides by \(d^{\pi_{\theta}}(s)\), taking a sum over \(s\in\mathcal{S}\), and rearranging the terms, we obtain the following. \[\begin{align} \begin{aligned} &\nabla_{\theta}J_g(\theta)=\sum_{s}d^{\pi_{\theta}}(s)\nabla_{\theta}J_g(\theta)\\ &=\sum_{s}d^{\pi_{\theta}}(s)\sum_{a}\pi_\theta(a|s)\bigg(\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg)Q_g^{\pi_{\theta}}(s, a)+\sum_{s}d^{\pi_{\theta}}(s)\sum_{a}\pi_\theta(a|s) \bigg(\sum_{s'}P(s'|s,a)\nabla_{\theta} V_g^{\pi_{\theta}}(s')\bigg)\\ &- \sum_{s}d^{\pi_{\theta}}(s)\nabla_{\theta}V_g^{\pi_\theta}(s)\\ &\overset{}{=}\mathbf{E}_{s\sim d^{\pi_\theta}, a\sim \pi_\theta(\cdot|s)}\bigg[Q_g^{\pi_{\theta}}(s, a)\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg]+\sum_{s}d^{\pi_{\theta}}(s) \sum_{s'}P^{\pi_\theta}(s'|s)\nabla_{\theta} V_g^{\pi_{\theta}}(s') - \sum_{s}d^{\pi_{\theta}}(s)\nabla_{\theta}V_g^{\pi_\theta}(s)\\ &\overset{(a)}{=}\mathbf{E}_{s\sim d^{\pi_\theta}, a\sim \pi_\theta(\cdot|s)}\bigg[Q_g^{\pi_{\theta}}(s, a)\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg]+ \sum_{s'}d^{\pi_{\theta}}(s')\nabla_{\theta} V_g^{\pi_{\theta}}(s') - \sum_{s}d^{\pi_{\theta}}(s)\nabla_{\theta}V_g^{\pi_\theta}(s)\\ &=\mathbf{E}_{s\sim d^{\pi_\theta}, a\sim \pi_\theta(\cdot|s)}\bigg[Q_g^{\pi_{\theta}}(s, a)\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg] \end{aligned} \end{align}\] where \((a)\) uses the fact that \(d^{\pi_\theta}\) is a stationary distribution. Note that, \[\begin{align} &\mathbf{E}_{s\sim d^{\pi_{\theta}},a\sim\pi_{\theta}(\cdot|s)}\bigg[ V_g^{\pi_{\theta}}(s)\nabla\log\pi_{\theta}(a|s)\bigg]\\ &=\mathbf{E}_{s\sim d^{\pi_{\theta}}}\left[ \sum_{a\in\mathcal{A}}V_g^{\pi_{\theta}}(s)\nabla_{\theta}\pi_{\theta}(a|s)\right]\\ &=\mathbf{E}_{s\sim d^{\pi_{\theta}}}\bigg[ V_g^{\pi_{\theta}}(s)\nabla_{\theta}\left(\sum_{a\in\mathcal{A}}\pi_{\theta}(a|s)\right)\bigg] =\mathbf{E}_{s\sim d^{\pi_{\theta}}}\bigg[ V_g^{\pi_{\theta}}(s)\nabla_{\theta}(1)\bigg]=0 \end{align}\] We can, therefore, replace the function \(Q_g^{\pi_{\theta}}\) in the policy gradient with the advantage function \(A_g^{\pi_{\theta}}(s, a)=Q_g^{\pi_{\theta}}(s, a)-V_g^{\pi_{\theta}}(s)\), \(\forall (s, a)\in\mathcal{S}\times \mathcal{A}\). Thus, \[\nabla_{\theta} J_g(\theta)=\mathbf{E}_{s\sim d^{\pi_{\theta}},a\sim\pi_{\theta}(\cdot|s)}\bigg[ A_g^{\pi_{\theta}}(s,a)\nabla_{\theta}\log\pi_{\theta}(a|s)\bigg]\] The proof is completed using the definitions of \(J_{\mathrm{L},\lambda}\) and \(A_{\mathrm{L},\lambda}\).

8.2 Proof of Lemma 2↩︎

Proof. The proof is similar to the proof of [17]. Consider the \(k\)th epoch and assume that \(\pi_{\theta_k}\) is denoted as \(\pi\) for notational convenience. Let, \(M\) be the number of disjoint sub-trajectories of length \(N\) that start with the state \(s\) and are at least \(N\) distance apart (found by Algorithm 2). Let, \(g_{k, i}\) be the sum of rewards or constraint (\(g=r, c\) accordingly) observed in the \(i\)th sub-trajectory and \(\tau_i\) denote its starting time. The advantage function estimate is, \[\begin{align} \label{def95A95hat95appndx} \hat{A}_g^{\pi}(s, a) = \begin{cases} \dfrac{1}{\pi(a|s)}\left[\dfrac{1}{M}\sum_{i=1}^M g_{k,i}\mathrm{1}(a_{\tau_i}=a)\right] - \dfrac{1}{M}\sum_{i=1}^M g_{k,i}~&\text{if}~M>0\\ 0~&\text{if}~M=0 \end{cases} \end{align}\tag{25}\]

Note the following, \[\begin{align} \begin{aligned} &\mathbf{E}\left[g_{k,i}\bigg|s_{\tau_i}=s, a_{\tau_i}=a\right] =g(s, a) + \mathbf{E}\left[\sum_{t=\tau_i+1}^{\tau_i+N}g(s_t, a_t)\bigg| s_{\tau_i}=s, a_{\tau_i}=a\right]\\ &=g(s, a) + \sum_{s'}P(s'|s, a)\mathbf{E}\left[\sum_{t=\tau_i+1}^{\tau_i+N}g(s_t, a_t)\bigg| s_{\tau_i+1}=s'\right]\\ &=g(s, a) + \sum_{s'}P(s'|s, a)\left[\sum_{j=0}^{N-1}(P^{\pi})^j(s', \cdot)\right]^Tg^{\pi}\\ &=g(s, a) + \sum_{s'}P(s'|s, a)\left[\sum_{j=0}^{N-1}(P^{\pi})^j(s', \cdot)-d^{\pi}\right]^Tg^{\pi} + N(d^{\pi})^Tg^{\pi}\\ &\overset{(a)}{=}g(s, a) + \sum_{s'}P(s'|s, a)\left[\sum_{j=0}^{\infty}(P^{\pi})^j(s', \cdot)-d^{\pi}\right]^Tg^{\pi} + NJ_g^{\pi}-\underbrace{\sum_{s'}P(s'|s, a)\left[\sum_{j=N}^{\infty}(P^{\pi})^j(s', \cdot)-d^{\pi}\right]^Tg^{\pi}}_{\triangleq \mathrm{E}^{\pi}_T(s, a)}\\ &\overset{(b)}{=} g(s, a) + \sum_{s'}P(s'|s, a)V_g^{\pi}(s') + NJ_g^{\pi}-\mathrm{E}^{\pi}_T(s, a) \overset{(c)}{=} Q_g^{\pi}(s, a) + (N+1)J_g^{\pi} - \mathrm{E}^{\pi}_T(s, a) \end{aligned} \end{align}\] where \((a)\) follows from the definition of \(J_g^{\pi}\) as given in \((\ref{eq95r95pi95theta})\), \((b)\) is an application of the definition of \(V_g^{\pi}\) given in \((\ref{def95v95pi95theta95s})\), and \((c)\) follows from the Bellman equation. Define the following quantity. \[\begin{align} \label{def95error951} \delta^{\pi}(s, T) \triangleq \sum_{t=N}^{\infty}\norm{(P^{\pi})^t({s,\cdot}) - d^{\pi}}_1 ~~\text{where} ~N=4t_{\mathrm{mix}}(\log_2 T) \end{align}\tag{26}\]

Using Lemma 10, we get \(\delta^{\pi}(s, T)\leq \frac{1}{T^3}\) which implies, \(|\mathrm{E}^{\pi}_T(s, a)|\leq \frac{1}{T^3}\). Observe that, \[\begin{align} \label{eq95appndx9547} \begin{aligned} &\mathbf{E}\left[\left(\dfrac{1}{\pi(a|s)}g_{k,i}\mathrm{1}(a_{\tau_i}=a) - g_{k,i}\right)\bigg| s_{\tau_i}=s\right] \\ &= \mathbf{E}\left[g_{k,i}\bigg| s_{\tau_i}=s, a_{\tau_i}=a\right] - \sum_{a'}\pi(a'|s)\mathbf{E}\left[g_{k,i}\bigg| s_{\tau_i}=s, a_{\tau_i}=a'\right]\\ &=Q_g^{\pi}(s, a) + (N+1)J_g^{\pi} - \mathrm{E}^{\pi}_T(s, a) - \sum_{a'}\pi(a'|s)[Q^{\pi}(s, a) + (N+1)J_g^{\pi} - \mathrm{E}^{\pi}_T(s, a)]\\ &=Q_g^{\pi}(s, a) - V_g^{\pi}(s)-\left[\mathrm{E}_T(s, a) - \sum_{a'}\pi(a'|s)\mathrm{E}_T^{\pi}(s, a')\right]\\ &= A_g^{\pi}(s, a) -\Delta^{\pi}_T(s, a) \end{aligned} \end{align}\tag{27}\] where \(\Delta^{\pi}_T(s, a)\triangleq\mathrm{E}_T(s, a) - \sum_{a'}\pi(a'|s)\mathrm{E}_T^{\pi}(s, a')\). Using the bound on \(\mathrm{E}^{\pi}_T(s, a)\), we derive, \(|\Delta_T^{\pi}(s, a)|\leq \frac{2}{T^3}\), which implies, \[\begin{align} \label{eq95appndx9548}\left|\mathbf{E}\left[\left(\dfrac{1}{\pi(a|s)}g_{k,i}\mathrm{1}(a_{\tau_i}=a) - g_{k,i}\right)\bigg| s_{\tau_i}=s\right] - A_g^{\pi}(s, a)\right|\leq |\Delta_T^{\pi}(s, a)|\leq\dfrac{2}{T^3} \end{align}\tag{28}\]

Note that 28 cannot be directly used to bound the bias of \(\hat{A}_g^{\pi}(s, a)\). This is because the random variable \(M\) is correlated with the variables \(\{g_{k,i}\}_{i=1}^M\). To decorrelate them, imagine a CMDP where the state distribution resets to the stationary distribution, \(d^{\pi}\) after exactly \(N\) time steps since the completion of a sub-trajectory. In other words, if a sub-trajectory starts at \(\tau_{i}\), and ends at \(\tau_i+N\), then the system ‘rests’ for additional \(N\) steps before rejuvenating with the state distribution, \(d^{\pi}\) at \(\tau_i+2N\). Clearly, the wait time between the reset after the \((i-1)\)th sub-trajectory and the start of the \(i\)th sub-trajectory is, \(w_{i}=\tau_{i}-(\tau_{i-1}+2N)\), \(i>1\). Let \(w_1\) be the difference between the start time of the \(k\)th epoch and the start time of the first sub-trajectory. Note that,

\((a)\) \(w_1\) only depends on the initial state, \(s_{(k-1)H}\) and the induced transition function, \(P^{\pi}\),

\((b)\) \(w_i\), where \(i>1\), depends on the stationary distribution, \(d^{\pi}\), and the induced transition function, \(P^{\pi}\),

\((c)\) \(M\) only depends on \(\{w_1, w_2, \cdots\}\) as other segments of the epoch have fixed length, \(2N\).

Clearly, in this imaginary CMDP, the sequence, \(\{w_1, w_2, \cdots\}\), and hence, \(M\) is independent of \(\{g_{k,1}, g_{k, 2}, \cdots\}\). Let, \(\mathbf{E}'\) denote the expectation operation and \(\mathrm{Pr}'\) denote the probability of events in this imaginary system. Define the following. \[\begin{align} \label{def95delta95i} \Delta_i \triangleq \dfrac{g_{k,i}\mathrm{1}(a_{\tau_i}=a)}{\pi(a|s)} - g_{k,i} - A_g^{\pi}(s, a) + \Delta^{\pi}_T(s, a) \end{align}\tag{29}\] where \(\Delta^{\pi}_T(s, a)\) is given in \((\ref{eq95appndx9547})\). Note that we have suppressed the dependence on \(T\), \(s, a\), and \(\pi\) while defining \(\Delta_i\) to remove clutter. Using \((\ref{eq95appndx9547})\), one can write \(\mathbf{E}'\left[\Delta_i(s, a)|\{w_i\}\right]=0\). Moreover, \[\begin{align} \label{eq95appndx9550} \begin{aligned} &\mathbf{E}'\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\right]\\ &= \mathbf{E}'\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\bigg| M>0\right]\times \mathrm{Pr}'(M>0) + \left(A_g^{\pi}(s, a)\right)^2\times \mathrm{Pr}'(M=0)\\ &= \mathbf{E}'\left[\left(\dfrac{1}{M}\sum_{i=1}^M\Delta_i - \Delta_T^{\pi}(s, a)\right)^2\bigg| M>0\right]\times \mathrm{Pr}'(M>0) + \left(A_g^{\pi}(s, a)\right)^2\times \mathrm{Pr}'(M=0)\\ & \overset{}{\leq} 2\mathbf{E}_{\{w_i\}}'\left[\mathbf{E}'\left[\left(\dfrac{1}{M}\sum_{i=1}^M\Delta_i \right)^2\bigg| \{w_i\}\right]\bigg| w_1\leq H-N\right]\times \mathrm{Pr}'(w_1\leq H-N) \\ &+ 2\left(\Delta_T^{\pi}(s, a)\right)^2+\left(A_g^{\pi}(s, a)\right)^2\times \mathrm{Pr}'(M=0)\\ & \overset{(a)}{\leq} 2\mathbf{E}_{\{w_i\}}'\left[\dfrac{1}{M^2}\sum_{i=1}^M \mathbf{E}'\left[\Delta_i^2\big|\{w_i\}\right]\bigg| w_1\leq H-N\right]\times \mathrm{Pr}'(w_1\leq H-N) \\ &+ \dfrac{8}{T^6} +\left(A_g^{\pi}(s, a)\right)^2\times \mathrm{Pr}'(M=0)\\ \end{aligned} \end{align}\tag{30}\] where \((a)\) uses the bound \(|\Delta_T^{\pi}(s, a)|\leq \frac{2}{T^3}\) derived in \((\ref{eq95appndx9548})\), and the fact that \(\{\Delta_i\}\) are zero mean independent random variables conditioned on \(\{w_i\}\). Note that \(|g_{k,i}|\leq N\) almost surely, \(|A_g^{\pi}(s, a)|\leq \mathcal{O}(t_{\mathrm{mix}})\) via Lemma 9, and \(|\Delta^{\pi}_T(s, a)|\leq \frac{2}{T^3}\) as shown in \((\ref{eq95appndx9548})\). Combining, we get, \(\mathbf{E}'[|\Delta_i|^2\big|\{w_i\}]\leq \mathcal{O}(N^2/\pi(a|s))\) (see the definition of \(\Delta_i\) in (29 )). Invoking this bound into \((\ref{eq95appndx9550})\), we get the following result. \[\begin{align} \label{eq95appndx955195} \begin{aligned} \mathbf{E}'&\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\right]\leq 2\mathbf{E}'\left[\dfrac{1}{M}\bigg|w_1\leq H-N\right]\mathcal{O}\left(\dfrac{N^2}{\pi(a|s)}\right)+\dfrac{8}{T^6}\\ &+\mathcal{O}(t_{\mathrm{mix}}^2)\times \mathrm{Pr}'(w_1>H-N)\\ \end{aligned} \end{align}\tag{31}\]

Note that, one can use Lemma 11 to bound the following violation probability. \[\begin{align} \label{eq95appndx955295} \mathrm{Pr}'(w_1>H-N)\leq \left(1-\dfrac{3d^{\pi}(s)}{4}\right)^{4t_{\mathrm{hit}}T^{\xi}(\log T)-1}\overset{(a)}{\leq} \left(1-\dfrac{3d^{\pi}(s)}{4}\right)^{\dfrac{4}{d^{\pi}(s)}(\log T)}\leq \dfrac{1}{T^3} \end{align}\tag{32}\] where \((a)\) is a consequence of the fact that \(4t_{\mathrm{hit}}T^{\xi}(\log_2 T) - 1 \geq \frac{4}{d^{\pi}(s)}\log_2 T\) for sufficiently large \(T\). Finally, note that, if \(M<M_0\), where \(M_0\) is defined as, \[\begin{align} M_0\triangleq \dfrac{H-N}{2N+ \dfrac{4N\log T}{d^{\pi}(s)}} \end{align}\] then there exists at least one \(w_i\) that exceeds \(4N\log_2 T/d^{\pi}(s)\) which can happen with the following maximum probability according to Lemma 11. \[\begin{align} \mathrm{Pr}'\left(M<M_0\right) \leq \left(1-\dfrac{3d^{\pi}(s)}{4}\right)^{\frac{4\log T}{d^{\pi(s)}}}\leq \dfrac{1}{T^3} \end{align}\]

The above probability bound can be used to obtain the following result, \[\begin{align} \label{eq95appndx955595} \begin{aligned} \mathbf{E}'\left[\dfrac{1}{M}\bigg| M>0\right]=\dfrac{\sum_{m=1}^{\infty}\dfrac{1}{m}\mathrm{Pr}'(M=m)}{\mathrm{Pr}'(M>0)}&\leq \dfrac{1\times \mathrm{Pr}'(M\leq M_0)+\dfrac{1}{M_0}\mathrm{Pr}'(M>M_0)}{\mathrm{Pr}'(M>0)}\\ &\leq \dfrac{\dfrac{1}{T^3}+\dfrac{2N+\dfrac{4N \log T}{d^{\pi}(s)}}{H-N}}{1-\dfrac{1}{T^3}}\leq \mathcal{O}\left(\dfrac{N\log T}{H d^{\pi}(s)}\right) \end{aligned} \end{align}\tag{33}\]

Injecting \((\ref{eq95appndx955295})\) and \((\ref{eq95appndx955595})\) into \((\ref{eq95appndx955195})\), we finally obtain the following. \[\begin{align} \label{eq95appndx955695} \begin{aligned} \mathbf{E}'\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\right]&\leq \mathcal{O}\left(\dfrac{N^3\log T}{H d^{\pi}(s)\pi(a|s)}\right)\\ &=\mathcal{O}\left(\dfrac{N^3t_{\mathrm{hit}}\log T}{H \pi(a|s)}\right)=\mathcal{O}\left(\dfrac{t^2_{\mathrm{mix}}(\log T)^2}{T^{\xi}\pi(a|s)}\right) \end{aligned} \end{align}\tag{34}\]

Eq. \((\ref{eq95appndx955695})\) demonstrates that our desired inequality is obeyed in the imaginary system. We now need a mechanism to translate this result to our actual CMDP. Note that \((\hat{A}_g^{\pi}(s, a)-A_g^{\pi}(s, a))^2=f(X)\) where \(X=(M, \tau_1, \mathcal{T}_1, \cdots, \tau_M, \mathcal{T}_M)\), and \(\mathcal{T}_i = (a_{\tau_i}, s_{\tau_i+1}, a_{\tau_i+1}, \cdots, s_{\tau_i+N}, a_{\tau_i+N})\). We have, \[\begin{align} \label{eq95appndx955795} \dfrac{\mathbf{E}[f(X)]}{\mathbf{E}'[f(X)]} = \dfrac{\sum_{X} f(X)\mathrm{Pr}(X)}{\sum_{X} f(X)\mathrm{Pr}'(X)}\leq \max_{X}\dfrac{\mathrm{Pr}(X)}{\mathrm{Pr'}(X)} \end{align}\tag{35}\]

The last inequality uses the non-negativity of \(f(\cdot)\). Observe that, for a fixed sequence, \(X\), we have, \[\begin{align} \begin{aligned} \mathrm{Pr}(X) &= \mathrm{Pr}(\tau_1)\times \mathrm{Pr}(\mathcal{T}_1|\tau_1)\times \mathrm{Pr}(\tau_2|\tau_1, \mathcal{T}_1)\times \mathrm{Pr}(\mathcal{T}_2|\tau_2) \times \cdots \\ &\times \mathrm{Pr}(\tau_M|\tau_{M-1}, \mathcal{T}_{M-1})\times \mathrm{Pr}(\mathcal{T}_M|\tau_M)\times \mathrm{Pr}(s_t\neq s, \forall t\in[\tau_M+2N, kH-N]|\tau_M, \mathcal{T}_M), \end{aligned}\\ \begin{align} \mathrm{Pr}'(X) &= \mathrm{Pr}(\tau_1)\times \mathrm{Pr}(\mathcal{T}_1|\tau_1)\times \mathrm{Pr}'(\tau_2|\tau_1, \mathcal{T}_1)\times \mathrm{Pr}(\mathcal{T}_2|\tau_2) \times \cdots \\ &\times \mathrm{Pr}'(\tau_M|\tau_{M-1}, \mathcal{T}_{M-1})\times \mathrm{Pr}(\mathcal{T}_M|\tau_M)\times \mathrm{Pr}(s_t\neq s, \forall t\in[\tau_M+2N, kH-N]|\tau_M, \mathcal{T}_M), \end{align} \end{align}\]

The difference between \(\mathrm{Pr}(X)\) and \(\mathrm{Pr}'(X)\) arises because \(\mathrm{Pr}(\tau_{i+1}|\tau_i, \mathcal{T}_i)\neq \mathrm{Pr}'(\tau_{i+1}|\tau_i, \mathcal{T}_i)\), \(\forall i\in\{1, \cdots, M-1\}\). Note that the ratio of these two terms can be bounded as follows, \[\begin{align} \begin{aligned} &\dfrac{\mathrm{Pr}(\tau_{i+1}|\tau_i, \mathcal{T}_i)}{\mathrm{Pr}'(\tau_{i+1}|\tau_i, \mathcal{T}_i)}\\ &=\dfrac{\sum_{s'\neq s} \mathrm{Pr}(s_{\tau_i+2N}=s'|\tau_i, \mathcal{T}_i)\times \mathrm{Pr}(s_t\neq s, \forall t\in [\tau_i+2N, \tau_{i+1}-1], s_{\tau_{i+1}}=s|s_{\tau_i+2N}=s')}{\sum_{s'\neq s} \mathrm{Pr}'(s_{\tau_i+2N}=s'|\tau_i, \mathcal{T}_i)\times \mathrm{Pr}(s_t\neq s, \forall t\in [\tau_i+2N, \tau_{i+1}-1], s_{\tau_{i+1}}=s|s_{\tau_i+2N}=s')}\\ &\leq \max_{s'}\dfrac{\mathrm{Pr}(s_{\tau_i+2N}=s'|\tau_i, \mathcal{T}_i)}{\mathrm{Pr}'(s_{\tau_i+2N}=s'|\tau_i, \mathcal{T}_i)}\\ &=\max_{s'}1+\dfrac{\mathrm{Pr}(s_{\tau_i+2N}=s'|\tau_i, \mathcal{T}_i)-d^{\pi}(s')}{d^{\pi}(s')}\overset{(a)}{\leq} \max_{s'}1+\dfrac{1}{T^3d^{\pi}(s')}\leq 1+\dfrac{t_{\mathrm{hit}}}{T^3}\leq 1+\dfrac{1}{T^2} \end{aligned} \end{align}\] where \((a)\) is a consequence of Lemma 10. We have, \[\begin{align} \label{eq95appndx956195} \dfrac{\mathrm{Pr}(X)}{\mathrm{Pr}'(X)}\leq \left(1+\dfrac{1}{T^2}\right)^M\leq e^{\frac{M}{T^2}}\overset{(a)}{\leq} e^{\frac{1}{T}}\leq \mathcal{O}\left(1+\dfrac{1}{T}\right) \end{align}\tag{36}\] where \((a)\) uses the fact that \(M\leq T\). Combining \((\ref{eq95appndx955795})\) and \((\ref{eq95appndx956195})\), we get, \[\begin{align} \begin{aligned} \mathbf{E}\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\right]&\leq \mathcal{O}\left(1+\dfrac{1}{T}\right)\mathbf{E}'\left[\left(\hat{A}_g^{\pi}(s, a) - A_g^{\pi}(s, a)\right)^2\right]\\ &\overset{(a)}{\leq} \mathcal{O}\left(\dfrac{t^2_{\mathrm{mix}}(\log T)^2}{T^{\xi}\pi(a|s)}\right) \end{aligned} \end{align}\] where \((a)\) follows from \((\ref{eq95appndx955695})\). Using the definition of \(A_{\mathrm{L},\lambda}\), we get, \[\begin{align} &\mathbf{E}\left[\left(\hat{A}_{\mathrm{L},\lambda}^{\pi}(s, a) - A_{\mathrm{L},\lambda}^{\pi}(s, a)\right)^2\right]\\ &=\mathbf{E}\left[\left((\hat{A}_r^{\pi}(s, a) - A_r^{\pi}(s, a))+\lambda(\hat{A}_c^{\pi}(s, a) - A_c^{\pi}(s, a))\right)^2\right]\\ &\leq 2 \mathbf{E}\left[\left(\hat{A}_r^{\pi}(s, a) - A_r^{\pi}(s, a)\right)^2\right]+ 2\lambda^2\mathbf{E}\left[\left(\hat{A}_c^{\pi}(s, a) - A_c^{\pi}(s, a)\right)^2\right]\leq\mathcal{O}\left(\dfrac{t^2_{\mathrm{mix}}(\log T)^2}{\delta^2T^{\xi}\pi(a|s)}\right) \end{align}\] This concludes the proof. ◻

9 Proofs for the Section of Global Convergence Analysis↩︎

9.1 Proof of Lemma 3↩︎

Proof. Recall from Eq. 11 that, \[\begin{align} &\omega_k= \dfrac{1}{H}\sum_{t=t_k}^{t_{k+1}-1}\hat{A}_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_{t}, a_{t})\nabla_{\theta}\log \pi_{\theta_k}(a_{t}|s_{t}), \end{align}\]

Define the following quantity, \[\begin{align} &\bar{\omega}_k= \dfrac{1}{H}\sum_{t=t_k}^{t_{k+1}-1}A_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_{t}, a_{t})\nabla_{\theta}\log \pi_{\theta_k}(a_{t}|s_{t}) \end{align}\] where \(t_k=(k-1)H\) is the starting time of the \(k\)th epoch. Note that the true gradient is given by, \[\begin{align} \nabla_{\theta}J_{\mathrm{L},\lambda}(\theta_k)=\mathbf{E}_{s\sim d^{\pi_{\theta_k}}, a\sim\pi_{\theta_k}(\cdot|s)}\left[A_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s, a)\nabla_{\theta}\log\pi_{\theta}(a|s)\right] \end{align}\]

Using Assumption 3, Lemma 9, and \(\lambda\in[0, \frac{2}{\delta}]\), one can exhibit that \(|A_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s, a)\nabla_{\theta}\log\pi_{\theta}(a|s)|\leq \mathcal{O}(\frac{t_{\mathrm{mix}}G}{\delta})\), \(\forall (s, a)\in \mathcal{S}\times \mathcal{A}\) which implies \(|\nabla_{\theta}J_{\mathrm{L},\lambda}(\theta_k)|\leq \mathcal{O}(\frac{t_{\mathrm{mix}}G}{\delta})\). Applying Lemma 14, one, therefore, arrives at \[\begin{align} \label{eq95appndx956795} \mathbf{E}\left[\norm{\bar{\omega}_k-\nabla_{\theta}J_{L,\lambda}(\theta_k)}^2\right]\leq \mathcal{O}\left(\frac{1}{\delta^2}G^{2}t^2_{\mathrm{mix}}\log T\right)\times \mathcal{O}\left(\dfrac{t_{\mathrm{mix}}\log T}{H}\right)=\mathcal{O}\left(\dfrac{G^2t_{\mathrm{mix}}^2}{\delta^2 t_{\mathrm{hit}}T^{\xi}}\right) \end{align}\tag{37}\]

Finally, the difference, \(\mathbf{E}\norm{\omega_k-\bar{\omega}_k}^2\) can be bounded as follows. \[\begin{align} \label{eq95appndx956895} \begin{aligned} &\mathbf{E}\norm{\omega_k-\bar{\omega}_k}^2\\ &=\mathbf{E}\left[\left\|\dfrac{1}{H}\sum_{t=t_k}^{t_{k+1}-1}\hat{A}_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_{t}, a_{t})\nabla_{\theta}\log \pi_{\theta_k}(a_{t}|s_{t})-\dfrac{1}{H}\sum_{t=t_k}^{t_{k+1}-1}\hat{A}_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_{t}, a_{t})\nabla_{\theta}\log \pi_{\theta_k}(a_{t}|s_{t})\right\|^2\right]\\ &\overset{(a)}{\leq} \dfrac{G^2}{H}\sum_{t=t_k}^{t_{k+1}-1}\mathbf{E}\left[\left(\hat{A}_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_t, a_t)-A_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_t, a_t)\right)^2\right]\\ &\leq \dfrac{G^2}{H}\sum_{t=t_k}^{t_{k+1}-1}\mathbf{E}\left[\sum_{a}\pi_{\theta_k}(a|s_t)\mathbf{E}\left[\left(\hat{A}_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_t, a)-A_{\mathrm{L},\lambda}^{\pi_{\theta_k}}(s_t, a)\right)^2\bigg| s_t\right]\right]\overset{(b)}{\leq}\mathcal{O}\left(\dfrac{AG^2t^2_{\mathrm{mix}}(\log T)^2}{\delta^2 T^{\xi}}\right) \end{aligned} \end{align}\tag{38}\] where \((a)\) follows from Assumption 3 and Jensen’s inequality whereas \((b)\) follows from Lemma 2. Combining, \((\ref{eq95appndx956795})\) and \((\ref{eq95appndx956895})\), we conclude the result. ◻

9.2 Proof of Lemma 4↩︎

Proof. Using the Lemma 12, it is obvious to see that \[\begin{align} J_g^{\pi}-J_g^{\pi'}&=\sum_{s}\sum_{a}d^{\pi}(s)(\pi(a|s)-\pi'(a|s))Q_g^{\pi'}(s,a)\\ &=\sum_{s}\sum_{a}d^{\pi}(s)\pi(a|s)Q_g^{\pi'}(s,a)-\sum_{s}d^{\pi}(s)V_g^{\pi'}(s)\\ &=\sum_{s}\sum_{a}d^{\pi}(s)\pi(a|s)Q_g^{\pi'}(s,a)-\sum_{s}\sum_{a}d^{\pi}(s)\pi(a|s)V_g^{\pi'}(s)\\ &=\sum_{s}\sum_{a}d^{\pi}(s)\pi(a|s)[Q_g^{\pi'}(s,a)-V_g^{\pi'}(s)]=\mathbf{E}_{s\sim d^{\pi}}\mathbf{E}_{a\sim\pi(\cdot\vert s)}\big[A_g^{\pi'}(s,a)\big] \end{align}\] We conclude the lemma using the definition of \(J_{\mathrm{L},\lambda}\) and \(A_{\mathrm{L},\lambda}\). ◻

9.3 Proof of Lemma 5↩︎

Proof. We start with the definition of KL divergence. \[\begin{align} &\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_k}(\cdot\vert s))-KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_{k+1}}(\cdot\vert s))]\\ &=\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}\bigg[\log\frac{\pi_{\theta_{k+1}(a\vert s)}}{\pi_{\theta_k}(a\vert s)}\bigg]\\ &\overset{(a)}\geq\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot(\theta_{k+1}-\theta_k)]-\frac{B}{2}\Vert\theta_{k+1}-\theta_k\Vert^2\\ &=\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_{\theta}\log\pi_{\theta_k}(a\vert s)\cdot\omega_k]-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ &=\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot\omega^*_k]+\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot(\omega_k-\omega^*_k)]-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ &=\alpha[J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)]+\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot\omega^*_k]-\alpha[J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)]\\ &+\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot(\omega_k-\omega^*_k)]-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ &\overset{(b)}=\alpha[J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)]+\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}\bigg[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot\omega^*_k-A_{\mathrm{L},\lambda_k}^{\pi_{\theta_k}}(s,a)\bigg]\\ &+\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}[\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot(\omega_k-\omega^*_k)]-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ &\overset{(c)}\geq\alpha[J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)]-\alpha\sqrt{\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}\bigg[\bigg(\nabla_\theta\log\pi_{\theta_k}(a\vert s)\cdot\omega^*_k-A_{\mathrm{L},\lambda_k}^{\pi_{\theta_k}}(s,a)\bigg)^2\bigg]}\\ &-\alpha\mathbf{E}_{s\sim d^{\pi^*}}\mathbf{E}_{a\sim\pi^*(\cdot\vert s)}\Vert\nabla_\theta\log\pi_{\theta_k}(a\vert s)\Vert_2\Vert(\omega_k-\omega^*_k)\Vert-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ &\overset{(d)}\geq\alpha[J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)]-\alpha\sqrt{\epsilon_{\mathrm{bias}}}-\alpha G\Vert(\omega_k-\omega^*_k)\Vert-\frac{B\alpha^2}{2}\Vert\omega_k\Vert^2\\ \end{align}\] where the step (a) holds by Assumption 3 and step (b) holds by Lemma 4. Step (c) uses the convexity of the function \(f(x)=x^2\). Finally, step (d) comes from the Assumption 4. Rearranging items, we have \[\begin{align} J_{\mathrm{L}}(\pi^*,\lambda_k)-J_{\mathrm{L}}(\theta_k,\lambda_k)&\leq \sqrt{\epsilon_{\mathrm{bias}}}+ G\Vert(\omega_k-\omega^*_k)\Vert+\frac{B\alpha}{2}\Vert\omega_k\Vert^2\\ &+\frac{1}{\alpha}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_k}(\cdot\vert s))-KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_{k+1}}(\cdot\vert s))] \end{align}\] Summing from \(k=1\) to \(K\), using the non-negativity of KL divergence and dividing the resulting expression by \(K\), we get the desired result. ◻

9.4 Proof of Lemma 6↩︎

Proof. By the \(L\)-smooth property of the objective function and constraint function, we know that \(J_{\mathrm{L}}(\cdot,\lambda)\) is a \(L(1+\lambda)\)-smooth function. Thus, \[\begin{align} \begin{aligned} &J_{\mathrm{L}}(\theta_{k+1},\lambda_k) \geq J_{\mathrm{L}}(\theta_k,\lambda_k)+\left<\nabla J_{\mathrm{L}}(\theta_k,\lambda_k),\theta_{k+1}-\theta_k\right>-\frac{L(1+\lambda_k)}{2}\Vert\theta_{k+1}-\theta_k\Vert^2\\ &\overset{(a)} =J_{\mathrm{L}}(\theta_k,\lambda_k) + \alpha \nabla J_{\mathrm{L}}(\theta_k,\lambda_k)^T \omega_k - \frac{L(1+\lambda_k) \alpha^2}{2} \norm{ \omega_k }^2 \\ &= J_{\mathrm{L}}(\theta_k,\lambda_k) + \alpha \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 - \alpha \langle \nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k, \nabla J_{\mathrm{L}}(\theta_k, \lambda_k) \rangle \\ &\quad- \frac{L(1+\lambda_k) \alpha^2}{2}\Vert \nabla J_{\mathrm{L}}(\theta_k,\lambda_k)-\omega_k-\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\\ &\overset{(b)}\geq J_{\mathrm{L}}(\theta_k,\lambda_k) + \alpha \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 - \frac{\alpha}{2} \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2 -\frac{\alpha}{2}\Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\\ &\quad- L(1+\lambda_k)\alpha^2\Vert \nabla J_{\mathrm{L}}(\theta_k,\lambda_k)-\omega_k\Vert^2-L(1+\lambda_k)\alpha^2\Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)\Vert^2\\ &= J_{\mathrm{L}}(\theta_k,\lambda_k) + \left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 - \left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2 \end{aligned} \end{align}\] where step (a) follows from the fact that \(\theta_{k+1} = \theta_k + \alpha \omega_k\) and inequality (b) holds due to the Cauchy-Schwarz inequality. Now, adding \(J_{\mathrm{L}}(\theta_{k+1},\lambda_{k+1})\) on both sides, we have \[\begin{align} J_{\mathrm{L}}(\theta_{k+1},\lambda_{k+1})&\geq J_{\mathrm{L}}(\theta_{k+1},\lambda_{k+1})- J_{\mathrm{L}}(\theta_{k+1},\lambda_{k}) +J_{\mathrm{L}}(\theta_k,\lambda_k) + \left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\\ &\quad - \left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2\\ &\overset{(a)}= (\lambda_{k+1}-\lambda_{k})J_c(\theta_{k+1}) +J_{\mathrm{L}}(\theta_k,\lambda_k) + \left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\\ &\quad - \left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2\\ &\overset{(b)}\geq -\beta +J_{\mathrm{L}}(\theta_k,\lambda_k) + \left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\\ &\quad - \left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2\\ \end{align}\] where (a) holds by the definition of \(J_{\mathrm{L}}(\theta,\lambda)\) and step (b) is true because \(|J_c(\theta)|\leq 1,\forall \theta\) and \(|\lambda_{k+1}-\lambda_k|\leq \beta|\hat{J}_c(\theta_k)|\leq \beta\) where the last inequality uses the fact that \(|\hat{J}_c(\theta_k)|\leq 1\). Summing over \(k\in\{ 1, \cdots, K\}\), we have, \[\begin{align} \sum_{k=1}^{K}\bigg[J_{\mathrm{L}}(\theta_{k+1},\lambda_{k+1})-J_{\mathrm{L}}(\theta_k,\lambda_k)\bigg]&\geq -\beta K + \sum_{k=1}^{K}\left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\\ &\quad - \sum_{k=1}^{K}\left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2\\ \end{align}\] which leads to the following. \[\begin{align} J_{\mathrm{L}}(\theta_{K+1},\lambda_{K+1})-J_{\mathrm{L}}(\theta_1,\lambda_1)&\geq -\beta K + \sum_{k=1}^{K}\left(\frac{\alpha}{2}-L(1+\lambda_k)\alpha^2\right) \norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2\\ &\quad - \sum_{k=1}^{K}\left(\frac{\alpha}{2}+L(1+\lambda_k)\alpha^2\right) \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2\\ \end{align}\] Rearranging the terms and using \(0\leq \lambda_k\leq \frac{2}{\delta}\) due to the dual update, we arrive at the following. \[\begin{align} \begin{aligned} &\sum_{k=1}^{K}\norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 \leq \frac{J_{\mathrm{L}}(\theta_{K+1},\lambda_{K+1})-J_{\mathrm{L}}(\theta_1,\lambda_1) + \beta K + (\frac{\alpha}{2}+L(1+\frac{2}{\delta})\alpha^2) \sum_{k=1}^{K} \Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2}{\frac{\alpha}{2}-L(1+\frac{2}{\delta})\alpha^2} \end{aligned} \end{align}\] Choosing \(\alpha = \frac{1}{4L(1+\frac{2}{\delta})}\) and dividing both sides by \(K\), we conclude the result. \[\begin{align} \begin{aligned} \frac{1}{K}\sum_{k=1}^{K}\norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 &\leq \frac{16L(1+\frac{2}{\delta})}{K}\left[J_{\mathrm{L}}(\theta_{K+1},\lambda_{K+1})-J_{\mathrm{L}}(\theta_1,\lambda_1)\right]\\ &+ \dfrac{3}{K}\sum_{k=1}^{K}\Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2 + \beta \end{aligned} \end{align}\] Recall that \(|J_{\mathrm{L}}(\theta,\lambda)|\leq 1+\lambda\leq 1+\frac{2}{\delta}\leq \frac{3}{\delta},\forall \theta\in \Theta,\forall\lambda\geq 0\). Thus, \[\begin{align} \frac{1}{K}\sum_{k=1}^{K}\norm{\nabla J_{\mathrm{L}}(\theta_k,\lambda_k)}^2 \leq \frac{288L}{\delta^2 K}+ \dfrac{3}{K}\sum_{k=1}^{K}\Vert\nabla J_{\mathrm{L}}(\theta_k,\lambda_k) - \omega_k\Vert^2 + \beta \end{align}\] This completes the proof. ◻

9.5 Proof of Theorem 1↩︎

9.5.1 Rate of Convergence of the Objective↩︎

Recall the definition of \(J_{\mathrm{L}}(\theta,\lambda)=J_r(\theta)+\lambda J_c(\theta)\). Using Lemma 7, we arrive at the following. \[\label{eq:bound95Jr1} \begin{align} &\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg(J_r^{\pi^*}-J_r(\theta_k)\bigg)\leq G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}+\beta\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}\delta }\bigg)\\ &-\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\lambda_k\bigg(J_{c}^{\pi^*}-J_c(\theta_k)\bigg)\bigg] + \sqrt{\epsilon_{\mathrm{bias}}} \end{align}\tag{39}\]

Thus, we need to find a bound for the last term in the above equation. \[\label{eq:bound95lambdak} \begin{align} 0&\leq (\lambda_{K+1})^2\\ &\overset{(a)}{=}\sum_{k=1}^{K}\bigg((\lambda_{k+1})^2-(\lambda_{k})^2\bigg)\\ &=\sum_{k=1}^{K}\bigg(\mathcal{P}_{[0,\frac{2}{\delta}]}\big[\lambda_{k}-\beta\hat{J}_{c}(\theta_k)\big]^2-(\lambda_{k})^2\bigg)\\ &\leq\sum_{k=1}^{K}\bigg(\big[\lambda_{k}-\beta\hat{J}_{c}(\theta_k)\big]^2-(\lambda_{k})^2\bigg)\\ &=-2\beta\sum_{k=1}^{K}\lambda_{k}\hat{J}_{c}(\theta_k)+\beta^2\sum_{k=1}^{K}\hat{J}_{c}(\theta_k)^2\\ &\overset{(b)}\leq 2\beta\sum_{k=1}^{K}\lambda_{k}(J_{c}^{\pi^*}- \hat{J}_{c}(\theta_k))+\beta^2\sum_{k=1}^{K}\hat{J}_{c}(\theta_k)^2\\ &\leq 2\beta\sum_{k=1}^{K}\lambda_{k}(J_{c}^{\pi^*}- \hat{J}_{c}(\theta_k))+2\beta^2\sum_{k=1}^{K}\hat{J}_{c}(\theta_k)^2\\ &= 2\beta\sum_{k=1}^{K}\lambda_{k}(J_{c}^{\pi^*}- J_{c}(\theta_k))+2\beta\sum_{k=1}^{K}\lambda_{k}(J_{c}(\theta_k)- \hat{J}_{c}(\theta_k))+2\beta^2\sum_{k=1}^{K}\hat{J}_{c}(\theta_k)^2 \end{align}\tag{40}\] where (a) uses \(\lambda_1=0\) and inequality (b) holds because \(\theta^*\) is a feasible solution to the constrained optimization problem. Rearranging items and taking the expectation, we have, \[\begin{align} \label{eq95appndx957195new} \begin{aligned} -\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\lambda_{k}(J_{c}^{\pi^*}- J_{c}(\theta_k))\bigg] &\leq \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\lambda_{k}(J_{c}(\theta_k)- \hat{J}_{c}(\theta_k))\bigg]+\frac{\beta}{K}\sum_{k=1}^{K}\mathbf{E}[\hat{J}_{c}(\theta_k)]^2\\ & \overset{(a)}{\leq} \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\left[\lambda_{k}\left(J_{c}(\theta_k)- \hat{J}_{c}(\theta_k)\right)\right]+\beta\\ &\overset{(b)}{=} \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\lambda_{k}\left(J_{c}(\theta_k)- \mathbf{E}\left[\hat{J}_{c}(\theta_k)\big|\theta_k\right]\right)\bigg]+\beta\\ &\leq \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg[\lambda_{k}\left|J_{c}(\theta_k)- \mathbf{E}\left[\hat{J}_{c}(\theta_k)\big|\theta_k\right]\right|\bigg]+\beta\overset{(c)}{\leq} \frac{2}{\delta T^2}+\beta \end{aligned} \end{align}\tag{41}\] where (a) results from \(|\hat{J}_{c, \rho}(\theta)|^2\leq 1\), \(\forall \theta\in\Theta\) and (b) uses the fact that \(\hat{J}_{c, \rho}(\theta_k)\) and \(\lambda_k\) are conditionally independent given \(\theta_k\). Finally, (c) is a consequence of Lemma 13. Combining 41 with 39 , we deduce, \[\label{eq95bound95Jr95final} \begin{align} &\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg(J_r^{\pi^*}-J_r(\theta_k)\bigg)\\ &\leq \sqrt{\epsilon_{\mathrm{bias}}} + G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right)+ \mathcal{O}\left(\dfrac{1}{\delta T^2}+\beta\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}+\beta\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}\delta }\bigg)\\ &\leq \sqrt{\epsilon_{\mathrm{bias}}} + G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right) \end{align}\tag{42}\]

The last inequality presents only the dominant terms of \(\beta\) and \(T\).

9.5.2 Rate of Constraint Violation↩︎

Since \(\{\lambda_k\}_{k=1}^{K}\) are derived by applying the dual update in Algorithm 1, we have, \[\label{eq95appndx957395new} \begin{align} &\mathbf{E}\left\vert\lambda_{k+1} - \dfrac{2}{\delta}\right\vert^2 \overset{(a)}{\leq} \mathbf{E}\left|\lambda_{k} - \beta \hat{J}_c(\theta_{k}) - \dfrac{2}{\delta}\right|^2\\ &=\mathbf{E}\left|\lambda_{k} -\dfrac{2}{\delta}\right|^2 -2\beta \mathbf{E}\left[\hat{J}_c(\theta_k)\left(\lambda_{k} -\dfrac{2}{\delta}\right)\right] +\beta^2 \mathbf{E}\left[\hat{J}^2_c(\theta_{k})\right] \\ &\overset{(b)}\leq\mathbf{E}\left|\lambda_{k} -\dfrac{2}{\delta}\right|^2 - 2\beta \mathbf{E}\left[J_c(\theta_{k})\left(\lambda_{k} -\dfrac{2}{\delta}\right)\right]-2\beta \mathbf{E}\left[\left(\hat{J}_c(\theta_{k})-J_c(\theta_{k})\right)\left(\lambda_{k}-\dfrac{2}{\delta}\right)\right] + \beta^2\\ &\overset{(c)}{=}\mathbf{E}\left|\lambda_{k} -\dfrac{2}{\delta}\right|^2 - 2\beta \mathbf{E}\left[J_c(\theta_{k})\left(\lambda_{k} -\dfrac{2}{\delta}\right)\right]-2\beta \mathbf{E}\left[\left(\mathbf{E}\left[\hat{J}_c(\theta_{k})\big|\theta_k\right]-J_c(\theta_{k})\right)\left(\lambda_{k}-\dfrac{2}{\delta}\right)\right] + \beta^2\\ &\leq \mathbf{E}\left|\lambda_{k} -\dfrac{2}{\delta}\right|^2 - 2\beta \mathbf{E}\left[J_c(\theta_{k})\left(\lambda_{k} -\dfrac{2}{\delta}\right)\right]+2\beta \mathbf{E}\left[\left|\mathbf{E}\left[\hat{J}_c(\theta_{k})\big|\theta_k\right]-J_c(\theta_{k})\right|\left|\lambda_{k}-\dfrac{2}{\delta}\right|\right] + \beta^2\\ &\overset{(d)}{\leq} \mathbf{E}\left|\lambda_{k} -\dfrac{2}{\delta}\right|^2 - 2\beta \mathbf{E}\left[J_c(\theta_{k})\left(\lambda_{k} -\dfrac{2}{\delta}\right)\right] + \dfrac{4\beta}{\delta T^2} + \beta^2 \end{align}\tag{43}\] where \((a)\) is due to the non-expansiveness of the projection \(\mathcal{P}_{[0, \frac{2}{\delta}]}\) and \((b)\) holds because \(\hat{J}_c(\theta)\in[0,1]\), \(\forall \theta\in\Theta\) according to its definition in Algorithm 1. Finally, \((c)\) is a consequence of the fact that \(\hat{J}_c(\theta_k)\) and \(\lambda_k\) are conditionally independent given \(\theta_k\) whereas \((d)\) applies \(|\lambda_k-\frac{2}{\delta}|\leq \frac{2}{\delta}\) and Lemma 13. Averaging 43 over \(k\in\{1,\ldots,K\}\), we get, \[\begin{align} \frac{1}{K}\sum_{k=1}^{K} \mathbf{E}\left[J_c(\theta_k)\left(\lambda_{k} -\frac{2}{\delta}\right)\right] &\leq \frac{\left\vert\lambda_{1} - \frac{2}{\delta}\right\vert^2 -\left\vert\lambda_{K+1} - \frac{2}{\delta}\right\vert^2 }{2\beta K} + \dfrac{2}{\delta T^2} + \dfrac{\beta}{2} \overset{(a)}{\leq} \dfrac{2}{\delta^2 \beta K} + \dfrac{2}{\delta T^2} + \dfrac{\beta}{2} \end{align}\] where (a) uses \(\lambda_1=0\). Note that \(\lambda_k J_c^{\pi^*}\geq 0\), \(\forall k\). Adding the above inequality to 39 at both sides, we, therefore, have, \[\label{eq:bound95Jc2} \begin{align} &\mathbf{E}\bigg[J_r^{\pi^*}-\frac{1}{K}\sum_{k=1}^{K}J_r(\theta_k)\bigg]+\frac{2}{\delta}\mathbf{E}\bigg[\frac{1}{K}\sum_{k=1}^{K}-J_c(\theta_k)\bigg]\leq \sqrt{\epsilon_{\mathrm{bias}}} +\frac{2}{\delta^2\beta K} +\frac{2}{T^2\delta}+ \frac{\beta}{2}\\ &+G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right) + \dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}+\beta\right)\\ &+ \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}\delta }\bigg) \end{align}\tag{44}\] Since the functions \(\{J_g(\theta_k)\}, k\in\{0, \cdots, K-1\}, g\in\{r, c\}\) are linear in occupancy measure, there exists a policy \(\bar{\pi}\) such that the following holds \(\forall g\in\{r, c\}\). \[\label{eq95avg95value} \frac{1}{K}\sum_{k=1}^{K}J_g(\theta_k)=J_g^{\bar\pi}\tag{45}\] Injecting the above relation to 44 , we have \[\begin{align} &\mathbf{E}\bigg[J_r^{\pi^*}-J_r^{\bar\pi}\bigg]+\frac{2}{\delta}\mathbf{E}\bigg[-J_c^{\bar\pi}\bigg]\leq \sqrt{\epsilon_{\mathrm{bias}}}+\frac{2}{\delta^2\beta K} +\frac{2}{T^2\delta}+ \frac{\beta}{2} \\ &+G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{(1-\xi)/2}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{1-\xi}}+\beta\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}\delta }\bigg) \end{align}\] By Lemma 18, we arrive at, \[\label{eq9583} \begin{align} &\mathbf{E}\bigg[-J_c^{\bar\pi}\bigg]\\ &\leq \delta\sqrt{\epsilon_{\mathrm{bias}}}+\frac{2}{\delta\beta K} +\frac{2}{T^2}+\frac{\delta\beta}{2}+G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\delta\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{ T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{ T^{(1-\xi)/2}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{AG^2t_{\mathrm{mix}}^2}{\delta T^{\xi}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta T^{1-\xi}}+\delta\beta\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{1-\xi}}\bigg)\\ &\leq \delta\sqrt{\epsilon_{\mathrm{bias}}} + \tilde{\mathcal{O}}\left(\dfrac{2t_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta \beta T^{1-\xi}}\right) + G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\delta\sqrt{\beta}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{ T^{\xi/2}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{ T^{(1-\xi)/2}}\right) \end{align}\tag{46}\]

The last inequality presents only the dominant terms of \(\beta\) and \(T\).

9.5.3 Optimal Choice of \(\beta\) and \(\xi\)↩︎

If we choose \(\beta=T^{-\eta}\) for some \(\eta\in(0,1)\), then following 42 and 46 , we can write, \[\begin{align} \frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg(J_r^{\pi^*}-J_r(\theta_k)\bigg)&\leq \sqrt{\epsilon_{\mathrm{bias}}} + \tilde{\mathcal{O}}\left(T^{-\eta/2}+T^{-\xi/2}+T^{-(1-\xi)/2}\right),\\ \mathbf{E}\left[\frac{1}{K}\sum_{k=1}^{K}-J_c(\theta_k)\right]&\leq \delta\sqrt{\epsilon_{\mathrm{bias}}} + \tilde{\mathcal{O}}\left(T^{-(1-\xi-\eta)}+T^{-\eta/2}+T^{-\xi/2}+T^{-(1-\xi)/2}\right) \end{align}\]

Clearly, the optimal values of \(\eta\) and \(\xi\) can be obtained by solving the following optimization. \[\begin{align} {\max}_{(\eta, \xi)\in (0,1)^2} \min \left\lbrace 1-\xi-\eta, \dfrac{\eta}{2}, \dfrac{\xi}{2}, \dfrac{1-\xi}{2} \right\rbrace \end{align}\]

One can easily verify that \((\xi, \eta) = \left(2/5, 2/5\right)\) is the solution of the above optimization. Therefore, the convergence rate of the objective function can be written as follows.

\[\label{eq95bound95Jr95final95par95substituted} \begin{align} &\frac{1}{K}\sum_{k=1}^{K}\mathbf{E}\bigg(J_r^{\pi^*}-J_r(\theta_k)\bigg)\\ &\leq \sqrt{\epsilon_{\mathrm{bias}}} + G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\dfrac{1}{T^{1/5}}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta T^{1/5}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta T^{3/10}}\right)+ \mathcal{O}\left(\dfrac{1}{\delta T^2}+\dfrac{1}{T^{2/5}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{\delta^2+AG^2t_{\mathrm{mix}}^2}{\delta^2 T^{2/5}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2 T^{3/5}}\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{3/5}\delta }\bigg)\\ &\leq \sqrt{\epsilon_{\mathrm{bias}}} + \dfrac{\sqrt{A}G^2t_{\mathrm{mix}}}{\delta}\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(T^{-1/5}\right) \end{align}\tag{47}\]

The last expression only considers the dominant terms of \(T\). Similarly, the constraint violation rate can be computed as, \[\begin{align} \label{eq958795new} \begin{aligned} &\mathbf{E}\bigg[\frac{1}{K}\sum_{k=1}^{K}-J_c(\theta_k)\bigg] \\ &\leq \delta\sqrt{\epsilon_{\mathrm{bias}}}+ \tilde{\mathcal{O}}\left(\dfrac{t_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta T^{1/5}}+\dfrac{1}{ T^2}+\dfrac{\delta}{T^{2/5}}\right) +G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\dfrac{\delta+\sqrt{A}Gt_{\mathrm{mix}}}{ T^{1/5}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{ T^{3/10}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{\delta^2+ AG^2t_{\mathrm{mix}}^2}{\delta T^{2/5}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta T^{3/5}}\right) + \mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{T^{3/5}}\bigg)\\ &\leq \delta\sqrt{\epsilon_{\mathrm{bias}}} + \tilde{\mathcal{O}}\left(\dfrac{t_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta T^{1/5}}\right) + \sqrt{A}G^2t_{\mathrm{mix}}\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(T^{-1/5}\right) \end{aligned} \end{align}\tag{48}\] where the last expression contains only the dominant terms of \(T\). This concludes the theorem.

10 Proofs for the Regret and Violation Analysis↩︎

10.1 Proof of Lemma 8↩︎

Proof. Using Taylor’s expansion, we can write the following \(\forall (s, a)\in \mathcal{S}\times \mathcal{A}\), \(\forall k\). \[\begin{align} \label{eq95pi95lipschitz} \begin{aligned} |\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_{k}}(a|s)|&=\left|(\theta_{k+1}-\theta_k)^T\nabla_{\theta}\pi_{\bar\theta}(a|s) \right| \\&=\pi_{\bar{\theta}_k}(a|s)\left|(\theta_{k+1}-\theta_k)^T\nabla_{\theta}\log \pi_{\bar{\theta}_k}(a|s) \right|\\ &\leq \pi_{\bar{\theta}_k}(a|s) \norm{\theta_{k+1}-\theta_k}\norm{\nabla_{\theta}\log \pi_{\bar{\theta}_k}(a|s)}\overset{(a)}{\leq} G\norm{\theta_{k+1}-\theta_k} \end{aligned} \end{align}\tag{49}\] where \(\bar{\theta}_k\) is some convex combination1 of \(\theta_{k}\) and \(\theta_{k+1}\) and \((a)\) results from Assumption 3. This concludes the first statement. Applying 49 and Lemma 12, we obtain the following for \(g\in\{r, c\}\). \[\begin{align} \label{eq95long9549} \begin{aligned} &\sum_{k=1}^{K}\mathbf{E}\big|J_g(\theta_{k+1}) - J_g(\theta_{k})\big| = \sum_{k=1}^{K}\mathbf{E}\left|\sum_{s,a}d^{\pi_{\theta_{k+1}}}(s)(\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_{k}}(a|s))Q_g^{\pi_{\theta_{k}}}(s, a)\right|\\ &\leq \sum_{k=1}^{K}\mathbf{E}\left[\sum_{s,a}d^{\pi_{\theta_{k+1}}}(s)\left|\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_{k}}(a|s)\right|\left|Q_g^{\pi_{\theta_{k}}}(s, a)\right|\right]\\ &\leq G\sum_{k=1}^{K}\mathbf{E}\left[\sum_{s,a}d^{\pi_{\theta_{k+1}}}(s)\Vert\theta_{k+1}-\theta_{k}\Vert|Q_g^{\pi_{\theta_{k}}}(s, a)|\right]\\ &\overset{(a)}{\leq} G\alpha\sum_{k=1}^{K}\mathbf{E}\left[\sum_{a}\underbrace{\sum_{s}d^{\pi_{\theta_{k+1}}}(s)}_{=1}\Vert\omega_k\Vert\cdot 6t_{\mathrm{mix}}\right] \overset{}{=} 6AG\alpha t_{\mathrm{mix}} \sum_{k=1}^{K}\mathbf{E}\norm{\omega_k}\\ &\overset{(b)}\leq 6AG\alpha t_{\mathrm{mix}}\sqrt{K}\left(\sum_{k=1}^{K}\mathbf{E}\norm{\omega_k}^2\right)^{\frac{1}{2}}\\ &\overset{(c)}{\leq} \mathcal{\tilde{O}}\left(\dfrac{\alpha AG}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right) \end{aligned} \end{align}\tag{50}\]

Inequality \((a)\) uses Lemma 9 and the update rule \(\theta_{k+1}=\theta_k+\alpha \omega _k\). Step \((b)\) holds by the Cauchy inequality and Jensen inequality whereas \((c)\) can be derived using \(\eqref{eq9534}\) and substituting \(K=T/H\). This establishes the second statement. Next, recall from \((\ref{eq95r95pi95theta})\) that for any policy \(\pi_{\theta}\), \(g^{\pi_{\theta}}(s) \triangleq \sum_a\pi_{\theta}(a|s)g(s, a)\). Note that, for any policy parameter \(\theta\), and any state \(s\in\mathcal{S}\), the following holds. \[\begin{align} \label{eq9549} V_g^{\pi_{\theta}}(s)=\sum_{t=0}^{\infty}\left<(P^{\pi_{\theta}})^t(s,\cdot) - d^{\pi_{\theta}}, g^{\pi_{\theta}}\right> = \sum_{t=0}^{N-1}\left<(P^{\pi_{\theta}})^t({s,\cdot}),g^{\pi_{\theta}}\right> - NJ(\theta) + \sum_{t=N}^{\infty}\left<(P^{\pi_{\theta}})^t({s,\cdot}) - d^{\pi_{\theta}},g^{\pi_{\theta}}\right>. \end{align}\tag{51}\]

Define the following quantity. \[\begin{align} \label{def95error} \delta^{\pi_{\theta}}(s, T) \triangleq \sum_{t=N}^{\infty}\norm{(P^{\pi_{\theta}})^t({s,\cdot}) - d^{\pi_{\theta}}}_1 ~~\text{where} ~N=4t_{\mathrm{mix}}(\log_2 T) \end{align}\tag{52}\]

Lemma 10 states that for sufficiently large \(T\), we have \(\delta^{\pi_{\theta}}(s, T)\leq \frac{1}{T^3}\) for any policy \(\pi_{\theta}\) and state \(s\). Combining this result with the fact that the \(g^{\pi_\theta}\) function is absolutely bounded in \([0, 1]\), we obtain, \[\begin{align} \label{eq95exp95diff95v} \begin{aligned} &\sum_{k=1}^K\mathbf{E}|V_g^{\pi_{\theta_{k+1}}}(s_k) - V_g^{\pi_{\theta_{k}}}(s_k)|\\ &\leq \sum_{k=1}^K\mathbf{E}\left|\sum_{t=0}^{N-1}\left<(P^{\pi_{\theta_{k+1}}})^t({s_k,\cdot}) - (P^{\pi_{\theta_k}})^t({s_k,\cdot}), g^{\pi_{\theta_{k+1}}}\right>\right| + \sum_{k=1}^K\mathbf{E}\left|\sum_{t=0}^{N-1}\left<(P^{\pi_{\theta_k}})^t({s_k,\cdot}), g^{\pi_{\theta_{k+1}}}-g^{\pi_{\theta_k}}\right>\right| \\ &+ N\sum_{k=1}^K\mathbf{E}|J_g(\theta_{k+1}) - J_g(\theta_{k})| + \frac{2K}{T^3}\\ &\overset{(a)}{\leq} \sum_{k=1}^K\sum_{t=0}^{N-1}\mathbf{E}\norm{ (P^{\pi_{\theta_{k+1}}})^t - (P^{\pi_{\theta_k}})^t)g^{\pi_{\theta_{k+1}}} }_{\infty} + \sum_{k=1}^K\sum_{t=0}^{N-1}\mathbf{E}\norm{g^{\pi_{\theta_{k+1}}}-g^{\pi_{\theta_k}}}_{\infty} \\ &+ \mathcal{\tilde{O}}\left(\dfrac{\alpha AG t_{\mathrm{mix}}}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right) \end{aligned} \end{align}\tag{53}\] where \((a)\) follows from 50 and substituting \(N=4t_{\mathrm{mix}}(\log_2 T)\). For the first term, note that, \[\begin{align} \label{eq95long95recursion} \begin{aligned} &\norm{ ((P^{\pi_{\theta_{k+1}}})^t - (P^{\pi_{\theta_k}})^t)g^{\pi_{\theta_{k+1}}} }_{\infty}\\ &\leq \norm{ P^{\pi_{\theta_{k+1}}}((P^{\pi_{\theta_{k+1}}})^{t-1} - (P^{\pi_{\theta_k}})^{t-1})g^{\pi_{\theta_{k+1}}} }_{\infty} + \norm{ (P^{\pi_{\theta_{k+1}}} - P^{\pi_{\theta_k}})(P^{\pi_{\theta_k}})^{t-1}g^{\pi_{\theta_{k+1}}} }_{\infty}\\ &\overset{(a)}{\leq} \norm{ ((P^{\pi_{\theta_{k+1}}})^{t-1} - (P^{\pi_{\theta_k}})^{t-1})g^{\pi_{\theta_{k+1}}} }_{\infty} + \max_s\norm{P^{\pi_{\theta_{k+1}}}({s,\cdot})-P^{\pi_{\theta_k}}({s,\cdot})}_1 \end{aligned} \end{align}\tag{54}\]

Inequality \((a)\) holds since every row of \(P^{\pi_{\theta_k}}\) sums to \(1\) and \(\norm{(P^{\pi_{\theta_k}})^{t-1}g^{\pi_{\theta_{k+1}}}}_{\infty}\leq 1\). Moreover, invoking 49 , and the parameter update rule \(\theta_{k+1}=\theta_k + \alpha \omega_k\), we get, \[\begin{align} \max_s\Vert P^{\pi_{\theta_{k+1}}}({s,\cdot})-P^{\pi_{\theta_k}}({s,\cdot})\Vert_1 &= \max_s\left| \sum_{s'}\sum_a(\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_k}(a|s))P(s'|s, a)\right| \\ &\leq G \norm{\theta_{k+1}-\theta_k}\max_s\left| \sum_{s'}\sum_a P(s'|s, a)\right| \\ &\leq \alpha A G\norm{\omega_k} \end{align}\]

Plugging the above result into \((\ref{eq95long95recursion})\) and using a recursive argument, we get, \[\begin{align} \norm{ ((P^{\pi_{\theta_{k+1}}})^t - (P^{\pi_{\theta_k}})^t)g^{\pi_{\theta_{k+1}}} }_{\infty} &\leq \sum_{t'=1}^{t} \max_s\norm{P^{\pi_{\theta_{k+1}}}({s,\cdot})-P^{\pi_{\theta_k}}({s,\cdot})}_1\\ &\leq \sum_{t'=1}^{t}\alpha AG\norm{\omega_k} \leq \alpha t A G\norm{\omega_k} \end{align}\]

Finally, we have \[\begin{align} \label{eq95app9554} \begin{aligned} \sum_{k=1}^K\sum_{t=0}^{N-1} &\mathbf{E}\norm{ ((P^{\pi_{\theta_{k+1}}})^t - (P^{\pi_{\theta_k}})^t)g^{\pi_{\theta_{k+1}}} }_{\infty}\\ &\leq \sum_{k=1}^K\sum_{t=0}^{N-1}\alpha t A G\norm{\omega_k}\\ &\leq \mathcal{O}(\alpha A G N^2) \sum_{k=1}^K\mathbf{E}\norm{\omega_k}\\ &\leq \mathcal{O}(\alpha A G N^2\sqrt{K}) \left(\sum_{k=1}^K\mathbf{E}\norm{\omega_k}^2\right)^{\frac{1}{2}}\\ &\overset{(a)}{=} \mathcal{\tilde{O}}\left(\dfrac{\alpha AG t_{\mathrm{mix}}}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right) \end{aligned} \end{align}\tag{55}\] where \((a)\) follows from 20 . Moreover, notice that, \[\label{eq95app9555} \begin{align} \sum_{k=1}^{K}\sum_{t=0}^{N-1}\mathbf{E}\norm{g^{\pi_{\theta_{k+1}}}-g^{\pi_{\theta_{k}}}}_{\infty}&\overset{}{\leq} \sum_{k=1}^{K}\sum_{t=0}^{N-1}\mathbf{E}\left[\max_s\left|\sum_a(\pi_{\theta_{k+1}}(a|s)-\pi_{\theta_{k}}(a|s))g(s,a)\right|\right]\\ &\overset{(a)}{\leq}\alpha AGN \sum_{k=1}^{K} \mathbf{E}\norm{\omega_k}\\ &\leq \alpha AGN\sqrt{K} \left(\sum_{k=1}^{K} \mathbf{E}\norm{\omega_k}^2\right)^{\frac{1}{2}}\\ &\overset{(b)}{\leq} \mathcal{\tilde{O}}\left(\dfrac{\alpha AG}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right) \end{align}\tag{56}\] where \((a)\) follows from 49 and the update rule \(\theta_{k+1}=\theta_k + \alpha \omega_k\) whereas \((b)\) is a consequence of 20 . Combining 53 , 55 , and 56 , we establish the third statement. ◻

10.2 Proof of Theorem 2↩︎

Proof. Recall the decomposition of the regret in section 5 and take the expectation. \[\begin{align} \begin{aligned} &\mathbf{E}[\mathrm{Reg}_T] = \sum_{t=0}^{T-1} \left(J_r^{\pi^*} - r(s_t, a_t)\right)=H\sum_{k=1}^{K}\left(J_r^{\pi^*}-J_r({\theta_k})\right)+\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \left(J_r(\theta_k)-r(s_t, a_t)\right)\\ &=H\sum_{k=1}^{K}\left(J_r^{\pi^*}-J_r({\theta_k})\right)+\mathbf{E}\left[\sum_{k=1}^{K-1} V_r^{\pi_{\theta_{k+1}}}(s_{kH})-V_r^{\pi_{\theta_k}}(s_{kH})\right]+\mathbf{E}\left[ V_r^{\pi_{\theta_K}}(s_{T})-V_r^{\pi_{\theta_0}}(s_{0})\right] \end{aligned} \end{align}\] Using the result in 47 , Lemma 8 and Lemma 9, we get, \[\begin{align} \begin{aligned} &\mathbf{E}[\mathrm{Reg}_T]\leq T\sqrt{\epsilon_{\mathrm{bias}}}+G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(T^{\frac{4}{5}}+\dfrac{\sqrt{A}Gt_{\mathrm{mix}}}{\delta }T^{\frac{4}{5}}+\dfrac{\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}}{\delta}T^{\frac{7}{10}}\right)+ \mathcal{O}\left(\dfrac{1}{T}+T^{\frac{3}{5}}\right)\\ &+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{\delta^2+AG^2t_{\mathrm{mix}}^2}{\delta^2}T^{\frac{3}{5}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta^2}T^{\frac{2}{5}}\right) +\mathcal{\tilde{O}}\bigg(\frac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))]}{\delta }T^{\frac{2}{5}}\bigg) \\ &+ \mathcal{\tilde{O}}\left(\dfrac{\alpha AG t_{\mathrm{mix}}}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right)+\mathcal{O}(t_{\mathrm{mix}}) \end{aligned} \end{align}\] Similarly, for the constraint violation, we have \[\begin{align} \begin{aligned} \mathbf{E}[\mathrm{Vio}_T] &= \sum_{t=0}^{T-1} \left(- c(s_t, a_t)\right)=H\sum_{k=1}^{K}-J_c({\theta_k})+\sum_{k=1}^{K}\sum_{t\in\mathcal{I}_k} \left(J_c(\theta_k)-c(s_t, a_t)\right)\\ &=-H\sum_{k=1}^{K}J_c({\theta_k})+\mathbf{E}\left[\sum_{k=1}^{K-1} V_c^{\pi_{\theta_{k+1}}}(s_{kH})-V_c^{\pi_{\theta_k}}(s_{kH})\right]+\mathbf{E}\left[ V_c^{\pi_{\theta_K}}(s_{T})-V_c^{\pi_{\theta_0}}(s_{0})\right] \end{aligned} \end{align}\] Using the result in 48 , Lemma 8 and Lemma 9, we get, \[\begin{align} \begin{aligned} \mathbf{E}[\mathrm{Vio}_T]&\leq T\delta\sqrt{\epsilon_{\mathrm{bias}}}+G\left(1+\dfrac{1}{\mu_F}\right)\tilde{\mathcal{O}}\left(\left[\delta+\sqrt{A}Gt_{\mathrm{mix}}\right]T^{\frac{4}{5}} + \sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{7}{10}}\right)\\ &+ \mathcal{O}\left(\dfrac{t_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta}T^{\frac{4}{5}}+\frac{1}{\delta T}+\delta T^{\frac{3}{5}}\right)+\dfrac{B}{L}\tilde{\mathcal{O}}\left(\dfrac{\delta^2+AG^2t_{\mathrm{mix}}^2}{\delta}T^{\frac{3}{5}}+\dfrac{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}{\delta}T^{\frac{2}{5}}\right)\\ &+\mathcal{\tilde{O}}\bigg(Lt_{\mathrm{mix}}t_{\mathrm{hit}}\mathbf{E}_{s\sim d^{\pi^*}}[KL(\pi^*(\cdot\vert s)\Vert\pi_{\theta_1}(\cdot\vert s))] T^{\frac{2}{5}}\bigg) \\ &+ \mathcal{\tilde{O}}\left(\dfrac{\alpha AG t_{\mathrm{mix}}}{\delta t_{\mathrm{hit}}}\left[\left(\sqrt{A}G t_{\mathrm{mix}}+\delta\right)T^{\frac{2}{5}}+\sqrt{Lt_{\mathrm{mix}}t_{\mathrm{hit}}}T^{\frac{3}{10}}\right]\right)+\mathcal{O}(t_{\mathrm{mix}}) \end{aligned} \end{align}\]

This concludes the theorem. ◻

11 Some Auxiliary Lemmas for the Proofs↩︎

Lemma 9. [17] For any ergodic MDP with mixing time \(t_{\mathrm{mix}}\), the following holds \(\forall (s, a)\in\mathcal{S}\times \mathcal{A}\), any policy \(\pi\) and \(\forall g\in\{r, c\}\). \[\begin{align} (a) |V_g^{\pi}(s)|\leq 5 t_{\mathrm{mix}},~~ (b) |Q_g^{\pi}(s, a)|\leq 6 t_{\mathrm{mix}} \end{align}\]

Lemma 10. [17] Let \(\delta^{\pi}(\cdot, T)\) be defined as written below for an arbitrary policy \(\pi\). \[\begin{align} \label{def95error95aux951} \delta^{\pi}(s, T) \triangleq \sum_{t=N}^{\infty}\norm{(P^{\pi})^t({s,\cdot}) - d^{\pi}}_1, ~\forall s\in\mathcal{S} ~~\text{where} ~N=4t_{\mathrm{mix}}(\log_2 T) \end{align}\tag{57}\]

If \(t_{\mathrm{mix}}<T/4\), we have the following inequality \(\forall s\in\mathcal{S}\): \(\delta^{\pi}(s, T)\leq \frac{1}{T^3}\).

Lemma 11. [17] Let \(\mathcal{I}=\{t_1+1,t_1+2,\cdots,t_2\}\) be a certain period of an epoch \(k\) of Algorithm 2 with length \(N\). Then for any \(s\), the probability that the algorithm never visits \(s\) in \(\mathcal{I}\) is upper bounded by \[\left(1-\frac{3d^{\pi_{\theta_k}}(s)}{4}\right)^{\left\lfloor\frac{\lfloor \mathcal{I}\rfloor}{N}\right\rfloor}\]

Lemma 12. [17] The difference of the values of the function \(J_g\), \(g\in\{r, c\}\) at policies \(\pi\) and \(\pi'\), is \[J_g^{\pi}-J_g^{\pi'}=\sum_{s}\sum_{a}d^{\pi}(s)(\pi(a|s)-\pi'(a|s))Q_g^{\pi'}(s,a)\]

Lemma 13. [6] The term \(\hat{J}_c(\theta)\) for any \(\theta\in\Theta\) is a good estimator of \(J_c(\theta)\), which means \[\big|\mathbf{E}[\hat{J}_c(\theta)]-J_c(\theta)\big|\leq \frac{1}{T^2}\]

Lemma 14. [36] Let \(\theta\in\Theta\) be a policy parameter. Fix a trajectory \(z=\{(s_t, a_t, r_t, s_{t+1})\}_{t\in\mathbb{N}}\) generated by following the policy \(\pi_{\theta}\) starting from some initial state \(s_0\sim\rho\). Let, \(\nabla L(\theta)\) be the gradient that we wish to estimate over \(z\), and \(l(\theta, \cdot)\) is a function such that \(\mathbf{E}_{z\sim d^{\pi_{\theta}}, \pi_{\theta}}l(\theta, z)=\nabla L(\theta)\). Assume that \(\norm{l(\theta, z)}, \norm{\nabla L(\theta)}\leq G_L\), \(\forall \theta\in\Theta\), \(\forall z\in \mathcal{S}\times \mathcal{A}\times \mathbb{R}\times \mathcal{S}\). Define \(l^{Q}=\frac{1}{Q}\sum_{i=1}^Q l(\theta, z_i)\). If \(P=2t_{\mathrm{mix}}\log T\), then the following holds as long as \(Q\leq T\), \[\begin{align} \mathbf{E}\left[\norm{l^{Q}-\nabla L(\theta)}^2\right]\leq \mathcal{O}\left(G_L^2\log\left(PQ\right)\dfrac{P}{Q}\right) \end{align}\]

Lemma 15 (Strong duality). [37] For convenience, we rewrite the unparameterized problem 2 . \[\label{eq:rewrite95unparameterized} \begin{align} \max_{\pi\in\Pi} ~& J_r^{\pi} \\ \text{s.t.} ~& J_c^{\pi}\geq 0 \end{align}\tag{58}\]

Define \(\pi^*\) as the optimal solution to the above problem. Define the associated dual function as \[J_D^{\lambda}\triangleq\max_{\pi\in\Pi} J_r^{\pi}+\lambda J_c^{\pi}\] and denote \(\lambda^*=\arg\min_{\lambda\geq 0} J_D^{\lambda}\). We have the following strong duality property for the unparameterized problem whenever Assumption 2 holds. \[\label{eq:duality} J_r^{\pi^*} = J_D^{\lambda^*}\tag{59}\]

Although the strong duality holds for the unparameterized problem, the same is not true for parameterized class \(\{\pi_\theta|\theta\in \Theta\}\). To formalize this statement, define the dual function associated with the parameterized problem as follows. \[J_{D,\Theta}^{\lambda}\triangleq\max_{\theta\in \Theta} J_r(\theta)+\lambda J_c(\theta)\] and denote \(\lambda_\Theta^*=\arg\min_{\lambda\geq 0} J_{D,\Theta}^{\lambda}\). The lack of strong duality states that, in general, \(J_{D, \Theta}^{\lambda_{\Theta}^*}\neq J_r(\theta^*)\) where \(\theta^*\) is a solution of the parameterized constrained optimization 3 . However, the parameter \(\lambda_\Theta^*\), as we demonstrate below, must obey some restrictions.

Lemma 16. Under Assumption 2, the optimal dual variable for the parameterized problem is bounded as \[0 \leq \lambda_\Theta^* \leq \frac{J_r^{\pi^*}-J_r(\bar{\theta})}{\delta}\leq \dfrac{1}{\delta}\]

Proof. The proof follows the approach in [37], but is revised to the general parameterization setup. Let \(\Lambda_a\triangleq\{ \lambda\geq 0\,\vert\, J_{D,\Theta}^\lambda \leq a \}\) be a sublevel set of the dual function for \(a\in\mathbb{R}\). If \(\Lambda_a\) is non-empty, then for any \(\lambda \in\Lambda_a\), \[a\geq J_{D,\Theta}^\lambda\geq J_r(\bar{\theta})+\lambda J_c(\bar{\theta})\geq J_r(\bar{\theta})+\lambda \delta\] where \(\bar{\theta}\) is a Slater point in Assumption 2. Thus, \(\lambda \leq (a -J_r(\bar{\theta}))/\delta\). If we take \(a= J_{D,\Theta}^{\lambda_\Theta^*}\leq J_{D,\Theta}^{\lambda^*} \leq J_D^{\lambda^*}=J_r^{\pi^*}\), then we have \(\lambda_\Theta^*\in \Lambda_a\), which proves the Lemma. The last inequality holds since \(J_r^{\pi}\in [0,1]\) for any policy, \(\pi\). ◻

Since the above inequality holds for arbitrary \(\Theta\), we also have, \(0\leq \lambda^*\leq \frac{1}{\delta}\). Define \(v(\tau)\triangleq\max_{\pi\in\Pi}\{J_r^\pi|J_c^\pi\geq \tau\}\). Using the strong duality property of the unparameterized problem 58 , we establish the following property of the function, \(v(\cdot)\).

Lemma 17. Assume that the Assumption 2 holds, we have for any \(\tau\in\mathbb{R}\), \[v(0)-\tau\lambda^* \geq v(\tau)\]

Proof. By the definition of \(v(\tau)\), we have \(v(0) = J_r^{\pi^*}\). With a slight abuse of notation, denote \(J_{\mathrm{L}}(\pi,\lambda)=J_r^{\pi}+\lambda J_c^{\pi}\). By the strong duality stated in Lemma 15, we have the following for any \(\pi\in\Pi\). \[J_{\mathrm{L}}(\pi,\lambda^*)\leq \max_{\pi\in\Pi} J_{\mathrm{L}}(\pi,\lambda^*)\overset{Def}=J_D^{\lambda^*}\overset{\eqref{eq:duality}}=J_r^{\pi^*}=v(0)\] Thus, for any \(\pi\in\{ \pi\in\Pi \,\vert\,J_c^{\pi} \geq \tau \}\), \[\begin{align} v(0)-\tau\lambda^*&\geq J_{\mathrm{L}}(\pi,\lambda^*)-\tau\lambda^*\\ &=J_r^{\pi}+\lambda^*(J_c^\pi-\tau) \geq J_r^{\pi} \end{align}\] Maximizing the right-hand side of this inequality over \(\{ \pi\in\Pi \vert J_{c}^{\pi}\geq \tau \}\) yields \[\label{eq46opt1} v(0)- \tau\lambda^* \geq v(\tau)\tag{60}\] This completes the proof of the lemma. ◻

We note that a similar result was shown in [38]. However, the setup of the stated paper is different from that of ours. Specifically, [38] considers a tabular setup with peak constraints. Note that Lemma 17 has no direct connection with the parameterized setup since its proof uses strong duality and the function, \(v(\cdot)\), is defined via a constrained optimization over the entire policy set, \(\Pi\), rather than the parameterized policy set. Interestingly, however, the relationship between \(v(\tau)\) and \(v(0)\) leads to the lemma stated below which turns out to be pivotal in establishing regret and constraint violation bounds in the parameterized setup.

Lemma 18. Let Assumption 2 hold. For any constant \(C\geq 2\lambda^*\), if there exists a \(\pi\in\Pi\) and \(\zeta>0\) such that \(J_r^{\pi^*}-J_r^{\pi}+C[-J_c^{\pi}]\leq \zeta\), then \[-J_c^{\pi}\leq 2\zeta/C\]

Proof. Let \(\tau = J^{\pi}_c\). Using the definition of \(v(\tau)\), one can write, \[\label{eq46opt2} J_r^{\pi}\leq v(\tau)\tag{61}\] Combining Eq. 60 and 61 , we obtain the following. \[J_r^{\pi}-J_r^{\pi^*}\leq v(\tau)-v(0)\leq -\tau\lambda^*\] The condition in the Lemma leads to, \[(C - \lambda^*) (-\tau) = {\tau} \lambda^*+C (-\tau) \leq J_r^{\pi^*}-J_r^{\pi}+C [-J_c^{\pi}]\leq \zeta\] Finally, we have, \[-\tau\leq \frac{\zeta}{C-\lambda^*}\leq\frac{2\zeta}{C}\] which completes the proof. ◻

References↩︎

[1]
Liu, C., N. Geng, et al. Cmix: Deep multi-agent reinforcement learning with peak and average constraints. In Machine Learning and Knowledge Discovery in Databases. Research Track: European Conference, ECML PKDD 2021, Bilbao, Spain, September 13–17, 2021, Proceedings, Part I 21, pages 157–173. Springer, 2021.
[2]
Al-Abbasi, A. O., A. Ghosh, V. Aggarwal. Deeppool: Distributed model-free algorithm for ride-sharing using deep reinforcement learning. IEEE Transactions on Intelligent Transportation Systems, 20(12):4714–4727, 2019.
[3]
Ling, L., W. U. Mondal, S. V. Ukkusuri. Cooperating graph neural networks with deep reinforcement learning for vaccine prioritization. arXiv preprint arXiv:2305.05163, 2023.
[4]
Bai, Q., A. S. Bedi, V. Aggarwal. Achieving zero constraint violation for constrained reinforcement learning via conservative natural policy gradient primal-dual algorithm. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6737–6744. 2023.
[5]
Agarwal, M., Q. Bai, V. Aggarwal. Concave utility reinforcement learning with zero-constraint violations. Transactions on Machine Learning Research, 2022.
[6]
Chen, L., R. Jain, H. Luo. Learning infinite-horizon average-reward markov decision process with constraints. In International Conference on Machine Learning, pages 3246–3270. PMLR, 2022.
[7]
Agarwal, M., Q. Bai, V. Aggarwal. Regret guarantees for model-based reinforcement learning with long-term average constraints. In Uncertainty in Artificial Intelligence, pages 22–31. PMLR, 2022.
[8]
Wei, H., X. Liu, L. Ying. A provably-efficient model-free algorithm for infinite-horizon average-reward constrained markov decision processes. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 3868–3876. 2022.
[9]
Ghosh, A., X. Zhou, N. Shroff. Achieving sub-linear regret in infinite horizon average reward constrained mdp with linear function approximation. In The Eleventh International Conference on Learning Representations. 2023.
[10]
Agarwal, A., S. M. Kakade, J. D. Lee, G. Mahajan. On the theory of policy gradient methods: Optimality, approximation, and distribution shift. The Journal of Machine Learning Research, 22(1):4431–4506, 2021.
[11]
Mondal, W. U., V. Aggarwal. Improved sample complexity analysis of natural policy gradient algorithm with general parameterization for infinite horizon discounted reward markov decision processes. In International Conference on Artificial Intelligence and Statistics (AISTATS). 2024.
[12]
—. Sample-efficient constrained reinforcement learning with general parameterization. arXiv preprint arXiv:2405.10624, 2024.
[13]
Bai, Q., W. U. Mondal, V. Aggarwal. Regret analysis of policy gradient algorithm for infinite horizon average reward markov decision processes. In Proceedings of the AAAI Conference on Artificial Intelligence. 2024.
[14]
Ding, D., K. Zhang, T. Basar, M. Jovanovic. Natural policy gradient primal-dual method for constrained markov decision processes. Advances in Neural Information Processing Systems, 33:8378–8390, 2020.
[15]
Agrawal, S., R. Jia. Optimistic posterior sampling for reinforcement learning: worst-case regret bounds. Advances in Neural Information Processing Systems, 30, 2017.
[16]
Auer, P., T. Jaksch, R. Ortner. Near-optimal regret bounds for reinforcement learning. Advances in neural information processing systems, 21, 2008.
[17]
Wei, C.-Y., M. J. Jahromi, H. Luo, H. Sharma, R. Jain. Model-free reinforcement learning in infinite-horizon average-reward markov decision processes. In International conference on machine learning, pages 10170–10180. PMLR, 2020.
[18]
Bai, Q., A. S. Bedi, M. Agarwal, A. Koppel, V. Aggarwal. Achieving zero constraint violation for constrained reinforcement learning via primal-dual approach. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 3682–3689. 2022.
[19]
Xu, T., Y. Liang, G. Lan. Crpo: A new approach for safe reinforcement learning with convergence guarantee. In International Conference on Machine Learning, pages 11480–11491. PMLR, 2021.
[20]
Efroni, Y., S. Mannor, M. Pirotta. Exploration-exploitation in constrained mdps. arXiv preprint arXiv:2003.02189, 2020.
[21]
Qiu, S., X. Wei, Z. Yang, J. Ye, Z. Wang. Upper confidence primal-dual reinforcement learning for cmdp with adversarial loss. Advances in Neural Information Processing Systems, 33:15277–15287, 2020.
[22]
Germano, J., F. E. Stradi, G. Genalti, M. Castiglioni, A. Marchesi, N. Gatti. A best-of-both-worlds algorithm for constrained mdps with long-term constraints. arXiv preprint arXiv:2304.14326, 2023.
[23]
Pesquerel, F., O.-A. Maillard. Imed-rl: Regret optimal learning of ergodic markov decision processes. In NeurIPS 2022-Thirty-sixth Conference on Neural Information Processing Systems. 2022.
[24]
Gong, H., M. Wang. A duality approach for regret minimization in average-award ergodic markov decision processes. In Learning for Dynamics and Control, pages 862–883. PMLR, 2020.
[25]
Sutton, R. S., D. McAllester, S. Singh, Y. Mansour. Policy gradient methods for reinforcement learning with function approximation. Advances in neural information processing systems, 12, 1999.
[26]
Lattimore, T., C. Szepesvári. Bandit algorithms. Cambridge University Press, 2020.
[27]
Agarwal, A., S. M. Kakade, J. D. Lee, G. Mahajan. Optimality and approximation with policy gradient methods in markov decision processes. In Conference on Learning Theory, pages 64–66. PMLR, 2020.
[28]
Zhang, J., C. Ni, C. Szepesvari, M. Wang. On the convergence and sample efficiency of variance-reduced policy gradient method. Advances in Neural Information Processing Systems, 34:2228–2240, 2021.
[29]
Liu, Y., K. Zhang, T. Basar, W. Yin. An improved analysis of (variance-reduced) policy gradient and natural policy gradient methods. Advances in Neural Information Processing Systems, 33:7624–7636, 2020.
[30]
Jin, C., Z. Yang, Z. Wang, M. I. Jordan. Provably efficient reinforcement learning with linear function approximation. In J. Abernethy, S. Agarwal, eds., Proceedings of Thirty Third Conference on Learning Theory, vol. 125 of Proceedings of Machine Learning Research, pages 2137–2143. PMLR, 2020.
[31]
Wang, L., Q. Cai, Z. Yang, Z. Wang. Neural policy gradient methods: Global optimality and rates of convergence. In International Conference on Learning Representations. 2019.
[32]
Yuan, R., R. M. Gower, A. Lazaric. A general sample complexity analysis of vanilla policy gradient. In International Conference on Artificial Intelligence and Statistics, pages 3332–3380. PMLR, 2022.
[33]
Fatkhullin, I., A. Barakat, A. Kireeva, N. He. Stochastic policy gradient methods: Improved sample complexity for fisher-non-degenerate policies. In International Conference on Machine Learning, pages 9827–9869. PMLR, 2023.
[34]
Mondal, W. U., V. Aggarwal, S. V. Ukkusuri. Mean-field control based approximation of multi-agent reinforcement learning in presence of a non-decomposable shared global state. Transactions on Machine Learning Research, 2023.
[35]
Aggarwal, V., W. U. Mondal, Q. Bai. Constrained reinforcement learning with average reward objective: Model-based and model-free algorithms. Found. Trends Optim., 6(4):193–298, 2024.
[36]
Dorfman, R., K. Y. Levy. Adapting to mixing time in stochastic optimization with markovian data. In International Conference on Machine Learning, pages 5429–5446. PMLR, 2022.
[37]
Ding, D., K. Zhang, J. Duan, T. Başar, M. R. Jovanović. Convergence and sample complexity of natural policy gradient primal-dual methods for constrained mdps. arXiv preprint arXiv:2206.02346, 2022.
[38]
Bai, Q., V. Aggarwal, A. Gattami. Provably sample-efficient model-free algorithm for mdps with peak constraints. Journal of Machine Learning Research, 24(60):1–25, 2023.

  1. Note that, in general, \(\bar{\theta}_k\) is dependent on \((s, a)\).↩︎