On the Theory of Policy Gradient Methods: Optimality, Approximation, and Distribution Shift

Alekh Agarwal, Sham M. Kakade, Jason D. Lee, Gaurav Mahajan

Introduction

Policy gradient methods have a long history in the reinforcement learning (RL) literature (Williams, 1992; Sutton et al., 1999; Konda and Tsitsiklis, 2000; Kakade, 2001) and are an attractive class of algorithms as they are applicable to any differentiable policy parameterization; admit easy extensions to function approximation; easily incorporate structured state and action spaces; are easy to implement in a simulation based, model-free manner. Owing to their flexibility and generality, there has also been a flurry of improvements and refinements to make these ideas work robustly with deep neural network based approaches (see e.g. Schulman et al. (2015, 2017)).

Despite the large body of empirical work around these methods, their convergence properties are only established at a relatively coarse level; in particular, the folklore guarantee is that these methods converge to a stationary point of the objective, assuming adequate smoothness properties hold and assuming either exact or unbiased estimates of a gradient can be obtained (with appropriate regularity conditions on the variance). However, this local convergence viewpoint does not address some of the most basic theoretical convergence questions, including: 1) if and how fast they converge to a globally optimal solution (say with a sufficiently rich policy class); 2) how they cope with approximation error due to using a restricted class of parametric policies; or 3) their finite sample behavior. These questions are the focus of this work.

Overall, the results of this work place policy gradient methods under a solid theoretical footing, analogous to the global convergence guarantees of iterative value function based algorithms.

This work focuses on first-order and quasi second-order policy gradient methods which directly work in the space of some parameterized policy class (rather than value-based approaches). We characterize the computational, approximation, and sample size properties of these methods in the context of a discounted Markov Decision Process (MDP). We focus on: 1) tabular policy parameterizations, where there is one parameter per state-action pair so the policy class is complete in that it contains the optimal policy, and 2) function approximation, where we have a restricted class or parametric policies which may not contain the globally optimal policy. Note that policy gradient methods for discrete action MDPs work in the space of stochastic policies, which permits the policy class to be differentiable. We now discuss our contributions in the both of these contexts.

We consider three algorithms: two of which are first order methods, projected gradient ascent (on the simplex) and gradient ascent (with a softmax policy parameterization); and the third algorithm, natural policy gradient ascent, can be viewed as a quasi second-order method (or preconditioned first-order method). Table 1 summarizes our main results in this case: upper bounds on the number of iterations taken by these algorithms to find an ϵ\epsilon-optimal policy, when we have access to exact policy gradients.

Arguably, the most natural starting point for an analysis of policy gradient methods is to consider directly doing gradient ascent on the policy simplex itself and then to project back onto the simplex if the constraint is violated after a gradient update; we refer to this algorithm as projected gradient ascent on the simplex. Using a notion of gradient domination (Polyak, 1963), our results provably show that any first-order stationary point of the value function results in an approximately optimal policy, under certain regularity assumptions; this allows for a global convergence analysis by directly appealing to standard results in the non-convex optimization literature.

A more practical and commonly used parameterization is the softmax parameterization, where the simplex constraint is explicitly enforced by the exponential parameterization, thus avoiding projections. This work provides the first global convergence guarantees using only first-order gradient information for the widely-used softmax parameterization. Our first result for this parameterization establishes the asymptotic convergence of the policy gradient algorithm; the analysis challenge here is that the optimal policy (which is deterministic) is attained by sending the softmax parameters to infinity.

In order to establish a finite time, convergence rate to optimality for the softmax parameterization, we then consider a log barrier regularizer and provide an iteration complexity bound that is polynomial in all relevant quantities. The use of our log barrier regularizer is critical to avoiding the issue of gradients becomingly vanishingly small at suboptimal near-deterministic policies, an issue of significant practical relevance. The log barrier regularizer can also be viewed as using a relative entropy regularizer; here, we note the general approach of entropy based regularization is common in practice (e.g. see (Williams and Peng, 1991; Mnih et al., 2016; Peters et al., 2010; Abdolmaleki et al., 2018; Ahmed et al., 2019)). One notable distinction, which we discuss later, is that our analysis is for the log barrier regularization rather than the entropy regularization.

For these aforementioned algorithms, our convergence rates depend on the optimization measure having coverage over the state space, as measured by the distribution mismatch coefficient D∞D_{\infty} (see Table 1 caption). In particular, for the convergence rates shown in Table 1 (for the aforementioned algorithms), we assume that the optimization objective is the expected (discounted) cumulative value where the initial state is sampled under some distribution, and D∞D_{\infty} is a measure of the coverage of this initial distribution. Furthermore, we provide a lower bound that shows such a dependence is unavoidable for first-order methods, even when exact gradients are available.

We then consider the Natural Policy Gradient (NPG) algorithm (Kakade, 2001) (also see Bagnell and Schneider (2003); Peters and Schaal (2008)), which can be considered a quasi second-order method due to the use of its particular preconditioner, and provide an iteration complexity to achieve an ϵ\epsilon-optimal policy that is at most 2(1−γ)2ϵ\frac{2}{(1-\gamma)^{2}\epsilon} iterations, improving upon the previous related results of (Even-Dar et al., 2009; Geist et al., 2019) (see Section 2). Note the convergence rate has no dependence on the number of states or the number of actions, nor does it depend on the distribution mismatch coefficient D∞D_{\infty}. We provide a simple and concise proof for the convergence rate analysis by extending the approach developed in (Even-Dar et al., 2009), which uses a mirror descent style of analysis (Nemirovsky and Yudin, 1983; Cesa-Bianchi and Lugosi, 2006) and also handles the non-concavity of the policy optimization problem.

This fast and dimension free convergence rate shows how the variable preconditioner in the natural gradient method improves over the standard gradient ascent algorithm. The dimension free aspect of this convergence rate is worth reflecting on, especially given the widespread use of the natural policy gradient algorithm along with variants such as the Trust Region Policy Optimization (TRPO) algorithm (Schulman et al., 2015); our results may help to provide analysis of a more general family of entropy based algorithms (see for example Neu et al. (2017)).

We now summarize our results with regards to policy gradient methods in the setting where we work with a restricted policy class, which may not contain the optimal policy. In this sense, these methods can be viewed as approximate methods. Table 2 provides a summary along with the comparisons to some relevant approximate dynamic programming methods.

Our results are also suggestive that a broader class of incremental algorithms — such as CPI (Kakade and Langford, 2002), PSDP (Bagnell et al., 2004), and MD-MPI Geist et al. (2019) which make small changes to the policy from one iteration to the next — may also permit a sharper analysis, where the dependence of worst-case density ratios can be avoided through an appropriate approximation/estimation decomposition; this is an interesting direction for future work (a point which we return to in Section 7). One significant advantage of NPG is that the explicit parametric policy representation in NPG (and other policy gradient methods) leads to a succinct policy representation in comparison to CPI, PSDP, or related boosting-style methods (Scherrer and Geist, 2014), where the representation complexity of the policy of the latter class of methods grows linearly in the number of iterations (since these methods add one policy to the ensemble per iteration). This representation complexity is likely why the latter class of algorithms are less widely used in practice.

Related Work

We now discuss related work, roughly in the order which reflects our presentation of results in the previous section.

For the direct policy parameterization in the tabular case, we make use of a gradient domination-like property, namely any first-order stationary point of the policy value is approximately optimal up to a distribution mismatch coefficient. A variant of this result also appears in Theorem 2 of Scherrer and Geist (2014), which itself can be viewed as a generalization of the approach in Kakade and Langford (2002). In contrast to CPI (Kakade and Langford, 2002) and the more general boosting-based approach in Scherrer and Geist (2014), we phrase this approach as a Polyak-like gradient domination property (Polyak, 1963) in order to directly allow for the transfer of any advances in non-convex optimization to policy optimization in RL. More broadly, it is worth noting the global convergence of policy gradients for Linear Quadratic Regulators (Fazel et al., 2018) also goes through a similar proof approach of gradient domination.

Empirically, the recent work of Ahmed et al. (2019) studies entropy based regularization and shows the value of regularization in policy optimization, even with exact gradients. This is related to our use of the log barrier regularization.

For our convergence results of the natural policy gradient algorithm in the tabular setting, there are close connections between our results and the works of Even-Dar et al. (2009); Geist et al. (2019). Even-Dar et al. (2009) provides provable online regret guarantees in changing MDPs utilizing experts algorithms (also see Neu et al. (2010); Abbasi-Yadkori et al. (2019a)); as a special case, their MDP Experts Algorithm is equivalent to the natural policy gradient algorithm with the softmax policy parameterization. While the convergence result due to Even-Dar et al. (2009) was not specifically designed for this setting, it is instructive to see what it implies due to the close connections between optimization and regret (Cesa-Bianchi and Lugosi, 2006; Shalev-Shwartz et al., 2012). The Mirror Descent-Modified Policy Iteration (MD-MPI) algorithm (Geist et al., 2019) with negative entropy as the Bregman divergence results is an identical algorithm as NPG for softmax parameterization in the tabular case; Corollary 3 (Geist et al., 2019) applies to our updates, leading to a bound worse by a 1/(1−γ)1/(1-\gamma) factor and also has logarithmic dependence on ∣A∣|\mathcal{A}|. Our proof for this case is concise and may be of independent interest. Also worth noting is the Dynamic Policy Programming of Azar et al. (2012), which is an actor-critic algorithm with a softmax parameterization; this algorithm, even though not identical, comes with similar guarantees in terms of its rate (it is weaker in terms of an additional 1/(1−γ)1/(1-\gamma) factor) than the NPG algorithm.

We now turn to function approximation, starting with a discussion of iterative algorithms which make incremental updates in which the next policy is effectively constrained to be close to the previous policy, such as in CPI and PSDP (Bagnell et al., 2004). Here, the work in Scherrer and Geist (2014) show how CPI is part of broader family of boosting-style methods. Also, with regards to PSDP, the work in Scherrer (2014) shows how PSDP actually enjoys an improved iteration complexity over CPI, namely O(log⁡1/ϵopt)O(\log 1/\epsilon_{\text{opt}}) vs. O(1/ϵopt2)O(1/\epsilon_{\text{opt}}^{2}). It is worthwhile to note that both NPG and projected gradient ascent are also both incremental algorithms.

Assuming bounded concentrability coefficient, there are a notable set of provable average case guarantees for the MD-MPI algorithm (Geist et al., 2019) (see also (Azar et al., 2012; Scherrer et al., 2015)), which are stated in terms of various norms of function approximation error. MD-MPI is a class of algorithms for approximate planning under regularized notions of optimality in MDPs. Specifically, Geist et al. (2019) analyze a family of actor-critic style algorithms, where there are both approximate value functions updates and approximate policy updates. As a consequence of utilizing approximate value function updates for the critic, the guarantees of Geist et al. (2019) are stated with dependencies on concentrability coefficients.

When dealing with function approximation, computational and statistical complexities are relevant because they determine the effectiveness of approximate updates with finite samples. With regards to sample complexity, the work in Szepesvári and Munos (2005); Antos et al. (2008) provide finite sample rates (as discussed above), further generalized to actor-critic methods in Azar et al. (2012); Scherrer et al. (2015). In our policy optimization approach, the analysis of both computational and statistical complexities are straightforward, since we can leverage known statistical and computational results from the stochastic approximation literature; in particular, we use the stochastic projected gradient ascent to obtain a simple, linear time method for the critic estimation step in the natural policy gradient algorithm.

In terms of the algorithmic updates for the function approximation setting, our development of NPG bears similarity to the natural actor-critic algorithm Peters and Schaal (2008), for which some asymptotic guarantees under finite concentrability coefficients are obtained in Bhatnagar et al. (2009). While both updates seek to minimize the compatible function approximation error, we perform streaming updates based on stochastic optimization using Monte Carlo estimates for values. In contrast Peters and Schaal (2008) utilize Least Squares Temporal Difference methods (Boyan, 1999) to minimize the loss. As a consequence, their updates additionally make linear approximations to the value functions in order to estimate the advantages; our approach is flexible in allowing for wide family of smoothly differentiable policy classes (including neural policies).

Finally, we remark on some concurrent works. The work of Bhandari and Russo (2019) provides gradient domination-like conditions under which there is (asymptotic) global convergence to the optimal policy. Their results are applicable to the projected gradient ascent algorithm; they are not applicable to gradient ascent with the softmax parameterization (see the discussion in Section 5 herein for the analysis challenges). Bhandari and Russo (2019) also provide global convergence results beyond MDPs. Also, Liu et al. (2019) provide an analysis of the TRPO algorithm (Schulman et al., 2015) with neural network parameterizations, which bears resemblance to our natural policy gradient analysis. In particular, Liu et al. (2019) utilize ideas from both Even-Dar et al. (2009) (with a mirror descent style of analysis) along with Cai et al. (2019) (to handle approximation with neural networks) to provide conditions under which TRPO returns a near optimal policy. Liu et al. (2019) do not explicitly consider the case where the policy class is not complete (i.e when there is approximation). Another related work of Shani et al. (2019) considers the TRPO algorithm and provides theoretical guarantees in the tabular case; their convergence rates with exact updates are O(1/T)O(1/\sqrt{T}) for the (unregularized) objective function of interest; they also provide faster rates on a modified (regularized) objective function. They do not consider the case of infinite state spaces and function approximation. The closely related recent papers (Abbasi-Yadkori et al., 2019a, b) also consider closely related algorithms to the Natural Policy Gradient approach studied here, in an infinite horizon, average reward setting. Specifically, the EE-Politex algorithm is closely related to the Q-NPG algorithm which we study in Section 6.2, though our approach is in the discounted setting. We adopt the name Q-NPG to capture its close relationship with the NPG algorithm, with the main difference being the use of function approximation for the QQ-function instead of advantages. We refer the reader to Section 6.2 (and Remark 6.5) for more discussion of the technical differences between the two works.

Setting

A (finite) Markov Decision Process (MDP) M=(S,A,P,r,γ,ρ)M=(\mathcal{S},\mathcal{A},P,r,\gamma,\rho) is specified by: a finite state space S\mathcal{S}; a finite action space A\mathcal{A}; a transition model PP where P(s′∣s,a)P(s^{\prime}|s,a) is the probability of transitioning into state s′s^{\prime} upon taking action aa in state ss; a reward function r:S×A→r:\mathcal{S}\times\mathcal{A}\to where r(s,a)r(s,a) is the immediate reward associated with taking action aa in state ss; a discount factor γ∈[0,1)\gamma\in[0,1); a starting state distribution ρ\rho over S\mathcal{S}.

A deterministic, stationary policy π:S→A\pi:\mathcal{S}\to\mathcal{A} specifies a decision-making strategy in which the agent chooses actions adaptively based on the current state, i.e., at=π(st)a_{t}=\pi(s_{t}). The agent may also choose actions according to a stochastic policy π:S→Δ(A)\pi:\mathcal{S}\to\Delta(\mathcal{A}) (where Δ(A)\Delta(\mathcal{A}) is the probability simplex over A\mathcal{A}), and, overloading notation, we write at∼π(⋅∣st)a_{t}\sim\pi(\cdot|s_{t}).

where the expectation is with respect to the randomness of the trajectory τ\tau induced by π\pi in MM. Since we assume that r(s,a)∈r(s,a)\in, we have 0≤Vπ(s)≤11−γ0\leq V^{\pi}(s)\leq\frac{1}{1-\gamma}. We overload notation and define Vπ(ρ)V^{\pi}(\rho) as the expected value under the initial state distribution ρ\rho, i.e.

The goal of the agent is to find a policy π\pi that maximizes the expected value from the initial state, i.e. the optimization problem the agent seeks to solve is:

