An Improved Analysis of (Variance-Reduced) Policy Gradient and Natural Policy Gradient Methods
Yanli Liu, Kaiqing Zhang, Tamer Başar, Wotao Yin
Introduction
Policy gradient (PG) methods, or more generally direct policy search methods, have long been recognized as one of the foundations of reinforcement learning (RL) . Specifically, PG methods directly search for the optimal policy parameter that maximizes the long-term return in Markov decision processes (MDPs), following the policy gradient ascent direction . This search direction can be more efficient using a preconditioning matrix, e.g., using the natural PG direction . These methods have achieved tremendous empirical successes recently, especially boosted by the power of (deep) neural networks for policy parametrization . These successes are primarily attributed to the fact that PG methods naturally incorporate function approximation for policy parametrization, in order to handle massive and even continuous state-action spaces.
In practice, the policy gradients are usually estimated via samples using Monte-Carlo rollouts and bootstrapping . Such stochastic PG methods notoriously suffer from very high variances, which not only destabilize but also slow down the convergence. Several conventional approaches have been advocated to reduce the variance of PG methods, e.g., by adding a baseline , or by using function approximation for estimating the value function, namely, developing actor-critic algorithms . More recently, motivated by the advances of variance-reduction techniques in stochastic optimization , there have been surging interests in developing variance-reduced PG methods , which are shown to be faster.
In contrast to the empirical successes of PG methods, their theoretical convergence guarantees, especially non-asymptotic global convergence guarantees, have not been addressed satisfactorily until very recently . By non-asymptotic global convergence, here we mean the convergence behavior of PG methods from any initialization, and the quality of the point they converge to (usually enjoys global optimality up to some compatible function approximation error due to policy parametrization), after a finite number of iterations/samples. These recent prominent guarantees are normally beyond the folklore first-order stationary-point convergence That is, finding a parameter such that , where is the expected return. , as expected from a stochastic nonconvex optimization perspective of solving RL with PG methods. Special landscapes of the RL objective, though nonconvex, have enabled the convergence to even globally optimal values. On the other hand, none of the aforementioned variance-reduced PG methods have been shown to enjoy these desired global convergence properties. It remains unclear whether these methods can converge to beyond first-order stationary policies.
Motivated by these advances and the questions that remain to be answered, we aim in this paper to improve the convergence of PG and natural PG (NPG) methods, and their variance-reduced variants, under general smooth policy parametrizations. Our contributions are summarized as follows.
Contributions. With a focus on the conventional Monte-Carlo-based PG methods, we propose a general framework for analyzing their global convergence. Our contribution is three-fold: first, we establish the global convergence up to compatible function approximation errors due to policy parametrization, for a variance-reduced PG method SRVR-PG ; second, we improve the global convergence of NPG methods established in , from to ; third, we propose a new variance-reduced algorithm based on NPG, and establish its global convergence with an efficient sample-complexity. These improvements are based on a framework that integrates the advantages of previous analyses on (variance reduced) PG and NPG, and rely on a (mild) assumption that the Fisher information matrix induced by the policy parametrization is positive definite (see Assumption 2.1). A comparison of previous results and our improvements is laid out in Table 1.
Global Convergence of (Natural) PG. Recently, there has been a surging research interest in investigating the global convergence of PG and NPG methods, which is beyond the folklore convergence to first-order stationary policies. In the special case with linear dynamics and quadratic reward, shows that PG methods with random search converge to the globally optimal policy with linear rates. In , with a simple reward-reshaping, PG methods have been shown to converge to the second-order stationary-point policies. shows that for finite-MDPs and several control tasks, the nonconvex RL objective has no suboptimal local minima. prove that (natural) PG methods converge to the globally optimal value when overparametrized neural networks are used for function approximation. provides a fairly general characterization of global convergence for these methods, and a basic sample complexity result for sample-based NPG updates. It is also worth noting that trust-region policy optimization (TRPO) , as a variant of NPG, also enjoys global convergence with overparametrized neural networks , and for regularized MDPs . Very recently, for actor-critic algorithms, a series of non-asymptotic convergence results have also been established , with global convergence guarantees when natural PG/PPO are used in the actor step.
Variance-Reduction (VR) for PG. Conventional approaches to reduce the high variance in PG methods include using (natural) actor-critic algorithms , and adding baselines . The idea of variance reduction (VR) is first proposed to accelerate stochastic minimization. VR algorithms such as SVRG , SAGA , SARAH , and Spider achieve acceleration over SGD in both convex and nonconvex settings. SVRG is also accelerated by applying a positive definite preconditioner that captures the curvature of the objective . Inspired by these successes in stochastic optimization, VR is also incorporated into PG methods , with empirical validations for acceleration, and analyzed rigorously in . Then, improves the sample complexity of SVRPG, and proposes a new SRVR-PG method that uses recursively updated semi-stochastic policy gradient, which leads to an improved sample complexity of over previous works. More recently, proposes a new STORM-PG method, which blends momentum in the update and matches the sample complexity of in , and applies the idea of SARAH and considers a more general setting with regularization. Finally, heavy-ball type of momentum has also been applied to PG methods . We highlight that all these sample complexity results are for first-order stationary-point convergence (which might have arbitrarily bad performance: see (2.2)), in contrast to the more desired global convergence guarantees (up to some function approximation errors that can be small) that we are interested in.
Preliminaries
We first introduce some preliminaries regarding both the MDPs and policy gradient methods.
For notational convenience, let us denote by . Many of the previous works focus on establishing stationary convergence of policy gradient methods. That is, finding a that satisfies
Obviously, such a may not lead to a large . Instead, we are interested in finding a such that
where , and the term reflects the inherent error related to the possibly limited expressive power of the policy parametrization (see Assumption 4.4 for the definition).
2 (Natural) Policy Gradient Methods
To solve the optimization problem (2.1), one standard way is via the policy gradient (PG) method . Specifically, let denote the data of a sampled trajectory under policy . Then, a stochastic PG ascent update is given as
where is a stepsize, is the number of trajectories, and estimates using the trajectory . Common unbiased estimators of PG include REINFORCE , using the policy gradient theorem , and GPOMDP . The commonly used GPOMDP estimator will be given by
where is the score function. If the expectation of this infinite sum exits, then (2.5) becomes an unbiased estimate of the policy gradient of the objective defined in (2.1). This unbiasedness is established in App. B for completeness.
In practice, a truncated version of GPOMDP is used to approximate the infinite sum in (2.5), as
where is a truncation of the full trajectory of length . (2.6) is thus a biased stochastic estimate of , with the bias being negligible for a large enough . For notational simplicity, we denote the -horizon trajectory distribution induced by the initial state distribution and policy as , that is,
Hereafter, unless otherwise stated, we refer to this -horizon trajectory simply as trajectory, drawn from .
As a significant variant of PG, NPG also incorporates a preconditioning matrix , leading to the following update
The NPG update (2.7) can also be written as
where is the compatible function approximation error defined by
Here, is the state-action visitation measure induced by and initial state distribution , which can also be written as
For convenience, we will denote by hereafter. In other words, the NPG update direction is given by the minimizer of a stochastic optimization problem. In practice, one obtains an approximate NPG update direction by SGD (see Procedure 1).
Regarding the NPG update (2.8), we make the following standing assumption on the Fisher information matrix induced by and .
For all , the Fisher information matrix induced by policy and initial state distribution satisfies
Assumption 2.1 essentially states that behaves well as a preconditioner in the NPG update (2.8). This is a common (and minimal) requirement for the convergence of preconditioned algorithms in both convex and nonconvex settings in the optimization realm, for example, the quasi-Newton algorithms , and their stochastic variants . In the RL realm, one common example of policy parametrizations that can satisfy this assumption is the Gaussian policy , where with mean parametrized linearly as , where denotes some feature matrix of proper dimensions, is the coefficient vector, and is some fixed covariance matrix. In this case, the Fisher information matrix at each becomes , independent of , and is uniformly lower bounded (positive definite sense) if is full-row-rank, namely, the features expanded by are linearly independent, which is a common requirement for linear function approximation settings . See App. B.2 for more detailed justifications, as well as discussions on more general policy parametrizations.
In the pioneering NPG work , is directly assumed to be positive definite. So is in the follow-up works on natural actor-critic algorithms . In fact, this way, will define a valid Riemannian metric on the parameter space, which has been used for interpreting the desired convergence properties of natural gradient methods . In a recent version of , a relevant assumption (specifically, Assumption 6.5, item 3) is made to establish the global convergence of NPG, in which it is assumed that is not too small compared with the Fisher information matrix induced by a fixed comparator policy. this can be implied by our Assumption 2.1. To sum up, the positive definiteness on the Fisher preconditioning matrix is common and not very restrictive.
In Sec. 4, we shall see that under Assumption 2.1, the stationary convergence of NPG can be analyzed, and NPG enjoys a better sample complexity of in terms of its global convergence, compared with the existing sample complexity of in . In addition, interestingly, PG and its variance-reduced version SRVR-PG also enjoy global convergence, although the Fisher information matrix does not appear explicitly in their updates.
Variance-Reduced Policy Gradient Methods
Recently, proposes an algorithm called Stochastic Recursive Variance Reduced Policy Gradient (SRVR-PG, see Algorithm 2), which applies variance-reduction on PG. It achieves a sample complexity of to find an stationary point, compared with the sample complexity of stochastic PG. However, it remains unclear whether SRVR-PG converges globally. In this work, we provide an affirmative answer to this question by showing that SRVR-PG has a sample complexity of to find an optimal policy, up to some compatible function approximation error due to policy parametrization.
We also propose a new algorithm called SRVR-NPG to incorporate variance reduction into NPG, which is described in Algorithm 1. In Sec. 4, we provide a sample complexity for its global convergence, which is comparable to our improved NPG result.
In line 8 of Algorithm 1, is a weighted gradient estimator given by
where the importance weight factor is defined by
This importance sampling makes an unbiased estimator of .
In lines 4 and 8 of Algorithm 1, is produced by SRVR-NPG-SGD (see Procedure 2), which applies SGD Following , we apply SGD to make a fair comparison. One can also apply the SA algorithm and AC-SA algorithm . to solve the following subproblem:
where is the state-action visitation measure induced by . The exact update direction given by (3.3) is , and as in NPG, also serves as a preconditioner.
Theoretical Results
Before presenting the global convergence results, we first introduce some standard assumptions.
The truncated GPOMDP estimator defined in (2.6) satisfies for any and .
for any and .
for any and .
For the importance weight (3.2), there exists such that
Assumptions 4.1, 4.2 and 4.3 are standard in the analysis of PG methods and their variance reduced variants . They can be verified for simple policy parametrizations such as Gaussian policies; see for more justifications.
Following the Assumption 6.5 of , we assume that the policy parametrization achieves a good function approximation, as measured by the transferred compatible function approximation error.
For any , the transferred compatible function approximation error satisfies
reflects the error when approximating the advantage function from the score function, it measures the capacity of the parametrization . When is the softmax parametrization, we have . When is a restricted parametrization, is often positive as may not contain all stochastic policies. For rich neural parametrizations, is very small .
Inspired by the global convergence analysis of NPG in , we present a general framework that relates the global convergence rates of these algorithms to i) their stationary convergence rate on , and ii) the difference between their update directions and exact NPG update directions.
Let be generated by a general update of the form
Furthermore, let be the exact NPG update direction at . Then, we have
where is an optimal policy that maximizes .
The detailed proof of this global convergence framework can be found in J. To obtain a high level idea, one first starts from the smoothness of the score function to get
On the other hand, the renowned Performance Difference Lemma tells us that
The final result follows from a telescoping sum on .
With Assumption 2.1, we can also show that the last term of (4.2) is small. Take stochastic PG as an example; then, we have , and
When and are large enough, is a low-variance estimator of , and is close to , this makes the first term above small. The second term also goes to as approaches stationarity.
2 Global Convergence Results
By applying Proposition 4.5 on the PG, NPG, SRVR-PG, and SRVR-NPG updates and analyzing their stationary convergence, we obtain their global convergence rates. In the following, we only keep the dependences on (the variance of the gradient estimator), (variance of importance weight), (the effective horizon) and (target accuracy). The specific choice of the parameters and sample complexities, as well as the proof, can be found in the appendix.
In the stochastic PG (2.4) with the truncated GPOMDP estimator (2.6), take , , , and . Then, we have
In total, stochastic PG samples trajectories.
is the Lipschitz constant of , see Lemma B.1 for details.
Theorem 4.6 improves the result of [1, Thm. 6.11] from (impractical) full gradients to sample-based stochastic gradients.
In the NPG update (2.8), let us apply iterations of SGD as in Procedure 1 to obtain an update direction. In addition, take and . Then,
In total, NPG samples trajectories.
Compared with [1, Coro. 6.10], Theorem 4.9 improves the sample complexity of NPG by . This is because our stationary convergence analysis on NPG allows for a constant stepsize , while [1, Coro. 6.10] applies a stepsize of . It is worth noting that the term is the same as in , and we also apply the average SGD to solve the NPG subproblem (2.8).
In SRVR-PG (Algorithm 2), take , , , , , and . Then, we have
In total, SRVR-PG samples trajectories.
Theorem 4.11 establishes the global convergence of SRVR-PG proposed in , where only stationary convergence is shown. Also, compared with stochastic PG, SRVR-PG enjoys a better sample complexity thanks to its faster stationary convergence.
In SRVR-NPG (Algorithm 1), let us apply iterations of SGD as in Procedure 2 to obtain an update direction. In addition, take , , , , , and . Then,
In total, SRVR-NPG samples trajectories.
Compared with SRVR-PG, our SRVR-NPG has a better dependence on and , which could be large in practice (especially ). The current sample complexity of SRVR-NPG is not better than our (improved) result of NPG since, in our analysis, the advantage of variance reduction is offset by the cost of solving the subproblems.
Numerical Experiments
In this section, we compare the numerical performances of stochastic PG, NPG, SRVR-PG, and SRVR-NPG. Specifically, we test on benchmark reinforcement learning environments Cartpole and Mountain Car. Our implementation is based on the implementation of SRVPG https://github.com/Dam930/rllab and SRVR-PG https://github.com/xgfelicia/SRVRPG, and can be found in the supplementary material.
For both tasks, we apply a Gaussian policy of the form where the mean is modeled by a neural network with Tanh as the activation function.
For the Cartpole problem, we apply a neural network of size and a horizon of . In addition, each training algorithm uses trajectories in total. For the Mountain Car problem, we apply a neural network of size and take . trajectories are allowed for each algorithm. The numerical performance comparison, as well as the settings of algorithm-specific parameters, can be found in Figures 2 and 2. In App. O, we provide more implementation details.
Concluding Remarks
In this work, we have introduced a framework for analyzing the global convergence of (natural) PG methods and their variance-reduced variants, under the assumption that the Fisher information matrix is positive definite. We have established the sample complexity for the global convergence of stochastic PG and its variance-reduced variant SRVR-PG, and improved the sample complexity of NPG. In addition, we have introduced SRVR-NPG, which incorporates variance-reduction into NPG, and enjoys both global convergence guarantee and an efficient sample complexity. Our improved analysis hinges on exploiting the advantages of previous analyses on (variance reduced) PG and NPG methods, which may be of independent interest, and can be used to design faster variance-reduced NPG methods in the future.
Broader Impact
The results of this paper improves the performance of policy-gradient methods for reinforcement learning, as well as our understanding to the existing methods. Through reinforcement learning, our study will also benefit several research communities such as machine learning and robotics. We do not believe that the results in this work will cause any ethical issue, or put anyone at a disadvantage in our society.
Acknowledgements
Yanli Liu and Wotao Yin were partially supported by the Office of Naval Research (ONR) Grant N000141712162. Yanli Liu was also supported by UCLA Dissertation Year Fellowship. Kaiqing Zhang and Tamer Ba0sar were supported in part by the US Army Research Laboratory (ARL) Cooperative Agreement W911NF-17-2-0196, and in part by the Office of Naval Research (ONR) MURI Grant N00014-16-1-2710.
We would like to thank Rui Yuan for his suggestions to improve the proof of Lemma B.1 and Proposition G.1.
References
Appendix A Derivation of Previous Complexity Bounds
In this section, we briefly explain how to derive the sample complexities bounds in the first line of Table 1.
In the most recent version of , a complexity bound of can be obtained the taking and in its Corollary 6.2. Note this complexity bound can be improved to if a uniform upper bound for exact NPG update directions is applied. In this case, one can apply the convergence bound of SGD instead of Projected SGD for the NPG subproblem. In this paper, we establish an upper bound for in Lemma B.1. Therefore the exact NPG update direction is also upper bounded thanks to Assumption 2.1.
For , the sample complexity bound of is achieved by its Theorem 4.13. To be specific, one takes and number of temporal difference updates at each iteration. Here, is width of the neural network.
Note that in the proof of its Corollary 4.14, we can choose (instead of ) to have a convergence bound of the form (instead of ), which is similar to our convergence bound.
For , by the Corollary 4.10 therein, one needs to take and , which results in a total sample complexity of .
For , its Theorem 5 (item 1) gives a sample complexity of , where we have applied and .
Appendix B Helper Lemmas
In this section, we lay out several results that will be useful in later analyses and proofs.
First, for any , we define the -horizon truncated versions of the return as
where the expectation is taken over the trajectories, starting from the state distribution . Now we establish several properties of the GPOMDP policy gradient estimators and the return functions.
Recall the GPOMDP policy gradient estimate given in (2.5). The following properties hold:
If the infinite-sum in (2.5) is well defined, in (2.5) is an unbiased estimate of the PG . Similarly, the truncated GPOMDP estimate given by (2.6) is an unbiased estimate of the PG .
are -smooth, where . Furthermore, we have .
We also have .
the unbiasedness of follows directly from . A similar decomposition can also be done for its truncated version .
The second argument follows directly from the Proposition 4.2 in .
For the third argument, one can calculate that
This rest of the proof follows from the unbiasedness of and for estimating and , respectively. ∎
B.2 On the Positive Definiteness of Fρ(θ)F_{\rho}(\theta)
Now we remark that the positive definiteness on the Fisher information matrix induced by , as stated in Assumption 2.1, is not restricted. Assumption 2.1 essentially states that behaves well as a preconditioner in the NPG update (2.8). This is a common (and minimal) requirement for the convergence of preconditioned algorithms in both convex and nonconvex settings in the optimization realm .
For being nonlinear functions of , e.g., neural networks, the positive definiteness can still be satisfied, if the Jacobian of at all uniformly satisfies the aforementioned conditions of (the Jacobian in the linear case). In addition, beyond Gaussian policies, with the same conditions mentioned above on the feature or the Jacobian of , Assumption 2.1 also holds more generally for any full-rank exponential family parametrization with mean parametrized by , as the Fisher information matrix, in this case, is also positive definite, in replace of the covariance matrix in the Gaussian case .
Indeed, the Fisher information matrix is positive definite for any regular statistical model . In the pioneering NPG work , is directly assumed to be positive definite. So is in the follow-up works on natural actor-critic algorithms . In fact, this way, will define a valid Riemannian metric on the parameter space, which has been used for interpreting the desired convergence properties of natural gradient methods . In sum, the positive definiteness on the Fisher preconditioning matrix is common and not restrictive.
Appendix C SGD and Sampling Procedures
Similar to the Algorithm 1 of , we also apply the averaged SGD algorithm as in to solve the subproblems of NPG and SRVR-NPG.
For NPG, its subproblem (2.8) is of the form
Then, we can obtain a stochastic gradient at by
where , and is an unbiased estimate of . We will describe how to obtain and in App. C.2.
Following Corollary 6.10 of , we can verify that is an unbiased estimate of .
For SRVR-NPG, its subproblem (3.3) is of the form
Then, a stochastic gradient is given by
where is obtained in a similar way as above. It is straightforward to verify that is an unbiased estimate of .
C.2 Sampling Procedures
Sampling and Obtaining can be done in a standard way, for example, by apply Algorithm 3 of . Both of them needs to sample state-action pairs in expectation.
Appendix D SRVR-PG Algorithm
The Stochastic Recursive Variance-Reduced PG (SRVR-PG) algorithm is introduced in , where a recursively updated semi-stochastic gradient is applied as an update direction.
Here, the gradient estimators and are defined in (2.6) and (3.1), respectively.
Appendix E Stationary Convergence
In this section, we proceed to establish the stationary convergence of stochastic PG, NPG, SRVR-PG, and SRVR-NPG from an optimization perspective.
The stationary convergence of stochastic PG follows from the analysis of SGD. For SRVR-PG, we adapt its analysis in .
For NPG and SRVR-NPG, the Fisher information matrix is applied as a preconditioner on top of PG and SRVR-PG, respectively. Regarding , we know from Assumptions 2.1 and 4.2 that
Since , we know that defines a nice metric around . Consequently, with the analysis of gradient methods in nonconvex optimization, one can show that NPG (SRVR-NPG) has a similar iteration complexity compared with PG (SRVR-PG), although at each iteration, a subproblem needs to be solved in order to obtain an approximate preconditioned update direction.
We next present the stationary convergence results, and prove them in the subsequent sections. These results are established for or , and we will apply the intermediate results in their proof to establish the global convergence on (up to function approximation errors due to policy parametrizations).
In the stochastic PG update (2.4), by choosing , and , we have
In total, stochastic PG samples trajectories.
In the NPG update (2.8), let us apply iterations of SGD as in Procedure 1 to obtain an update direction . In addition, let us take and . Then, we have
In total, NPG samples trajectories.
(Theorem 4.5 of ) In SRVR-PG (Algorithm 2), take , , , , and . Then, we have
In total, SRVR-PG samples trajectories.
In SRVR-NPG (Algorithm 1), take , , , , and In addition, assume that is small enough such that
Let us also apply iterations of SGD as in Procedure 2 to obtain an update direction . Then, in order to have
SRVR-NPG samples trajectories.
Appendix F Proof of Theorem E.1
Let . Then, we have
where we have applied Lemma B.1 in the first inequality, and Cauchy-Schwartz in the second inequality.
Taking expectation on both sides and applying Lemma B.1 and Assumption 4.1 yields
Let us further telescope from to to obtain
Taking , and gives
Finally, by applying , we know that PG needs to sample trajectories. ∎
Appendix G Proof of Theorem E.2
Before proving Theorem E.2, let us first establish the sample complexity of SGD when applied to obtain an approximate NPG update direction .
In Procedure 1, take and let the objective be
Let be the minimizer of . Then, in order to achieve
where is the minimum of , and is defined such that
where is a stochastic gradient of at .
Following the proof of Corollary 6.10 of (arXiv V2 version), we obtain an upper bound of as follows.
where and . Therefore, we can stipulate that
From Lemma B.1 and Assumption 2.1 we have
Since each stochastic gradient of SGD has a cost of (see App. C), this means to sample trajectories. ∎
We apply SGD to obtain a such that
By Proposition G.1, we need to sample trajectories.
where .
where we have applied Cauchy-Schwartz in the first and second inequalities, and in the last step.
Taking full expectation on both sides yields
where we have applied (G.2) in the second inequality.
Telescoping the above inequality from to gives
Finally, by taking and , we arrive at
Recall that at each iteration of NPG, we apply SGD as in Procedure 1 to reach (G.1). By Proposition G.1, we know that in total, NPG requires to sample
Appendix H Proof of Theorem E.3
By Theorem 4.5 of , we know that if and
Therefore, taking and yields
Let us take and . Then, the number of trajectories required by SRVR-PG is
Therefore, SRVR-PG needs to sample trajectories. ∎
Appendix I Proof of Theorem E.4
In order to prove Theorem E.4, we need the following technical results.
This lemma is adapted from the Equation B.10 of , where SRVR-PG is analyzed. It is also true for our SRVR-NPG since the update rule of is the same for both algorithms. ∎
In SRVR-NPG, apply SGD as in Procedure 2 to solve the subproblems. Take and let the objective be
Let be the minimizer of . Assume in addition that
for each and , Procedure 2 requires sampling
Recall that we are applying SGD as in Procedure 2 to solve the SRVR-NPG subproblem (3.3).
Recall from (C.4) that a stochastic gradient is given by
where is the minimum of , and is defined such that the stochastic gradient at the solution satisfies
Similar as Proposition G.1, we know that can be chosen by
As a result, the number of iterations, , should be
Since each stochastic gradient of only needs to sample a state-action pair, this is equivalent to sampling trajectories.
Now, let us turn to . is an unbiased estimate of , and its variance is bounded as in Lemma I.1. Therefore,
Now, we are ready to prove the desired results by induction.
Assume that for all , we have
Similar to the case of , we know that this yields
iterations of SGD as in Procedure 2 so that
Since each stochastic gradient of has a cost of (see App. C), this is equivalent to sample
And we want to apply SGD as in Procedure 2 to obtain a that satisfies
Recall that the parameters and are chosen as
the requirements of Proposition I.2 are satisfied:
By applying Proposition I.2, we know that in order to have (I.2), one needs to sample
where .
where we have applied Lemma B.1 in the first inequality, and Cauchy-Schwartz in the second one.
Applying on the first inner product, and Cauchy-Schwartz on the second inner product term leads to
Applying and yields
Telescoping for and and dividing by gives
Let us first show that the first term on the left hand side of (I.5) is non-negative. In fact, from and we have
we can set all the three terms on the right hand side of (I.5) to be , which gives
where the last requirement is satisfied according to (I.3).
For the parameters , and , we have
where we have applied the definition of in Lemma I.1 in the third equality.
Therefore in total, the number of trajectories required by SRVR-NPG to reach stationarity is
Appendix J Proof of Proposition 4.5
In this section, we proceed to prove Proposition 4.5, which establishes a general global convergence result on policy gradient methods of the form .
First, by the smoothness of score function (see Assumption 4.2), we know that
On the other hand, by the performance difference lemma we know that
Now, let us apply Jensen’s inequality and Assumption 4.2 to obtain
Combining this with Assumption 4.4 yields
Finally, let us telescope the above inequality from to , and divide by , which gives
On the right hand side of (J.2), the first term reflects the function approximation error due to the possibly imperfect policy parametrization. The second term vanishes as .
By looking at the third and fourth term, we know that for an update of the form , its global convergence rate depends crucially on i) the difference between its update directions and the exact NPG update direction , and ii) its stationary convergence rate.
In the rest of this paper, we shall see that for stochastic PG, NPG, SRVR-PG, and SRVR-NPG, both the third and fourth terms of (J.2) go to as , whose speed lead to different global convergence rates for different algorithms. In order to achieve this, we will apply some intermediate results in the previous proof of stationary convergence.
Appendix K Proof of Theorem 4.6
Bounding .
we have from Lemma B.1 and Assumption 4.1 that
Furthermore, Assumption 2.1 tells us that
Combining (K.2) and (K.3) with (K.1) gives
Let us take . In addition, let , , and satisfy
Bounding .
In summary, we require and to satisfy (K.5), (K.7), and (K.9), which leads to
By combining (K.6), (K.8), (K.10) and (J.2), we can conclude that
In total, stochastic PG requires to sample trajectories.
Appendix L Proof of Theorem 4.9
Let us take and apply SGD as in Procedure 1 to obtain a that satisfies
From Proposition G.1, we know that this requires sampling trajectories at each iteration.
Bounding .
Recall that the update direction is obtained by solving the subproblem
By (L.1) and Jensen’s inequality, we can write
On the other hand, by replacing (G.1) with (L.1), the stationary convergence of NPG stated in (G.3) becomes
Bounding .
Taking and
In summary, we require to satisfy (L.3) and (L.5), which leads to
By combining (L.2), (L.4), (L.6) and (J.2), we can conclude that
Since at each iteration, SGD needs to sample trajectories so that (L.1) is satisfied, NPG requires to sample trajectories in total.
Appendix M Proof of Theorem 4.11
Bounding .
Since and , we have from Lemmas I.1 and B.1 that
where we have applied Lemma B.1 and Assumption 2.1 in the second inequality, and Lemma I.1 in the third one.
Telescoping this over , and dividing by gives
On the other hand, from Equation (B.14) of we know that
By the definition of in Lemma I.1, we have
Since , we further have
Putting these inequalities back into (M.1) yields
Bounding
By setting and applying (M.3) and (M.4), we further have
By combining (M.6), (M.8), (M.10) and (J.2), we can conclude that
To achieve this, we require and to satisfy (M.5), (M.7), and (M.9), which leads to
By (M.3), we know that .
Therefore, by taking and , the sample complexity of SRVR-PG is
Appendix N Proof of Theorem 4.13
Let us take and apply SGD as in Procedure 2 to obtain a that satisfies
In order to apply Proposition I.2, let assume the following so that its assumptions are satisfied:
At the end of this proof, we will see that these assumptions are indeed satisfied for small .
From Proposition I.2, we know that this requires sampling trajectories at each iteration.
Bounding .
where we have applied Assumption 2.1 in the second inequality, and Lemmas I.1 and B.1 in the third one.
Telescoping this over , and dividing by gives
On the other hand, from (I.5) we know that
Since , (N.4) becomes
Putting these inequalities back into (N.3) and applying (N.1) yields
where we have applied (N.1) in the first equality.
Bounding .
where we have applied (N.6) in the first inequality, and (N.1) in the last step.
By combining (N.8), (N.10), (N.12) and (J.2), we can conclude that
To achieve this, we require , , and to satisfy (N.5), (N.7), (N.9), and (N.11), which leads to
By Proposition I.2, we know that in order to achieve (N.1), SGD requires sampling trajectories per iteration.
Therefore, by taking and , the amount of trajectories required by SRVR-NPG is
It is straightforward to verify that the requirements listed in (N.2) are also satisfied as long as is small enough.
Appendix O Implementation Details
In this section, we provide additional details on the implementation of PG, NPG, SRVR-PG and SRVR-NPG.
For NPG, we use the default implementation provided by rllab https://github.com/rll/rllab, which actually implements the trust region policy optimization(TRPO) algorithm . For cartplole, we sample 200 trajectories at each iteration to solve the subproblem of TRPO. For mountain car, we sample 120 trajectories at each iteration.
We found that the naive implementation of PG and SRVR-PG typically do not work for our tests. For example, PG and SRVR-PG often give an average reward around for the mountain-car test, despite of our best efforts.
As in and , we found that it is necessary to apply Adagrad or Adam type of averaging to improve their performances.
In our experiments, we apply Adagrad type of averaging for PG and SRVR-PG, which results in much better performances. As for SRVR-NPG, we apply Adam type of averaging, which gives an approximation of the Fisher information matrix at each iteration (see section 11.2 of ). We leave the implementation of a better approximation of the Fisher information matrix to the future work.