On the Convergence Rates of Policy Gradient Methods
Lin Xiao
Introduction
Markov decision process (MDP) is a fundamental model for sequential decision-making. In this paper, we consider infinite-horizon, discounted Markov decision problems (DMDPs) with finite state and action spaces. They are specified as a 5-tuple , where is a finite state space with cardinality , is a finite action space with cardinality , is a transition probability function with denoting the probability of transitioning to when taking action from state , is a reward function with or being the (expected) reward of taking action from state , and finally is a discount factor applied to the reward one-step in the future.
Starting from an initial state , an agent takes an action at each time step , which leads to the next state with probability , and obtains the immediate reward . Such interactions generate a trajectory
The goal of the agent is to find a policy of choosing the actions that maximizes the discounted cumulative reward \operatorname*{\mathbf{E}}\bigl{[}\sum_{t=0}^{\infty}\gamma^{t}r_{t}\bigr{]}. Here the expectation is taken with respect to the possible randomness in , any randomness in choosing the actions , and the randomness of state transitions prescribed by .
In general, a policy that determines the action at time may depends on the whole history of the trajectory up to time . A stationary policy specifies a decision rule that depends only on the current state. Specifically, we let be the decision rule at state , where denotes the probability simplex supported on , and denotes the probability of taking action at state . The value of a stationary policy starting from an arbitrary state is defined as
where the expectation is taken with respect to and for all . We define as a vector-valued function with components . By the assumption that for all , we immediately have
The conventional formulation of DMDP is about maximizing the discounted total reward. In this paper, we adopt a minimization formulation in order to better align with conventions in the optimization literature. To this end, we regard each as a value measuring regret rather than reward. Given a reward matrix , we can reset for all to turn it into a regret matrix. Suppose is an arbitrary initial state distribution. We consider the problem of minimizing
For infinite-horizon DMDPs with finite state and actions spaces, there exists a (deterministic) stationary policy that is simultaneously optimal in minimizing for all (e.g., Puterman, 1994, Section 6.2.4). Such a solution is insensitive to the choice of .
In this paper, we focus on policy gradient methods for minimizing the weighted value function . These methods generate a sequence of policies through repeated evaluation of the policy gradient , where is not necessarily equal to . The most straightforward variant is the projected policy gradient method,
where is the step size, is the set of feasible policies, and denotes projection onto in the Euclidean norm. More generally, policy gradient methods can be derived from the mirror-descent form
where is a distance-like function that may depend on . For example, setting as the squared Euclidean distance yields the projected policy gradient method (4). Shani et al. (2020) showed that by setting as an appropriately weighted Kullback-Leibler (KL) divergence, one recovers the natural policy gradient (NPG) method of Kakade (2001). In general, we can think of (5) as a class of preconditioned policy gradient methods. The main results of this paper concern the convergence rates of such methods.
Many classical algorithms for DMDP are based on dynamical programming (Bellman, 1957), including value iteration, policy iteration, temporal difference learning and Q-learning (see, e.g., Puterman, 1994; Bertsekas and Tsitsiklis, 1996; Sutton and Barto, 2018). Analyses of these methods in the tabular case mostly rely on the contraction property of the Bellman operator, which are difficult to extend with nonlinear function approximation and policy parametrization. In contrast, policy gradient methods (Williams, 1992; Sutton et al., 2000; Konda and Tsitsiklis, 2000; Kakade, 2001) aim to find a local minimum of an expected value function, thus are applicable to any differentiable policy parametrization and admit easy extensions to function approximation. In particular, they appear to work well when parametrized with modern deep neural networks (Schulman et al., 2015, 2017).
Despite the long history and empirical successes of policy gradient methods, their convergence properties are not well understood until recently. For example, it was widely accepted that they converge asymptotically to a stationary point or a local minimum because the objective function is nonconvex in general. However, Fazel et al. (2018) show that for linear quadratic control problems, policy gradient methods converge to the global optimal solution despite the nonconvex cost function, thanks to a gradient dominance property (Polyak, 1963). Agarwal et al. (2021) derive a variational gradient-dominance property and use it to obtain global convergence of the projected policy gradient method (4). Bhandari and Russo (2019) identify more general structural properties of policy gradient methods to ensure gradient domination and hence convergence to global optimum.
Using direct policy parametrization (over ), Agarwal et al. (2021) show that the projected policy gradient method (4) converges to a global optimum at an sublinear rate. Specifically, the number of iterations to obtain is
where is a discounted state-visitation distribution and \bigl{\|}d_{\rho}(\pi^{\star})/\mu\bigr{\|}_{\infty} is a distribution mismatch coefficient (see Section 2.1 for definition and explanation). Zhang et al. (2020) develop a variational policy gradient framework and use it to show that the projected policy gradient method converges to global optimum at a faster rate. In both cases, the constants in the iteration complexity are very large and depend on the Lipschitz constant characterizing the smoothness of the objective function.
Shani et al. (2020) show that the natural policy gradient (NPG) method (Kakade, 2001) can be cast as a special case of policy mirror descent method (5) and has an convergence rate. Agarwal et al. (2021) improve the convergence rate of NPG to ; more concretely, the number of iterations to obtain is
which is independent of the dimensions and or any distribution mismatch coefficient. Interestingly, the step sizes that guarantee such a rate can be chosen arbitrarily large, regardless of the Lipschitz constant of the policy gradient.
With entropy regularization (added to the DMDP objective), Cen et al. (2020) show that the NPG method has linear (geometric) convergence. Their approach rely on the contraction property of a generalized Bellman operator and the convergence guarantees are in terms of the infinity norm of the “soft” -functions. With appropriate choice of the regularization parameter and step size, they obtain iteration complexity on the order of
Lan (2021) proposes a general policy mirror descent method that is similar to (5) with either convex or strongly convex regularizations. He focuses on the case of minimizing where is the stationary distribution of the MDP under the optimal policy , which avoids any distribution mismatch coefficient in the analysis. In order to guarantee , Lan (2021) obtains iteration complexity on the orders of (7) and (8) for the settings without and with entropy regularization, respectively. More interestingly, Lan (2021) also obtained linear convergence for the un-regularized DMDP using diminishing regularization combined with increasing step sizes (while maintaining a constant product of the two).
More recently, Zhan et al. (2021) extend the framework of Lan (2021) to accommodate a broader class of convex regularizers including those that are nonsmooth. For un-regularized DMDP, Khodadadian et al. (2021) show that the NPG method can obtain linear convergence with an adaptive step-size rule, and Bhandari and Russo (2021) show that several variants of policy gradient methods has linear convergence with exact line search.
For the exact policy gradient method with softmax parametrization, Agarwal et al. (2021) show that it converges asymptotically to a global optimum, and attains an rate with log barrier regularization. Mei et al. (2020) derive an convergence rate and Mei et al. (2021) further improve it to linear convergence by exploiting non-uniform variants of the smoothness and gradient dominance properties. However, these fast rates are associated with problem-dependent constants that can be very large (Li et al., 2021).
2 Contributions and Outline
In this paper, we present a systematic study of policy gradient methods with direct policy parametrization, focusing on their convergence rates for minimizing over .
Section 2 contains an overview of structural properties of DMDP that are well-known but essential for the main results of the paper.
In Section 3, we develop a theory of weak gradient-mapping domination for general nonconvex composite optimization, and use it to obtain an convergence rate for the projected policy gradient method. Concretely, our result on iteration complexity replaces in (6) with and with . Although this result is the same as the one obtained by Zhang et al. (2020), our analysis are quite different. Zhang et al. (2020) exploit the bijection structure of the primal-dual DMDP formulations, while we derive this result as a special case of nonconvex optimization with weak gradient-mapping domination which, to our best knowledge, is new and of independent interest.
In Section 4, we study exact policy mirror descent methods of the form (5). First, we show that with a constant step size (which can be arbitrarily large), they obtain the same dimension-free iteration complexity (7). This result extend the one of Agarwal et al. (2021) on NPG with KL-divergence to a general class of Bregman divergences, including a projected -descent method derived with squared Euclidean distance. Second, we show that with geometrically increasing step sizes, as simple as , policy mirror descent methods enjoy linear convergence without relying on any regularization. Specifically, their iteration complexity for reaching is
If is set to be the stationary distribution under the optimal policy , then the distribution mismatch coefficient \bigl{\|}d_{\rho}(\pi^{\star})/\rho\bigr{\|}_{\infty}=1 and we recover (8). In addition, we discuss conditions for superlinear convergence and make connections with the classical Policy Iteration method.
In Section 5, we investigate the iteration complexity of inexact policy mirror descent methods and show that the geometrically increasing step sizes do not cause instability even with errors in evaluating the policy gradients or -functions. They converge with the same linear rate up to an asymptotic error floor. With a simple -estimator by repeated simulation of truncated trajectories, we obtain a sample complexity of
where the notation hides poly-logarithmic factors of , and .
Finally, in Section 6, we discuss the limitations of our work and possible extensions.
Preliminaries on DMDP
In this section, we overview the structural properties of DMDP that are essential for the developments in later sections. We start with a few definitions. Let denote the probability simplex defined over the state space , i.e.,
Similarly, denotes the probability simplex over the action space . The set of admissible policies for DMDP is defined as
With slight abuse of notation, we define the following functions of :
: a matrix function with entries ;
: a vector function with components .
Using the definitions above, the value function , whose components are defined in (1), admits the following analytic form (see, e.g., Puterman, 1994, Section 6.1)
Since is a row stochastic matrix and , the spectral norm of is strictly less than one (by the Perron-Frobenius theorem) and thus is always invertible. Given , the weighted value function defined in (3) can be written as
Here we treat as a column vector and use matrix multiplication conventions.
Starting from , the discounted state-visitation distribution under a policy is a vector whose components are defined as
The coefficient ensures that . In fact, is the entry of the matrix . In other words, if we define with components if and otherwise, then we have
Given an initial state distribution , we define with components
Some useful facts from the above definitions are:
For any , we define the distribution mismatch of from as
with the convention . This is an asymmetric measure of mismatch and it is finite if and only if the support (set of indices with nonzero entries) of contains that of . If is the uniform distribution, then the mismatch is bounded by .
The convergence properties of policy gradient methods often depend on the distribution mismatch coefficients between two discounted state-visitation distributions (e.g., Kakade and Langford, 2002; Agarwal et al., 2021). According to (13), we have for any and ,
Our results in this paper mostly concern the case with and , i.e.,
In order for to be finite, it suffices to assume , which means for all .
The distribution mismatch coefficient is closely related to the concentrability coefficients in the analysis of approximate dynamic programming algorithms (Munos, 2003, 2005; Szepesvári and Munos, 2008). In fact, is considered the “best” one among all concentrability coefficients in the sense that it does not impose any restrictions on the MDP dynamics and it can be finite when other concentrability coefficients are infinite (Scherrer, 2014). See Agarwal et al. (2021, Section 2) for further discussions.
If is chosen as the stationary distribution of the MDP under the optimal policy , denoted as , then we have and hence . This is the setting adopted by Liu et al. (2019) and Lan (2021), which leads to simplified analysis for minimizing . For DMDP with entropy regularization (Lan, 2021; Cen et al., 2020), the resulting always have full support over . However, in general may not have full support over unless the underlying MDP is ergodic (Puterman, 1994, Section A.2).
2 Q𝑄Q-functions, Policy Gradient and Performance Difference Lemma
For each pair , the state-action value function is defined as
where the expectation is taken with respect to and for all . It is straightforward to verify that
Let denote the vector with components for all . Then,
where denotes the inner product of two vectors.
Policy gradients refer to the gradients of the value functions and . We can obtain their expressions as special cases of the policy gradient theorem (Sutton et al., 2000) which covers the general case with policy parametrization. For easy reference, we give a simple, self-contained derivation in the Appendix (Section A.1). Specifically, we have
and is the concatenation of for all . In other words, policy gradients are weighted -functions where the weights are block-diagonal and proportional to the discounted state-visitation probabilities.
A fundamental result for analyzing DMDP and related algorithms is the performance difference lemma of Kakade and Langford (2002). In this paper, we mostly rely on the following variant, which has appeared in Liu et al. (2019) and Lan (2021). For completeness, here we provide an alternative proof.
Using the expression of in (12), we write the above equality component-wise as
The weighted version of the performance difference lemma is,
Projected Policy Gradient Method
In this section, we analyze the projected policy gradient method for solving the problem
where is defined in (3) or equivalently (10). We assume that the policy gradients are computed with respect to an initial state distribution , which may be different from the performance evaluation distribution .
Starting from an initial policy , the projected policy gradient method generates a sequence for as follows:
where is the step size and denotes projection onto in Euclidean norm, i.e., . Since is a Cartesian product, the projections associated with different states can be done separately:
where is given by (18) with replaced by .
Agarwal et al. (2021, Theorem 5) show that with a constant step size for all , the projected policy gradient method converges at an O\bigl{(}1/\sqrt{k}\bigr{)} rate. More precisely,
The following two ingredients are key to their analysis.
Smoothness (Agarwal et al., 2021, Lemma 54): For any , it holds that
Variational gradient domination (Agarwal et al., 2021, Lemma 4): For any ,
Here “variational” refers to the term , which is different from as in gradient dominance conditions for unconstrained optimization.
Based on the same two results above, we show that the projected policy gradient method enjoys a faster convergence rate. The following theorem holds for the case .
Suppose and the step size for all . Then the projected policy gradient method (22) generates a sequence of policies satisfying
The general case with can be handled with an additional distribution mismatch coefficient. Concretely,
Then applying Theorem 2 with replaced by yields
Comparing with (24), in addition to improving the rate from to , our bound also has better dependence on the discount factor: as opposed to . However, our bound uses a different distribution mismatch coefficient and has an additional factor of .
We prove Theorem 2 as a special case of a more general result on gradient-mapping domination, which we present next.
In this section, we consider the following composite optimization problem
where is smooth and is convex and lower semi-continuous. More specifically, we assume that there exists a constant such that
The MDP formulation in (21) is a special case of (27) with the mappings , and as the indicator function of , i.e., if and otherwise.
For any convex function , the operator is defined as
A generic algorithm for solving problem (27) is the proximal gradient method:
where is the step size. If is the indicator function of , then becomes the projection operator for any . In this section, we focus on the proximal gradient method with the constant step size . To simplify presentation, we define
thus the proximal gradient method (29) can be written simply as . The gradient mapping associated with problem (27) is defined as
In the special case , we have for any . The norm of the gradient mapping, , can serve as a measure of closeness to a first-order stationary point.
Key to the convergence analysis of the proximal gradient method is the following descent property (Nesterov, 2013, Theorem 1),
Summing up over , we obtain
which, together with the fact , implies (Beck, 2017, Theorem 10.15)
The convergence rate stated in (24) is obtained by combining (33) with (26), which is the approach taken by Agarwal et al. (2021) and Bhandari and Russo (2019).
We show that under similar conditions, the proximal gradient method actually enjoy a faster rate of convergence. To this end, the following notion of (weak) gradient-mapping domination is a proper extension of (weak) gradient domination.
Suppose where is -smooth and is proper, convex and closed. We say that satisfies a weak gradient-mapping dominance condition if there exists such that
where and and are defined in (30) and (31) respectively.
This weak version of gradient-mapping domination corresponds to the Kurdyka-Łojasiewicz (KŁ) condition with KŁ exponent , instead of the usual exponent that leads to linear convergence (Kurdyka, 1998; Karimi et al., 2016; Li and Pong, 2018). We discuss the stronger notion of gradient-mapping dominance in Appendix A.2.
In the following theorem, we prove the convergence rate for problems satisfying weak gradient-mapping domination.
Consider the problem of minimizing where is -smooth and is proper, convex and closed. Suppose is weakly gradient-mapping dominant with parameter and let . Then the proximal gradient method (29) with a constant step size generates a sequence that satisfies, for all ,
Proof Combining the descent property (32) with the inequality (34) yields
Let Then we have
We divide both sides of the above inequality by to obtain
Then telescoping sum over iterations yields
Notice that due to the descent property, we always have and thus .
For any two constant , let’s define be the number of times that the ratio is at least among the first iterations. If , then at least times, thus
Otherwise, we must have , which means that at least times. Noticing that for all , we arrive at
Combining the above two cases and using the fact that can be chosen arbitrarily, we conclude that
Simply setting gives the desired result (35).
2 Proof of Theorem 2
In order to prove Theorem 2, we only need to verify that the weak gradient-mapping domination holds for the weighted value function . This is the result of the next lemma.
Consider the problem of minimizing over and suppose that is -smooth. We have
Proof Applying a result of Nesterov (2013, Theorem 1) to our setting yields
Using the facts and for any , we obtain
Combining the above bound with (26) yields the desired result.
An argument equivalent to Lemma 5 was used by Agarwal et al. (2021) which relies on a result of Ghadimi and Lan (2016). Combining (36) with (33) gives the result in (24). On the other hand, we recognize that with , inequality (36) implies (34) with
Now we can apply Theorem 4. Notice that in this case, the exponential decay part in (35) is always smaller than the sublinear part, which leads to , i.e.,
Zhang et al. (2020, Theorem 5) have also established the rate of the projected policy gradient method with direct parametrization. However, their proof appears to be quite different from ours, which leverages the dual linear programming parametrization (Puterman, 1994, Section 6.9). In contrast, our approach is based on a novel notion of weak gradient-mapping domination and applies to general nonconvex composite optimization problems.
Exact Policy Mirror Descent Methods
Mirror descent (Nemirovski and Yudin, 1983) is a general framework for the construction and analysis of optimization algorithms, which covers the projected gradient method as a special case. Here we adopt the form of mirror descent based on proximal minimization with respect to a Bregman divergence (Beck and Teboulle, 2003).
Let be a strictly convex function and continuously differentiable on the relative interior of , denoted as . The Bregman divergence generated by is a distance-like function defined as
Two most popular examples of Bregman divergence are:
Squared Euclidean distance, generated by the squared -norm:
Kullback-Leibler (KL) divergence, generated by the negative entropy:
Notice that the gradient of negative entropy vanishes on the boundary of the simplex. Therefore we need to restrict the second argument to lie within the relative interior of . We shall address such subtleties later in the convergence analysis.
Recall that the set of feasible policies is , which is a Cartesian product of copies of . For any , we define a weighted divergence function
This function satisfies the basic properties of a Bregman divergence; in particular, it is nonnegative and equals to if and only if .
Following the derivations of Shani et al. (2020), we consider policy mirror descent (PMD) methods with dynamically weighted divergences:
where is the step size, is an arbitrary state distribution and is the discounted state-visitation distribution under the policy . Using the fact
and plugging in the policy gradient formula (18), we obtain
which can be written separately for each state as
Notice that the above update rule is independent of the choice of . This is the result of adaptive preconditioning with a dynamically weighted divergence: the weight for each state in matches the coefficient of in the policy gradient .
For the two prominent examples of Bregman divergence listed before, the corresponding PMD methods have closed-form update rules:
Projected -descent. If is the squared Euclidean distance, then (37) becomes
Compared with the projected policy gradient method (23), we replaced the policy gradient by as the result of adaptive preconditioning.
Exponentiated -descent. If is the KL-divergence, then (37) takes the form
This is exactly the Natural Policy Gradient (NPG) method (Kakade, 2001) expressed in the policy space (Agarwal et al., 2021).
In the rest of this section, we investigate the convergence rate of the PMD method (37). We show that with a constant step size, it has convergence rate. When the step size increases exponentially as , we have linear convergence and the convergnece rate depends on the distribution mismatch coefficient . In addition, we discuss situations of super-linear convergence and connections to policy iteration.
Our results hold for PMD methods constructed with general Bregman divergences, matching or improving over the best known convergence rates. In particular, the projected -descent method has the same rate of convergence as NPG. We show that the key ingredient for fast convergence of the PMD method is the adaptive preconditioning using weighted divergence functions. The adopted local Bregman divergence, being KL-divergence or squared Euclidean distance, does not make much difference.
Our analysis is based on two key ingredients: the performance difference lemma (Lemma 1) and a three-point descent lemma on proximal optimization with Bregman divergences.
In order to cover both the squared Euclidean distance and KL-divergence without loss of rigor, we need some technical conditions. Specifically, we say a function is of Legendre type (Rockafellar, 1970, Section 26) if it is essentially smooth and strictly convex in the relative interior of , denoted as . Essential smoothness means that is differentiable and for every sequence converging to a boundary point of . The following result is a slight variation of Chen and Teboulle (1993, Lemma 3.2), where we replaced the original assumption of being a Bregman function with being of Legendre type. The proof essentially follows the same arguments and thus is omitted here.
Suppose that is a closed convex set, is a proper, closed convex function, is the Bregman divergence generated by a function of Legendre type and . For any , let
Then and for any ,
In the context of the PMD method (37), and is the linear function . There are some subtle differences between the two Bregman divergences we consider, as explained below.
For the squared Euclidean distance, is of Legendre type with and thus . Therefore each iterate generated by the PMD method, specifically (38), can be on the boundary of .
For the KL divergence, is the negative entropy function, which is also of Legendre type, but with . Therefore, if we start with an initial point in , then every iterates will stay in .
We first use Lemma 6 to prove a descent property of PMD. This result is elementary and has appeared in various forms before (e.g., Liu et al., 2019; Lan, 2021). We present the proof for completeness as we will need to refer to some intermediate steps in it later.
Suppose the initial point . Then the sequences generated by the PMD method (37) satisfy
Proof Applying Lemma 6 to the update rule (37) with and , we obtain that for any ,
Rearranging terms and dividing both sides by , we get
which implies (40) since the Bregman divergence is always nonnegative. By the performance difference lemma, specifically the weighted version (20), we have
The next result is a generalization of the convergence rate of the NPG method obtained by Agarwal et al. (2021, Theorem 16), where they focused on the setting of KL-divergence and their proof also relies on specific properties of the KL-divergence. Here we extend it to more general Bregman divergence. Lan (2021, Theorem 2) derived a similar result using techniques that works for general Bregman divergence. However, he worked with the special objective function where is the stationary distribution of the optimal policy . As a result, the proof of Lan (2021, Theorem 2) avoids some subtle arguments required for the more general objective function where can be arbitrary.
In order to simplify presentation, we use the following notation throughout this paper:
where is the state-visitation distribution under with initial state distribution . Although does not appear in the notation , we hope it is clear from the context.
Consider the policy mirror descent method (37) with and constant step size for all . For any , we have for all ,
Proof Consider the inequality (42), we let and subtract and add within the inner product term, which leads to
Notice that we dropped the nonnegative term on the left side of the inequality. Taking expectation with respect to the distribution on both sides of the above inequality and using the notation in (43), we obtain
For the first expectation in (44), we have
where the inequality holds because of (40) and the fact, due to (13), that
The last equality in (45) is due to the performance difference lemma. For the second expectation in (44), we again use the performance difference lemma to obtain
Substituting the two results above into (44) leads to
Setting for all and summing up over :
Since is monotone non-increasing in (see Lemma 7), we conclude that
Finally, bounding by as in (2) gives the desired result.
As a result of Theorem 8, whenever , we have
In other words, the number of iterations to reach is at most
which is independent of the problem dimensions and . More specifically,
For the projected -descent method (38), since for any , we have for any . Therefore in order for (47) to hold, it suffices to have .
For the exponentiated -descent method (39), if we choose the uniform initial policy, i.e., for all , then for all . Therefore in order for (47) to hold, it suffices to have .
The above analysis indicates that the projected -descent method may have a slight advantage over the exponentiated variant (NPG) in terms of having a wider range of to enjoy the same dimensional independent convergence guarantee (47).
A more curious fact is that for both variants, the step size does not have an upper bound and can be as large as possible. This is in contrast to the classical analysis of smooth optimization, where the step size is usually upper bounded by with being the Lipschitz constant of the gradient; see, e.g., the approach taken in Section 3.1. Here the fact the step sizes can be arbitrarily large is due to the unique structure of DMDP. Indeed, we show next that PMD has linear convergence if the step size grows exponentially.
2 Linear Convergence
Consider again the policy mirror descent algorithm (37). In order to simplify the presentation, we define two more notations: the optimality gap
which is always nonnegative, and the per-iteration distribution mismatch coefficient
The following result is the basis for establishing the linear convergence and also for discussions on possible superlinear convergence.
Consider the policy mirror descent method (37) with and for all . Then for any , we have for all ,
where , and are defined in (48), (49) and (43), respectively.
Proof We start with the inequality (44) and bound the first expectation as follows:
where the inequality holds because of (40), and the last equality is due to the performance difference lemma, specifically (20). Substituting the above bound and (46) into (44) and dividing both sides by yield the desired result.
The next theorem is our main result on linear convergence. The convergence rate depends on the performance evaluation distribution through the following quantity:
which is an upper bound on for all .
Consider the policy mirror descent method (37) with . Suppose the step sizes satisfy and
Proof Using (13), specifically for all , we have for all . In addition, by Lemma 7, we have for all . Therefore (50) still holds if we replace by its upper bound , i.e.,
Dividing both sides by and rearranging terms, we obtain
If the step sizes satisfy (52), i.e., , then we have
Finally, using the fact , we derive
Substituting the above bound into the right side of (54), and considering the nonnegativity of on the left side, we arrive at the desired bound (53).
The exact value of is hard to estimate in practice, which hinders the use of the step size rule (52). However, we can replace it with the more aggressive increasing rule
which always implies (52). To see this, we use to derive
According to Theorem 10, in order to guarantee , the required number of iterations of the PMD method is
Using the bound (2) and assuming , the iteration complexity becomes
Next we discuss a special choice of the performance evaluation distribution .
Let be the stationary state distribution of the MDP under the optimal policy . If the MDP starts with and following , then the visit probability at every step is and so is the discounted sum of them. Therefore we have , which implies
In this case, with the step size rule and , we have
and the iteration complexity for is dimension-independent:
However, unless the MDP is ergodic, the support of may not cover the full state space .
Several recent work studied policy mirror descent method for entropy-regularized MDP and obtained similar linear convergence rates (Cen et al., 2020; Lan, 2021; Zhan et al., 2021). With entropy regularization, the resulting MDP is always ergodic and the support of any stationary distribution covers the full state space , i.e., . Lan (2021) only considers as the performance evaluation distribution; Cen et al. (2020) and Zhan et al. (2021) rely on the contraction properties of a generalized Bellman operator and obtain guarantees of the form where is the “soft” -function with regularization. Our analysis closely resembles that of Lan (2021), with the following differences:
We consider the standard DMDP and show that linear convergence can be obtained without entropy regularization. Since the support of may not cover the entire state space, we give a general analysis for any and characterize the convergence rate in terms of the distribution mismatch coefficient .
For DMDP without regularization, Lan (2021) also obtains a slower linear convergence rate ( instead of ), through an approximate policy mirror descent (APMD) method. This method employs exponentially diminishing regularization and exponentially increasing step sizes, and the analysis is considerably more technical.
3 Superlinear Convergence
Under additional conditions, the PMD method (37) may exhibit superlinear convergence. We revisit Proposition 9 and start by rewriting the inequality (50) as
If the step sizes satisfy starting with some , then we have
Therefore, we have superlinear convergence of if .
Recall the definition of in (49), we have if and only if . Apparently, a sufficient condition is . However, this is hard to establish without additional assumptions, e.g., by assuming that the optimal policy is unique. Alternatively, since implies , a reasonable attempt is to show the convergence of by further leveraging (57). In particular, we can show
at the same speed as , which is at least linear with an uniform upper bound on as we have done in Section 4.2. However, the step-size condition implies that the factor itself converges at the same rate, thus we can not guarantee .
Nevertheless, we list here two sufficient conditions for superlinear convergence that are weaker than directly assuming . Both conditions have been used to establish superlinear convergence of the classical Policy Iteration algorithm (Puterman, 1994, Corollary 6.4.10 and Theorem 6.4.8, respectively).
Convergence of the transition probability matrix . Specifically,
where is any matrix norm. Under this condition, we have and thus because d_{\rho}(\pi^{(k)})=\bigl{(}I-\gamma P(\pi^{(k)})\bigr{)}^{-T}\!\rho is a continuous function.
There exists a finite constant such that for all
This condition is stronger than the previous one because we already established linear convergence of . As a result, it leads to local quadratic convergence.
Khodadadian et al. (2021) showed that under a variant of the second condition above, the NPG method converges superlinerly. With entropy regularization, the optimal policy is unique and Cen et al. (2020) established local quadratic convergence of the regularized PMD method.
4 Connection with Policy Iteration
Our analysis of the PMD method does not impose any upper bound on the step sizes: they can be either arbitrarily large constant (Section 4.1) or gemmetrically increasing (Section 4.2). If we allow for all iterations, the limit of the PMD method (37) becomes
which is precisely the classical Policy Iteration method (e.g., Puterman, 1994; Bertsekas, 2012). In fact, our analysis still holds in the limiting case and the result corresponding to Theorem 10 is
where . Recall the definition of in (51). If , then we have and
which has the same convergence rate as Policy Iteration (e.g., Puterman, 1994; Ye, 2011). In general, we have the trivial bound
This convergence rate is the same as that established for several variants of policy gradient methods by Bhandari and Russo (2021, Theorem 1), which requires exact line search. Khodadadian et al. (2021) show that the NPG method with an adaptive step size rule can also achieve linear convergence. In contrast, our results in Section 4.2 show that the simple, non-adaptive step size schedule of is suffice to obtain linear convergence of a general class of policy mirror descent methods.
Inexact Policy Mirror Descent Methods
For DMDP problems with large state and action spaces, computing the exact policy gradients or -functions are very costly and infeasible in practice. In this section, we consider the following inexact PMD method
where is an inexact evaluation of . We first study the convergence properties of (58) under the following assumption on the evaluation error.
The inexact -function evaluations satisfy
The following result is the counterpart of Lemma 7 for the inexact PMD method.
Consider the inexact PMD method (58) with and suppose that Assumption 1 holds. Then we have for all ,
and for any ,
Proof The proof of (60) follows the same arguments as in Lemma 7. However, due to the inexact -function evaluations, the objectives are no longer monotone decreasing. We use the performance difference lemma to deduct:
Notice that the first term on the right-hand side is non-positive due to (60). For the second term, we use Hölder’s inequality to obtain, for all ,
where the second inequality is due to \bigl{\|}\pi^{(k+1)}_{s}-\pi^{(k)}_{s}\bigr{\|}_{1}\leq\bigl{\|}\pi^{(k+1)}_{s}\bigr{\|}_{1}+\bigl{\|}\pi^{(k)}_{s}\bigr{\|}_{1}\leq 2, and the last inequality is due to Assumption 1. Combining (62) with the previous inequality yields (61).
We will need the following simple fact, whose proof is straightforward and thus omitted.
Suppose , , and a nonnegative sequence satisfies
The following theorem characterizes the convergence of the inexact PMD method under Assumption 1. We keep using the notations and defined in (43) and (51), respectively.
Consider the inexact PMD method (58) with and suppose that Assumption 1 holds. If the step sizes satisfy and , then we have for all ,
Proof Applying Lemma 6 to the update in (58) and following the same arguments in the proof of Theorem 8, we arrive at the following counterpart of (44):
For the first expectation in (64), we follow the proof of Proposition 9 to obtain
where the last inequality is due to the performance difference lemma and (62). For the second expectation in (64), we again use the performance difference lemma and Hölder’s inequality to obtain
Substituting the last two bounds into (64) and dividing both sides by , we get
where . Since (Lemma 11) and , the above inequality still holds with replaced by , which leads to
Dividing both sides by and rearranging terms, we get
If the step sizes satisfy , which is implied by , then
where we also used because . Next we invoke Lemma 12 with
Finally applying (55) and gives the desired result (63).
As a result of Theorem 13, we have the following asymptotic error bound:
which agrees with that of conservative policy iteration (CPI) of Kakade and Langford (2002, Theorem 6.2). It is also similar to the asymptotic error bound of many approximate dynamical programming algorithms (e.g., Bertsekas, 2012), with the additional factor of distribution mismatch coefficient.
One way to ensure Assumption 1 hold with high probability is through multiple independent simulations (rollouts) of the MDP under a fixed policy. In this section, we analyze the sample complexity of this approach.
Suppose that for a given policy and any state-action pair , we can generate a set of independent, truncated trajectories of horizon , i.e.,
We construct with the trajectories , , as follows:
The following lemma gives a high-probability bound on the error .
Consider the -estimator given in (65). For any , if satisfies
then we have with probability at least ,
Proof We first define the expectation of the -estimator in (65):
which holds for any . Recall the definition of in (15). Since , we always have . On the other hand,
which holds for all . Therefore,
Next that we can decompose the estimation error into two parts:
The last term is bounded by (67), so we need to bound \bigl{\|}\widehat{Q}(\pi^{(k)})-\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{Q}(\pi^{(k)})\bigr{\|}_{\infty}. To this end, we notice that the random variables are bounded in the interval . Therefore Hoeffding’s inequality (Hoeffding, 1963) implies that for any ,
Applying the union bound across all , we obtain
Therefore, for any , if we choose large enough, i.e.,
then \bigl{\|}\widehat{Q}(\pi^{(k)})-\macc@depth\char 1\relax\frozen@everymath{\macc@group}\macc@set@skewchar\macc@nested@a 111{Q}(\pi^{(k)})\bigr{\|}_{\infty}<\sigma_{k} with probability at least . Combining with (67) and (68), we conclude that with probability at least ,
Finally setting gives the desired result.
The next theorem characterizes the sample complexity of the inexact PMD method with the simple -estimator.
Consider using the -estimator (65) in the inexact PMD method (58), with the step sizes satisfying and for all . For any and integers and , suppose the batch sizes satisfy
Then we have with probability at least ,
In addition, for any , we have with probability at least if
The corresponding sample complexity of state-action pairs is
where the notation hides poly-logarithmic factors of , and .
Proof Suppose the total number of iterations is . In order to have (66) hold for all , we need to apply the union bound across all iterations, which imposes an additional factor on the right-hand side of (69). Consequently, we can extend Lemma 14 to ensure that the event
occurs with probability at least provided that (71) holds. Then (72) follows directly from Theorem 13 with .
In order to have within iterations, it suffices to have each of the two terms on the right-hand side of (72) less than , i.e.,
which translate into the conditions on and in (73). Correspondingly, the batch sizes need to satisfy where
The total number of state-action samples can be estimated as
Finally, plugging in the definition gives the estimate in (74).
The sample complexity obtained in Theorems 15 has dependence on . This is better than that of obtained by Shani et al. (2020) and Agarwal et al. (2021) and by Liu et al. (2020) for policy gradient type of methods (without regularization). Cen et al. (2020) remarked that sample complexity can be obtained with entropy regularization. Their approach leads to a result without the factor of the distribution mismatch coefficient, but with the same factor. Lazaric et al. (2016) derived an sample complexity for a variant of the policy iteration method, with a factor of at least . Lan (2021) studies sample complexity in expectation instead of with high probability and obtains similar results with weaker dependence on . Yuan et al. (2021) characterize the sample complexity of vanilla policy gradient method (such as REINFORCE (Williams, 1992)) under a variety of different assumptions on the parametrized value function.
Much progresses have been made for understanding the sample complexity of DMDP in the tabular setting. Azar et al. (2013) established a lower bound of for DMDP under a generative model, which allows drawing random state-transitions repeatedly under any policy. The simple Q-estimator we use in this section fits this sample oracle model, but the dependence of our results on is much worse than the lower bound. On the other hand, this lower bound has been matched or nearly matched by several recent work based on variance-reduced Value Iteration (Sidford et al., 2018) and -learning (Wainwright, 2019). There are interesting work to be done for improving the sample complexity of stochastic policy gradient methods.
Conclusion and Discussion
We developed a general theory of weak gradient-mapping dominance and used it to obtain an improved sublinear convergence rate of the projected policy gradient methods. By exploiting additional structure of discounted Markov decision problem (DMDP), we show that with a simple, non-adaptive rule of geometrically increasing the step sizes, policy mirror descent methods enjoy linear convergence without relying on entropy or other strongly convex regularizations. In fact, the convergence rates obtained with strongly convex regularizations (Cen et al., 2020; Lan, 2021; Zhan et al., 2021) are no better than regardless of the regularization strength.
Our results on policy mirror descent methods show that dynamic preconditioning using discounted state-visitation distributions is critical for obtaining fast convergence rates that are (almost) independent of problem dimensions. The adopted local Bregman divergence, being KL-divergence or squared Euclidean distance, does not make much difference. Indeed, when the step sizes grow to infinity, preconditioned policy mirror descent methods derived with different Bregman divergences all reduce to the classical Policy Iteration algorithm. Essentially, such methods with finite step sizes can be viewed as inexact Policy Iteration methods, much like many approximate dynamic programming algorithms.
The major limitation of this work is our restriction to direct policy parametrization. (We note that the NPG method with tabular softmax parametrization has an equivalent mirror-descent form expressed in the policy space, therefore is included in our study.) A natural extension is to consider general policy parametrizations of the form where the dimension of is much smaller than . There are two ways to proceed. The first approach is to simply treat it as a nonlinear optimization problem of minimizing the composite objective . This approach may lose some important structure of DMDP. In particular, the parametrized objective function may no longer be quasi-convex or quasi-concave. As a result, it will be hard to establish convergence to global optimum and we may have to rely on standard theory of smooth nonconvex optimization, which imposes bounded step sizes and leads to relatively slow convergence rates.
The second approach is to follow the framework of compatible function approximation (Sutton et al., 2000; Kakade, 2001), which is extensively developed by Agarwal et al. (2021). This approach facilitates the extension of our results on inexact policy mirror descent to general policy parametrization. In particular, our results in Section 5 show that geometrically increasing step sizes do not cause instability even if the -functions are evaluated inaccurately. In fact, inexact policy mirror descent methods converge linearly up to an asymptotic error floor, which immediately leads to an sample complexity as we have shown. It is of great interest to reduce the dependence of sample complexity on and the distribution mismatch coefficient.
The author is grateful to Lihong Li and Simon S. Du for helpful discussions and feedback. Parts of the results in this paper were obtained by the author while preparing for a tutorial jointly with Lihong Li at the SIAM Conference on Optimization held in July 2021.
The author is indebted to Marek Petrik and Julien Grand-Clement, who found a mistake in a previous version of this paper stating that the weighted value function is quasi-convex and quasi-concave. They gave a simple counter-example and pointed out the mistake in the proof. Indeed, it is neither quasi-convex nor quasi-concave. Fortunately this mistake does not affect the rest of the results that are contained in this version.
Appendix A Appendix
We derive the policy gradient formula (18) using simple matrix calculus. Let be a vector with components if and otherwise. From the expression of in (9), we can write its components as
Using the matrix calculus formula with , we have
where in the last equality we used and the definition of . From the definition of , we have , which is a rank-one matrix with acting as a row vector. Therefore,
where we used the expression of in (12) and the definition of . This gives the component-wise expression for policy gradient, which leads to the aggregated form (18).
A.2 Strong Gradient-Mapping Domination
Following the setting in Section 3.1, we define a stronger notion of gradient-mapping domination and show that it leads to geometric convergence to a global optimum.
Suppose where is -smooth and is proper, convex and closed. We say that satisfies a strong gradient-mapping dominance condition if there exists such that
where and and are defined in (30) and (31) respectively.
Consider the composite optimization problem of minimizing where is -smooth and is proper, convex and closed. If satisfies the strong gradient-mapping domination condition, then the proximal gradient method (29) converges geometrically to a global minimum. To see this, we simply combine the descent property (32) with strong gradient-mapping dominance condition (75) to obtain
This leads to a geometric recursion and we have
The classical Kurdyka-Łojasiewicz (KŁ) condition with exponent (Kurdyka, 1998) can be expressed as
where denotes the set of subgradients (subdifferential) of at . Karimi et al. (2016) derived a proximal Polyak-Łojasiewicz (PŁ) condition
The proximal PŁ condition (77) takes the first and the third terms in the above inequality chain, while our gradient-mapping dominance condition (75) takes the second and the fourth. We conjecture that these two conditions also imply each other.