where the max⁡\max is over all policies. The famous theorem of Bellman and Dreyfus (1959) shows there exists a policy π⋆\pi^{\star} which simultaneously maximizes Vπ(s0)V^{\pi}(s_{0}), for all states s0∈Ss_{0}\in\mathcal{S}.

This work studies ascent methods for the optimization problem:

where {πθ∣θ∈Θ}\{\pi_{\theta}|\theta\in\Theta\} is some class of parametric (stochastic) policies. We consider a number of different policy classes. The first two are complete in the sense that any stochastic policy can be represented in the class. The final class may be restrictive. These classes are as follows:

Direct parameterization: The policies are parameterized by

where θ∈Δ(A)∣S∣\theta\in\Delta(\mathcal{A})^{|\mathcal{S}|}, i.e. θ\theta is subject to θs,a≥0\theta_{s,a}\geq 0 and ∑a∈Aθs,a=1\sum_{a\in\mathcal{A}}\theta_{s,a}=1 for all s∈Ss\in\mathcal{S} and a∈Aa\in\mathcal{A}.

The softmax parameterization is also complete.

Restricted parameterizations: We also study parametric classes {πθ∣θ∈Θ}\{\pi_{\theta}|\theta\in\Theta\} that may not contain all stochastic policies. In particular, we pay close attention to both log-linear policy classes and neural policy classes (see Section 6). Here, the best we may hope for is an agnostic result where we do as well as the best policy in this class.

While the softmax parameterization is the more natural parametrization among the two complete policy classes, it is also informative to consider the direct parameterization.

It is worth explicitly noting that Vπθ(s)V^{\pi_{\theta}}(s) is non-concave in θ\theta for both the direct and the softmax parameterizations, so the standard tools of convex optimization are not applicable. For completeness, we formalize this as follows (with a proof in Appendix A, along with an example in Figure 2):

There is an MDP MM (described in Figure 2) such that the optimization problem Vπθ(s)V^{\pi_{\theta}}(s) is not concave for both the direct and softmax parameterizations.

In order to introduce these methods, it is useful to define the discounted state visitation distribution ds0πd_{s_{0}}^{\pi} of a policy π\pi as:

where Pr⁡π(st=s∣s0)\Pr^{\pi}(s_{t}=s|s_{0}) is the state visitation probability that st=ss_{t}=s, after we execute π\pi starting at state s0s_{0}. Again, we overload notation and write:

where dρπd_{\rho}^{\pi} is the discounted state visitation distribution under initial distribution ρ\rho.

The policy gradient functional form (see e.g. Williams (1992); Sutton et al. (1999)) is then:

Furthermore, if we are working with a differentiable parameterization of πθ(⋅∣s)\pi_{\theta}(\cdot|s) that explicitly constrains πθ(⋅∣s)\pi_{\theta}(\cdot|s) to be in the simplex, i.e. πθ∈Δ(A)∣S∣\pi_{\theta}\in\Delta(\mathcal{A})^{|\mathcal{S}|} for all θ\theta, then we also have:

Note the above gradient expression (Equation 6) does not hold for the direct parameterization, while Equation 5 is valid. This is due to ∑a∇θπθ(a∣s)=0\sum_{a}\nabla_{\theta}\pi_{\theta}(a|s)=0 not explicitly being maintained by the direct parameterization.

The following lemma is helpful throughout:

(The performance difference lemma (Kakade and Langford, 2002)) For all policies π,π′\pi,\pi^{\prime} and states s0s_{0},

For completeness, we provide a proof in Appendix A.

We often characterize the difficulty of the exploration problem faced by our policy optimization algorithms when maximizing the objective Vπ(μ)V^{\pi}(\mu) through the following notion of distribution mismatch coefficient.

Given a policy π\pi and measures ρ,μ∈Δ(S)\rho,\mu\in\Delta(\mathcal{S}), we refer to \Bigl{\lVert}\frac{d_{\rho}^{\pi}}{\mu}\Bigr{\rVert}_{\infty} as the distribution mismatch coefficient of π\pi relative to μ\mu. Here, dρπμ\frac{d_{\rho}^{\pi}}{\mu} denotes componentwise division.

We often instantiate this coefficient with μ\mu as the initial state distribution used in a policy optimization algorithm, ρ\rho as the distribution to measure the sub-optimality of our policy (this is the start state distribution of interest), and where π\pi above is often chosen to be π⋆∈argmax⁡π∈ΠVπ(ρ)\pi^{\star}\in\operatorname{argmax}_{\pi\in\Pi}V^{\pi}(\rho), given a policy class Π\Pi.

Following convention, we use V⋆V^{\star} and Q⋆Q^{\star} to denote Vπ⋆V^{\pi^{\star}} and Qπ⋆Q^{\pi^{\star}} respectively. For iterative algorithms which obtain policy parameters θ(t)\theta^{(t)} at iteration tt, we let π(t)\pi^{(t)}, V(t)V^{(t)} and A(t)A^{(t)} denote the corresponding quantities parameterized by θ(t)\theta^{(t)}, i.e. πθ(t)\pi_{\theta^{(t)}}, Vθ(t)V^{\theta^{(t)}} and Aθ(t)A^{\theta^{(t)}}, respectively. For vectors uu and vv, we use uv\tfrac{u}{v} to denote the componentwise ratio; u≥vu\geq v denotes a componentwise inequality; we use the standard convention where ∥v∥2=∑ivi2\|v\|_{2}=\sqrt{\sum_{i}v_{i}^{2}}, ∥v∥1=∑i∣vi∣\|v\|_{1}=\sum_{i}|v_{i}|, and ∥v∥∞=max⁡i∣vi∣\|v\|_{\infty}=\max_{i}|v_{i}|.

Warmup: Constrained Tabular Parameterization

Our starting point is, arguably, the simplest first-order method: we directly take gradient ascent updates on the policy simplex itself and then project back onto the simplex if the constraints are violated after a gradient update. This algorithm is projected gradient ascent on the direct policy parametrization of the MDP, where the parameters are the state-action probabilities, i.e. θs,a=πθ(a∣s)\theta_{s,a}=\pi_{\theta}(a|s) (see (2)). As noted in Lemma 3.1, Vπθ(s)V^{\pi_{\theta}}(s) is non-concave in the parameters πθ\pi_{\theta}. Here, we first prove that Vπθ(μ)V^{\pi_{\theta}}(\mu) satisfies a Polyak-like gradient domination condition (Polyak, 1963), and this tool helps in providing convergence rates. The basic approach was also used in the analysis of CPI (Kakade and Langford, 2002); related gradient domination-like lemmas also appeared in Scherrer and Geist (2014).

It is instructive to consider this special case due to the connections it makes to the non-convex optimization literature. We also provide a lower bound that rules out algorithms whose runtime appeals to the curvature of saddle points (e.g. (Nesterov and Polyak, 2006; Ge et al., 2015; Jin et al., 2017)).

For the direct policy parametrization where θs,a=πθ(a∣s)\theta_{s,a}=\pi_{\theta}(a|s), the gradient is:

using (5). In particular, for this parameterization, we may write ∇πVπ(μ)\nabla_{\pi}V^{\pi}(\mu) instead of ∇θVπθ(μ)\nabla_{\theta}V^{\pi_{\theta}}(\mu).

Informally, we say a function f(θ)f(\theta) satisfies a gradient domination property if for all θ∈Θ\theta\in\Theta,

where θ⋆∈argmax⁡θ′∈Θf(θ′)\theta^{\star}\in\operatorname{argmax}_{\theta^{\prime}\in\Theta}f(\theta^{\prime}) and where G(θ)G({\theta}) is some suitable scalar notion of first-order stationarity, which can be considered a measure of how large the gradient is (see (Karimi et al., 2016; Bolte et al., 2007; Attouch et al., 2010)). Thus if one can find a θ\theta that is (approximately) a first-order stationary point, then the parameter θ\theta will be near optimal (in terms of function value). Such conditions are a standard device to establishing global convergence in non-convex optimization, as they effectively rule out the presence of bad critical points. In other words, given such a condition, quantifying the convergence rate for a specific algorithm, like say projected gradient ascent, will require quantifying the rate of its convergence to a first-order stationary point, for which one can invoke standard results from the optimization literature.

The following lemma shows that the direct policy parameterization satisfies a notion of gradient domination. This is the basic approach used in the analysis of CPI (Kakade and Langford, 2002); a variant of this lemma also appears in Scherrer and Geist (2014). We give a proof for completeness.

Even though we are interested in the value Vπ(ρ)V^{\pi}(\rho), it is helpful to consider the gradient with respect to another state distribution μ∈Δ(S)\mu\in\Delta(\mathcal{S}).

For the direct policy parameterization (as in (2)), for all state distributions μ,ρ∈Δ(S)\mu,\rho\in\Delta(\mathcal{S}), we have

where the max is over the set of all policies, i.e. πˉ∈Δ(A)∣S∣\bar{\pi}\in\Delta(\mathcal{A})^{|\mathcal{S}|}.

Before we provide the proof, a few comments are in order with regards to the performance measure ρ\rho and the optimization measure μ\mu. Subtly, note that although the gradient is with respect to Vπ(μ)V^{\pi}(\mu), the final guarantee applies to all distributions ρ\rho. The significance is that even though we may be interested in our performance under ρ\rho, it may be helpful to optimize under the distribution μ\mu. To see this, note the lemma shows that a sufficiently small gradient magnitude in the feasible directions implies the policy is nearly optimal in terms of its value, but only if the state distribution of π\pi, i.e. dμπd_{\mu}^{\pi}, adequately covers the state distribution of some optimal policy π⋆\pi^{\star}. Here, it is also worth recalling the theorem of Bellman and Dreyfus (1959) which shows there exists a single policy π⋆\pi^{\star} that is simultaneously optimal for all starting states s0s_{0}. Note that the hardness of the exploration problem is captured through the distribution mismatch coefficient (Definition 3.1).

Proof:[of Lemma 4.1] By the performance difference lemma (Lemma 3.2),

where the last inequality follows since max⁡aˉAπ(s,aˉ)≥0\max_{\bar{a}}A^{\pi}(s,\bar{a})\geq 0 for all states ss and policies π\pi. We wish to upper bound (8). We then have:

where the first step follows since max⁡πˉ\max_{\bar{\pi}} is attained at an action which maximizes Aπ(s,⋅)A^{\pi}(s,\cdot) (per state); the second step follows as ∑aπ(a∣s)Aπ(s,a)=0\sum_{a}{\pi}(a|s)A^{\pi}(s,a)=0; the third step uses ∑a(πˉ(a∣s)−π(a∣s))Vπ(s)=0\sum_{a}(\bar{\pi}(a|s)-\pi(a|s))V^{\pi}(s)=0 for all ss; and the final step follows from the gradient expression (see (7)). Using this in (8),

In a sense, the use of an appropriate μ\mu circumvents the issues of strategic exploration. It is natural to ask whether this additional term is necessary, a question which we return to. First, we provide a convergence rate for the projected gradient ascent algorithm.

2 Convergence Rates for Projected Gradient Ascent

Using this notion of gradient domination, we now give an iteration complexity bound for projected gradient ascent over the space of stochastic policies, i.e. over Δ(A)∣S∣\Delta(\mathcal{A})^{|\mathcal{S}|}. The projected gradient ascent algorithm updates

where PΔ(A)∣S∣P_{\Delta(\mathcal{A})^{|\mathcal{S}|}} is the projection onto Δ(A)∣S∣\Delta(\mathcal{A})^{|\mathcal{S}|} in the Euclidean norm.

The projected gradient ascent algorithm (9) on Vπ(μ)V^{\pi}(\mu) with stepsize η=(1−γ)32γ∣A∣\eta=\frac{(1-\gamma)^{3}}{2\gamma|\mathcal{A}|} satisfies for all distributions ρ∈Δ(S)\rho\in\Delta(\mathcal{S}),

A proof is provided in Appendix B.1. The proof first invokes a standard iteration complexity result of projected gradient ascent to show that the gradient magnitude with respect to all feasible directions is small. More concretely, we show the policy is ϵ\epsilon-stationarySee Appendix B.1 for discussion on this definition., that is, for all πθ+δ∈Δ(A)∣S∣{\pi_{\theta}}+\delta\in\Delta(\mathcal{A})^{|\mathcal{S}|} and ∥δ∥2≤1\|\delta\|_{2}\leq 1, δ⊤∇πVπθ(μ)≤ϵ\delta^{\top}\nabla_{\pi}V^{{\pi_{\theta}}}(\mu)\leq\epsilon. We then use Lemma 4.1 to complete the proof.

Note that the guarantee we provide is for the best policy found over the TT rounds, which we obtain from a bound on the average norm of the gradients. This type of a guarantee is standard in the non-convex optimization literature, where an average regret bound cannot be used to extract a single good solution, e.g. by averaging. In the context of policy optimization, this is not a serious limitation as we collect on-policy trajectories for each policy in doing sample-based gradient estimation, and these samples can be also used to estimate the policy’s value. Note that the evaluation step is not required for every policy, and can also happen on a schedule, though we still need to evaluate O(T)O(T) policies to obtain the convergence rates described here.

3 A Lower Bound: Vanishing Gradients and Saddle Points

To understand the necessity of the distribution mismatch coefficient in Lemma 4.1 and Theorem 4.1, let us first give an informal argument that some condition on the state distribution of π\pi, or equivalently μ\mu, is necessary for stationarity to imply optimality. For example, in a sparse-reward MDP (where the agent is only rewarded upon visiting some small set of states), a policy that does not visit any rewarding states will have zero gradient, even though it is arbitrarily suboptimal in terms of values. Below, we give a more quantitative version of this intuition, which demonstrates that even if π\pi chooses all actions with reasonable probabilities (and hence the agent will visit all states if the MDP is connected), then there is an MDP where a large fraction of the policies π\pi have vanishingly small gradients, and yet these policies are highly suboptimal in terms of their value.

Concretely, consider the chain MDP of length H+2H+2 shown in Figure 2. The starting state of interest is state s0s_{0} and the discount factor γ=H/(H+1)\gamma=H/(H+1). Suppose we work with the direct parameterization, where πθ(a∣s)=θs,a\pi_{\theta}(a|s)=\theta_{s,a} for a=a1,a2,a3a=a_{1},a_{2},a_{3} and πθ(a4∣s)=1−θs,a1−θs,a2−θs,a3\pi_{\theta}(a_{4}|s)=1-\theta_{s,a_{1}}-\theta_{s,a_{2}}-\theta_{s,a_{3}}. Note we do not over-parameterize the policy. For this MDP and policy structure, if we were to initialize the probabilities over actions, say deterministically, then there is an MDP (obtained by permuting the actions) where all the probabilities for a1a_{1} will be less than 1/41/4.

The following result not only shows that the gradient is exponentially small in HH, it also shows that many higher order derivatives, up to O(H/log⁡H)O(H/\log H), are also exponentially small in HH.

This lemma also suggests that results in the non-convex optimization literature, on escaping from saddle points, e.g. (Nesterov and Polyak, 2006; Ge et al., 2015; Jin et al., 2017), do not directly imply global convergence due to that the higher order derivatives are small.

(Exact vs. Approximate Gradients) The chain MDP of Figure 2, is a common example where sample based estimates of gradients will be under random exploration strategies; there is an exponentially small in HH chance of hitting the goal state under a random exploration strategy. Note that this lemma is with regards to exact gradients. This suggests that even with exact computations (along with using exact higher order derivatives) we might expect numerical instabilities.

(Comparison with the upper bound) The lower bound does not contradict the upper bound of Theorem 4.1 (where a small gradient is turned into a small policy suboptimality bound), as the distribution mismatch coefficient, as defined in Definition 3.1, could be infinite in the chain MDP of Figure 2, since the start-state distribution is concentrated on one state only. More generally, for any policy with θs,a1<1/4\theta_{s,a_{1}}<1/4 in all states ss, ∥dρπ⋆dρπθ∥∞=Ω(4H)\left\|\frac{d^{\pi^{\star}}_{\rho}}{d^{\pi_{\theta}}_{\rho}}\right\|_{\infty}=\Omega(4^{H}).

