Single-Timescale Actor-Critic Provably Finds Globally Optimal Policy
Zuyue Fu, Zhuoran Yang, Zhaoran Wang
Introduction
In reinforcement learning (RL) (Sutton et al. 1998), the agent aims to make sequential decisions that maximize the expected total reward through interacting with the environment and learning from the experiences, where the environment is modeled as a Markov Decision Process (MDP) (Puterman 2014). To learn a policy that achieves the highest possible total reward in expectation, the actor-critic method (Konda and Tsitsiklis 2000) is among the most commonly used algorithms. In actor-critic, the actor refers to the policy and the critic corresponds to the value function that characterizes the performance of the actor. This method directly optimizes the expected total return over the policy class by iteratively improving the actor, where the update direction is determined by the critic. In particular, recently, actor-critic combined with deep neural networks (LeCun et al. 2015) achieves tremendous empirical successes in solving large-scale RL tasks, such as the game of Go (Silver et al. 2017), StarCraft (Vinyals et al. 2019), Dota (OpenAI 2018), Rubik’s cube (Agostinelli et al. 2019; Akkaya et al. 2019), and autonomous driving (Sallab et al. 2017). See Li 2017 for a detailed survey of the recent developments of deep reinforcement learning.
Despite these great empirical successes of actor-critic, there is still an evident chasm between theory and practice. Specifically, to establish convergence guarantees for actor-critic, most existing works either focus on the bi-level setting or the two-timescale setting, which are seldom adopted in practice. In particular, under the bi-level setting (Yang et al. 2019a; Wang et al. 2019; Agarwal et al. 2019; Fu et al. 2019; Liu et al. 2019; Abbasi-Yadkori et al. 2019a; Abbasi-Yadkori et al. 2019b; Cai et al. 2019; Hao et al. 2020; Mei et al. 2020; Bhandari and Russo 2020), the actor is updated only after the critic solves the policy evaluation sub-problem completely, which is equivalent to applying the Bellman evaluation operator to the previous critic for infinite times. Consequently, actor-critic under the bi-level setting is a double-loop iterative algorithm where the inner loop is allocated for solving the policy evaluation sub-problem of the critic. In terms of theoretical analysis, such a double-loop structure decouples the analysis for the actor and critic. For the actor, the problem is essentially reduced to analyzing the convergence of a variant of the policy gradient method (Sutton et al. 2000; Kakade 2002) where the error of the gradient estimate depends on the policy evaluation error of the critic. Besides, under the two-timescale setting (Borkar and Konda 1997; Konda and Tsitsiklis 2000; Xu et al. 2020; Wu et al. 2020; Hong et al. 2020), the actor and the critic are updated simultaneously, but with disparate stepsizes. More concretely, the stepsize of the actor is set to be much smaller than that of the critic, with the ratio between these stepsizes converging to zero. In an asymptotic sense, such a separation between stepsizes ensures that the critic completely solves its policy evaluation sub-problem asymptotically. In other words, such a two-timescale scheme results in a separation between actor and critic in an asymptotic sense, which leads to asymptotically unbiased policy gradient estimates. In sum, in terms of convergence analysis, the existing theory of actor-critic hinges on decoupling the analysis for critic and actor, which is ensured via focusing on the bi-level or two-timescale settings.
However, most practical implementations of actor-critic are under the single-timescale setting (Peters and Schaal 2008a; Schulman et al. 2015; Mnih et al. 2016; Schulman et al. 2017; Haarnoja et al. 2018), where the actor and critic are simultaneously updated, and particularly, the actor is updated without the critic reaching an approximate solution to the policy evaluation sub-problem. Meanwhile, in comparison with the two-timescale setting, the actor is equipped with a much larger stepsize in the the single-timescale setting such that the asymptotic separation between the analysis of actor and critic is no longer valid.
Furthermore, when it comes to function approximation, most existing works only analyze the convergence of actor-critic with either linear function approximation (Xu et al. 2020; Wu et al. 2020; Hong et al. 2020), or shallow-neural-network parameterization (Wang et al. 2019; Liu et al. 2019). In contrast, practically used actor-critic methods such as asynchronous advantage actor-critic (Mnih et al. 2016) and soft actor-critic (Haarnoja et al. 2018) oftentimes represent both the actor and critic using deep neural networks.
Thus, the following question is left open:
Does single-timescale actor-critic provably find a globally optimal policy under the function approximation setting, especially when deep neural networks are employed?
To answer such a question, we make the first attempt to investigate the convergence and global optimality of single-timescale actor-critic with linear and neural network function approximation. In particular, we focus on the family of energy-based policies and aim to find the optimal policy within this class. Here we represent both the energy function and the critic as linear or deep neural network functions. In our actor-critic algorithm, the actor update follows proximal policy optimization (PPO) (Schulman et al. 2017) and the critic update is obtained by applying the Bellman evaluation operator only once to the current critic iterate. As a result, the actor is updated before the critic solves the policy evaluation sub-problem. Such a coupled updating structure persists even when the number of iterations goes to infinity, which implies that the update direction of the actor is always biased compared with the policy gradient direction. This brings an additional challenge that is absent in the bi-level and the two-timescale settings, where the actor and critic are decoupled asymptotically.
To tackle such a challenge, our analysis captures the joint effect of actor and critic updates on the objective function, dubbed as the “double contraction” phenomenon, which plays a pivotal role for the success of single-timescale actor-critic. Specifically, thanks to the discount factor of the MDP, the Bellman evaluation operator is contractive, which implies that, after each update, the critic makes noticeable progress by moving towards the value function associated with the current actor. As a result, although we use a biased estimate of the policy gradient, thanks to the contraction brought by the discount factor, the accumulative effect of the biases is controlled. Such a phenomenon enables us to characterize the progress of each iteration of joint actor and critic update, and thus yields the convergence to the globally optimal policy. In particular, for both the linear and neural settings, we prove that, single-timescale actor-critic finds a -globally optimal policy after iterations. To the best of our knowledge, we seem to establish the first theoretical guarantee of global convergence and global optimality for actor-critic with function approximation in the single-timescale setting. Moreover, under the broader scope of policy optimization with nonlinear function approximation, our work seems to prove convergence and optimality guarantees for actor-critic with deep neural network for the first time.
Contribution. Our contribution is two-fold. First, in the single-timescale setting with linear function approximation, we prove that, after iterations of actor and critic updates, actor-critic returns a policy that is at most inferior to the globally optimal policy. Second, when both the actor and critic are represented by deep neural networks, we prove a similar rate of convergence to the globally optimal policy when the architecture of the neural networks are properly chosen.
Related Work. Our work extends the line of works on the convergence of actor-critic under the function approximation setting. In particular, actor-critic is first introduced in Sutton et al. 2000; Konda and Tsitsiklis 2000. Later, Kakade 2002; Peters and Schaal 2008b propose the natural actor-critic method which updates the policy via the natural gradient (Amari 1998) direction. The convergence of (natural) actor-critic with linear function approximation are studied in Bhatnagar et al. 2008; Bhatnagar et al. 2009; Bhatnagar 2010; Castro and Meir 2010; Maei 2018. However, these works only characterize the asymptotic convergence of actor-critic and their proofs all resort to tools from stochastic approximation via ordinary differential equations (Borkar 2008). As a result, these works only show that actor-critic with linear function approximation converges to the set of stable equilibria of a set of ordinary differential equations. Recently, Zhang et al. 2019 propose a variant of actor-critic where Monte-Carlo sampling is used to ensure the critic and the policy gradient estimates are unbiased. Although they incorporate nonlinear function approximation in the actor, they only establish finite-time convergence result to a stationary point of the expected total reward. Moreover, due to having an inner loop for solving the policy evaluation sub-problem, they focus on the bi-level setting. Moreover, under the two-timescale setting, Wu et al. 2020; Xu et al. 2020 show that actor-critic with linear function approximation finds an -stationary point with samples, where measures the squared norm of the policy gradient. All of these results establish the convergence of actor-critic, without characterizing the optimality of the policy obtained by actor-critic.
In terms of the global optimality of actor-critic, Fazel et al. 2018; Malik et al. 2018; Tu and Recht 2018; Yang et al. 2019a; Bu et al. 2019; Fu et al. 2019 show that policy gradient and bi-level actor-critic methods converge to the globally optimal policies under the linear-quadratic setting, where the state transitions follow a linear dynamical system and the reward function is quadratic. For general MDPs, Bhandari and Russo 2019 recently prove the global optimality of vanilla policy gradient under the assumption that the families of policies and value functions are both convex. In addition, our work is also related to Liu et al. 2019 and Wang et al. 2019, where they establish the global optimality of proximal policy optimization and (natural) actor-critic, respectively, where both the actor and critic are parameterized by two-layer neural networks. Our work is also related to Agarwal et al. 2019; Abbasi-Yadkori et al. 2019a; Abbasi-Yadkori et al. 2019b; Cai et al. 2019; Hao et al. 2020; Mei et al. 2020; Bhandari and Russo 2020, which focus on characterizing the optimality of natural policy gradient in tabular and/or linear settings. However, these aforementioned works all focus on bi-level actor-critic, where the actor is updated only after the critic solves the policy evaluation sub-problem to an approximate optimum. Besides, these works consider linear or two-layer neural network function approximations whereas we focus on the setting with deep neural networks. Furthermore, under the two-timescale setting, Xu et al. 2020; Hong et al. 2020 prove that linear actor-critic requires a sample complexity of for obtaining an -globally optimal policy. In comparison, our convergence for single-timescale actor-critic can be translated into a similar sample complexity directly. Moreover, when reusing the data, our result leads to an improved sample complexity. In addition, our work is also related to Geist et al. 2019, which proposes a variant of policy iteration algorithm with Bregman divergence regularization. Without considering an explicit form of function approximation, their algorithm is shown to converge to the globally optimal policy at a similar rate, where is the number of policy updates. In contrast, our method is single-timescale actor-critic with linear or deep neural network function approximation, which enjoys both global convergence and global optimality. Meanwhile, our proof is based on a finite-sample analysis, which involves dealing with the algorithmic errors that track the performance of actor and critic updates as well as the statistical error due to having finite data.
Our work is also related to the literature on deep neural networks. Previous works (Daniely 2017; Jacot et al. 2018; Wu et al. 2018; Allen-Zhu et al. 2018a; Allen-Zhu et al. 2018b; Du et al. 2018; Zou et al. 2018; Chizat and Bach 2018; Jacot et al. 2018; Li and Liang 2018; Cao and Gu 2019a; Cao and Gu 2019b; Arora et al. 2019; Lee et al. 2019; Gao et al. 2019) analyze the computational and statistical rates of supervised learning methods with overparameterized neural networks. In contrast, our work employs overparameterized deep neural networks in actor-critic for solving RL tasks, which is significantly more challenging than supervised learning due to the interplay between the actor and the critic.
Roadmap. In §2, we introduce the background of discounted MDP and actor-critic method. Then in §3, we introduce the two actor-critic methods, where the actors and critics are parameterized using linear functions and deep neural networks. The theoretical results are presented in §4.
Background
In this section, we introduce the background on discounted Markov decision processes (MDPs) and actor-critic methods.
where is the probability simplex on the action space and is the parameter of the policy . For any state-action pair , we define the action-value function as follows,
2 Actor-Critic Method
To obtain an optimal policy , the actor-critic method (Konda and Tsitsiklis 2000) aims to maximize the expected total reward as a function of the policy, which is equivalent to solving the following maximization problem,
where is the initial state distribution, is the action-value function defined in (2.2), and the family of parameterized polices is defined in (2.1). The actor-critic method solves the maximization problem in (2.5) via first-order optimization using an estimator of the policy gradient . Here is the parameter of the policy . In detail, by the policy gradient theorem (Sutton et al. 2000), we have
In this paper, we consider the following variant of the actor-critic method,
Algorithms
We consider two settings, where the actor and critic are parameterized using linear functions and deep neural networks, respectively. We consider the energy-based policy , where the energy function is parameterized with the parameter . Also, for the (estimated) action-value function, we consider the parameterization for any , where is the parameter. For such parameterizations of the actor and critic, the updates in (2.2) have the following forms.
Actor Update. The following proposition gives the closed form of in (2.2).
Let be an energy-based policy and
Then has the following closed form,
for any , where is the stationary state distribution of .
Motivated by Proposition 3.1, to implement the actor update in (2.2), we update the actor parameter by solving the following minimization problem,
where is the stationary state-action distribution of .
Critic Update. To implement the critic update in (2.2), we update the critic parameter by solving the following minimization problem,
Actor Update. The minimization problem in (3.1) admits the following closed-form solution,
which corresponds to a step of the natural policy gradient method (Kakade 2002).
Critic Update. The minimization problem in (3.2) admits the following closed-form solution,
respectively. With linear function approximation, the actor update in (3.6) is reduced to (3.3), while the critic update in (3.7) admits a closed form solution
which can be well approximated using state-action pairs drawn from . See §4 for a detailed discussion.
Finally, by assembling the updates in (3.3) and (3.5), we present the linear actor-critic method in Algorithm 1, which is deferred to §B of the appendix.
2 Deep Neural Network Approximation
In this section, we consider deep neural network approximation. We first formally define deep neural networks. Then we introduce the actor-critic method under such a parameterization.
We initialize the DNN such that each entry of follows the standard Gaussian distribution for any , while each entry of follows the uniform distribution . Without loss of generality, we fix during training and only optimize . We denote the initialization of the parameter as . Meanwhile, we restrict within the ball during training, which is defined as follows,
Here and are the weight matrices of and , respectively. By (A.2), we have for any . Now, we define the family of DNNs as
where is a DNN with depth and width .
We parameterize the action-value function using and the energy function of the energy-based policy using . Here and are the families of DNNs defined in (A.3). Hereafter we assume that the energy function and the action-value function share the same architecture and initialization, i.e., , , , and . Such shared architecture and initialization of the DNNs ensure that the parameterizations of the policy and the action-value function are approximately compatible. See Sutton et al. 2000; Konda and Tsitsiklis 2000; Kakade 2002; Peters and Schaal 2008a; Wang et al. 2019 for a detailed discussion.
Actor Update. To solve (3.1), we use projected stochastic gradient descent, whose -th iteration has the following form,
Here is the projection operator, which projects the parameter onto the ball defined in (A.2). The state-action pair is sampled from the stationary state-action distribution . We summarize the update in Algorithm 3, which is deferred to §B of the appendix.
Critic Update. To solve (3.2), we apply projected stochastic gradient descent. More specifically, at the -th iteration of projected stochastic gradient descent, we sample a tuple , where , , , and . We define the residual at the -th iteration as . Then the -th iteration of projected stochastic gradient descent has the following form,
Here is the projection operator, which projects the parameter onto the ball defined in (A.2). We summarize the update in Algorithm 4, which is deferred to §B of the appendix.
By assembling Algorithms 3 and 4, we present the deep neural actor-critic method in Algorithm 2, which is deferred to §B of the appendix.
Finally, we remark that the off-policy actor and critic updates given in (3.6) and (3.7) can also incorporate deep neural network approximation with a slight modification, which enables data reuse in the algorithm.
Theoretical Results
In this section, we upper bound the regret of the linear actor-critic method. We defer the analysis of the deep neural actor-critic method to §C of the appendix. Hereafter we assume that for any , where is a positive absolute constant. First, we impose the following assumptions. Recall that is the stationary state-action distribution of , while is the stationary state-action distribution of . Moreover, let be a state-action distribution with respect to which we aim to characterize the performance of the actor-critic algorithm. Specifically, after actor updates, we are interest in upper bounding the following regret
where the expectation is taken with respect to and . Here we allow to be any fixed distribution for generality, which might be different from .
In Assumption 4.1, is known as the discounted-average concentrability coefficient of the future-state-action distributions. Similar assumptions are commonly imposed in the literature (Szepesvári and Munos 2005; Munos and Szepesvári 2008; Antos et al. 2008a; Antos et al. 2008b; Scherrer 2013; Scherrer et al. 2015; Farahmand et al. 2016; Yang et al. 2019b; Geist et al. 2019; Chen and Jiang 2019).
It holds for any that
Assumption 4.2 states that the Bellman evaluation operator maps a linear function to a linear function. Such an assumption only aims to simplify the presentation of our results. If the approximation error is nonzero, we only need to incorporate an additional bias term into the rate of convergence.
Assumption 4.3 ensures that the minimization problem in (3.2) admits a unique minimizer, which is used in the critic update. Similar assumptions are commonly imposed in the literature (Bhandari et al. 2018; Zou et al. 2019).
Under Assumptions 4.1, 4.2, and 4.3, we upper bound the regret of Algorithm 1 in the following theorem.
We assume that Assumptions 4.1, 4.2, and 4.3 hold. Let be a state-action distribution satisfying (ii) of Assumption 4.1. Also, for any confidence parameter and sufficiently large number of iterations , let , , and the sequence of policy parameters be generated by Algorithm 1. It holds with probability at least that
where the expectation is taken with respect .
We sketch the proof in §5. See §D.1 for a detailed proof. ∎
Theorem 4.4 establishes an regret of Algorithm 1, where is the total number of iterations. Here omits terms involving and . To better understand Theorem 4.4, we consider the ideal setting, where we have access to the action-value function of any policy . In such an ideal setting, the critic update is unnecessary. However, the natural policy gradient method, which only uses the actor update, achieves the same regret (Liu et al. 2019; Agarwal et al. 2019; Cai et al. 2019). In other words, in terms of the iteration complexity, Theorem 4.4 shows that in the single-timescale setting, using only one step of the critic update along with one step of the actor update is as efficient as the natural policy gradient method in the ideal setting.
Furthermore, by the regret bound in (4.2), to obtain an -globally optimal policy, it suffices to set in Algorithm 1 and output a randomized policy that is drawn from uniformly. Plugging such a into , we obtain that , where omits the logarithmic terms. Thus, to achieve an -globally optimal policy, the total sample complexity of Algorithm 1 is . This matches the sample complexity results established in Xu et al. 2020; Hong et al. 2020 for two-timescale actor-critic methods. Meanwhile, notice that here the critic updates are on-policy and we draw new data points in each critic update. As discussed in §3.1, under the off-policy setting, the critic updates given in (3.7) can be implemented using a fixed dataset sampled from , the stationary state-action distribution induced by the behavioral policy. Under this scenario, the total number of data points used by the algorithm is equal to . Moreover, by imposing similar assumptions on as in (i) of Assumption 4.1 and Assumption 4.3, we can establish a similar regret as in (4.2) for the off-policy setting. As a result, with data reuse, to obtain an -globally optimal policy, the sample complexity of Algorithm 1 is essentially , which demonstrates the advantage of our single-timescale actor-critic method. Besides, only focusing on the convergence to an -stationary point, Wu et al. 2020; Xu et al. 2020 establish the sample complexity of for two-timescale actor-critic, where measures the squared Euclidean norm of the policy gradient. In contrast, by adopting the natural policy gradient (Kakade 2002) in actor updates, we achieve convergence to the globally optimal policy. To the best of our knowledge, we establish the rate of convergence and global optimality of the actor-critic method with function approximation in the single-timescale setting for the first time.
Furthermore, as we will show in Theorem C.5 of §B, when both the actor and the critic are represented using overparameterized deep neural networks, we establish a similar regret when the architecture of the actor and critic neural networks are properly chosen. To our best knowledge, this seems the first theoretical guarantee for the actor-critic method with deep neural network function approximation in terms of the rate of convergence and global optimality.
Proof Sketch of Theorem 4.4
In this section, we sketch the proof of Theorem 4.4. Recall that is a state-action distribution satisfying (ii) of Assumption 4.1. We first upper bound for any in part 1. Then by further taking the expectation over in part 2, we conclude the proof of Theorem 4.4. See §D.1 for a detailed proof.
Part 1. In the sequel, we upper bound for any . We first decompose into the following three terms,
To understand the intuition behind , , and , we interpret them as follows.
In the sequel, we upper bound , , and , respectively. To establish such upper bounds, we define the following quantities,
To understand the intuition behind , , and , we interpret them as follows.
Interpretation of . As defined in (5.7), measures the difference between and in terms of their differences with , which are measured by the corresponding KL-divergences. In particular, is used in characterizing and defined in (5.2) and (5.3), respectively.
We remark that measures the statistical error in the critic update, while measures the optimization error in the actor update. As discussed above, the convergence of to zero implies the contraction of both the actor update and the critic update, which illustrates the “double contraction” phenomenon. Meanwhile, since fully characterizes as shown in (5) subsequently, plays a key role in the “double contraction” phenomenon. In particular, the convergence of to zero is established in (5.9) subsequently. See Figure 1 for an illustration of these quantities.
With the quantities defined in (5.5), (5.6), and (5.7), we upper bound , , and as follows,
the proof of which is deferred to Lemmas D.1, D.2, and D.3 in §D.1 of the appendix, respectively. Meanwhile, by recursively expanding (5.5) and (5.6), we have
the proof of which is deferred to Lemma D.4 in §D.1 of the appendix. By plugging (5.9) into (5), we have
To better understand (5.10) and how it relates to the convergence of , , and to zero, we discuss in the following two steps.
Step (i). We assume , which corresponds to the number of data points . Then (5.10) yields , which implies that defined in (5.4) converges to zero driven by the discount factor . As discussed above, the convergence of to zero also implies the contraction between and of the actor update and the contraction between and of the critic update, which illustrates the “double contraction” phenomenon.
Now, by plugging (5) and (5.10) into (5.1), we establish an upper bound of for any , which is deferred to (D.1) in §D.1 of the appendix. Hence, we conclude the proof in part 1. See part 1 of §D.1 for details.
Part 2. Recall that is a state-action distribution satisfying (ii) of Assumption 4.1. In the sequel, we take the expectation over in (D.1) and upper bound each term. We first introduce the following lemma, which upper bounds defined in (5.5).
Under Assumptions 4.2 and 4.3, with probability at least , it holds for any that
where the expectation is taken with respect to .
Combining Lemmas D.5 and D.6 yields Theorem 4.4. See §D.1 for a detailed proof.
References
Appendix A Deep Neural Network Approximation
In this section, we consider deep neural network approximation. We first formally define deep neural networks. Then we introduce the actor-critic method under such a parameterization.
We initialize the DNN such that each entry of follows the standard Gaussian distribution for any , while each entry of follows the uniform distribution . Without loss of generality, we fix during training and only optimize . We denote the initialization of the parameter as . Meanwhile, we restrict within the ball during training, which is defined as follows,
Here and are the weight matrices of and , respectively. By (A.2), we have for any . Now, we define the family of DNNs as
where is a DNN with depth and width .
We parameterize the action-value function using and the energy function of the energy-based policy using . Here and are the families of DNNs defined in (A.3). Hereafter we assume that the energy function and the action-value function share the same architecture and initialization, i.e., , , , and . Such shared architecture and initialization of the DNNs ensure that the parameterizations of the policy and the action-value function are approximately compatible. See Sutton et al. 2000; Konda and Tsitsiklis 2000; Kakade 2002; Peters and Schaal 2008a; Wang et al. 2019 for a detailed discussion.
Actor Update. To solve (3.1), we use projected stochastic gradient descent, whose -th iteration has the following form,
Here is the projection operator, which projects the parameter onto the ball defined in (A.2). The state-action pair is sampled from the stationary state-action distribution . We summarize the update in Algorithm 3, which is deferred to §B of the appendix.
Critic Update. To solve (3.2), we apply projected stochastic gradient descent. More specifically, at the -th iteration of projected stochastic gradient descent, we sample a tuple , where , , , and . We define the residual at the -th iteration as . Then the -th iteration of projected stochastic gradient descent has the following form,
Here is the projection operator, which projects the parameter onto the ball defined in (A.2). We summarize the update in Algorithm 4, which is deferred to §B of the appendix.
By assembling Algorithms 3 and 4, we present the deep neural actor-critic method in Algorithm 2, which is deferred to §B of the appendix.
Finally, we remark that the off-policy actor and critic updates given in (3.6) and (3.7) can also incorporate deep neural network approximation with a slight modification, which enables data reuse in the algorithm.
Appendix B Details of Algorithms
In this section, we summarize the algorithms in §3. We first introduce the actor-critic method with linear function approximation in Algorithm 1.
We introduce the actor-critic method with DNN approximation in Algorithm 2, which relies on Algorithms 3 and 4 for the actor and critic updates.
Appendix C Convergence Results of Algorithm 2
In this section, we upper bound the regret of the deep neural actor-critic method. Hereafter we assume that for any , where is a positive absolute constant. First, we impose the following assumptions in parallel to Assumption 4.1. Recall that is the stationary state-action distribution of , while is the stationary state-action distribution of .
Meanwhile, we impose the following assumption in parallel to Assumption 4.2.
We upper bound the regret of the deep neural actor-critic method in Algorithm 2 in the sequel. To establish such an upper bound, we first establish the rates of convergence of Algorithms 3 and 4 as follows.
For any sufficiently large , let , , and . We denote by the output of Algorithm 3 with input , , , , , , and . Also, let . With probability at least over the random initialization , we have
Here the expectation is taken over the randomness of conditioning on the initialization and , where is the stationary state-action distribution of .
Here the expectation is taken over the randomness of conditioning on the initialization and , where is the stationary state-action distribution of .
Propositions C.3 and C.4 characterize the errors that arise from the actor and critic updates in Algorithm 2, respectively. In particular, if the widths and of the DNNs and are sufficiently large, the errors characterized in Propositions C.3 and C.4 decay to zero at the rates of and , respectively. Propositions C.3 and C.4 act as the key ingredients to upper bounding the regret of the deep neural actor-critic method.
Based on Propositions C.3 and C.4, we upper bound the regret of Algorithm 2 in the following theorem, which is in parallel to Theorem 4.4.
We assume that Assumptions C.1 and C.2 hold. Let be a state-action distribution satisfying (ii) of Assumption C.1. Also, for any sufficiently large , let , , , , , , and the sequence be generated by Algorithm 2. With probability at least over the random initialization and , it holds that
where the expectation is taken over the randomness of and conditioning on the initialization and .
When the architecture of the actor and critic neural networks are properly chosen, Theorem C.5 establishes an regret of Algorithm 2, where is the total number of iterations. Specifically speaking, to establish such a regret upper bound, we need the widths and of the DNNs and to be sufficiently large. Meanwhile, to control the errors of actor update and critic update in Algorithm 2, we also run sufficiently large numbers of iterations in Algorithms 3 and 4.
In terms of the total sample complexity, to simplify our discussion, we omit constant and logarithmic terms here. To obtain an -globally optimal policy, it suffices to set in Algorithm 2. By plugging such a into and as required in Theorem C.5, we have and . Thus, to achieve an -globally optimal policy, the total sample complexity of Algorithm 2 is . With the modification to off-policy setting as in §3.1, the total sample complexity of Algorithm 2 is .
To the best of our knowledge, we establish the rate of convergence and global optimality of the actor-critic method under single-timescale setting with DNN approximation for the first time.
Appendix D Proofs of Theorems
Recall that is a state-action distribution satisfying (ii) of Assumption 4.1. We first upper bound for any in part 1. Then by further taking the expectation over and invoking Lemma 5.1 in part 2, we conclude the proof of Theorem 4.4.
Part 1. In the sequel, we upper bound for any . By the definition of in (2.2), it holds for any that
where , , and are defined as follows,
It holds for any that
where and are defined as follows,
We remark that for any in the linear actor-critic method. Meanwhile, such a term is included in Lemma D.1 only aiming to generalize to the deep neural actor-critic method.
It holds for any that
where is defined in (D.4) of Lemma D.1, is defined in (D.5) of Lemma D.1, and is defined as follows,
We remark that for any in the linear actor-critic method. Meanwhile, such a term is included in Lemma D.2 only aiming to generalize to the deep neural actor-critic method.
It holds for any that
We upper bound in (D.7) of Lemma D.3 using Lemma D.4 as follows.
It holds for any that
where is defined in (D.6) of Lemma D.2 and is defined as follows,
We remark that for any in the linear actor-critic method. Meanwhile, such a term is included in Lemma D.4 only aiming to generalize to the deep neural actor-critic method.
Combining Lemmas D.3 and D.4, we obtain the following upper bound of ,
Combining (D.1), (D.1), Lemma D.1 and Lemma D.2, it holds for any that
where , , , and are defined in (D.4) of Lemma D.1, (D.5) of Lemma D.1, (D.6) of Lemma D.2, and (D.7) of Lemma D.3, respectively. We upper bound the last term as follows,
where we use the definition of in (D.4) of Lemma D.1 and the non-negativity of the KL divergence in the second equality and the last inequality, respectively. By plugging (D.1) and (D.1) into (D.1), we have
We remark that for any in the linear actor-critic method. Meanwhile, such terms is included in (D.1) only aiming to generalize to the deep neural actor-critic method. This concludes the proof in part 1.
Part 2. Recall that is a state-action distribution satisfying (ii) of Assumption 4.1. In the sequel, we take the expectation over in (D.1) and upper bound each term. Recall that for any in the linear actor-critic method. Hence, we only need to consider terms in (D.1) that do not involve or . We first upper bound terms on the RHS of (D.1) that do not involve . More specifically, for any measure satisfying satisfying (ii) of Assumption 4.1, we upper bound the following three terms,
We upper bound , , and in the following lemma.
where , , and are defined in (D.1).
Now, we upper bound terms on the RHS of (D.1) that involve . More specifically, for any measure satisfying (ii) of Assumption 4.1, we upper bound the following two terms,
We upper bound and in the following lemma.
where and are defined in (D.14).
Now, by plugging Lemmas D.5 and D.6 into (D.1), we have
Meanwhile, by changing measure from to , it holds for any that
where is defined in Assumption 4.1. Also, by Lemma 5.1, with probability at least , it holds for any that
Combining (D.1), (D.18), and the choices of parameters stated in the theorem that
which concludes the proof of Theorem 4.4.
D.2 Proof of Theorem C.5
We follow the proof of Theorem 4.4 in §D.1. Following similar arguments when deriving (D.1) in §D.1, we have
Now, it remains to upper bound each term on the RHS of (D.2). We introduce the following error propagation lemma.
where and are defined in (D.5) and (D.8), respectively, and are defined in Assumption C.1.
Following from Lemma E.4, with probability at least , we have . Also, from the fact that , we know that . Therefore, for any measure , we have
Also, by changing the index of summation, we have
where is defined in Assumption C.1. Further, by Lemma D.7 and interchanging the summation on the RHS of (D.23), we have
By similar arguments in the derivation of (D.2), we have
where we use the definition of from Assumption C.1 in the last inequality. Now, combining (D.2), (D.2), and (D.2), we have
Following from similar arguments when deriving (D.2), we have
Now, by plugging (D.2), (D.2), (D.25), (D.2), and (D.2) into (D.2), with probability at least , we have
Meanwhile, following from Propositions C.3 and C.4, it holds with probability at least that
Combining (D.31), (D.2), and the choices of parameters stated in the theorem, it holds with probability at least that
which concludes the proof of Theorem C.5.
Appendix E Supporting Results
In this section, we provide some supporting results in the proof of Theorems 4.4 and C.5. We introduce Lemma E.1, which applies to both Algorithms 1 and 2. To introduce Lemma E.1, for any policy and action-value function , we define .
For any and , we have
By the definition of the KL divergence, it holds for any that
Meanwhile, for the term on the RHS of (E), we have
which concludes the proof of Lemma E.1. ∎
In the proofs of Propositions C.3 and C.4 in §F.2 and §F.3, respectively, we utilize the linearization of DNNs. We introduce some related auxiliary results here. First, we define the linearization of the DNN as follows,
where is the initialization of . The following lemmas characterize the linearization error.
Suppose that and . Then with probability at least over the random initialization , it holds for any and any that
See the proof of Lemma A.5 in Gao et al. 2019 for a detailed proof. ∎
Suppose that and . Then with probability at least over the random initialization , it holds for any and any that
By mean value theorem, there exists , which depends on and , such that
where we use Cauchy-Schwarz inequality in the first inequality. This concludes the proof of Lemma E.3. ∎
We denote by the output of the -th layer of the DNN , and the output of the -th layer of the DNN . The following lemma upper bounds the distance between and .
With probability at least over the random initialization , for any and any , we have
Also, with probability at least over the random initialization , for any and any , it holds that
The first inequality follows from Lemma A.5 in Gao et al. 2019, and the second inequality follows from Lemma 7.1 in Allen-Zhu et al. 2018b. ∎
Appendix F Proofs of Propositions
We consider the Lagrangian of the above program,
where is the dual parameter, which is a function on . Now, by plugging in
we have the following optimality condition,
for any . Note that is only a function of . Thus, we have
for any , which concludes the proof of Proposition 3.1.
F.2 Proof of Proposition C.3
We define the local linearization of as follows,
where we use the fact that is a contraction mapping in the first inequality. We upper bound term (i) and term (ii) on the RHS of (F.2) in the sequel.
Upper Bound of Term (i). By Cauchy–Schwarz inequality, it holds that
where we use the fact that in the last inequality. Further, by the definitions in (F.2), it holds that
where we use (F.1) in the second equality. Combining (F.2) and (F.2), we obtain the following upper bound of term (i),
Upper Bound of Term (ii). We now upper bound term (ii) on the RHS of (F.2). It holds by Cauchy-Schwarz inequality that
We upper bound term (ii).a, term (ii).b, and term (ii).c in the sequel.
Meanwhile, by the definition of in (F.2), it holds that
We first upper bound as follows,
where is the output of the -th layer of the DNN . Further combining Lemma E.4, it holds with probability at least that
Following from similar arguments, with probability at least , we have
Combining Lemma E.2, (F.10), (F.11), (F.12), and (F.13), it holds with probability at least that
which establishes an upper bound of term (ii).a.
Upper Bound of Term (ii).b. It holds that
We upper bound the three terms on the RHS of (F.2) in the sequel, respectively.
For the term on the RHS of (F.2), following from Lemmas E.2 and E.3, it holds with probability at least that
For the term on the RHS of (F.2), following from (F.13) and Lemma E.2, with probability at least , we have
For the term on the RHS of (F.2), we first upper bound as follows,
where we use (F.12), (F.13), and the fact that . Further combining Lemma E.2, it holds with probability at least that
Now, combining (F.2), (F.16), (F.17), and (F.18), it holds with probability at least that
which establishes an upper bound of term (ii).b.
Upper Bound of Term (ii).c. It holds that
Further combining Lemma E.2, it holds with probability at least that
which establishes an upper bound of term (ii).c.
Now, combining (F.2), (F.14), (F.19), and (F.20), we have
which is an upper bound of term (ii) on the RHS of (F.2).
By plugging the upper bound of term (i) in (F.8) and the upper bound of term (ii) in (F.21) into (F.2), combining (F.19), with probability at least , we have
Rearranging terms in (F.2), it holds with probability at least that
By telescoping the sum and using Jensen’s inequality in (F.2), we have
where the last line comes from the choices that and . Further combining Lemma E.3 and using triangle inequality, we have
By the definition of in (F.3), we know that
By plugging the definition of into (F.25), we have
Meanwhile, by the fact that , we have
where the second line comes from . Note that , , , and , we know that . Therefore, with probability at least we have
where the first inequality comes from (F.26), and the last inequality comes from Lemma E.3 and the fact that , , and . Combining (F.24) and (F.2), by triangle inequality, we have
which finishes the proof of Proposition C.3.
F.3 Proof of Proposition C.4
The proof is similar to that of Proposition C.3 in §F.2. For the completeness of the paper, we present it here. We define the local linearization of as follows,
We upper bound term (iii) and term (iv) on the RHS of (F.3) in the sequel.
Upper Bound of Term (iii). By Hölder’s inequality, it holds that
where we use the fact that in the last line. Further, by the definitions in (F.3), it holds that
where the second equality comes from (F.28), and the last equality comes from the fact that the expectation is only taken to the state-action pair . Combining (F.3) and (F.3), we obtain the following upper bound of term (i),
Upper Bound of Term (iv). We now upper bound term (iv) on the RHS of (F.3). It holds by Cauchy-Schwarz inequality that
We upper bound term (iv).a, term (iv).b, and term (iv).c in the sequel.
Upper Bound of Term (iv).a. We now upper bound term (iv).a on the RHS of (F.3). By expanding the square, we have
Meanwhile, by the definition of in (F.3), it holds that
We first upper bound as follows,
where is the output of the -th layer of the DNN . Further combining Lemma E.4, it holds that
Combining Lemma E.2, (F.36), (F.37), (F.38), and (F.39), we have
Upper Bound of Term (iv).b. We now upper bound term (iv).b on the RHS of (F.3). It holds that
We now upper bound the three terms on the RHS of (F.3) in the sequel, respectively.
where we use (F.38) and the fact that for any . Further combining Lemma E.2, with probability at least , we have
Now, combining (F.3), (F.42), (F.43), and (F.3), it holds with probability at least that
Upper Bound of Term (iv).c. We now upper bound term (iv).c on the RHS of (F.3). It holds that
Further combining Lemma E.2, it holds that
Combining (F.3), (F.40), (F.45), and (F.46), we obtain the following upper bound for term (iv) on the RHS of (F.3),
We continue upper bounding (F.3). By plugging (F.34) and (F.47) into (F.3), it holds with probability at least that
Rearranging terms in (F.3), it holds with probability at least that
By telescoping the sum and using Jensen’s inequality in (F.3), we have
where the last line comes from the choices that and . Further combining Lemma E.3 and using triangle inequality, we have
From the fact that by Assumption C.2, we know that for some . Therefore, by (F.51), with probability at least , we have
where we use Lemma E.3 in the last inequality. Now, combining (F.50) and (F.52), by triangle inequality, with probability at least , we have
which concludes the proof of Proposition C.4.
Appendix G Proofs of Lemmas
Here, we use the fact that the projection is a contraction in the first inequality, and triangle inequality in the second inequality. Also, for notational convenience, we denote by , , , and in (G.1) as follows,
By the fact that , , and we have
Now, following from matrix Bernstein inequality (Tropp 2015) and Assumption 4.3, with probability at least , we have
where is defined in Assumption 4.3. Similarly, with probability at least , we have
Now, combining (G.1), (G.2), (G.3), and (G.4), we have
Therefore, it holds with probability at least that
Meanwhile, by Assumption 4.2 and the definition of , we have
for any . Combining (G.5) and (G.6) and a union bound argument, with probability at least , it holds for any that
G.2 Proof of Lemma D.1
By invoking Lemma E.1 and combining (G.7), it holds for any that
where and are defined in (D.4) and (D.5) of Lemma D.1, respectively. We conclude the proof of Lemma D.1.
G.3 Proof of Lemma D.2
By the definition that is the action-value function of an optimal policy , we know that for any policy and state-action pair . Therefore, for any , we have
In the sequel, we upper bound for any . We define
where and are defined in (D.6) and (D.1), respectively. Here, we use Lemma D.1 to upper bound in the last line. We remark that (G.3) upper bounds using . By recursively applying a similar argument as in (G.3), we have
Combining (G.8) and (G.3), it holds for any that
where , , and are defined in (D.4) of Lemma D.1, (D.5) of Lemma D.1, and (D.6) of Lemma D.2, respectively. We conclude the proof of Lemma D.2.
G.4 Proof of Lemma D.3
Note that for any , we have
where the term in the last line is defined in (D.7). We conclude the proof of Lemma D.3.
G.5 Proof of Lemma D.4
By the definition of in (D.7), we have
where we use (G.12) in the first inequality, and
For the first term on the RHS of (G.5), by (G.14), it holds that
Combining (G.5) and (G.5), we have for any that
G.6 Proof of Lemma D.5
Note that and for any , which implies that and by their definitions. Thus, for , we have
For , by the definition of in (D.7), , , and , we have
for any . Therefore, we have
Meanwhile, by the initialization in Algorithm 1, the initial policy is a uniform distribution over . Therefore, it holds for any that
where we use . We see that (G.6), (G.19), and (G.21) upper bound , , and , respectively. We conclude the proof of Lemma D.5.
G.7 Proof of Lemma D.6
For , by changing the index of summation, we have
where is defined in Assumption 4.1. Further, by changing the index of summation on the RHS of (G.23), combining (G.7), we have
Now, for , by a similar argument as in the derivation of (G.7), we have
We see that (G.7) and (G.7) upper bound and , respectively. We conclude the proof of Lemma D.6.
G.8 Proof of Lemma D.7
Part 1. We first show that the first inequality holds. Note that
Thus, it remains to upper bound the right-hand side of (G.8). We have
Taking expectation with respect to on the both sides of (G.27) and using the Cauchy-Schwarz inequality, we obatin
where in the last inequality we use the error bound in (D.20) and the definition of and in Assumption C.1. This finishes the proof of the first inequality.
Part 2. The proof of the second inequality follows from a similar argument as above. We have
Thus, it remains to upper bound the right-hand side of (G.8). We have
Taking expectation with respect to on the both sides of (G.29) and using the Cauchy-Schwarz inequality, we obatin
where in the last inequality we use the error bound in (D.20) and the definition of in Assumption C.1. This finishes the proof of the second inequality.