(Comparison with information-theoretic lower bounds) The lower bound here is not information theoretic, in that it does not present a hard problem instance for all algorithms. Indeed, exploration algorithms for tabular MDPs starting from E3E^{3} (Kearns and Singh, 2002), RMAX (Brafman and Tennenholtz, 2003) and several subsequent works yield polynomial sample complexities for the chain MDP. Proposition 4.1 should be interpreted as a hardness result for the specific class of policy gradient like approaches that search for a policy with a small policy gradient, as these methods will find the initial parameters to be valid in terms of the size of (several orders of) gradients. In particular, it precludes any meaningful claims on global optimality, based just on the size of the policy gradients, without additional assumptions as discussed in the previous remark.

The proof is provided in Appendix B.2. The lemma illustrates that lack of good exploration can indeed be detrimental in policy gradient algorithms, since the gradient can be small either due to π\pi being near-optimal, or, simply because π\pi does not visit advantageous states often enough. In this sense, it also demonstrates the necessity of the distribution mismatch coefficient in Lemma 4.1.

The Softmax Tabular Parameterization

We now consider the softmax policy parameterization (3). Here, we still have a non-concave optimization problem in general, as shown in Lemma 3.1, though we do show that global optimality can be reached under certain regularity conditions. From a practical perspective, the softmax parameterization of policies is preferable to the direct parameterization, since the parameters θ\theta are unconstrained and standard unconstrained optimization algorithms can be employed. However, optimization over this policy class creates other challenges as we study in this section, as the optimal policy (which is deterministic) is attained by sending the parameters to infinity.

We study three algorithms for this problem. The first performs direct policy gradient ascent on the objective without modification, while the second adds a log barrier regularizer to keep the parameters from becoming too large, as a means to ensure adequate exploration. Finally, we study the natural policy gradient algorithm and establish a global optimality result with no dependence on the distribution mismatch coefficient or dimension-dependent factors.

For the softmax parameterization, the gradient takes the form:

Due to the exponential scaling with the parameters θ\theta in the softmax parameterization, any policy that is nearly deterministic will have gradients close to . In spite of this difficulty, we provide a positive result that gradient ascent asymptotically converges to the global optimum for the softmax parameterization.

Assume we follow the gradient ascent update rule as specified in Equation (11) and that the distribution μ\mu is strictly positive i.e. μ(s)>0\mu(s)>0 for all states ss. Suppose η≤(1−γ)38\eta\leq\frac{(1-\gamma)^{3}}{8}, then we have that for all states ss, V(t)(s)→V⋆(s)V^{(t)}(s)\rightarrow V^{\star}(s) as t→∞t\rightarrow\infty.

(Strict positivity of μ\mu and exploration) Theorem 5.1 assumed that optimization distribution μ\mu was strictly positive, i.e. μ(s)>0\mu(s)>0 for all states ss. We leave it is an open question of whether or not gradient ascent will globally converge if this condition is not met. The concern is that if this condition is not met, then gradient ascent may not globally converge due to that dμπθ(s)d^{\pi_{\theta}}_{\mu}(s) effectively scales down the learning rate for the parameters associated with state ss (see (10)).

The complete proof is provided in the Appendix C.1. We now discuss the subtleties in the proof and show why the softmax parameterization precludes a direct application of the gradient domination lemma. In order to utilize the gradient domination property (in Lemma 4.1), we would desire to show that: ∇πVπ(μ)→0\nabla_{\pi}V^{\pi}(\mu)\rightarrow 0. However, using the functional form of the softmax parameterization (see Lemma C.1) and (7), we have that:

Hence, we see that even if ∇θVπθ(μ)→0\nabla_{\theta}V^{\pi_{\theta}}(\mu)\rightarrow 0, we are not guaranteed that ∇πVπθ(μ)→0\nabla_{\pi}V^{\pi_{\theta}}(\mu)\rightarrow 0.

We now briefly discuss the main technical challenges in the proof. The proof first shows that the sequence V(t)(s)V^{(t)}(s) is monotone increasing pointwise, i.e. for every state ss, V(t+1)(s)≥V(t)(s)V^{(t+1)}(s)\geq V^{(t)}(s) (Lemma C.2). This implies the existence of a limit V(∞)(s)V^{(\infty)}(s) by the monotone convergence theorem (Lemma C.3). Based on the limiting quantities V(∞)(s)V^{(\infty)}(s) and Q(∞)(s,a)Q^{(\infty)}(s,a), which we show exist, define the following limiting sets for each state ss:

The challenge is to then show that, for all states ss, the set I+sI^{s}_{+} is the empty set, which would immediately imply V(∞)(s)=V⋆(s)V^{(\infty)}(s)=V^{\star}(s). The proof proceeds by contradiction, assuming that I+sI^{s}_{+} is non-empty. Using that I+sI^{s}_{+} is non-empty and that the gradient tends to zero in the limit, i.e. ∇θVπθ(μ)→0\nabla_{\theta}V^{\pi_{\theta}}(\mu)\rightarrow 0, we have that for all a∈I+sa\in I^{s}_{+}, π(t)(a∣s)→0\pi^{(t)}(a|s)\rightarrow 0 (see (10)). This, along with the functional form of the softmax parameterization, implies that there must be divergence (in magnitude) among the set of parameters associated with some action aa at state ss, i.e. that max⁡a∈A∣θs,a(t)∣→∞\max_{a\in\mathcal{A}}|\theta^{(t)}_{s,a}|\to\infty. The primary technical challenge in the proof is to then use this divergence, along with the dynamics of gradient ascent, to show that I+sI^{s}_{+} is empty via a contradiction.

We leave it as a question for future work as to characterizing the convergence rate, which we conjecture is exponentially slow in some of the relevant quantities, such as in terms of the size of state space. Here, we turn to a regularization based approach to ensure convergence at a polynomial rate in all relevant quantities.

2 Polynomial Convergence with Log Barrier Regularization

where λ\lambda is a regularization parameter. The constant (i.e. the last term) is not relevant with regards to optimization. This regularizer is different from the more commonly utilized entropy regularizer as in Mnih et al. (2016), a point which we return to in Remark 5.2.

The policy gradient ascent updates for Lλ(θ)L_{\lambda}(\theta) are given by:

Our next theorem shows that approximate first-order stationary points of the entropy-regularized objective are approximately globally optimal, provided the regularization is sufficiently small.

(Log barrier regularization) Suppose θ\theta is such that:

and ϵopt≤λ/(2∣S∣ ∣A∣)\epsilon_{\text{opt}}\leq\lambda/(2|\mathcal{S}|\,|\mathcal{A}|). Then we have that for all starting state distributions ρ\rho:

Proof: The proof consists of showing that max⁡aAπθ(s,a)≤2λ/(μ(s)∣S∣)\max_{a}A^{\pi_{\theta}}(s,a)\leq 2\lambda/(\mu(s)|\mathcal{S}|) for all states. To see that this is sufficient, observe that by the performance difference lemma (Lemma 3.2),

We now proceed to show that max⁡aAπθ(s,a)≤2λ/(μ(s)∣S∣)\max_{a}A^{\pi_{\theta}}(s,a)\leq 2\lambda/(\mu(s)|\mathcal{S}|). For this, it suffices to bound Aπθ(s,a)A^{\pi_{\theta}}(s,a) for any state-action pair s,as,a where Aπθ(s,a)≥0A^{\pi_{\theta}}(s,a)\geq 0 else the claim is trivially true. Consider an (s,a)(s,a) pair such that Aπθ(s,a)>0A^{\pi_{\theta}}(s,a)>0. Using the policy gradient expression for the softmax parameterization (see Lemma C.1),

The gradient norm assumption ∥∇θLλ(θ)∥2≤ϵopt\|\nabla_{\theta}L_{\lambda}(\theta)\|_{2}\leq\epsilon_{\text{opt}} implies that:

where we have used Aπθ(s,a)≥0A^{\pi_{\theta}}(s,a)\geq 0. Rearranging and using our assumption ϵopt≤λ/(2∣S∣ ∣A∣)\epsilon_{\text{opt}}\leq\lambda/(2|\mathcal{S}|\,|\mathcal{A}|),

Solving for Aπθ(s,a)A^{\pi_{\theta}}(s,a) in (14), we have:

where the penultimate step uses ϵopt≤λ/(2∣S∣ ∣A∣)\epsilon_{\text{opt}}\leq\lambda/(2|\mathcal{S}|\,|\mathcal{A}|) and the final step uses dμπθ(s)≥(1−γ)μ(s)d^{\pi_{\theta}}_{\mu}(s)\geq(1-\gamma)\mu(s). This completes the proof.

By combining the above theorem with standard results on the convergence of gradient ascent (to first order stationary points), we obtain the following corollary.

(Iteration complexity with log barrier regularization) Let βλ:=8γ(1−γ)3+2λ∣S∣\beta_{\lambda}:=\frac{8\gamma}{(1-\gamma)^{3}}+\frac{2\lambda}{|\mathcal{S}|}. Starting from any initial θ(0)\theta^{(0)}, consider the updates (13) with λ=ϵ(1−γ)2∥dρπ⋆μ∥∞\lambda=\frac{\epsilon(1-\gamma)}{2\left\lVert\frac{d^{\pi^{\star}}_{\rho}}{\mu}\right\rVert_{\infty}} and η=1/βλ\eta=1/\beta_{\lambda}. Then for all starting state distributions ρ\rho, we have

See Appendix C.2 for the proof. The corollary shows the importance of balancing how the regularization parameter λ\lambda is set relative to the desired accuracy ϵ\epsilon, as well as the importance of the initial distribution μ\mu to obtain global optimality.

(Entropy vs. log barrier regularization) The more commonly considered regularizer is the entropy (Mnih et al., 2016) (also see Ahmed et al. (2019) for a more detailed empirical investigation), where the regularizer would be:

Note the entropy is far less aggressive in penalizing small probabilities, in comparison to the log barrier, which is equivalent to the relative entropy. In particular, the entropy regularizer is always bounded between and log⁡∣A∣\log|\mathcal{A}|, while the relative entropy (against the uniform distribution over actions), is bounded between and infinity, where it tends to infinity as probabilities tend to . We leave it is an open question if a polynomial convergence rate Here, ideally we would like to be poly in ∣S∣|\mathcal{S}|, ∣A∣|\mathcal{A}|, 1/(1−γ)1/(1-\gamma), 1/ϵ1/\epsilon, and the distribution mismatch coefficient, which we conjecture may not be possible. is achievable with the more common entropy regularizer; our polynomial convergence rate using the KL regularizer crucially relies on the aggressive nature in which the relative entropy prevents small probabilities (the proof shows that any action, with a positive advantage, has a significant probability for any near-stationary policy of the regularized objective).

3 Dimension-free Convergence of Natural Policy Gradient Ascent

We now show the Natural Policy Gradient algorithm, with the softmax parameterization (3), obtains an improved iteration complexity. The NPG algorithm defines a Fisher information matrix (induced by π\pi), and performs gradient updates in the geometry induced by this matrix as follows:

We leverage a particularly convenient form the update takes for the softmax parameterization (see Kakade (2001)). For completeness, we provide a proof in Appendix C.3.

(NPG as soft policy iteration) For the softmax parameterization (3), the NPG updates (5.3) take the form:

where Zt(s)=∑a∈Aπ(t)(a∣s)exp⁡(ηA(t)(s,a)/(1−γ))Z_{t}(s)=\sum_{a\in\mathcal{A}}\pi^{(t)}(a|s)\exp(\eta A^{(t)}(s,a)/(1-\gamma)).

The updates take a strikingly simple form in this special case; they are identical to the classical multiplicative weights updates (Freund and Schapire, 1997; Cesa-Bianchi and Lugosi, 2006) for online linear optimization over the probability simplex, where the linear functions are specified by the advantage function of the current policy at each iteration. Notably, there is no dependence on the state distribution dρ(t)d^{(t)}_{\rho}, since the pseudoinverse of the Fisher information cancels out the effect of the state distribution in NPG. We now provide a dimension free convergence rate of this algorithm.

Suppose we run the NPG updates (5.3) using ρ∈Δ(S)\rho\in\Delta(\mathcal{S}) and with θ(0)=0\theta^{(0)}=0. Fix η>0\eta>0. For all T>0T>0, we have:

In particular, setting η≥(1−γ)2log⁡∣A∣\eta\geq(1-\gamma)^{2}\log|\mathcal{A}|, we see that NPG finds an ϵ\epsilon-optimal policy in a number of iterations that is at most:

which has no dependence on the number of states or actions, despite the non-concavity of the underlying optimization problem.

The proof strategy we take borrows ideas from the online regret framework in changing MDPs (in (Even-Dar et al., 2009)); here, we provide a faster rate of convergence than the analysis implied by Even-Dar et al. (2009) or by Geist et al. (2019). We also note that while this proof is obtained for the NPG updates, it is known in the literature that in the limit of small stepsizes, NPG and TRPO updates are closely related (e.g. see Schulman et al. (2015); Neu et al. (2017); Rajeswaran et al. (2017)).

First, the following improvement lemma is helpful:

For the iterates π(t)\pi^{(t)} generated by the NPG updates (5.3), we have for all starting state distributions μ\mu

Proof: First, let us show that log⁡Zt(s)≥0\log Z_{t}(s)\geq 0. To see this, observe:

where the inequality follows by Jensen’s inequality on the concave function log⁡x\log x and the final equality uses ∑aπ(t)(a∣s)A(t)(s,a)=0\sum_{a}\pi^{(t)}(a|s)A^{(t)}(s,a)=0. Using d(t+1)d^{(t+1)} as shorthand for dμ(t+1)d^{(t+1)}_{\mu}, the performance difference lemma implies:

where the last step uses that d(t+1)=dμ(t+1)≥(1−γ)μd^{(t+1)}=d^{(t+1)}_{\mu}\geq(1-\gamma)\mu, componentwise (by (4)), and that log⁡Zt(s)≥0\log Z_{t}(s)\geq 0.

With this lemma, we now prove Theorem 5.3.

Proof:[of Theorem 5.3] Since ρ\rho is fixed, we use d⋆d^{\star} as shorthand for dρπ⋆d^{\pi^{\star}}_{\rho}; we also use πs\pi_{s} as shorthand for the vector of π(⋅∣s)\pi(\cdot|s). By the performance difference lemma (Lemma 3.2),

where we have used the closed form of our updates from Lemma 5.1 in the second step.

By applying Lemma 5.2 with d⋆d^{\star} as the starting state distribution, we have:

Using the above equation and that V(t+1)(ρ)≥V(t)(ρ)V^{(t+1)}(\rho)\geq V^{(t)}(\rho) (as V(t+1)(s)≥V(t)(s)V^{(t+1)}(s)\geq V^{(t)}(s) for all states ss by Lemma 5.2), we have:

The proof is completed using that V(T)(ρ)≥V(T−1)(ρ)V^{(T)}(\rho)\geq V^{(T-1)}(\rho).

Function Approximation and Distribution Shift

We now analyze the case of using parametric policy classes:

where Π\Pi may not contain all stochastic policies (and it may not even contain an optimal policy). In contrast with the tabular results in the previous sections, the policy classes that we are often interested in are not fully expressive, e.g. d≪∣S∣∣A∣d\ll|\mathcal{S}||\mathcal{A}| (indeed ∣S∣\lvert\mathcal{S}\rvert or ∣A∣\lvert\mathcal{A}\rvert need not even be finite for the results in this section); in this sense, we are in the regime of function approximation.

We focus on obtaining agnostic results, where we seek to do as well as the best policy in this class (or as well as some other comparator policy). While we are interested in a solution to the (unconstrained) policy optimization problem

(for a given initial distribution ρ\rho), we will see that optimization with respect to a different distribution will be helpful, just as in the tabular case,

We will consider variants of the NPG update rule (5.3):

Our analysis will leverage a close connection between the NPG update rule (5.3) with the notion of compatible function approximation (Sutton et al., 1999), as formalized in Kakade (2001). Specifically, it can be easily seen that:

where w⋆w^{\star} is a minimizer of the following regression problem:

The above is a straightforward consequence of the first order optimality conditions (see (50)). The above regression problem can be viewed as “compatible” function approximation: we are approximating Aπθ(s,a)A^{\pi_{\theta}}(s,a) using the ∇θlog⁡πθ(⋅∣s)\nabla_{\theta}\log\pi_{\theta}(\cdot|s) as features. We also consider a variant of the above update rule, QQ-NPG, where instead of using advantages in the above regression we use the QQ-values.

This viewpoint provides a methodology for approximate updates, where we can solve the relevant regression problems with samples. Our main results establish the effectiveness of NPG updates where there is error both due to statistical estimation (where we may not use exact gradients) and approximation (due to using a parameterized function class); in particular, we provide a novel estimation/approximation decomposition relevant for the NPG algorithm. For these algorithms, we will first consider log linear policies classes (as a special case) and then move on to more general policy classes (such as neural policy classes). Finally, it is worth remarking that the results herein provide one of the first provable approximation guarantees where the error conditions required do not have explicit worst case dependencies over the state space.

In practice, the most common policy classes are of the form:

where fθf_{\theta} is a differentiable function. For example, the tabular softmax policy class is one where fθ(s,a)=θs,af_{\theta}(s,a)=\theta_{s,a}. Typically, fθf_{\theta} is either a linear function or a neural network. Let us consider the NPG algorithm, and a variant QQ-NPG, in each of these two cases.

With regards to compatible function approximation for the log-linear policy class, we have:

that is, ϕ‾s,a θ\overline{\phi}^{\ \theta}_{s,a} is the centered version of ϕs,a\phi_{s,a}. With some abuse of notation, we accordingly also define ϕˉπ\bar{\phi}^{\pi} for any policy π\pi. Here, using (17), the NPG update rule (16) is equivalent to:

(We have rescaled the learning rate η\eta in comparison to (16)). Note that we recompute w⋆w_{\star} for every update of θ\theta. Here, the compatible function approximation error measures the expressivity of our parameterization in how well linear functions of the parameterization can capture the policy’s advantage function.

We also consider a variant of the NPG update rule (16), termed QQ-NPG, where:

Note we do not center the features for QQ-NPG; observe that Qπ(s,a)Q^{\pi}(s,a) is also not 0 in expectation under π(⋅∣s)\pi(\cdot|s), unlike the advantage function.

(NPG/QQ-NPG and Soft-Policy Iteration) We now see how we can view both NPG and QQ-NPG as an incremental (soft) version of policy iteration, just as in Lemma 5.1 for the tabular case. Rather than writing the update rule in terms of the parameter θ\theta, we can write an equivalent update rule directly in terms of the (log-linear) policy π\pi:

where ZsZ_{s} is normalization constant. While the policy update uses the original features ϕ\phi instead of ϕ‾ π\overline{\phi}^{\ \pi}, whereas the quadratic error minimization is terms of the centered features ϕ‾ π\overline{\phi}^{\ \pi}, this distinction is not relevant due to that we may also instead use ϕ‾ π\overline{\phi}^{\ \pi} (in the policy update) which would result in an equivalent update; the normalization makes the update invariant to (constant) translations of the features. Similarly, an equivalent update for QQ-NPG, where we update π\pi directly rather than θ\theta, is:

(On the equivalence of NPG and QQ-NPG) If it is the case that the compatible function approximation error is , then it straightforward to verify that the NPG and QQ-NPG are equivalent algorithms, in that their corresponding policy updates will be equivalent to each other.

1.2 Neural Policy Classes

and, using (17), the NPG update rule (16) is equivalent to:

(Again, we have rescaled the learning rate η\eta in comparison to (16)).

The QQ-NPG variant of this update rule is:

2 Q𝑄Q-NPG: Performance Bounds for Log-Linear Policies

For a state-action distribution υ\upsilon, define:

The iterates of the QQ-NPG algorithm can be viewed as minimizing this loss under some (changing) distribution υ\upsilon.

We now specify an approximate version of QQ-NPG. It is helpful to consider a slightly more general version of the algorithm in the previous section, where instead of optimizing under a starting state distribution ρ\rho, we have a different starting state-action distribution ν\nu. Analogous to the definition of the state visitation measure, dμπd_{\mu}^{\pi}, we can define a visitation measure over states and actions induced by following π\pi after s0,a0∼νs_{0},a_{0}\sim\nu. We overload notation using dνπd_{\nu}^{\pi} to also refer to the state-action visitation measure; precisely,

QQ-NPG will be defined with respect to the on-policy state action measure starting with s0,a0∼νs_{0},a_{0}\sim\nu. As per our convention, we define

The approximate version of this algorithm is:

Note that w⋆(t)w_{\star}^{(t)} depends on the current parameter θ(t)\theta^{(t)}.

Our analysis will take into account both the excess risk (often also referred to as estimation error) and the transfer error. Here, the excess risk will be due to that w(t)w^{(t)} may not be equal w⋆(t)w_{\star}^{(t)}, and the approximation error will be due to that even the best linear fit using w⋆(t)w_{\star}^{(t)} may not perfectly match the QQ-values, i.e. L(w⋆(t);θ(t);d(t))L(w_{\star}^{(t)};\theta^{(t)};d^{(t)}) is unlikely to be in practical applications.

We now formalize these concepts in the following assumption:

Fix a state distribution ρ\rho; a state-action distribution ν\nu; an arbitrary comparator policy π⋆\pi^{\star} (not necessarily an optimal policy). With respect to π⋆\pi^{\star}, define the state-action measure d⋆d^{\star} as

i.e. d⋆d^{\star} samples states from the comparators state visitation measure, dρπ⋆d_{\rho}^{\pi^{\star}} and actions from the uniform distribution. Let us permit the sequence of iterates w(0),w(1),…w(T−1)w^{(0)},w^{(1)},\ldots w^{(T-1)} used by the QQ-NPG algorithm to be random, where the randomness could be due to sample-based, estimation error. Suppose the following holds for all t<Tt<T:

(Excess risk) Assume that the estimation error is bounded as follows:

In both conditions, the expectations are with respect to the randomness in the sequence of iterates w(0),w(1),…w(T−1)w^{(0)},w^{(1)},\ldots w^{(T-1)}, e.g. the approximate algorithm may be sample based.

Shortly, we discuss how the transfer error relates to the more standard approximation-estimation decomposition. Importantly, with the transfer error, it is always defined with respect to a single, fixed measure, d⋆d^{\star}.

Consider the same ρ\rho, ν\nu, and π⋆\pi^{\star} as in Assumption 6.1. With respect to any state-action distribution υ\upsilon, define:

(Agnostic learning with QQ-NPG) Fix a state distribution ρ\rho; a state-action distribution ν\nu; an arbitrary comparator policy π⋆\pi^{\star} (not necessarily an optimal policy). Suppose Assumption 6.2 holds and ∥ϕs,a∥2≤B\|\phi_{s,a}\|_{2}\leq B for all s,as,a. Suppose the QQ-NPG update rule (in (20)) starts with θ(0)=0\theta^{(0)}=0, η=2log⁡∣A∣/(B2W2T)\eta=\sqrt{2\log|\mathcal{A}|/(B^{2}W^{2}T)}, and the (random) sequence of iterates satisfies Assumption 6.1. We have that

The usual approximation-estimation error decomposition is that we can write our error as:

As we obtain more samples, we can drive the excess risk (the estimation error) to (see Corollary 6.2). The approximation error above is due to modeling error. Importantly, for our QQ-NPG performance bound, it is not this standard approximation error notion which is relevant, but it is this error under a different measure d⋆d^{\star}, i.e. L(w⋆(t);θ(t),d⋆)L(w_{\star}^{(t)};\theta^{(t)},d^{\star}). One appealing aspect about the transfer error is that this error is with respect to a fixed measure, namely d⋆d^{\star}. Furthermore, in practice, modern machine learning methods often performs favorably with regards to transfer learning, substantially better than worst case theory might suggest.

The following corollary provides a performance bound in terms of the usual notion of approximation error, at the cost of also depending on the worst case distribution mismatch ratio. The corollary disentangles the estimation error from the approximation error.

(Estimation error/Approximation error bound for QQ-NPG) Consider the same setting as in Theorem 6.1. Rather than assuming the transfer error is bounded (part 2 in Assumption 6.1), suppose that, for all t≤Tt\leq T,

Proof: We have the following crude upper bound on the transfer error:

The above also shows the striking difference between the effects of estimation error and approximation error. The proof shows how the transfer error notion is weaker than previous conditions based on distribution mistmatch coefficients or concentrability coefficients. Also, as discussed in Scherrer (2014), the (distribution mismatch) coefficient \Bigl{\lVert}\frac{d^{\star}}{\nu}\Bigr{\rVert}_{\infty} is already weaker than the more standard concentrability coefficients.

A few additional remarks are now in order. We now make a few observations with regards to κ\kappa.

Proof: The distribution can be found through constructing the minimal volume ellipsoid containing Φ\Phi, i.e. the Loẅner-John ellipsoid (John, 1948). In particular, this ν\nu is supported on the contact points between this ellipsoid and Φ\Phi; the lemma immediately follows from properties of this ellipsoid (e.g. see Ball (1997); Bubeck et al. (2012)).

(Comparison with Politex and EE-Politex) Compared with Politex (Abbasi-Yadkori et al., 2019a), Assumption 6.2 is substantially milder, in that it just assumes a good relative condition number for one policy rather than all possible policies (which cannot hold in general even for tabular MDPs). Changing this assumption to an analog of Assumption 6.2 is the main improvement in the analysis of the EE-Politex (Abbasi-Yadkori et al., 2019b) algorithm. They provide a regret bound for the average reward setting, which is qualitatively different from the suboptimality bound in the discounted setting that we study. They provide a specialized result for linear function approximation, similar to Theorem 6.1.

For a fixed state-action distribution ν\nu, we assume the ability to: start at s0,a0∼νs_{0},a_{0}\sim\nu; continue to act thereafter in the MDP according to any policy π\pi; and terminate this “rollout” when desired. With this oracle, it is straightforward to obtain unbiased samples of Qπ(s,a)Q^{\pi}(s,a) (or Aπ(s,a)A^{\pi}(s,a)) under s,a∼dνπs,a\sim d_{\nu}^{\pi} for any π\pi; see Algorithms 1 and 3.

Algorithm 2 provides a sample based version of the QQ-NPG algorithm; it simply uses stochastic projected gradient ascent within each iteration. The following corollary shows this algorithm suffices to obtain an accurate sample based version of QQ-NPG.

(Sample complexity of QQ-NPG) Assume we are in the setting of Theorem 6.1 and that we have access to an episodic sampling oracle (i.e. Assumption 6.3). Suppose that the Sample Based QQ-NPG Algorithm (Algorithm 2) is run for TT iterations, with NN gradient steps per iteration, with an appropriate setting of the learning rates η\eta and α\alpha. We have that:

Furthermore, since each episode has expected length 2/(1−γ)2/(1-\gamma), the expected number of total samples used by QQ-NPG is 2NT/(1−γ)2NT/(1-\gamma).

Proof: Note that our sampled gradients are bounded by G:=2B(BW+11−γ)G:=2B(BW+\frac{1}{1-\gamma}). Using α=WGN\alpha=\frac{W}{G\sqrt{N}}, a standard analysis for stochastic projected gradient ascent (Theorem E.3) shows that:

3 NPG: Performance Bounds for Smooth Policy Classes

We now return to the analyzing the standard NPG update rule, which uses advantages rather than QQ-values (see Section 6.1). It is helpful to define

We now consider an approximate version of the NPG update rule:

where again we use the on-policy, fitting distribution d(t)d^{(t)}. As with QQ-NPG, we also permit the use of a starting state-action distribution ν\nu as opposed to just a starting state distribution (see Remark 6.3). Again, we let w⋆(t)w_{\star}^{(t)} denote the minimizer, i.e. w⋆(t)∈argmin⁡∥w∥2≤WLA(w;θ(t),d(t))w_{\star}^{(t)}\in\operatorname{{argmin}}_{\|w\|_{2}\leq W}L_{A}(w;\theta^{(t)},d^{(t)}).

For this section, our analysis will focus on more general policy classes, beyond log-linear policy classes. In particular, we make the following smoothness assumption on the policy class:

(Policy Smoothness) Assume for all s∈Ss\in\mathcal{S} and a∈Aa\in\mathcal{A} that log⁡πθ(a∣s)\log\pi_{\theta}(a|s) is a β\beta-smooth function of θ\theta (to recall the definition of smoothness, see (24)).

It is not to difficult to verify that the tabular softmax policy parameterization is a 11-smooth policy class in the above sense. The more general class of log-linear policies is also smooth as we remark below.

(Smoothness of the log-linear policy class) For the log-linear policy class (see Section 6.1.1), smoothness is implied if the features ϕ\phi have bounded Euclidean norm. Precisely, if the feature mapping ϕ\phi satisfies ∥ϕs,a∥2≤B\|\phi_{s,a}\|_{2}\leq B, then it is not difficult to verify that log⁡πθ(a∣s)\log\pi_{\theta}(a|s) is a B2B^{2}-smooth function.

For any state-action distribution υ\upsilon, define:

and, again, we use Συ(t)\Sigma^{(t)}_{\upsilon} as shorthand for Συθ(t)\Sigma^{\theta^{(t)}}_{\upsilon}.

(Estimation/Transfer/Conditioning) Fix a state distribution ρ\rho; a state-action distribution ν\nu; an arbitrary comparator policy π⋆\pi^{\star} (not necessarily an optimal policy). With respect to π⋆\pi^{\star}, define the state-action measure d⋆d^{\star} as

Note that, in comparison to Assumption 6.1, d⋆d^{\star} is the state-action visitation measure of the comparator policy. Let us permit the sequence of iterates w(0),w(1),…w(T−1)w^{(0)},w^{(1)},\ldots w^{(T-1)} used by the NPG algorithm to be random, where the randomness could be due to sample-based, estimation error. Suppose the following holds for all t<Tt<T:

(Excess risk) Assume the estimation error is bounded as:

(Relative condition number) For all iterations tt, assume the average relative condition number is bounded as follows:

Note that term inside the expectation is a random quantity as θ(t)\theta^{(t)} is random.

In the above conditions, the expectation is with respect to the randomness in the sequence of iterates w(0),w(1),…w(T−1)w^{(0)},w^{(1)},\ldots w^{(T-1)}.

(Agnostic learning with NPG) Fix a state distribution ρ\rho; a state-action distribution ν\nu; an arbitrary comparator policy π⋆\pi^{\star} (not necessarily an optimal policy). Suppose Assumption 6.4 holds. Suppose the NPG update rule (in (21)) starts with π(0)\pi^{(0)} being the uniform distribution (at each state), η=2log⁡∣A∣/(βW2T)\eta=\sqrt{2\log|\mathcal{A}|/(\beta W^{2}T)}, and the (random) sequence of iterates satisfies Assumption 6.5. We have that

(The ∣A∣|\mathcal{A}| dependence: NPG vs. QQ-NPG) Observe there is no polynomial dependence on ∣A∣|\mathcal{A}| in the rate for NPG (in constrast to Theorem 6.1); also observe that here we define d⋆d^{\star} as the state-action distribution of π⋆\pi^{\star} in Assumption 6.5, as opposed to a uniform distribution over the actions, as in Assumption 6.1. The main difference arises in the analysis in that, even for QQ-NPG, we need to bound the error in fitting the advantage estimates; this leads to the dependence on ∣A∣|\mathcal{A}| (which can be removed with a path dependent bound, i.e. a bound which depends on the sequence of iterates produced by the algorithm) For QQ-NPG, we have to bound two distribution shift terms to both π⋆\pi^{\star} and π(t)\pi^{(t)} at step tt of the algorithm.. For NPG, the direct fitting of the advantage function sidesteps this conversion step. Note that the relative condition number assumption in QQ-NPG (Assumption 6.2) is a weaker assumption, due to that it can be bounded independently of the path of the algorithm (see Remark 6.2), while NPG’s centering of the features makes the assumption on the relative condition number depend on the path of the algorithm.

(Generalizing QQ-NPG for smooth policies) A similar reasoning as the analysis here can be also used to establish a convergence result for the QQ-NPG algorithm in this more general setting of smooth policy classes. Concretely, we can analyze the QQ-NPG update described for neural policy classes in Section 6.1.2, assuming that the function fθf_{\theta} is Lipschitz-continuous in θ\theta. Like for Theorem 6.2, the main modification is that Assumption 6.2 on relative condition numbers is now defined using the covariance matrix for the features fθ(s,a)f_{\theta}(s,a), which depend on θ\theta, as opposed to some a feature map ϕ(s,a)\phi(s,a) in the log-linear case. The rest of the analysis follows with an appropriate adaptation of the results above.

Algorithm 4 provides a sample based version of the NPG algorithm, again using stochastic projected gradient ascent; it uses a slight modification of the QQ-NPG algorithm to obtain unbiased gradient estimates. The following corollary shows that this algorithm provides an accurate sample based version of NPG.

(Sample complexity of NPG) Assume we are in the setting of Theorem 6.2 and that we have access to an episodic sampling oracle (i.e. Assumption 6.3). Suppose that the Sample Based NPG Algorithm (Algorithm 4) is run for TT iterations, with NN gradient steps per iteration. Also, suppose that ∥∇θlog⁡π(t)(a∣s)∥2≤B\|\nabla_{\theta}\log\pi^{(t)}(a|s)\|_{2}\leq B holds with probability one. There exists a setting of η\eta and α\alpha such that:

Furthermore, since each episode has expected length 2/(1−γ)2/(1-\gamma), the expected number of total samples used by NPG is 2NT/(1−γ)2NT/(1-\gamma).

Proof: Let us see that the update direction in Step 7 of Algorithm 4 uses an unbiased estimate of the true gradient of the loss function LAL_{A}:

where the last step follows due to that sampling procedure in Algorithm 3 produces a conditionally unbiased estimate.

Since ∥∇θlog⁡π(t)(a∣s)∥2≤B\|\nabla_{\theta}\log\pi^{(t)}(a|s)\|_{2}\leq B and since A^(s,a)≤2/(1−γ)\widehat{A}(s,a)\leq 2/(1-\gamma), our sampled gradients are bounded by G:=8B(BW+11−γ)G:=8B(BW+\frac{1}{1-\gamma}). The remainder of the proof follows that of Corollary 6.2

4 Analysis

We first proceed by providing a general analysis of NPG, for arbitrary sequences. We then specialize it to complete the proof of our two main theorems in this section.

It is helpful for us to consider NPG more abstractly, as an update rule of the form

We will now provide a lemma where w(t)w^{(t)} is an arbitrary (bounded) sequence, which will be helpful when specialized.

and, due to Taylor’s theorem, recall that this implies:

The following analysis of NPG is based on the mirror-descent approach developed in (Even-Dar et al., 2009), which motivates us to refer to it as a “regret lemma”.

(NPG Regret Lemma) Fix a comparison policy π~\widetilde{\pi} and a state distribution ρ\rho. Assume for all s∈Ss\in\mathcal{S} and a∈Aa\in\mathcal{A} that log⁡πθ(a∣s)\log\pi_{\theta}(a|s) is a β\beta-smooth function of θ\theta. Consider the update rule (23), where π(0)\pi^{(0)} is the uniform distribution (for all states) and where the sequence of weights w(0),…,w(T)w^{(0)},\ldots,w^{(T)}, satisfies ∥w(t)∥2≤W\|w^{(t)}\|_{2}\leq W (but is otherwise arbitrary). Define:

We use d~\widetilde{d} as shorthand for dρπ~d^{\widetilde{\pi}}_{\rho} (note ρ\rho and π~\widetilde{\pi} are fixed); for any policy π\pi, we also use πs\pi_{s} as shorthand for the vector π(⋅∣s)\pi(\cdot|s). Using the performance difference lemma (Lemma 3.2),

4.2 Proofs of Theorem 6.1 and 6.2

Proof: (of Theorem 6.1) Using the NPG regret lemma (Lemma 6.2) and the smoothness of the log-linear policy class (see Example 6.7),

where we have used our setting of η\eta.

where we have used the definition of d⋆d^{\star} and L(w⋆(t);θ(t),d⋆)L(w_{\star}^{(t)};\theta^{(t)},d^{\star}) in the last step.

For the second term, let us now show that:

To see this, first observe that a similar argument to the above leads to:

where we use the notation ∥x∥M2:=x⊤Mx\|x\|_{M}^{2}:=x^{\top}Mx for a matrix MM and a vector xx. From the definition of κ\kappa,

using that (1−γ)ν≤dνπ(t)(1-\gamma)\nu\leq d_{\nu}^{\pi^{(t)}} (see (19)). Due to that w⋆(t)w_{\star}^{(t)} minimizes L(w;θ(t),d(t))L(w;\theta^{(t)},d^{(t)}) over the set W:={w:∥w∥2≤W}\mathcal{W}:=\{w:\|w\|_{2}\leq W\}, for any w∈Ww\in\mathcal{W} the first-order optimality conditions for w⋆(t)w_{\star}^{(t)} imply that:

Noting that w(t)∈Ww^{(t)}\in\mathcal{W} by construction in Algorithm 4 yields the claimed bound on the second term in (26).

Using the bounds on the first and second terms in (25) and (26), along with concavity of the square root function, we have that:

The following proof for the NPG algorithm follows along similar lines.

Proof: (of Theorem 6.2) Using the NPG regret lemma and our setting of η\eta,

where the expectation is with respect to the sequence of iterates w(0),w(1),…w(T−1)w^{(0)},w^{(1)},\ldots w^{(T-1)}.

where we have used the definition of LA(w⋆(t);θ(t),d⋆)L_{A}(w_{\star}^{(t)};\theta^{(t)},d^{\star}) in the last step.

For the second term, a similar argument leads to:

Define κ(t):=∥(Σν(t))−1/2Σd⋆(Σν(t))−1/2∥2\kappa^{(t)}:=\|(\Sigma^{(t)}_{\nu})^{-1/2}\Sigma_{d^{\star}}(\Sigma^{(t)}_{\nu})^{-1/2}\|_{2}, which is the relative condition number at iteration tt. We have

where the last step uses that w⋆(t)w_{\star}^{(t)} is a minimizer of LAL_{A} over W\mathcal{W} and that w(t)w^{(t)} is feasible as before (see the proof of Theorem 6.1). Now taking an expectation we have:

The proof is completed by substitution and using the concavity of the square root function.

Discussion

This work provides a systematic study of the convergence properties of policy optimization techniques, both in the tabular and the function approximation settings. At the core, our results imply that the non-convexity of the policy optimization problem is not the fundamental challenge for typical variants of the policy gradient approach. This is evidenced by the global convergence results which we establish and that demonstrate the relative niceness of the underlying optimization problem. At the same time, our results highlight that insufficient exploration can lead to the convergence to sub-optimal policies, as is also observed in practice; technically, we show how this is an issue of conditioning. Conversely, we can expect typical policy gradient algorithms to find the best policy from amongst those whose state-visitation distribution is adequately aligned with the policies we discover, provided a distribution-shifted notion of approximation error is small.

In the tabular case, our results show that the nature and severity of the exploration/distribution mismatch term differs in different policy optimization approaches. For instance, we find that doing policy gradient in its standard form for both the direct and softmax parameterizations can be slow to converge, particularly in the face of distribution mismatch, even when policy gradients are computed exactly. Natural policy gradient, on the other hand, enjoys a fast dimension-free convergence when we are in tabular settings with exact gradients. On the other hand, for the function approximation setting, or when using finite samples, all algorithms suffer to some degree from the exploration issue captured through a conditioning effect.

With regards to function approximation, the guarantees herein are the first provable results that permit average case approximation errors, where the guarantees do not have explicit worst case dependencies over the state space. These worst case dependencies are avoided by precisely characterizing an approximation/estimation error decomposition, where the relevant approximation error is under distribution shift to an optimal policies measure. Here, we see that successful function approximation relies on two key aspects: good conditioning (related to exploration) and low distribution-shifted, approximation error. In particular, these results identify the relevant measure of the expressivity of a policy class, for the natural policy gradient.

With regards to sample size issues, we showed that simply using stochastic (projected) gradient ascent suffices for accurate policy optimization. However, in terms of improving sample efficiency and polynomial dependencies, there are number of important questions for future research, including variance reduction techniques along with data re-use.

There are number of compelling directions for further study. The first is in understanding how to remove the density ratio guarantees among prior algorithms; our results are suggestive that the incremental policy optimization approaches, including CPI (Kakade and Langford, 2002), PSDP (Bagnell et al., 2004), and MD-MPI Geist et al. (2019), may permit such an improved analysis. The question of understanding what representations are robust to distribution shift is well-motivated by the nature of our distribution-shifted, approximation error (the transfer error). Finally, we hope that policy optimization approaches can be combined with exploration approaches, so that, provably, these approaches can retain their robustness properties (in terms of their agnostic learning guarantees) while mitigating the need for a well conditioned initial starting distribution.

We thank the anonymous reviewers who provided detailed and constructive feedback that helped us significantly improve the presentation and exposition. Sham Kakade and Alekh Agarwal gratefully acknowledge numerous helpful discussions with Wen Sun with regards to the QQ-NPG algorithm and our notion of transfer error. We also acknowledge numerous helpful comments from Ching-An Cheng and Andrea Zanette on an earlier draft of this work. We thank Nan Jiang, Bruno Scherrer, and Matthieu Geist for their comments with regards to the relationship between concentrability coefficients, the condition number, and the transfer error; this discussion ultimately lead to Corollary 6.1. Sham Kakade acknowledges funding from the Washington Research Foundation for Innovation in Data-intensive Discovery, the ONR award N00014-18-1-2247, and the DARPA award FA8650-18-2-7836. Jason D. Lee acknowledges support of the ARO under MURI Award W911NF-11-1-0303. This is part of the collaboration between US DOD, UK MOD and UK Engineering and Physical Research Council (EPSRC) under the Multidisciplinary University Research Initiative.

References

Appendix A Proofs for Section 3

Proof:[of Lemma 3.1] Recall the MDP in Figure 2. Note that since actions in terminal states s3s_{3}, s4s_{4} and s5s_{5} do not change the expected reward, we only consider actions in states s1s_{1} and s2s_{2}. Let the ”up/above” action as a1a_{1} and ”right” action as a2a_{2}. Note that

where θ\theta is written as a tuple (θa1,s1,θa2,s1,θa1,s2,θa2,s2)(\theta_{a_{1},s_{1}},\theta_{a_{2},s_{1}},\theta_{a_{1},s_{2}},\theta_{a_{2},s_{2}}). Then, for the softmax parameterization, we have

Also, for θ(mid)=θ(1)+θ(2)2\theta^{(\text{mid})}=\frac{\theta^{(1)}+\theta^{(2)}}{2},

which shows that VπV^{\pi} is non-concave.

Proof:[of Lemma 3.2] Let Pr⁡π(τ∣s0=s)\Pr^{\pi}(\tau|s_{0}=s) denote the probability of observing a trajectory τ\tau when starting in state ss and following the policy π\pi. Using a telescoping argument, we have:

where (a)(a) rearranges terms in the summation and cancels the Vπ′(s0)V^{\pi^{\prime}}(s_{0}) term with the −Vπ′(s)-V^{\pi^{\prime}}(s) outside the summation, and (b)(b) uses the tower property of conditional expectations and the final equality follows from the definition of dsπd^{\pi}_{s}.

Appendix B Proofs for Section 4

We first define first-order optimality for constrained optimization.

A policy πθ∈Δ(A)∣S∣{\pi_{\theta}}\in\Delta(\mathcal{A})^{|S|} is ϵ\epsilon-stationary with respect to the initial state distribution μ\mu if

where Δ(A)∣S∣\Delta(\mathcal{A})^{|S|} is the set of all policies.

If ϵ=0\epsilon=0, then the definition simplifies to δ⊤∇πVπ(μ)≤0\delta^{\top}\nabla_{\pi}V^{{{\pi}}}(\mu)\leq 0. Geometrically, δ\delta is a feasible direction of movement since the probability simplex Δ(A)∣S∣\Delta(\mathcal{A})^{|S|} is convex. Thus the gradient is negatively correlated with any feasible direction of movement, and so π{\pi} is first-order stationary.

Let Vπ(μ)V^{\pi}(\mu) be β\beta-smooth in π{\pi}. Define the gradient mapping

and the update rule for the projected gradient is π+=π+ηGη(π)\pi^{+}={\pi}+\eta G^{\eta}(\pi). If ∥Gη(π)∥2≤ϵ\|G^{\eta}(\pi)\|_{2}\leq\epsilon, then

Proof:[of Theorem 4.1] Recall the definition of gradient mapping

From Lemma D.3, we have Vπ(s)V^{\pi}(s) is β\beta-smooth for all states ss (and also hence Vπ(μ)V^{\pi}(\mu) is also β\beta-smooth) with β=2γ∣A∣(1−γ)3\beta=\frac{2\gamma|\mathcal{A}|}{(1-\gamma)^{3}}. Then, from standard result (Theorem E.1), we have that for Gη(π)G^{\eta}({\pi}) with step-size η=1β\eta=\frac{1}{\beta},

where the last step follows as ∥πˉ−π∥2≤2∣S∣\left\lVert\bar{\pi}-{\pi}\right\rVert_{2}\leq 2\sqrt{|\mathcal{S}|}. And then using Lemma 4.1 and ηβ=1\eta\beta=1, we have

We can get our required bound of ϵ\epsilon, if we set TT such that

Using V⋆(μ)−V(0)(μ)≤11−γV^{\star}(\mu)-V^{(0)}(\mu)\leq\frac{1}{1-\gamma} and β=2γ∣A∣(1−γ)3\beta=\frac{2\gamma|\mathcal{A}|}{(1-\gamma)^{3}} from Lemma D.3 leads to the desired result.

B.2 Proofs for Section 4.3

Recall the MDP in Figure 2. Each trajectory starts from the initial state s0s_{0}, and we use the discount factor γ=H/(H+1)\gamma=H/(H+1). Recall that we work with the direct parameterization, where πθ(a∣s)=θs,a\pi_{\theta}(a|s)=\theta_{s,a} for a=a1,a2,a3a=a_{1},a_{2},a_{3} and πθ(a4∣s)=1−θs,a1−θs,a2−θs,a3\pi_{\theta}(a_{4}|s)=1-\theta_{s,a_{1}}-\theta_{s,a_{2}}-\theta_{s,a_{3}}. Note that since states s0s_{0} and sH+1s_{H+1} only have once action, therefore, we only consider the parameters for states s1s_{1} to sHs_{H}. For this policy class and MDP, let PθP^{\theta} be the state transition matrix under πθ\pi_{\theta}, i.e. [Pθ]s,s′[P^{\theta}]_{s,s^{\prime}} is the probability of going from state ss to s′s^{\prime} under policy πθ\pi_{\theta}:

For the MDP illustrated in Figure 2, the entries of this matrix are given as:

With this definition, we recall that the value function in the initial state s0s_{0} is given by

For convenience, we also define pˉ\bar{p} (resp. p‾\underline{p}) to be the largest (resp. smallest) of the probabilities θs\theta_{s} across the states s∈[1,H]s\in[1,H] in the MDP.

In this section, we prove Proposition 4.1, that is: for 0<θ<10<\theta<1 (componentwise across states and actions), pˉ≤1/4\bar{p}\leq 1/4, and for all k≤H40log⁡(2H)−1k\leq\frac{H}{40\log(2H)}-1, we have ∥∇θkVπθ(s0)∥≤(1/3)H/4\lVert\nabla_{\theta}^{k}V^{\pi_{\theta}}(s_{0})\rVert\leq(1/3)^{H/4}, where ∇θkVπθ(s0)\nabla_{\theta}^{k}V^{\pi_{\theta}}(s_{0}) is a tensor of the kthk_{th} order. Furthermore, we seek to show V⋆(s0)−Vπθ(s0)≥(H+1)/8−(H+1)2/3HV^{\star}(s_{0})-V^{\pi_{\theta}}(s_{0})\geq(H+1)/8-(H+1)^{2}/3^{H} (where θ⋆\theta^{\star} are the optimal policy’s parameters).

It is easily checked that Vπθ(s0)=M0,H+1θV^{\pi_{\theta}}(s_{0})=M^{\theta}_{0,H+1}, where

since the only rewards are obtained in the state sH+1s_{H+1}. In order to bound the derivatives of the expected reward, we first establish some properties of the matrix MθM^{\theta}.

Suppose pˉ≤1/4\bar{p}\leq 1/4. Fix any α∈[1−1−4γ2pˉ(1−p‾)2γ(1−p‾),max⁡{1+1−4γ2pˉ(1−p‾)2γ(1−p‾),1}]\alpha\in\left[\tfrac{1-\sqrt{1-4\gamma^{2}\bar{p}(1-\underline{p})}}{2\gamma(1-\underline{p})},\max\left\{\tfrac{1+\sqrt{1-4\gamma^{2}\bar{p}(1-\underline{p})}}{2\gamma(1-\underline{p})},1\right\}\right]. Then

Ma,bθ≤αb−a−11−γM^{\theta}_{a,b}\leq\frac{\alpha^{b-a-1}}{1-\gamma} for 0≤a≤b≤H0\leq a\leq b\leq H.

Ma,H+1θ≤γpˉ1−γMa,Hθ≤γpˉ(1−γ)2αH−aM^{\theta}_{a,H+1}\leq\frac{\gamma\bar{p}}{1-\gamma}M^{\theta}_{a,H}\leq\frac{\gamma\bar{p}}{(1-\gamma)^{2}}\alpha^{H-a} for 0≤a≤H0\leq a\leq H.

Proof: Let ρa,bk\rho^{k}_{a,b} be the normalized discounted probability of reaching bb, when the initial state is aa, in kk steps, that is

where we recall the convention that U0U^{0} is the identity matrix for any square matrix UU. Observe that 0≤ρa,bk≤10\leq\rho^{k}_{a,b}\leq 1, and, based on the form (27) of PθP^{\theta}, we have the recursive relation for all k>0k>0:

Note that ρa,b0=0\rho^{0}_{a,b}=0 for a≠ba\neq b and ρa,b0=1−γ\rho^{0}_{a,b}=1-\gamma for a=ba=b. Now let us inductively prove that for all k≥0k\geq 0

Clearly this holds for k=0k=0 since ρa,b0=0\rho^{0}_{a,b}=0 for a≠ba\neq b and ρa,b0=1−γ\rho^{0}_{a,b}=1-\gamma for a=ba=b. Now, assuming the bound for all steps till k−1k-1, we now prove it for kk case by case.

For 1<b<H1<b<H and a<ba<b, observe that the recursion (29) and the inductive hypothesis imply that

where the last inequality follows since α2γ(1−p‾)−α+γpˉ≤0\alpha^{2}\gamma(1-\underline{p})-\alpha+\gamma\bar{p}\leq 0 due to that α\alpha is within the roots of this quadratic equation. Note the discriminant term in the square root is non-negative provided pˉ<1/4\bar{p}<1/4, since the condition along with the knowledge that p‾≤pˉ\underline{p}\leq\bar{p} ensures that 4γ2pˉ(1−p‾)≤14\gamma^{2}\bar{p}(1-\underline{p})\leq 1.

This proves the inductive claim (note that the cases of b=a=1b=a=1 and b=a=Hb=a=H are already handled in the first part above). Next, we prove that for all k≥0k\geq 0

Clearly this holds for k=0k=0 and b≠0b\neq 0 since ρ0,b0=0\rho^{0}_{0,b}=0. Furthermore, for all k≥0k\geq 0 and b=0b=0,

since α≤1\alpha\leq 1 by construction and b=0b=0. Now, we consider the only remaining case when k>0k>0 and b∈[1,H+1]b\in[1,H+1]. By (27), observe that for k>0k>0 and b∈[1,H+1]b\in[1,H+1],

for all i≥1i\geq 1. Using the definition of ρa,bk\rho^{k}_{a,b} (28) for k>0k>0 and b∈[1,H+1]b\in[1,H+1],

In conjunction with Equation (30), the above display gives for all k≥0k\geq 0,

Since the above bound holds for all k≥0k\geq 0, it also applies to the limiting value Ma,bθM^{\theta}_{a,b}, which shows that

which completes the proof of the first part of the lemma.

For the second claim, from recursion (29) and b=H+1b=H+1 and a<H+1a<H+1

Taking the limit of k→∞k\to\infty, we see that

Rearranging the terms in the above bound yields the second claim in the lemma.

Using the lemma above, we now bound the derivatives of MθM^{\theta}.

The kthk_{th} order partial derivatives of MM satisfy:

where β\bm{\beta} denotes a kk dimensional vector with entries in {1,2,…,H}\{1,2,\ldots,H\}.

where the second equality follows since Ph,h+1=θhP_{h,h+1}=\theta_{h} and Ph,h−1=1−θhP_{h,h-1}=1-\theta_{h} are the only two entries in the transition matrix which depend on θh\theta_{h} for h∈[1,H]h\in[1,H].

Next, let us consider a kthk_{th} order partial derivative of M0,H+1M_{0,H+1}, denoted as ∂kM0,H+1∂θβ\tfrac{\partial^{k}M_{0,H+1}}{\partial\theta_{\bm{\beta}}}. Note that β\bm{\beta} can have repeated entries to capture higher order derivative with respect to some parameter. We prove by induction for all k≥1k\geq 1, −∂kM0,H+1∂θβ-\frac{\partial^{k}M_{0,H+1}}{\partial\theta_{\bm{\beta}}} can be written as ∑n=1Ncnζn\sum_{n=1}^{N}c_{n}\zeta_{n} where

∣cn∣=γk\lvert c_{n}\rvert=\gamma^{k} and N≤2kk!N\leq 2^{k}k!,

Each monomial ζn\zeta_{n} is of the form Mi1,j1…Mik+1,jk+1M_{i_{1},j_{1}}\ldots M_{i_{k+1},j_{k+1}}, i1=0i_{1}=0, jk+1=H+1j_{k+1}=H+1, jl≤Hj_{l}\leq Hand il+1=jl±1i_{l+1}=j_{l}\pm 1 for all l∈[1,k]l\in[1,k].

The base case k=1k=1 follows from Equation (32), as we can write for any h∈[H]h\in[H]

Clearly, the induction hypothesis is true with ∣cn∣=γ\lvert c_{n}\rvert=\gamma, N=2N=2, i1=0i_{1}=0, j2=H+1j_{2}=H+1, j1≤Hj_{1}\leq H and i2=j1±1i_{2}=j_{1}\pm 1. Now, suppose the claim holds till k−1k-1. Then by the chain rule:

where β/i\bm{\beta}^{/i} is the vector β\bm{\beta} with the ithi_{th} entry removed. By inductive hypothesis,

∣cn∣=γk−1\lvert c_{n}\rvert=\gamma^{k-1} and N≤2k−1(k−1)!N\leq 2^{k-1}(k-1)!,

Each monomial ζn\zeta_{n} is of the form Mi1,j1…Mik,jkM_{i_{1},j_{1}}\ldots M_{i_{k},j_{k}}, i1=0i_{1}=0, jk=H+1j_{k}=H+1, jl≤Hj_{l}\leq H and il+1=jl±1i_{l+1}=j_{l}\pm 1 for all l∈[1,k−1]l\in[1,k-1].

In order to compute the (k)th(k)_{th} derivative of M0,H+1M_{0,H+1}, we have to compute derivative of each monomial ζn\zeta_{n} with respect to θβ1\theta_{\beta_{1}}. Consider one of the monomials in the (k−1)th(k-1)_{th} derivative, say, ζ=Mi1,j1…Mik,jk\zeta=M_{i_{1},j_{1}}\ldots M_{i_{k},j_{k}}. We invoke the chain rule as before and replace one of the terms in ζ\zeta, say Mim,jmM_{i_{m},j_{m}}, with γMim,β1Mβ1−1,jm−γMim,β1Mβ1+1,jm\gamma M_{i_{m},\beta_{1}}M_{\beta_{1}-1,j_{m}}-\gamma M_{i_{m},\beta_{1}}M_{\beta_{1}+1,j_{m}} using Equation 32. That is, the derivative of each entry gives rise to two monomials and therefore derivative of ζ\zeta leads to 2k2k monomials which can be written in the form ζ′=Mi1′,j1′…Mik+1′,jk+1′\zeta^{\prime}=M_{i^{\prime}_{1},j^{\prime}_{1}}\ldots M_{i^{\prime}_{k+1},j^{\prime}_{k+1}} where we have the following properties (by appropriately reordering terms)

il′,jl′=il,jli^{\prime}_{l},j^{\prime}_{l}=i_{l},j_{l} for l<ml<m

il′,jl′=il−1,jl−1i^{\prime}_{l},j^{\prime}_{l}=i_{l-1},j_{l-1} for l>m+1l>m+1

im′,jm′=im,β1i^{\prime}_{m},j^{\prime}_{m}=i_{m},\beta_{1} and im+1′,jm+1′=jm±1,jmi^{\prime}_{m+1},j^{\prime}_{m+1}=j_{m}\pm 1,j_{m}

Using the induction hypothesis, we can write

∣cn′∣=γ∣cn∣=γk\lvert c^{\prime}_{n}\rvert=\gamma\lvert c_{n}\rvert=\gamma^{k}, since as shown above each coefficient gets multiplied by ±γ\pm\gamma.

N′≤2k2k−1(k−1)!=2kk!N^{\prime}\leq 2k2^{k-1}(k-1)!=2^{k}k!, since as shown above each monomial ζ\zeta leads to 2k2k monomials ζ′\zeta^{\prime}.

Each monomial ζn′\zeta^{\prime}_{n} is of the form Mi1,j1…Mik+1,jk+1M_{i_{1},j_{1}}\ldots M_{i_{k+1},j_{k+1}}, i1=0i_{1}=0, jk+1=H+1j_{k+1}=H+1, jl≤Hj_{l}\leq H and il+1=jl±1i_{l+1}=j_{l}\pm 1 for all l∈[1,k]l\in[1,k].

Next we prove a bound on the magnitude of each of the monomials which arise in the derivatives of M0,H+1M_{0,H+1}. Specifically, we show that for each monomial ζ=Mi1,j1…Mik+1,jk+1\zeta=M_{i_{1},j_{1}}\ldots M_{i_{k+1},j_{k+1}}, we have

We observe that it suffices to only consider pairs of indices il,jli_{l},j_{l} where il<jli_{l}<j_{l}. Since ∣Mi,j∣≤11−γ\lvert M_{i,j}\rvert\leq\frac{1}{1-\gamma} for all i,ji,j,

The last step follows from H+1=jk+1′≥ik+1′H+1=j^{\prime}_{k+1}\geq i^{\prime}_{k+1}. Note that

where the first inequality follows from adding only non-positive terms to the sum, the second equality follows from rearranging terms and the third inequality follows from i1′=0i^{\prime}_{1}=0, jk+1′=H+1j^{\prime}_{k+1}=H+1 and il+1′=jl′±1i^{\prime}_{l+1}=j^{\prime}_{l}\pm 1 for all l∈[1,k]l\in[1,k]. Therefore,

Using Equation (34) and α≤1\alpha\leq 1 with above display gives

This proves the bound. Now using the claim that

where ∣cn∣=γk\lvert c_{n}\rvert=\gamma^{k} and N≤2kk!N\leq 2^{k}k!, we have shown that

We are now ready to prove Proposition 4.1.

Proof:[Proof of Proposition 4.1] The kthk_{th} order partial derivative of Vπθ(s0)V^{\pi_{\theta}}(s_{0}) is equal to

where the last inequality follows from Lemma B.2. In order to proceed further, we need an upper bound on the smallest admissible value of α\alpha. To do so, let us consider all possible parameters θ\theta such that pˉ≤1/4\bar{p}\leq 1/4 in accordance with the theorem statement. In order to bound α\alpha, it suffices to place an upper bound on the lower end of the range for α\alpha in Lemma B.1 (note Lemma B.1 holds for any choice of α\alpha in the range). Doing so, we see that

where the first inequality uses x−y≥x−y\sqrt{x-y}\geq\sqrt{x}-\sqrt{y}, by triangle inequality while the last inequality uses p‾≤pˉ≤1/4\underline{p}\leq\bar{p}\leq 1/4.

where (a)(a) uses γ=H/(H+1)\gamma=H/(H+1), (b)(b) follows since pˉ≤1\bar{p}\leq 1, H,k≥1H,k\geq 1, γ≤1\gamma\leq 1 and k≤Hk\leq H.

Requiring that the gradient norm be no larger than (4pˉ3)H/4(\tfrac{4\bar{p}}{3})^{H/4}, we would like to satisfy

where (a) follows from a+b≤2aba+b\leq 2ab when a,b≥1a,b\geq 1, (b) follows from H≥1H\geq 1 and pˉ≤1/4\bar{p}\leq 1/4. Therefore, in order to obtain the smallest value of k0k_{0} for all choices of 0≤pˉ<1/40\leq\bar{p}<1/4, we further lower bound k0k_{0} as

Thus, the norm of the gradient is bounded by (4pˉ3)H/4≤(1/3)H/4(\tfrac{4\bar{p}}{3})^{H/4}\leq(1/3)^{H/4} for all k≤H40log⁡(2H)−1k\leq\frac{H}{40\log(2H)}-1 as long as pˉ≤1/4\bar{p}\leq 1/4, which gives the first part of the lemma.

For the second part, note that the optimal policy always chooses the action a1a_{1}, and gets a discounted reward of

where the final inequality uses (1−1/x)x≥1/8(1-1/x)^{x}\geq 1/8 for x≥1x\geq 1. On the other hand, the value of πθ\pi_{\theta} is upper bounded by

Appendix C Proofs for Section 5

where \mathds1∣E]\mathds{1}|\mathcal{E}] is the indicator of E\mathcal{E} being true.

Using this along with the policy gradient expression (6), we have:

where the second to last step uses that for any policy ∑aπ(a∣s)Aπ(s,a)=0\sum_{a}\pi(a|s)A^{\pi}(s,a)=0.

We now prove Theorem 5.1, i.e. we show that for the updates given by

policy gradient converges to optimal policy for the softmax parameterization.

We prove this theorem by first proving a series of supporting lemmas. First, we show in Lemma C.2, that V(t)(s)V^{(t)}(s) is monotonically increasing for all states ss using the fact that for appropriately chosen stepsizes GD makes monotonic improvement for smooth objectives.

For all states ss and actions aa, for updates (36) with learning rate η≤(1−γ)25\eta\leq\frac{(1-\gamma)^{2}}{5}, we have

Proof: The proof will consist of showing that:

holds for all states ss. To see this, observe that since the above holds for all states s′s^{\prime}, the performance difference lemma (Lemma 3.2) implies

where c(s,a)c(s,a) is constant, which we later set to be A(t)(s,a)A^{(t)}(s,a); note we do not treat c(s,a)c(s,a) as a function of θ\theta. Thus,

Taking c(s,a)c(s,a) to be A(t)(s,a)A^{(t)}(s,a) implies ∑a′∈Aπ(t)(a′∣s)c(s,a′)=∑a′∈Aπ(t)(a′∣s)A(t)(s,a′)=0\sum_{a^{\prime}\in\mathcal{A}}\pi^{(t)}(a^{\prime}|s)c(s,a^{\prime})=\sum_{a^{\prime}\in\mathcal{A}}\pi^{(t)}(a^{\prime}|s)A^{(t)}(s,a^{\prime})=0,

Observe that for the softmax parameterization,

where ∇s\nabla_{s} is gradient w.r.t. θs\theta_{s} and from Lemma C.1 that:

Recall that for a β\beta smooth function, gradient ascent will decrease the function value provided that η≤1/β\eta\leq 1/\beta (Theorem E.1). Because Fs(θs)F_{s}(\theta_{s}) is β\beta-smooth for β=51−γ\beta=\frac{5}{1-\gamma} (Lemma D.1 and ∣A(t)(s,a)∣≤11−γ\left\lvert A^{(t)}(s,a)\right\rvert\leq\frac{1}{1-\gamma}), then our assumption that

implies that η11−γdμπ(t)(s)≤1/β\eta\frac{1}{1-\gamma}d^{\pi^{(t)}}_{\mu}(s)\leq 1/\beta, and so we have

Next, we show the limit for iterates V(t)(s)V^{(t)}(s) and Q(t)(s,a)Q^{(t)}(s,a) exists for all states ss and actions aa.

For all states ss and actions aa, there exists values V(∞)(s)V^{(\infty)}(s) and Q(∞)(s,a)Q^{(\infty)}(s,a) such that as t→∞t\to\infty, V(t)(s)→V(∞)(s)V^{(t)}(s)\rightarrow V^{(\infty)}(s) and Q(t)(s,a)→Q(∞)(s,a)Q^{(t)}(s,a)\rightarrow Q^{(\infty)}(s,a). Define

where A(∞)(s,a)=Q(∞)(s,a)−V(∞)(s)A^{(\infty)}(s,a)=Q^{(\infty)}(s,a)-V^{(\infty)}(s). Furthermore, there exists a T0T_{0} such that for all t>T0t>T_{0}, s∈Ss\in\mathcal{S}, and a∈Aa\in\mathcal{A}, we have

Proof: Observe that Q(t+1)(s,a)≥Q(t)(s,a)Q^{(t+1)}(s,a)\geq Q^{(t)}(s,a) (by Lemma C.2) and Q(t)(s,a)≤11−γQ^{(t)}(s,a)\leq\frac{1}{1-\gamma}, therefore by monotone convergence theorem, Q(t)(s,a)→Q(∞)(s,a)Q^{(t)}(s,a)\rightarrow Q^{(\infty)}(s,a) for some constant Q(∞)(s,a)Q^{(\infty)}(s,a). Similarly it follows that V(t)(s)→V(∞)(s)V^{(t)}(s)\rightarrow V^{(\infty)}(s) for some constant V(∞)(s)V^{(\infty)}(s). Due to the limits existing, this implies we can choose T0T_{0}, such that the result (40) follows. Based on the limits V(∞)(s)V^{(\infty)}(s) and Q(∞)(s,a)Q^{(\infty)}(s,a), define following sets:

In the following lemmas C.5- C.11, we first show that probabilities π(t)(a∣s)→0\pi^{(t)}(a|s)\to 0 for actions a∈I+s∪I−sa\in I^{s}_{+}\cup I^{s}_{-} as t→∞t\to\infty. We then show that for actions a∈I−sa\in I^{s}_{-}, lim⁡t→∞θs,a(t)=−∞\lim_{t\to\infty}\theta^{(t)}_{s,a}=-\infty and for all actions a∈I+sa\in I^{s}_{+}, θ(t)(a∣s)\theta^{(t)}(a|s) is bounded from below as t→∞t\rightarrow\infty.

We have that there exists a T1T_{1} such that for all t>T1t>T_{1}, s∈Ss\in\mathcal{S}, and a∈Aa\in\mathcal{A}, we have

Proof: Since, V(t)(s)→V(∞)(s)V^{(t)}(s)\to V^{(\infty)}(s), we have that there exists T1>T0T_{1}>T_{0} such that for all t>T1t>T_{1},

Using Equation (40), it follows that for t>T1>T0t>T_{1}>T_{0}, for a∈I−sa\in I^{s}_{-}

Similarly A(t)(s,a)=Q(t)(s,a)−V(t)(s)>Δ/4A^{(t)}(s,a)=Q^{(t)}(s,a)-V^{(t)}(s)>\Delta/4 for a∈I+sa\in I^{s}_{+} as

∂V(t)(μ)∂θs,a→0\frac{\partial V^{(t)}(\mu)}{\partial\theta_{s,a}}\rightarrow 0 as t→∞t\to\infty for all states ss and actions aa. This implies that for a∈I+s∪I−sa\in I^{s}_{+}\cup I^{s}_{-}, π(t)(a∣s)→0\pi^{(t)}(a|s)\rightarrow 0 and that ∑a∈I0sπ(t)(a∣s)→1\sum_{a\in I^{s}_{0}}\pi^{(t)}(a|s)\rightarrow 1.

Proof: Because Vπθ(μ)V^{\pi_{\theta}}(\mu) is smooth (Lemma D.4) as a function of θ\theta, it follows from standard optimization results (Theorem E.1) that ∂V(t)(μ)∂θs,a→0\frac{\partial V^{(t)}(\mu)}{\partial\theta_{s,a}}\rightarrow 0 for all states ss and actions aa. We have from Lemma C.1

Since, ∣A(t)(s,a)∣>Δ4|A^{(t)}(s,a)|>\frac{\Delta}{4} for all t>T1t>T_{1} (from Lemma C.4) for all a∈I−s∪I+sa\in I^{s}_{-}\cup I^{s}_{+} and dμπ(t)(s)≥μ(s)1−γ>0d^{\pi^{(t)}}_{\mu}(s)\geq\frac{\mu(s)}{1-\gamma}>0 (using the strict positivity of μ\mu in our assumption in Theorem 5.1), we have π(t)(a∣s)→0\pi^{(t)}(a|s)\to 0.

(Monotonicity in θs,a(t)\theta^{(t)}_{s,a}). For all a∈I+sa\in I^{s}_{+}, θs,a(t)\theta^{(t)}_{s,a} is strictly increasing for t≥T1t\geq T_{1}. For all a∈I−sa\in I^{s}_{-}, θs,a(t)\theta^{(t)}_{s,a} is strictly decreasing for t≥T1t\geq T_{1}.

From Lemma C.4, we have for all t>T1t>T_{1}

Since dμπ(t)(s)>0d^{\pi^{(t)}}_{\mu}(s)>0 and π(t)(a∣s)>0\pi^{(t)}(a|s)>0 for the softmax parameterization, we have for all t>T1t>T_{1}

This implies for all a∈I+sa\in I^{s}_{+}, θs,a(t+1)−θs,a(t)=∂V(t)(μ)∂θs,a>0\theta^{(t+1)}_{s,a}-\theta^{(t)}_{s,a}=\frac{\partial V^{(t)}(\mu)}{\partial\theta_{s,a}}>0 i.e. θs,a(t)\theta^{(t)}_{s,a} is strictly increasing for t≥T1t\geq T_{1}. The second claim follows similarly.

For all ss where I+s≠∅I_{+}^{s}\neq\emptyset, we have that:

Proof: Since I+s≠∅I_{+}^{s}\neq\emptyset, there exists some action a+∈I+sa_{+}\in I_{+}^{s}. From Lemma C.5,

or equivalently by softmax parameterization,

From Lemma C.6, for any action a∈I+sa\in I_{+}^{s} and in particular for a+a_{+}, θs,a+(t)\theta^{(t)}_{s,a_{+}} is monotonically increasing for t>T1t>T_{1}. That is the numerator in previous display is monotonically increasing. Therefore, the denominator should go to infinity i.e.

Note this also implies max⁡a∈Aθs,a(t)→∞\max_{a\in\mathcal{A}}\theta^{(t)}_{s,a}\rightarrow\infty. The last part of the proof is completed using that the gradients sum to , i.e. ∑a∂V(t)(μ)∂θs,a=0\sum_{a}\frac{\partial V^{(t)}(\mu)}{\partial\theta_{s,a}}=0. From gradient sum to , we get that ∑a∈Aθs,a(t)=∑a∈Aθs,a(0):=c for all t>0\sum_{a\in\mathcal{A}}\theta^{(t)}_{s,a}=\sum_{a\in\mathcal{A}}\theta^{(0)}_{s,a}:=c\text{ for all }t>0 where cc is defined as the sum (over A\mathcal{A}) of initial parameters. That is min⁡a∈Aθs,a(t)<−1∣A∣max⁡a∈Aθs,a(t)+c\min_{a\in\mathcal{A}}\theta^{(t)}_{s,a}<-\frac{1}{|\mathcal{A}|}\max_{a\in\mathcal{A}}\theta^{(t)}_{s,a}+c. Since, max⁡a∈Aθs,a(t)→∞\max_{a\in\mathcal{A}}\theta^{(t)}_{s,a}\to\infty, the result follows.

Suppose a+∈I+sa_{+}\in I^{s}_{+}. For any a∈I0sa\in I^{s}_{0}, if there exists a t≥T0t\geq T_{0} such that π(t)(a∣s)≤π(t)(a+∣s)\pi^{(t)}(a|s)\leq\pi^{(t)}(a_{+}|s), then for all τ≥t\tau\geq t, π(τ)(a∣s)≤π(τ)(a+∣s)\pi^{(\tau)}(a|s)\leq\pi^{(\tau)}(a_{+}|s).

Proof: The proof is inductive. Suppose π(t)(a∣s)≤π(t)(a+∣s)\pi^{(t)}(a|s)\leq\pi^{(t)}(a_{+}|s), this implies from Lemma C.1

where the second to last step follows from Q(t)(s,a+)≥Q(∞)(s,a+)−Δ/4≥Q(∞)(s,a)+Δ−Δ/4>Q(t)(s,a)Q^{(t)}(s,a_{+})\geq Q^{(\infty)}(s,a_{+})-\Delta/4\geq Q^{(\infty)}(s,a)+\Delta-\Delta/4>Q^{(t)}(s,a) for t>T0t>T_{0}. This implies that π(t+1)(a∣s)≤π(t+1)(a+∣s)\pi^{(t+1)}(a|s)\leq\pi^{(t+1)}(a_{+}|s) which completes the proof.

Consider an arbitrary a+∈I+sa_{+}\in I^{s}_{+}. Let us partition the set I0sI^{s}_{0} into B0s(a+)B^{s}_{0}(a_{+}) and Bˉ0s(a+)\bar{B}^{s}_{0}(a_{+}) as follows: B0s(a+)B^{s}_{0}(a_{+}) is the set of all a∈I0sa\in I^{s}_{0} such that for all t≥T0t\geq T_{0}, π(t)(a+∣s)<π(t)(a∣s)\pi^{(t)}(a_{+}|s)<\pi^{(t)}(a|s), and Bˉ0s(a+)\bar{B}^{s}_{0}(a_{+}) contains the remainder of the actions from I0sI^{s}_{0}. We drop the argument (a+)(a_{+}) when clear from the context.

Suppose I+s≠∅I_{+}^{s}\neq\emptyset. For all a+∈I+sa_{+}\in I^{s}_{+}, we have that B0s(a+)≠∅B^{s}_{0}(a_{+})\neq\emptyset and that

Proof: Let a+∈I+sa_{+}\in I^{s}_{+}. Consider any a∈Bˉ0sa\in\bar{B}^{s}_{0}. Then, by definition of Bˉ0s\bar{B}^{s}_{0}, there exists t′>T0t^{\prime}>T_{0} such that π(t)(a+∣s)≥π(t)(a∣s)\pi^{(t)}(a_{+}|s)\geq\pi^{(t)}(a|s). From Lemma C.8, for all τ>t\tau>t π(τ)(a+∣s)≥π(τ)(a∣s)\pi^{(\tau)}(a_{+}|s)\geq\pi^{(\tau)}(a|s). Also, since π(t)(a+∣s)→0\pi^{(t)}(a_{+}|s)\to 0, this implies

Since, B0s∪Bˉ0s=I0sB^{s}_{0}\cup\bar{B}^{s}_{0}=I^{s}_{0} and ∑a∈I0sπ(t)(a∣s)→1\sum_{a\in I^{s}_{0}}\pi^{(t)}(a|s)\to 1 (from Lemma C.5), this implies that B0s≠∅B^{s}_{0}\neq\emptyset and that means

which completes the proof of the first claim. The proof of the second claim is identical to the proof in Lemma C.7 where instead of ∑a∈I0sπ(t)(a∣s)→1\sum_{a\in I^{s}_{0}}\pi^{(t)}(a|s)\rightarrow 1, we use ∑a∈B0sπ(t)(a∣s)→1\sum_{a\in B^{s}_{0}}\pi^{(t)}(a|s)\to 1.

Consider any ss where I+s≠∅I_{+}^{s}\neq\emptyset. Then, for any a+∈I+sa_{+}\in I^{s}_{+}, there exists an iteration Ta+T_{a_{+}} such that for all t>Ta+t>T_{a_{+}},

Proof: The proof follows from definition of Bˉ0s(a+)\bar{B}^{s}_{0}(a_{+}). That is if a∈Bˉ0s(a+)a\in\bar{B}^{s}_{0}(a_{+}), then there exists a iteration ta>T0t_{a}>T_{0} such that π(ta)(a+∣s)>π(ta)(a∣s)\pi^{(t_{a})}(a_{+}|s)>\pi^{(t_{a})}(a|s). Then using Lemma C.8, for all τ>ta\tau>t_{a}, π(τ)(a+∣s)>π(τ)(a∣s)\pi^{(\tau)}(a_{+}|s)>\pi^{(\tau)}(a|s). Choosing

For all actions a∈I+sa\in I^{s}_{+}, we have that θs,a(t)\theta^{(t)}_{s,a} is bounded from below as t→∞t\rightarrow\infty. For all actions a∈I−sa\in I^{s}_{-}, we have that θs,a(t)→−∞\theta^{(t)}_{s,a}\rightarrow-\infty as t→∞t\rightarrow\infty.

Proof: For the first claim, from Lemma C.6, we know that after T1T_{1}, θs,a(t)\theta^{(t)}_{s,a} is strictly increasing for a∈I+sa\in I^{s}_{+}, i.e. for all t>T1t>T_{1}

For the second claim, we know that after T1T_{1}, θs,a(t)\theta^{(t)}_{s,a} is strictly decreasing for a∈I−sa\in I^{s}_{-} (Lemma C.6). Therefore, by monotone convergence theorem, lim⁡t→∞θs,a(t)\lim_{t\to\infty}\theta^{(t)}_{s,a} exists and is either −∞-\infty or some constant θ0\theta_{0}. We now prove the second claim by contradiction. Suppose a∈I−sa\in I^{s}_{-} and that there exists a θ0\theta_{0}, such that θs,a(t)>θ0\theta^{(t)}_{s,a}>\theta_{0}, for t≥T1t\geq T_{1}. By Lemma C.7, there must exist an action where a′∈Aa^{\prime}\in\mathcal{A} such that

Let us consider some δ>0\delta>0 such that θs,a′(T1)≥θ0−δ\theta^{(T_{1})}_{s,a^{\prime}}\geq\theta_{0}-\delta. Now for t≥T1t\geq T_{1} define τ(t)\tau(t) as follows: τ(t)=k\tau(t)=k if kk is the largest iteration in the interval [T1,t][T_{1},t] such that θs,a′(k)≥θ0−δ\theta^{(k)}_{s,a^{\prime}}\geq\theta_{0}-\delta (i.e. τ(t)\tau(t) is the latest iteration before θs,a′\theta_{s,a^{\prime}} crosses below θ0−δ\theta_{0}-\delta). Define T(t)\mathcal{T}^{(t)} as the subsequence of iterations τ(t)<t′<t\tau(t)<t^{\prime}<t such that θs,a′(t′)\theta^{(t^{\prime})}_{s,a^{\prime}} decreases, i.e.

Define ZtZ_{t} as the sum (if T(t)=∅\mathcal{T}^{(t)}=\emptyset, we define Zt=0Z_{t}=0):

For non-empty T(t)\mathcal{T}^{(t)}, this gives:

where we have used that ∣∂V(t′)(μ)∂θs,a′∣≤1/(1−γ)|\frac{\partial V^{(t^{\prime})}(\mu)}{\partial\theta_{s,a^{\prime}}}|\leq 1/(1-\gamma). By (43), this implies that:

For any T(t)≠∅\mathcal{T}^{(t)}\neq\emptyset, this implies that for all t′∈T(t)t^{\prime}\in\mathcal{T}^{(t)}, from Lemma C.1

where we have used that ∣A(t′)(s,a′)∣≤1/(1−γ)|A^{(t^{\prime})}(s,a^{\prime})|\leq 1/(1-\gamma) and ∣A(t′)(s,a)∣≥Δ4|A^{(t^{\prime})}(s,a)|\geq\frac{\Delta}{4} for all t′>T1t^{\prime}>T_{1} (from Lemma C.4). Note that since ∂V(t′)(μ)∂θs,a<0\frac{\partial V^{(t^{\prime})}(\mu)}{\partial\theta_{s,a}}<0 and ∂V(t′)(μ)∂θs,a′<0\frac{\partial V^{(t^{\prime})}(\mu)}{\partial\theta_{s,a^{\prime}}}<0 over the subsequence T(t)\mathcal{T}^{(t)}, the sign of the inequality reverses. In particular, for any T(t)≠∅\mathcal{T}^{(t)}\neq\emptyset

where the first step follows from that θs,a(t)\theta^{(t)}_{s,a} is monotonically decreasing, i.e. ∂V(t)(μ)∂θs,a<0\frac{\partial V^{(t)}(\mu)}{\partial\theta_{s,a}}<0 for t∉Tt\notin\mathcal{T} (Lemma C.6). Since,

this contradicts that θs,a(t)\theta^{(t)}_{s,a} is lower bounded from below, which completes the proof.

Consider any ss where I+s≠∅I_{+}^{s}\neq\emptyset. Then, for any a+∈I+sa_{+}\in I^{s}_{+},

Proof: Consider any a∈B0sa\in B^{s}_{0}. We have by definition of B0sB^{s}_{0} that π(t)(a+∣s)<π(t)(a∣s)\pi^{(t)}(a_{+}|s)<\pi^{(t)}(a|s) for all t>T0t>T_{0}. This implies by the softmax parameterization that θs,a+(t)<θs,a(t)\theta^{(t)}_{s,a_{+}}<\theta^{(t)}_{s,a}. Since, θs,a+(t)\theta^{(t)}_{s,a_{+}} is lower bounded as t→∞t\to\infty (using Lemma C.11), this implies θs,a(t)\theta^{(t)}_{s,a} is lower bounded as t→∞t\to\infty for all a∈B0sa\in B^{s}_{0}. This in conjunction with max⁡a∈B0s(a+)θs,a(t)→∞\max_{a\in B^{s}_{0}(a_{+})}\theta^{(t)}_{s,a}\to\infty implies

which proves this claim. We are now ready to complete the proof for Theorem 5.1. We prove it by showing that I+sI^{s}_{+} is empty for all states ss or equivalently V(t)(s0)→V⋆(s0)V^{(t)}(s_{0})\to V^{\star}(s_{0}) as t→∞t\to\infty.

Proof:[Proof for Theorem 5.1] Suppose the set I+sI^{s}_{+} is non-empty for some ss, else the proof is complete. Let a+∈I+sa_{+}\in I^{s}_{+}. Then, from Lemma C.12,

Now we proceed by showing a contradiction. For a∈I−sa\in I^{s}_{-}, we have that since π(t)(a∣s)π(t)(a+∣s)=exp⁡(θs,a(t)−θs,a+(t))→0\frac{\pi^{(t)}(a|s)}{\pi^{(t)}(a_{+}|s)}=\exp(\theta^{(t)}_{s,a}-\theta^{(t)}_{s,a_{+}})\to 0 (as θs,a+(t)\theta^{(t)}_{s,a_{+}} is lower bounded and θs,a(t)→−∞\theta^{(t)}_{s,a}\to-\infty by Lemma C.11), there exists T2>T0T_{2}>T_{0} such that

For a∈Bˉ0sa\in\bar{B}^{s}_{0}, we have A(t)(s,a)→0A^{(t)}(s,a)\rightarrow 0 (by definition of set I0sI^{s}_{0} and Bˉ0s⊂I0s\bar{B}^{s}_{0}\subset I^{s}_{0}) and 1<π(t)(a+∣s)π(t)(a∣s)1<\frac{\pi^{(t)}(a_{+}|s)}{\pi^{(t)}(a|s)} for all t>Ta+t>T_{a_{+}} from Lemma C.10. Thus, there exists T3>T2,Ta+T_{3}>T_{2},T_{a_{+}} such that

We have for t>T3t>T_{3}, from ∑a∈Aπ(t)(a∣s)A(t)(s,a)=0\sum_{a\in\mathcal{A}}\pi^{(t)}(a|s)A^{(t)}(s,a)=0,

where in the step (a), we used A(t)(s,a)>0A^{(t)}(s,a)>0 for all actions a∈I+sa\in I^{s}_{+} for t>T3>T1t>T_{3}>T_{1} from Lemma C.4. In the step (b), we used A(t)(s,a+)≥Δ4A^{(t)}(s,a_{+})\geq\frac{\Delta}{4} for t>T3>T1t>T_{3}>T_{1} from Lemma C.4 and A(t)(s,a)≥−11−γA^{(t)}(s,a)\geq-\frac{1}{1-\gamma} . In the step (c), we used Equation (46) and left inequality in (47). This implies that for all t>T3t>T_{3}

This contradicts Equation (45) which requires

Therefore, the set I+sI^{s}_{+} must be empty, which completes the proof.

C.2 Proofs for Section 5.2

Proof:[of Corollary 5.1] Using Theorem 5.2, the desired optimality gap ϵ\epsilon will follow if we set

and if ∥∇θLλ(θ)∥2≤λ/(2∣S∣ ∣A∣)\|\nabla_{\theta}L_{\lambda}(\theta)\|_{2}\leq\lambda/(2|\mathcal{S}|\,|\mathcal{A}|). In order to complete the proof, we need to bound the iteration complexity of making the gradient sufficiently small.

Since the optimization is deterministic and unconstrained, we can appeal to standard results (Theorem E.1) which give that after TT iterations of gradient ascent with stepsize of 1/βλ1/\beta_{\lambda}, we have

where βλ\beta_{\lambda} is an upper bound on the smoothness of Lλ(θ)L_{\lambda}(\theta). We seek to ensure

Choosing T≥8βλ ∣S∣2∣A∣2(1−γ) λ2T\geq\frac{8\beta_{\lambda}\,|\mathcal{S}|^{2}|\mathcal{A}|^{2}}{(1-\gamma)\,\lambda^{2}} satisfies the above inequality. By Lemma D.4, we can take βλ=8γ(1−γ)3+2λ∣S∣\beta_{\lambda}=\frac{8\gamma}{(1-\gamma)^{3}}+\frac{2\lambda}{|\mathcal{S}|}, and so

where we have used that λ<1\lambda<1. This completes the proof.

C.3 Proofs for Section 5.3

In other words, wθ⋆w^{\star}_{\theta} is precisely proportional to the NPG update direction. Note further that for the Softmax policy parameterization, we have by (35),

Note that here we have used that πθ\pi_{\theta} is a stochastic policy with πθ(a∣s)>0\pi_{\theta}(a|s)>0 for all actions aa in each state ss, so that if a state is reachable under ρ\rho, it will also be reachable using πθ\pi_{\theta}, and hence the zero derivative conditions apply at each reachable state. For Aπθ+vA^{\pi_{\theta}}+v to minimize LθL^{\theta}, we would like v⊤∇θlog⁡πθ(a∣s)=0v^{\top}\nabla_{\theta}\log\pi_{\theta}(a|s)=0 for all s,as,a so that vs,av_{s,a} is independent of the action and can be written as a constant csc_{s} for each ss by the above equality. Hence, the minimizer of Lθ(w)L^{\theta}(w) is determined up to a state-dependent offset, and

Owing to the normalization factor Zt(s)Z_{t}(s), the state dependent offset csc_{s} cancels in the updates for π\pi, so that resulting policy is invariant to the specific choice of csc_{s}. Hence, we pick cs≡0c_{s}\equiv 0, which yields the statement of the lemma.

Appendix D Smoothness Proofs

Various convergence guarantees we show leverage results from smooth, non-convex optimization. In this section, we collect the various results on smoothness of policies and value functions in the different parameterizations which are needed in our analysis.

Define the Hadamard product of two vectors:

Define diag(x)\textrm{diag}(x) for a column vector xx as the diagonal matrix with diagonal as xx.

Proof: For notational convenience, we do not explicitly state the ss dependence. For the softmax parameterization, we have that

We can then write (as ∇θπθ\nabla_{\theta}\pi_{\theta} is symmetric),

and the second term, we can decompose by chain rule

Before we prove the smoothness results for ∇πVπ(s0)\nabla_{\pi}V^{\pi}(s_{0}) and ∇θVπθ(s0)\nabla_{\theta}V^{\pi_{\theta}}(s_{0}), we prove the following helpful lemma. This lemma is general and not specific to the direct or softmax policy parameterizations.

Let πα:=πθ+αu\pi_{\alpha}:=\pi_{\theta+\alpha u} and let V~(α)\widetilde{V}(\alpha) be the corresponding value at a fixed state s0s_{0}, i.e.

Proof: Consider a unit vector uu and let P~(α)\widetilde{P}(\alpha) be the state-action transition matrix under π\pi, i.e.

We can differentiate P~(α)\widetilde{P}(\alpha) w.r.t α\alpha to get

Similarly, differentiating P~(α)\widetilde{P}(\alpha) twice w.r.t. α\alpha, we get

An identical argument leads to that, for arbitrary xx,

Let Qα(s0,a0)Q^{\alpha}(s_{0},a_{0}) be the corresponding QQ-function for policy πα\pi_{\alpha} at state s0s_{0} and action a0a_{0}. Observe that Qα(s0,a0)Q^{\alpha}(s_{0},a_{0}) can be written as:

where M(α):=(I−γP~(α))−1M(\alpha):=(\textrm{I}-\gamma\widetilde{P}(\alpha))^{-1} and differentiating twice w.r.t α\alpha gives:

By using power series expansion of matrix inverse, we can write M(α)M(\alpha) as:

which implies that M(α)≥0M(\alpha)\geq 0 (componentwise) and M(α)1=11−γ1M(\alpha)\mathbf{1}=\frac{1}{1-\gamma}\mathbf{1}, i.e. each row of M(α)M(\alpha) is positive and sums to 1/(1−γ)1/(1-\gamma). This implies:

This gives using expression for d2Qα(s0,a0)(dα)2\frac{d^{2}Q^{\alpha}(s_{0},a_{0})}{(d\alpha)^{2}} and dQα(s0,a)dα\frac{dQ^{\alpha}(s_{0},a)}{d\alpha},

By differentiating V~(α)\widetilde{V}(\alpha) twice w.r.t α\alpha, we get

Using this lemma, we now establish smoothness for: the value functions under the direct policy parameterization and the log barrier regularized objective 12 for the softmax parameterization.

Proof: By differentiating πα\pi_{\alpha} w.r.t α\alpha gives

and differentiating again w.r.t α\alpha gives

Using this with Lemma D.2 with C1=∣A∣C_{1}=\sqrt{|\mathcal{A}|} and C2=0C_{2}=0, we get

We now present a smoothness result for the entropy regularized policy optimization problem which we study for the softmax parameterization.

where eae_{a} is a standard basis vector and π(⋅∣s)\pi(\cdot|s) is a vector of probabilities. We also have by differentiating πα(a∣s)\pi_{\alpha}(a|s) once w.r.t α\alpha,

Similarly, differentiating once again w.r.t. α\alpha, we get

Using this with Lemma D.2 for C1=2C_{1}=2 and C2=6C_{2}=6, we get

or equivalently for all starting states ss and hence for all starting state distributions μ\mu,

Now let us bound the smoothness of the regularizer λ∣S∣R(θ)\frac{\lambda}{|\mathcal{S}|}R(\theta), where

Since ∇θs∇θs′R(θ)=0\nabla_{\theta_{s}}\nabla_{\theta_{s^{\prime}}}R(\theta)=0 for s≠s′s\neq s^{\prime},

Thus RR is 22-smooth and λ∣S∣R\frac{\lambda}{|\mathcal{S}|}R is 2λ∣S∣\frac{2\lambda}{|\mathcal{S}|}-smooth, which completes the proof.

Appendix E Standard Optimization Results

In this section, we present the standard optimization results from Ghadimi and Lan , Beck used in our proofs. We consider solving the following problem

with CC being a nonempty closed and convex set. We assume the following

Throughout the section, we will denote the optimal ff value by f(x∗)f(x^{\ast}).

We define the gradient mapping Gη(x)G^{\eta}(x) as

where PCP_{C} is the projection onto CC.

Suppose that Assumption E.1 holds and let {xk}k≥0\{x_{k}\}_{k\geq 0} be the sequence generated by the gradient descent algorithm for solving the problem (54) with the stepsize η=1/β\eta=1/\beta. Then,

The sequence {F(xt)}t≥0\{F(x_{t})\}_{t\geq 0} is non-increasing.

min⁡t=0,1,…,T−1∥Gη(xt)∥≤2βf(x0)−f(x∗)T\min_{t=0,1,\ldots,T-1}\|G^{\eta}(x_{t})\|\leq\frac{\sqrt{2\beta f(x_{0})-f(x^{\ast})}}{\sqrt{T}}

Suppose that Assumption E.1 holds. Let x+=x−ηGη(x)x^{+}=x-\eta G^{\eta}(x). Then,

We now consider the stochastic projected gradient descent algorithm where at each time step tt, we update xtx_{t} by sampling a random vtv_{t} such that

Assume C={x:∥x∥≤B}C=\{x:\lVert x\rVert\leq B\}, for some B>0B>0. Let ff be a convex function and let x∗∈argmin⁡x:∥x∥≤Bf(w)x^{\ast}\in\operatorname{{argmin}}_{x:\lVert x\rVert\leq B}f(w). Assume also that for all tt, ∥vt∥≤ρ\lVert v_{t}\rVert\leq\rho, and that stochastic projected gradient descent is run for NN iterations with η=B2ρ2N\eta=\sqrt{\frac{B^{2}}{\rho^{2}N}}. Then,