SlowGuess's picture
Add Batch 33327132-603b-42aa-a770-861a98b5f7b4
a568f4d verified
|
Raw
History Blame Contribute Delete
65 kB

A Finite-Time Analysis of Q-Learning with Neural Network Function Approximation

Pan Xu1 Quanquan Gu1

Abstract

Q-learning with neural network function approximation (neural Q-learning for short) is among the most prevalent deep reinforcement learning algorithms. Despite its empirical success, the non-asymptotic convergence rate of neural Q-learning remains virtually unknown. In this paper, we present a finite-time analysis of a neural Q-learning algorithm, where the data are generated from a Markov decision process, and the action-value function is approximated by a deep ReLU neural network. We prove that neural Q-learning finds the optimal policy with $O(1 / \sqrt{T})$ convergence rate if the neural function approximator is sufficiently overparameterized, where $T$ is the number of iterations. To our best knowledge, our result is the first finite-time analysis of neural Q-learning under non-i.i.d. data assumption.

1. Introduction

Q-learning has been shown to be one of the most important and effective learning strategies in Reinforcement Learning (RL) over the past decades (Watkins & Dayan, 1992; Schmidhuber, 2015; Sutton & Barto, 2018), where the agent takes an action based on the action-value function (a.k.a., Q-value function) at the current state. Recent advance in deep learning has also enabled the application of Q-learning algorithms to large-scale decision problems such as mastering Go (Silver et al., 2016; 2017), robotic motion control (Levine et al., 2015; Kalashnikov et al., 2018) and autonomous driving (Shalev-Shwartz et al., 2016; Schwarting et al., 2018). In particular, the seminal work by Mnih et al. (2015) introduced the Deep Q-Network (DQN) to approximate the action-value function and achieved a superior performance versus a human expert in playing Atari games,

which triggers a line of research on deep reinforcement learning such as Double Deep Q-Learning (Van Hasselt et al., 2016) and Dueling DQN (Wang et al., 2016).

Apart from its widespread empirical success in numerous applications, the convergence of Q-learning and temporal difference (TD) learning algorithms has also been extensively studied in the literature (Jaakkola et al., 1994; Baird, 1995; Tsitsiklis & Van Roy, 1997; Perkins & Pendrith, 2002; Melo et al., 2008; Mehta & Meyn, 2009; Liu et al., 2015; Bhandari et al., 2018; Lakshminarayanan & Szepesvari, 2018; Zou et al., 2019b). However, the convergence guarantee of deep Q-learning algorithms remains a largely open problem. The only exceptions are Yang et al. (2019) which studied the fitted Q-iteration (FQI) algorithm (Riedmiller, 2005; Munos & Szepesvari, 2008) with action-value function approximation based on a sparse ReLU network, and Cai et al. (2019a) which studied the global convergence of the Q-learning algorithm with an i.i.d. observation model and action-value function approximation based on a two-layer neural network. The main limitation of the aforementioned work is the unrealistic assumption that all the data used in the Q-learning algorithm are sampled i.i.d. from a fixed stationary distribution, which fails to capture the practical setting of neural Q-learning.

In this paper, in order to bridge the gap between the empirical success of neural Q-learning and the theory of conventional Q-learning (i.e., tabular Q-learning, and Q-learning with linear function approximation), we study the non-asymptotic convergence of a neural Q-learning algorithm under non-i.i.d. observations. In particular, we use a deep neural network with the ReLU activation function to approximate the action-value function. In each iteration of the neural Q-learning algorithm, it updates the network weight parameters using the temporal difference (TD) error and the gradient of the neural network function. Our work extends existing finite-time analyses for TD learning (Bhandari et al., 2018) and Q-learning (Zou et al., 2019b), from linear function approximation to deep neural network based function approximation. Compared with the very recent theoretical work for neural Q-learning (Yang et al., 2019; Cai et al., 2019a), our analysis relaxes the non-realistic i.i.d. data assumption and applies to neural network approximation with

an arbitrary number of layers. Our main contributions are summarized as follows

  • We establish the first finite-time analysis of Q-learning with deep neural network function approximation when the data are generated from a Markov decision process (MDP). We show that, when the network is sufficiently wide, neural Q-learning converges to the optimal action-value function up to the approximation error of the neural network function class.
  • We establish an $O(1 / \sqrt{T})$ convergence rate of neural Q-learning to the optimal Q-value function up to the approximation error, where $T$ is the number of iterations. This convergence rate matches the one for TD-learning with linear function approximation and constant step-size (Bhandari et al., 2018). Although we study a more challenging setting where the data are non-i.i.d. and the neural network approximator has multiple layers, our convergence rate also matches the $O(1 / \sqrt{T})$ rate proved in Cai et al. (2019a) with i.i.d. data and a two-layer neural network approximator.

To sum up, we present a comprehensive comparison between our work and the most relevant work in terms of their respective settings and convergence rates in Table 1.

Notation We denote $[n] = {1, \ldots, n}$ for $n \in \mathbb{N}^+$ . $| \mathbf{x} |2$ is the Euclidean norm of a vector $\mathbf{x} \in \mathbb{R}^d$ . For a matrix $\mathbf{W} \in \mathbb{R}^{m \times n}$ , we denote by $| \mathbf{W} |2$ and $| \mathbf{W} |F$ its operator norm and Frobenius norm respectively. We denote by $\operatorname{vec}(\mathbf{W})$ the vectorization of $\mathbf{W}$ , which converts $\mathbf{W}$ into a column vector. For a semi-definite matrix $\boldsymbol{\Sigma} \in \mathbb{R}^{d \times d}$ and a vector $\mathbf{x} \in \mathbb{R}^d$ , $| \mathbf{x} |{\boldsymbol{\Sigma}} = \sqrt{\mathbf{x}^\top \boldsymbol{\Sigma} \mathbf{x}}$ denotes the Mahalanobis norm. We reserve the notations ${C_i}{i=0,1,\ldots}$ to represent universal positive constants that are independent of problem parameters. The specific value of ${C_i}{i=1,2,\ldots}$ can be different line by line. We write $a_n = O(b_n)$ if $a_n \leq C b_n$ for some constant $C > 0$ and $a_n = \widetilde{O}(b_n)$ if $a_n = O(b_n)$ up to some logarithmic terms of $b_n$ .

2. Related Work

Due to the vast volume of work in the literature, we only review the most relevant work on value based reinforcement learning (e.g., TD learning and Q-learning algorithms). For policy based reinforcement learning algorithms (Sutton et al., 2000; Peters & Schaal, 2008; Silver et al., 2014; Papini et al., 2018; Xu et al., 2019a; 2020; Wang et al., 2020; Agarwal et al., 2020), we refer readers to the textbook by Sutton & Barto (2018) for details.

Asymptotic analysis The asymptotic convergence of TD learning and Q-learning algorithms has been well established in the literature (Jaakkola et al., 1994; Tsitsiklis &

Van Roy, 1997; Konda & Tsitsiklis, 2000; Borkar & Meyn, 2000; Ormoneit & Sen, 2002; Melo et al., 2008; Devraj & Meyn, 2017). In particular, Tsitsiklis & Van Roy (1997) specified the precise conditions for TD learning with linear function approximation to converge and gave counterexamples that diverge. Melo et al. (2008) proved the asymptotic convergence of Q-learning with linear function approximation from standard ODE analysis and identified a critic condition on the relationship between the learning policy and the greedy policy that ensures the almost sure convergence.

Finite-time analysis The finite-time analysis of the convergence rate for Q-learning algorithms has been largely unexplored until recently. In specific, Dalal et al. (2018); Lakshminarayanan & Szepesvari (2018) studied the convergence of TD(0) algorithm with linear function approximation under i.i.d. data assumptions and constant step sizes. Concurrently, a seminal work by Bhandari et al. (2018) provided a unified framework of analysis for TD learning under both i.i.d. and Markovian noise assumptions with an extra projection step. The analysis has been extended by Zou et al. (2019b) to SARSA and Q-learning algorithms with linear function approximation. More recently, Srikant & Ying (2019) established the finite-time convergence for TD learning algorithms with linear function approximation and a constant step-size without the extra projection step under non-i.i.d. data assumptions through carefully choosing the Lyapunov function for the associated ordinary differential equation of TD update. A similar analysis was also extended to Q-learning with linear function approximation (Chen et al., 2019). Hu & Syed (2019) further provided a unified analysis for a class of TD learning algorithms using the Markov jump linear system. A multi-step Lyapunov function based approach (Wang et al., 2019) was recently proposed to remove the projection step used in Bhandari et al. (2018); Zou et al. (2019b).

Neural function approximation Despite the empirical success of DQN, the theoretical convergence of Q-learning with deep neural network approximation is still missing in the literature. Following the recent advances in the theory of deep learning for overparameterized networks (Jacot et al., 2018; Chizat & Bach, 2018; Du et al., 2019b;a; Allen-Zhu et al., 2019b;a; Zou et al., 2019a; Arora et al., 2019; Cao & Gu, 2019a; Zou & Gu, 2019; Cai et al., 2019b), two recent work by Yang et al. (2019) and Cai et al. (2019a) proved the convergence rates of fitted Q-iteration and Q-learning with a sparse multi-layer ReLU network and two-layer neural network approximation respectively, under i.i.d. observations.

3. Preliminaries

A discrete-time Markov Decision Process (MDP) is denoted by a tuple $\mathcal{M} = (\mathcal{S},\mathcal{A},\mathcal{P},r,\gamma)$ . $\mathcal{S}$ and $\mathcal{A}$ are the sets of all states and actions respectively. $\mathcal{P}:S\times \mathcal{A}\to \mathcal{P}(S)$ is the

Table 1. Comparison with existing finite-time analyses of Q-learning.

NON-I.I.D.NEURAL APPROXIMATIONMULTIPLE LAYERSRATE
BHANDARI ET AL. (2018)βœ“βœ—βœ—O(1/T)
ZOU ET AL. (2019B)βœ“βœ—βœ—O(1/T)
CHEN ET AL. (2019)βœ“βœ—βœ—O(log T/T)
CAI ET AL. (2019A)βœ—βœ“βœ—O(1/√T)
THIS PAPERβœ“βœ“βœ“O(1/√T)

transition kernel such that $\mathcal{P}(s'|s,a)$ gives the probability of transiting to state $s'$ after taking action $a$ at state $s$ . $r: S \times \mathcal{A} \to [-1,1]$ is a deterministic reward function. $\gamma \in (0,1)$ is the discounted factor. A policy $\pi: S \to \mathcal{P}(\mathcal{A})$ is a function mapping a state $s \in S$ to a probability distribution $\pi(\cdot|s)$ over the action space. Let $s_t$ and $a_t$ denote the state and action at time step $t$ . Then the transition kernel $\mathcal{P}$ and the policy $\pi$ determine a Markov chain ${s_t}_{t=0,1,\ldots}$ . For any fixed policy $\pi$ , its associated value function $V^\pi: S \to \mathbb{R}$ is defined as the expected total discounted reward:

VΟ€(s)=E[βˆ‘t=0∞γtr(st,at)∣s0=s],βˆ€s∈S. V ^ {\pi} (s) = \mathbb {E} [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r (s _ {t}, a _ {t}) | s _ {0} = s ], \quad \forall s \in \mathcal {S}.

The corresponding action-value function $Q^{\pi}:\mathcal{S}\times \mathcal{A}\to \mathbb{R}$ is defined as

QΟ€(s,a)=E[βˆ‘t=0∞γtr(st,at)∣s0=s,a0=a]=r(s,a)+γ∫SVΟ€(sβ€²)P(sβ€²βˆ£s,a)dsβ€², \begin{array}{l} Q ^ {\pi} (s, a) = \mathbb {E} [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r (s _ {t}, a _ {t}) | s _ {0} = s, a _ {0} = a ] \\ = r (s, a) + \gamma \int_ {\mathcal {S}} V ^ {\pi} (s ^ {\prime}) \mathcal {P} (s ^ {\prime} | s, a) \mathrm {d} s ^ {\prime}, \\ \end{array}

for all $s\in S,a\in \mathcal{A}$ . The optimal action-value function $Q^{}$ is defined as $Q^{}(s,a) = \sup_{\pi}Q^{\pi}(s,a)$ for all $(s,a)\in$ $\mathcal{S}\times \mathcal{A}$ . Based on $Q^{}$ , the optimal policy $\pi^{}$ can be derived by following the greedy algorithm such that $\pi^{}(a|s) = 1$ if $Q(s,a) = \max_{b\in \mathcal{A}}Q^{}(s,b)$ and $\pi^{*}(a|s) = 0$ otherwise. We define the optimal Bellman operator $\mathcal{T}$ as follows

TQ(s,a)=r(s,a)+Ξ³β‹…E[max⁑b∈AQ(sβ€²,b)∣sβ€²βˆΌP(β‹…βˆ£s,a)].(3.1) \mathcal {T} Q (s, a) = r (s, a) + \gamma \cdot \mathbb {E} \left[ \max _ {b \in \mathcal {A}} Q \left(s ^ {\prime}, b\right) \mid s ^ {\prime} \sim \mathcal {P} (\cdot \mid s, a) \right]. \tag {3.1}

It is worth noting that the optimal Bellman operator $\mathcal{T}$ is $\gamma$ -contractive in the sup-norm and $Q^{*}$ is the unique fixed point of $\mathcal{T}$ (Bertsekas, 1995).

4. The Neural Q-Learning Algorithm

In this section, we start with a brief review of Q-learning with linear function approximation. Then we will present the neural Q-learning algorithm.

4.1. Q-Learning with Linear Function Approximation

In many reinforcement learning algorithms, the goal is to estimate the action-value function $Q(\cdot, \cdot)$ , which can be

formulated as minimizing the mean-squared Bellman error (MSBE) (Sutton & Barto, 2018):

min⁑Q(β‹…,β‹…)EΞΌ,Ο€,P[(TQ(s,a)βˆ’Q(s,a))2],(4.1) \min _ {Q (\cdot , \cdot)} \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \left(\mathcal {T} Q (s, a) - Q (s, a)\right) ^ {2} \right], \tag {4.1}

where state $s$ is generated from the initial state distribution $\mu$ and action $a$ is chosen based on a fixed learning policy $\pi$ . To optimize (4.1), Q-learning iteratively updates the action-value function using the Bellman operator in (3.1), i.e., $Q_{t + 1}(s,a) = \mathcal{T}Q_t(s,a)$ for all $(s,a)\in S\times \mathcal{A}$ . However, due to the large state and action spaces, whose cardinalities, i.e., $|\mathcal{S}|$ and $|\mathcal{A}|$ , can be infinite for continuous problems in many applications, the aforementioned update is impractical. To address this issue, a linear function approximator is often used (Szepesvari, 2010; Sutton & Barto, 2018), where the action-value function is assumed to be parameterized by a linear function, i.e., $Q(s,a;\pmb {\theta}) = \phi (s,a)^{\top}\pmb{\theta}$ for any $(s,a)\in S\times \mathcal{A}$ , where $\phi :S\times \mathcal{A}\to \mathbb{R}^d$ maps the state-action pair to a $d$ -dimensional vector, and $\pmb {\theta}\in \Theta \subseteq \mathbb{R}^{d}$ is an unknown weight vector. The minimization problem in (4.1) then turns to minimizing the MSBE over the parameter space $\Theta$ .

4.2. Neural Q-Learning

Analogous to Q-learning with linear function approximation, the action-value function can also be approximated by a deep neural network to increase the representation power of the approximator. Specifically, we define a $L$ -hidden-layer neural network as follows

f(ΞΈ;x)=mWLΟƒL(WLβˆ’1…σ(W1x)… ),(4.2) f (\boldsymbol {\theta}; \mathbf {x}) = \sqrt {m} \mathbf {W} _ {L} \sigma_ {L} \left(\mathbf {W} _ {L - 1} \dots \sigma \left(\mathbf {W} _ {1} \mathbf {x}\right) \dots\right), \tag {4.2}

where $\mathbf{x} \in \mathbb{R}^d$ is the input data, $\mathbf{W}_1 \in \mathbb{R}^{m \times d}$ , $\mathbf{W}_L \in \mathbb{R}^{1 \times m}$ and $\mathbf{W}_l \in \mathbb{R}^{m \times m}$ for $l = 2, \dots, L - 1$ , $\pmb{\theta} = (\mathrm{vec}(\mathbf{W}_1)^\top, \dots, \mathrm{vec}(\mathbf{W}_L)^\top)^\top$ is the concatenation of the vectorization of all parameter matrices, and $\sigma(x) = \max{0, x}$ is the ReLU activation function. Then, we can parameterize $Q(s, a)$ using a deep neural network as $Q(s, a; \pmb{\theta}) = f(\pmb{\theta}; \phi(s, a))$ , where $\pmb{\theta} \in \Theta$ and $\phi: S \times \mathcal{A} \to \mathbb{R}^d$ is a feature mapping. Without loss of generality, we assume that $| \phi(s, a) |_2 \leq 1$ in this paper. Let $\pi$ be an arbitrarily stationary policy. The MSBE minimization problem in (4.1) can be rewritten in the following form

EΞΌ,Ο€,P[(Q(s,a;ΞΈ)βˆ’TQ(s,a;ΞΈ))2].(4.3) \underset {\boldsymbol {\theta} \in \boldsymbol {\Theta}} {\min } \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \left(Q (s, a; \boldsymbol {\theta}) - \mathcal {T} Q (s, a; \boldsymbol {\theta})\right) ^ {2} \right]. \tag {4.3}

Algorithm 1 Neural Q-Learning with Gaussian Initialization

1: Input: learning policy $\pi$ , learning rate ${\eta_t}{t=0,1,\ldots}$ , discount factor $\gamma$ , randomly generate the entries of $\mathbf{W}l^{(0)}$ from $N(0,1/m)$ , $l=1,\ldots,m$
2: Initialization: $\theta_0 = (\mathbf{W}0^{(1)\top},\dots ,\mathbf{W}0^{(L)\top})^\top$
3: for $t = 0, \dots, T - 1$ do
4: Sample data $(s_t, a_t, r_t, s
{t+1})$ from policy $\pi$
5: $\Delta
{t} = f(\pmb{\theta}
{t};\phi (s
{t},a_{t})) - (r_{t} +$ $\gamma \max_{b\in \mathcal{A}}f(\pmb {\theta}t;\phi (s{t + 1},b)))$
6: $\mathbf{g}_t(\pmb {\theta}t) = \nabla_\pmb {\theta}f(\pmb {\theta}t;\phi (s_t,a_t))\Delta_t$
7: $\pmb{\theta}
{t + 1} = \Pi
{\Theta}(\pmb{\theta}_t - \eta_t\mathbf{g}_t(\pmb{\theta}_t))$
8: end for

Recall that the optimal action-value function $Q^{}$ is the fixed point of Bellman optimality operator $\mathcal{T}$ which is $\gamma$ -contractive. Therefore $Q^{}$ is the unique global minimizer of (4.3).

The nonlinear parameterization of $Q(\cdot, \cdot)$ turns the MSBE in (4.3) to be highly nonconvex, which imposes difficulty in finding the global optimum $\theta^*$ . To mitigate this issue, we will approximate the solution of (4.3) by project the Q-value function into some function class parameterized by $\theta$ , which leads to minimizing the mean square projected Bellman error (MSPBE):

EΞΌ,Ο€,P[(Q(s,a;ΞΈ)βˆ’Ξ FTQ(s,a;ΞΈ))2],(4.4) \left. \underset {\boldsymbol {\theta} \in \boldsymbol {\Theta}} {\min } \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \left(Q (s, a; \boldsymbol {\theta}) - \Pi_ {\mathcal {F}} \mathcal {T} Q (s, a; \boldsymbol {\theta})\right) ^ {2} \right], \right. \tag {4.4}

where $\mathcal{F} = {Q(\cdot, \cdot; \pmb{\theta}): \pmb{\theta} \in \Theta}$ is some function class parameterized by $\pmb{\theta} \in \Theta$ , and $\Pi_{\mathcal{F}}$ is a projection operator. Then the neural Q-learning algorithm updates the weight parameter $\pmb{\theta}$ using the following descent step: $\pmb{\theta}_{t+1} = \pmb{\theta}_t - \eta_t \pmb{g}_t(\pmb{\theta}_t)$ , where the gradient term $\mathbf{g}_t(\pmb{\theta}_t)$ is defined as

gt(ΞΈt)=βˆ‡ΞΈf(ΞΈt;Ο•(st,at))(f(ΞΈt;Ο•(st,at))βˆ’rtβˆ’Ξ³max⁑b∈Af(ΞΈt;Ο•(st+1,b))) \begin{array}{l} \mathbf {g} _ {t} \left(\boldsymbol {\theta} _ {t}\right) = \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {t}; \phi \left(s _ {t}, a _ {t}\right)\right) \left(f \left(\boldsymbol {\theta} _ {t}; \phi \left(s _ {t}, a _ {t}\right)\right) \right. \\ \left. - r _ {t} - \gamma \max _ {b \in \mathcal {A}} f \left(\boldsymbol {\theta} _ {t}; \phi \left(s _ {t + 1}, b\right)\right)\right) \\ \end{array}

Ξ”t(st,at,st+1;ΞΈt)βˆ‡ΞΈf(ΞΈt;Ο•(st,at)),(4.5) \stackrel {\text {d e f}} {=} \Delta_ {t} \left(s _ {t}, a _ {t}, s _ {t + 1}; \boldsymbol {\theta} _ {t}\right) \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {t}; \phi \left(s _ {t}, a _ {t}\right)\right), \tag {4.5}

and $\Delta_t$ is the temporal difference (TD) error. It should be noted that $\mathbf{g}_t$ is not the gradient of the MSPBE nor an unbiased estimator for it. The details of the neural Q-learning algorithm are displayed in Algorithm 1, where $\theta_0$ is randomly initialized, and the constraint set is chosen to be $\Theta = \mathbb{B}(\theta_0,\omega)$ , which is defined as follows

B(ΞΈ0,Ο‰){ΞΈ=(vec⁑(W1)⊀,…,vec⁑(WL)⊀)⊀:βˆ₯Wlβˆ’Wl(0)βˆ₯F≀ω,l=1,…,L}(4.6) \begin{array}{l} \mathbb {B} (\boldsymbol {\theta} _ {0}, \omega) \stackrel {{\mathrm {d e f}}} {{=}} \left\{\boldsymbol {\theta} = \left(\operatorname {v e c} \left(\mathbf {W} _ {1}\right) ^ {\top}, \dots , \operatorname {v e c} \left(\mathbf {W} _ {L}\right) ^ {\top}\right) ^ {\top}: \right. \\ \left. \left\| \mathbf {W} _ {l} - \mathbf {W} _ {l} ^ {(0)} \right\| _ {F} \leq \omega , l = 1, \dots , L \right\} \tag {4.6} \\ \end{array}

for some tunable parameter $\omega$ . It is easy to verify that $| \pmb{\theta} - \pmb{\theta}' |2^2 = \sum{l=1}^{L} | \mathbf{W}_l - \mathbf{W}_l' |_F^2$ .

5. Convergence Analysis of Neural Q-Learning

In this section, we provide a finite-sample analysis of neural Q-learning. Note that the optimization problem in (4.4) is nonconvex. We focus on finding a surrogate action-value function in the neural network function class that well approximates $Q^{*}$ .

5.1. Approximate Stationary Point in the Constrained Space

To ease the presentation, we abbreviate $f(\theta; \phi(s, a))$ as $f(\theta)$ when no confusion arises. We define the function class $\mathcal{F}_{\Theta, m}$ as a collection of all local linearization of $f(\theta)$ at the initial point $\theta_0$

FΘ,m={f(ΞΈ0)+βŸ¨βˆ‡ΞΈf(ΞΈ0),ΞΈβˆ’ΞΈ0⟩:θ∈Θ},(5.1) \mathcal {F} _ {\boldsymbol {\Theta}, m} = \left\{f \left(\boldsymbol {\theta} _ {0}\right) + \left\langle \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {0}\right), \boldsymbol {\theta} - \boldsymbol {\theta} _ {0} \right\rangle : \boldsymbol {\theta} \in \boldsymbol {\Theta} \right\}, \tag {5.1}

where $\Theta$ is a constraint set. Following to the local linearization analysis in Cai et al. (2019a), we define the approximate stationary point of Algorithm 1 as follows.

Definition 5.1 (Cai et al. (2019a)). A point $\theta^{*} \in \Theta$ is said to be the approximate stationary point of Algorithm 1 if for all $\theta \in \Theta$ it holds that

EΞΌ,Ο€,P[Ξ”^(s,a,sβ€²;ΞΈβˆ—)βŸ¨βˆ‡ΞΈf^(ΞΈβˆ—;Ο•(s,a)),ΞΈβˆ’ΞΈβˆ—βŸ©]β‰₯0,(5.2) \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \widehat {\Delta} (s, a, s ^ {\prime}; \boldsymbol {\theta} ^ {*}) \left\langle \nabla_ {\boldsymbol {\theta}} \widehat {f} \left(\boldsymbol {\theta} ^ {*}; \phi (s, a)\right), \boldsymbol {\theta} - \boldsymbol {\theta} ^ {*} \right\rangle \right] \geq 0, \tag {5.2}

where $\widehat{f} (\pmb {\theta};\phi (s,a))\coloneqq \widehat{f} (\pmb {\theta})\in \mathcal{F}_{\Theta ,m}$ and the temporal difference error $\widehat{\Delta}$ is

Ξ”^(s,a,sβ€²;ΞΈ)=f^(ΞΈ;Ο•(s,a))βˆ’(r(s,a)+Ξ³max⁑b∈Af^(ΞΈ;Ο•(sβ€²,b))).(5.3) \begin{array}{l} \widehat {\Delta} (s, a, s ^ {\prime}; \boldsymbol {\theta}) \\ = \widehat {f} (\boldsymbol {\theta}; \phi (s, a)) - \left(r (s, a) + \gamma \max _ {b \in \mathcal {A}} \widehat {f} (\boldsymbol {\theta}; \phi \left(s ^ {\prime}, b\right)\right)). \tag {5.3} \\ \end{array}

For any $\widehat{f} \in \mathcal{F}{\Theta,m}$ , it holds that $\langle \nabla{\pmb{\theta}}\widehat{f} (\pmb{\theta}^{}),\pmb{\theta} - \pmb{\theta}^{}\rangle = \langle \nabla_{\pmb{\theta}}f(\pmb{\theta}_0),\pmb{\theta} - \pmb{\theta}^\rangle = \widehat{f} (\pmb {\theta}) - \widehat{f} (\pmb{\theta}^)$ . Definition 5.1 immediately implies that for all $\pmb{\theta} \in \Theta$ it holds that

EΞΌ,Ο€[(f^(ΞΈβˆ—)βˆ’Tf^(ΞΈβˆ—))(f^(ΞΈ)βˆ’f^(ΞΈβˆ—))]=EΞΌ,Ο€,P[EP[Ξ”^(s,a,sβ€²;ΞΈβˆ—)]βŸ¨βˆ‡ΞΈf^(ΞΈβˆ—;Ο•(s,a)),ΞΈβˆ’ΞΈβˆ—βŸ©]β‰₯0.(5.4) \begin{array}{l} \mathbb {E} _ {\mu , \pi} \left[ \left(\widehat {f} (\boldsymbol {\theta} ^ {*}) - \mathcal {T} \widehat {f} (\boldsymbol {\theta} ^ {*})\right) \left(\widehat {f} (\boldsymbol {\theta}) - \widehat {f} (\boldsymbol {\theta} ^ {*})\right) \right] \\ = \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \mathbb {E} _ {\mathcal {P}} \left[ \widehat {\Delta} (s, a, s ^ {\prime}; \boldsymbol {\theta} ^ {*}) \right] \left\langle \nabla_ {\boldsymbol {\theta}} \widehat {f} (\boldsymbol {\theta} ^ {*}; \phi (s, a)), \boldsymbol {\theta} - \boldsymbol {\theta} ^ {*} \right\rangle \right] \\ \geq 0. \tag {5.4} \\ \end{array}

According to Proposition 4.2 in Cai et al. (2019a), this further indicates $\widehat{f}(\boldsymbol{\theta}^{}) = \Pi_{\mathcal{F}_{\Theta,m}} \mathcal{T}\widehat{f}(\boldsymbol{\theta}^{})$ . In other words, $\widehat{f}(\boldsymbol{\theta}^{})$ is the unique fixed point of the MSPBE in (4.4). Therefore, we can show the convergence of neural Q-learning to the optimal action-value function $Q^{}$ by first connecting it to the minimizer $\widehat{f}(\boldsymbol{\theta}^{*})$ and then adding the approximation error of $\mathcal{F}_{\Theta,m}$ .

5.2. The Main Theory

Before we present the convergence of Algorithm 1, let us lay down the assumptions used throughout our paper. The first assumption controls the bias caused by the Markovian noise in the observations by assuming the uniform ergodicity of the Markov chain generated by the learning policy $\pi$ .

Assumption 5.2. The learning policy $\pi$ and the transition kernel $\mathcal{P}$ induce a Markov chain ${s_t}_{t=0,1,\ldots}$ such that there exist constants $\lambda > 0$ and $\rho \in (0,1)$ satisfying

sup⁑s∈SdTV(P(stβˆˆβ‹…βˆ£s0=s),Ο€)≀λρt, \sup _ {s \in \mathcal {S}} d _ {T V} (\mathbb {P} (s _ {t} \in \cdot | s _ {0} = s), \pi) \leq \lambda \rho^ {t},

for all $t = 0,1,\ldots$

Assumption 5.2 is a standard requirement in the literature (Bhandari et al., 2018; Zou et al., 2019b; Xu et al., 2019b), which can be easily satisfied as long as the Markov chain is irreducible (able to reach any state from another state with a nonzero probability) and aperiodic. The uniform ergodicity can also be established via the minorization condition for irreducible Markov chains (Meyn & Tweedie, 2012; Levin & Peres, 2017).

For the purpose of exploration, we also need to assume that the learning policy $\pi$ satisfies some regularity condition. Denote $b_{\max}^{\pmb{\theta}} = \operatorname{argmax}{b \in \mathcal{A}} |\langle \nabla{\pmb{\theta}} f(\pmb{\theta}_0; s, b), \pmb{\theta} \rangle|$ for any $\pmb{\theta} \in \Theta$ . Similar to Melo et al. (2008); Zou et al. (2019b); Chen et al. (2019), we define

Σπ=1mEΞΌ,Ο€[βˆ‡ΞΈf(ΞΈ0;s,a)βˆ‡ΞΈf(ΞΈ0;s,a)⊀],(5.5) \boldsymbol {\Sigma} _ {\pi} = \frac {1}{m} \mathbb {E} _ {\mu , \pi} \left[ \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {0}; s, a\right) \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {0}; s, a\right) ^ {\top} \right], \tag {5.5}

Ξ£Ο€βˆ—(ΞΈ)=1mEΞΌ,Ο€[βˆ‡ΞΈf(ΞΈ0;s,bmax⁑θ)βˆ‡ΞΈf(ΞΈ0;s,bmax⁑θ)⊀].(5.6) \boldsymbol {\Sigma} _ {\pi} ^ {*} (\boldsymbol {\theta}) = \frac {1}{m} \mathbb {E} _ {\mu , \pi} \left[ \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {0}; s, b _ {\max } ^ {\boldsymbol {\theta}}\right) \nabla_ {\boldsymbol {\theta}} f \left(\boldsymbol {\theta} _ {0}; s, b _ {\max } ^ {\boldsymbol {\theta}}\right) ^ {\top} \right]. \tag {5.6}

Note that $\pmb{\Sigma}{\pi}$ is independent of $\pmb{\theta}$ and only depends on the policy $\pi$ and the initial point $\pmb{\theta}0$ in the definition of $\widehat{f}$ . In contrast, $\pmb{\Sigma}{\pi}^{*}(\pmb{\theta})$ is defined based on the greedy action under the policy associated with $\pmb{\theta}$ . The scaling parameter $1 / m$ is used to ensure that the operator norm of $\pmb{\Sigma}{\pi}$ to be in the order of $O(1)$ . It is worth noting that $\pmb{\Sigma}{\pi}$ is different from the neural tangent kernel (NTK) or the Gram matrix in Jacot et al. (2018); Du et al. (2019a); Arora et al. (2019), which are $n\times n$ matrices defined based on a finite set of data points ${(s_i,a_i)}{i = 1,\dots,n}$ . When $f$ is linear, $\pmb{\Sigma}_{\pi}$ reduces to the covariance matrix of the feature vector.

Assumption 5.3. There exists a constant $\alpha >1$ such that $\pmb{\Sigma}{\pi} - \alpha \gamma^{2}\pmb{\Sigma}{\pi}^{*}(\pmb {\theta})\succ \mathbf{0}$ for all $\pmb{\theta}$ and $\pmb{\theta}_0$

In the above assumption, we essentially require that the learning policy $\pi$ is not too bad compared with the greedy policy. It is worth noting that $\alpha > 0$ is of constant order even though the eigenvalues of $\Sigma_{\pi}$ and $\Sigma_{\pi}^{*}(\pmb{\theta})$ could be rather small due to the scaling factor $1 / m$ . Assumption 5.3 is also made for Q-learning with linear function approximation in Melo et al. (2008); Zou et al. (2019b); Chen et al.

(2019). Moreover, Chen et al. (2019) presented numerical simulations to verify the validity of Assumption 5.3. Cai et al. (2019a) imposed a slightly different assumption but with the same idea that the learning policy $\pi$ should be not too far away from the greedy policy. The regularity assumption on the learning policy is directly imposed on the action value function in Cai et al. (2019a), which can be implied by Assumption 5.3 and thus is slightly weaker. We note that Assumption 5.3 can be relaxed to the one made in Cai et al. (2019a) without changing any of our analysis. Nevertheless, we choose to present the current version which is more consistent with existing work on Q-learning with linear function approximation (Melo et al., 2008; Chen et al., 2019).

Theorem 5.4. Suppose Assumptions 5.2 and 5.3 hold. The constraint set $\Theta$ is defined as in (4.6). We set the radius as $\omega = C_0m^{-1/2}L^{-9/4}$ , the step size in Algorithm 1 as $\eta = 1/(2(1 - \alpha^{-1/2})mT)$ and the width of the neural network as $m \geq C_1\max{dL^2\log(m/\delta), \omega^{-4/3}L^{-8/3}\log(m / (\omega\delta))}$ ,

where $\delta \in (0,1)$ . Then with probability at least $1 - 2\delta - L^2 \exp(-C_2 m^{2/3} L)$ over the randomness of the Gaussian initialization $\theta_0$ , it holds that

1Tβˆ‘t=0Tβˆ’1E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0]≀1T+C2Ο„βˆ—log⁑(T/Ξ΄)log⁑TΞ²2T+C3log⁑mlog⁑(T/Ξ΄)Ξ²m1/6, \begin{array}{l} \frac {1}{T} \sum_ {t = 0} ^ {T - 1} \mathbb {E} \left[ \left(\widehat {f} \left(\boldsymbol {\theta} _ {t}\right) - \widehat {f} \left(\boldsymbol {\theta} ^ {*}\right)\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right] \\ \leq \frac {1}{\sqrt {T}} + \frac {C _ {2} \tau^ {*} \log (T / \delta) \log T}{\beta^ {2} \sqrt {T}} + \frac {C _ {3} \sqrt {\log m \log (T / \delta)}}{\beta m ^ {1 / 6}}, \\ \end{array}

where $\beta = 1 - \alpha^{-1 / 2}\in (0,1)$ is a constant, $\tau^{*} = \min {t =$ $0,1,2,\ldots |\lambda \rho^t\leq \eta_T}$ is the mixing time of the Markov chain ${s_t,a_t}{t = 0,1,\dots}$ , and ${C_i}{i = 0,\dots ,5}$ are universal constants independent of problem parameters.

Remark 5.5. Theorem 5.4 characterizes the distance between the output of Algorithm 1 to the approximate stationary point defined in function class $\mathcal{F}_{\Theta ,m}$ . From (5.4), we know that $\widehat{f} (\pmb{\theta}^{})$ is the minimizer of the MSPBE (4.4). Note that $\tau^{}$ is in the order of $O(\log (mT / \log T))$ . Theorem 5.4 suggests that neural Q-learning converges to the minimizer of MSPBE with a rate in the order of $O((\log (mT))^3 /\sqrt{T} +\log m\log T / m^{1 / 6})$ , which reduces to $\widetilde{O} (1 / \sqrt{T})$ when the width $m$ of the neural network is sufficiently large.

In the following theorem, we show that neural Q-learning converges to the optimal action-value function within finite time if the neural network is overparameterized.

Theorem 5.6. Under the same conditions as in Theorem 5.4, with probability at least $1 - 3\delta - L^2 \exp(-C_0 m^{2/3} L)$ over the randomness of $\theta_0$ , it holds that

1Tβˆ‘t=0Tβˆ’1E[(Q(s,a;ΞΈt)βˆ’Qβˆ—(s,a))2] \frac {1}{T} \sum_ {t = 0} ^ {T - 1} \mathbb {E} \left[ \left(Q (s, a; \boldsymbol {\theta} _ {t}) - Q ^ {*} (s, a)\right) ^ {2} \right]

≀3E[(Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a))2](1βˆ’Ξ³)2+1T+C1Ο„βˆ—log⁑(T/Ξ΄)log⁑TΞ²2T+C2log⁑(T/Ξ΄)log⁑mΞ²m1/6, \begin{array}{l} \leq \frac {3 \mathbb {E} \left[ \left(\Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s , a) - Q ^ {*} (s , a)\right) ^ {2} \right]}{(1 - \gamma) ^ {2}} + \frac {1}{\sqrt {T}} \\ + \frac {C _ {1} \tau^ {*} \log (T / \delta) \log T}{\beta^ {2} \sqrt {T}} + \frac {C _ {2} \sqrt {\log (T / \delta) \log m}}{\beta m ^ {1 / 6}}, \\ \end{array}

where all the expectations are taken conditional on $\theta_0$ , $Q^*$ is the optimal action-value function, $\delta \in (0,1)$ and ${C_i}_{i = 0,\dots ,2}$ are universal constants.

The optimal policy $\pi^{}$ can be obtained by the greedy algorithm derived based on $Q^{}$ .

Remark 5.7. The convergence rate in Theorem 5.6 can be simplifies as follows

1Tβˆ‘t=0Tβˆ’1E[(Q(s,a;ΞΈt)βˆ’Qβˆ—(s,a))2∣θ0]=O~(E[(Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a))2]+1m1/6+1T). \begin{array}{l} \frac {1}{T} \sum_ {t = 0} ^ {T - 1} \mathbb {E} \left[ \left(Q (s, a; \boldsymbol {\theta} _ {t}) - Q ^ {*} (s, a)\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right] \\ = \widetilde {O} \left(\mathbb {E} \left[ \left(\Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a)\right) ^ {2} \right] + \frac {1}{m ^ {1 / 6}} + \frac {1}{\sqrt {T}}\right). \\ \end{array}

The first term is the projection error of the optimal Q-value function on to the function class $\mathcal{F}{\Theta,m}$ , which decreases to zero as the representation power of $\mathcal{F}{\Theta,m}$ increases. In fact, when the width $m$ of the DNN is sufficiently large, recent studies (Cao & Gu, 2019a;b) show that $f(\pmb{\theta})$ is almost linear around the initialization and the approximate stationary point $\widehat{f}(\pmb{\theta}^*)$ becomes the fixed solution of the MSBE (Cai et al., 2019a). Moreover, this term diminishes when the $Q$ function is approximated by linear functions when the underlying parameter has a bounded norm (Bhandari et al., 2018; Zou et al., 2019b). As $m$ goes to infinity, we obtain the convergence of neural Q-learning to the optimal Q-value function with an $O(1/\sqrt{T})$ rate.

6. Proof of the Main Results

In this section, we provide the detailed proof of the convergence of Algorithm 1. To simplify the presentation, we write $f(\theta; \phi(s, a))$ as $f(\theta; s, a)$ throughout the proof when no confusion arises.

We first define some notations that will simplify the presentation of the proof. Recall the definition of $\mathbf{g}_t(\cdot)$ in (4.5). We define the following vector-value map $\overline{\mathbf{g}}$ that is independent of the data point.

gβ€Ύ(ΞΈ)=EΞΌ,Ο€,P[βˆ‡ΞΈf(ΞΈ;s,a)(f(ΞΈ;s,a)βˆ’r(s,a)βˆ’Ξ³max⁑b∈Af(ΞΈ;sβ€²,b))],(6.1) \begin{array}{l} \overline {{\mathbf {g}}} (\boldsymbol {\theta}) = \mathbb {E} _ {\mu , \pi , \mathcal {P}} [ \nabla_ {\boldsymbol {\theta}} f (\boldsymbol {\theta}; s, a) (f (\boldsymbol {\theta}; s, a) \\ \left. - r (s, a) - \gamma \max _ {b \in \mathcal {A}} f (\boldsymbol {\theta}; s ^ {\prime}, b)) \right], \tag {6.1} \\ \end{array}

where $s$ follows the initial state distribution $\mu$ , $a$ is chosen based on the policy $\pi(\cdot|s)$ and $s'$ follows the transition probability $\mathcal{P}(\cdot|s, a)$ . Similarly, we define the following gradient terms based on the linearized function $\widehat{f} \in \mathcal{F}_{\Theta,m}$

mt(ΞΈ)=Ξ”^(st,at,st+1;ΞΈ)βˆ‡ΞΈf^(ΞΈ),mβ€Ύ(ΞΈ)=EΞΌ,Ο€,P[Ξ”^(s,a,sβ€²;ΞΈ)βˆ‡ΞΈf^(ΞΈ)],(6.2) \begin{array}{l} \mathbf {m} _ {t} (\boldsymbol {\theta}) = \widehat {\Delta} \left(s _ {t}, a _ {t}, s _ {t + 1}; \boldsymbol {\theta}\right) \nabla_ {\boldsymbol {\theta}} \widehat {f} (\boldsymbol {\theta}), \tag {6.2} \\ \overline {{\mathbf {m}}} (\boldsymbol {\theta}) = \mathbb {E} _ {\mu , \pi , \mathcal {P}} \left[ \widehat {\Delta} (s, a, s ^ {\prime}; \boldsymbol {\theta}) \nabla_ {\boldsymbol {\theta}} \widehat {f} (\boldsymbol {\theta}) \right], \\ \end{array}

where $\widehat{\Delta}$ is defined in (5.3), and a population version based on the linearized function.

Now we present the technical lemmas that are useful in our proof of Theorem 5.4. For the gradients $\mathbf{g}_t(\cdot)$ defined in (4.5) and $\mathbf{m}_t(\cdot)$ defined in (6.2), we have the following lemma that characterizes the difference between the gradient of the neural network function $f$ and the gradient of the linearized function $\widehat{f}$ .

Lemma 6.1. The gradient of neural network function is close to the linearized gradient. Specifically, if $\theta_t \in \mathbb{B}(\Theta, \omega)$ and $m$ and $\omega$ satisfy

mβ‰₯C0max⁑{dL2log⁑(m/Ξ΄),Ο‰βˆ’4/3Lβˆ’8/3log⁑(m/(ωδ))},a n dC1d3/2Lβˆ’1mβˆ’3/4≀ω≀C2Lβˆ’6(log⁑m)βˆ’3,(6.3) \begin{array}{l} m \geq C _ {0} \max \left\{d L ^ {2} \log (m / \delta), \omega^ {- 4 / 3} L ^ {- 8 / 3} \log (m / (\omega \delta)) \right\}, \\ \text {a n d} \quad C _ {1} d ^ {3 / 2} L ^ {- 1} m ^ {- 3 / 4} \leq \omega \leq C _ {2} L ^ {- 6} (\log m) ^ {- 3}, \end{array} \tag {6.3}

then it holds that

∣⟨gt(ΞΈt)βˆ’mt(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βˆ£β‰€C3(2+Ξ³)Ο‰1/3L3mlog⁑mlog⁑(T/Ξ΄)βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯2+(C4Ο‰4/3L11/3mlog⁑m+C5Ο‰2L4m)βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯2, \begin{array}{l} \left| \left\langle \mathbf {g} _ {t} \left(\boldsymbol {\theta} _ {t}\right) - \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \right| \\ \leq C _ {3} (2 + \gamma) \omega^ {1 / 3} L ^ {3} \sqrt {m \log m \log (T / \delta)} \| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \| _ {2} \\ + \left(C _ {4} \omega^ {4 / 3} L ^ {1 1 / 3} m \sqrt {\log m} + C _ {5} \omega^ {2} L ^ {4} m\right) \| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \| _ {2}, \\ \end{array}

with probability at least $1 - 2\delta -3L^{2}\exp (-C_{6}m\omega^{2 / 3}L)$ over the randomness of the initial point, and $| \mathbf{g}_t(\pmb {\theta}_t)| 2\leq$ $(2 + \gamma)C_7\sqrt{m\log(T / \delta)}$ holds with probability at least $1-$ $\delta -L^2\exp (-C_6m\omega^{2 / 3}L)$ . where ${C_i > 0}{i = 0,\dots ,7}$ are universal constants.

The next lemma upper bounds the bias of the non-i.i.d. data for the linearized gradient map.

Lemma 6.2. Suppose the step size sequence ${\eta_0,\eta_1,\dots ,\eta_T}$ is nonincreasing. Then it holds that

E[⟨mt(ΞΈt)βˆ’mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βˆ£ΞΈ0]≀C0(mlog⁑(T/Ξ΄)+m2Ο‰2)Ο„βˆ—Ξ·max⁑{0,tβˆ’Ο„βˆ—}, \begin{array}{l} \mathbb {E} [ \langle \mathbf {m} _ {t} (\boldsymbol {\theta} _ {t}) - \overline {{\mathbf {m}}} (\boldsymbol {\theta} _ {t}), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \rangle | \boldsymbol {\theta} _ {0} ] \\ \leq C _ {0} \left(m \log (T / \delta) + m ^ {2} \omega^ {2}\right) \tau^ {*} \eta_ {\max \{0, t - \tau^ {*} \}}, \\ \end{array}

for any fixed $t \leq T$ , where $C_0 > 0$ is an universal constant and $\tau^* = \min {t = 0,1,2,\ldots |\lambda \rho^t \leq \eta_T}$ is the mixing time of the Markov chain ${s_t, a_t}_{t=0,1,\ldots}$ .

Since $\widehat{f}$ is a linear function approximator of the neural network function $f$ , we can show that the gradient of $\widehat{f}$ satisfies the following nice property.

Lemma 6.3. Under Assumption 5.3, $\overline{\mathbf{m}} (\cdot)$ defined in (6.2) satisfies

⟨mβ€Ύ(ΞΈ)βˆ’mβ€Ύ(ΞΈβˆ—),ΞΈβˆ’ΞΈβˆ—βŸ©β‰₯(1βˆ’Ξ±βˆ’1/2)E[(f^(ΞΈ)βˆ’f^(ΞΈβˆ—))2∣θ0]. \begin{array}{l} \langle \overline {{\mathbf {m}}} (\boldsymbol {\theta}) - \overline {{\mathbf {m}}} (\boldsymbol {\theta} ^ {*}), \boldsymbol {\theta} - \boldsymbol {\theta} ^ {*} \rangle \\ \geq (1 - \alpha^ {- 1 / 2}) \mathbb {E} \left[ \left(\widehat {f} (\boldsymbol {\theta}) - \widehat {f} (\boldsymbol {\theta} ^ {*})\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right]. \\ \end{array}

6.1. Proof of Theorem 5.4

Now we can integrate the above results and obtain proof of Theorem 5.4.

Proof of Theorem 5.4. By Algorithm 1 and the non-expansiveness of projection $\Pi_{\Theta}$ , we have

βˆ₯ΞΈt+1βˆ’ΞΈβˆ—βˆ₯22=βˆ₯ΠΘ(ΞΈtβˆ’Ξ·tgt)βˆ’ΞΈβˆ—βˆ₯22≀βˆ₯ΞΈtβˆ’Ξ·tgtβˆ’ΞΈβˆ—βˆ₯22=βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯22+Ξ·t2βˆ₯gtβˆ₯22βˆ’2Ξ·t⟨gt,ΞΈtβˆ’ΞΈβˆ—βŸ©.(6.4) \begin{array}{l} \left\| \boldsymbol {\theta} _ {t + 1} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} = \left\| \Pi_ {\boldsymbol {\Theta}} \left(\boldsymbol {\theta} _ {t} - \eta_ {t} \mathbf {g} _ {t}\right) - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} \\ \leq \left\| \boldsymbol {\theta} _ {t} - \eta_ {t} \mathbf {g} _ {t} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} \\ = \| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \| _ {2} ^ {2} + \eta_ {t} ^ {2} \| \mathbf {g} _ {t} \| _ {2} ^ {2} - 2 \eta_ {t} \langle \mathbf {g} _ {t}, \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \rangle . \tag {6.4} \\ \end{array}

We need to find an upper bound for the gradient norm and a lower bound for the inner product. According to Definition 5.1, the approximate stationary point $\pmb{\theta}^{}$ of Algorithm 1 satisfies $\langle \overline{\mathbf{m}} (\pmb{\theta}^{}),\pmb {\theta} - \pmb{\theta}^{*}\rangle \geq 0$ for all $\pmb {\theta}\in \Theta$ . The inner product in (6.4) can be decomposed into

⟨gt,ΞΈtβˆ’ΞΈβˆ—βŸ©=⟨gtβˆ’mt(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©+⟨mt(ΞΈt)βˆ’mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©+⟨mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©β‰₯⟨gtβˆ’mt(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©+⟨mt(ΞΈt)βˆ’mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©+⟨mβ€Ύ(ΞΈt)βˆ’mβ€Ύ(ΞΈβˆ—),ΞΈtβˆ’ΞΈβˆ—βŸ©.(6.5) \begin{array}{l} \left\langle \mathbf {g} _ {t}, \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \\ = \left\langle \mathbf {g} _ {t} - \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle + \left\langle \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \\ + \left\langle \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \\ \geq \left\langle \mathbf {g} _ {t} - \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle + \left\langle \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \\ + \left\langle \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} ^ {*}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle . \tag {6.5} \\ \end{array}

Substituting (6.5) into (6.4), we have

βˆ₯ΞΈt+1βˆ’ΞΈβˆ—βˆ₯22≀βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯22+Ξ·t2βˆ₯gtβˆ₯22βˆ’2Ξ·t⟨gtβˆ’mt(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βŸI1βˆ’2Ξ·t⟨mt(ΞΈt)βˆ’mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βŸI2βˆ’2Ξ·t⟨mβ€Ύ(ΞΈt)βˆ’mβ€Ύ(ΞΈβˆ—),ΞΈtβˆ’ΞΈβˆ—βŸ©βŸI3.(6.6) \begin{array}{l} \left\| \boldsymbol {\theta} _ {t + 1} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} \leq \left\| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} + \eta_ {t} ^ {2} \| \mathbf {g} _ {t} \| _ {2} ^ {2} \\ - 2 \eta_ {t} \underbrace {\left\langle \mathbf {g} _ {t} - \mathbf {m} _ {t} (\boldsymbol {\theta} _ {t}) , \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle} _ {I _ {1}} \\ - 2 \eta_ {t} \underbrace {\left\langle \mathbf {m} _ {t} (\boldsymbol {\theta} _ {t}) - \overline {{\mathbf {m}}} (\boldsymbol {\theta} _ {t}) , \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle} _ {I _ {2}} \\ - 2 \eta_ {t} \underbrace {\left\langle \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} ^ {*}\right) , \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle} _ {I _ {3}}. \tag {6.6} \\ \end{array}

Note that the linearization error characterized in Lemma 6.1 only holds within a small neighborhood of the initial point $\pmb{\theta}_0$ . In the rest of this proof, we will assume that $\pmb{\theta}_0, \pmb{\theta}_1, \dots, \pmb{\theta}_T \in \mathbb{B}(\pmb{\theta}_0, \omega)$ for some $\omega > 0$ . We will verify this condition at the end of this proof.

Recall constraint set defined in (4.6). We have $\Theta = \mathbb{B}(\pmb{\theta}_0, \omega) = {\pmb{\theta}: | \mathbf{W}_l - \mathbf{W}_l^{(0)}|_F \leq \omega, \forall l = 1, \dots, L}$ and that $m$ and $\omega$ satisfy the condition in (6.3).

Term $I_{1}$ is the error of the local linearization of $f(\pmb{\theta})$ at $\pmb{\theta}{0}$ . By Lemma 6.1, with probability at least $1 - 2\delta - 3L^{2}\exp(-C{1}m\omega^{2/3}L)$ over the randomness of the initial point $\pmb{\theta}_{0}$ , we have

∣⟨gtβˆ’mt(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βˆ£β‰€C2(2+Ξ³)mβˆ’1/6log⁑mlog⁑(T/Ξ΄)(6.7) \begin{array}{l} \left. \left| \left\langle \mathbf {g} _ {t} - \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \right| \right. \\ \leq C _ {2} (2 + \gamma) m ^ {- 1 / 6} \sqrt {\log m \log (T / \delta)} \tag {6.7} \\ \end{array}

holds uniformly for all $\pmb{\theta}_t, \pmb{\theta}^* \in \Theta$ , where we used the fact that $\omega = C_0 m^{-1/2} L^{-9/4}$ .

Term $I_{2}$ is the bias of caused by the non-i.i.d. data $(s_{t}, a_{t}, s_{t+1})$ used in the update of Algorithm 1. Conditional on the initialization, by Lemma 6.2, we have

E[⟨mt(ΞΈt)βˆ’mβ€Ύ(ΞΈt),ΞΈtβˆ’ΞΈβˆ—βŸ©βˆ£ΞΈ0] \mathbb {E} \left[ \left\langle \mathbf {m} _ {t} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \mid \boldsymbol {\theta} _ {0} \right]

≀C3(mlog⁑(T/Ξ΄)+m2Ο‰2)Ο„βˆ—Ξ·max⁑{0,tβˆ’Ο„βˆ—},(6.8) \leq C _ {3} \left(m \log \left(T / \delta\right) + m ^ {2} \omega^ {2}\right) \tau^ {*} \eta_ {\max \{0, t - \tau^ {*} \}}, \tag {6.8}

where $\tau^{*} = \min {t = 0,1,2,\dots |\lambda \rho^{t}\leq \eta_{T}}$ is the mixing time of the Markov chain ${s_t,a_t}_{t = 0,1,\ldots}$ .

Term $I_{3}$ is the estimation error for the linear function approximation. By Lemma 6.3, we have

⟨mβ€Ύ(ΞΈt)βˆ’mβ€Ύ(ΞΈβˆ—),ΞΈtβˆ’ΞΈβˆ—βŸ©β‰₯Ξ²E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0],(6.9) \left. \left\langle \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} _ {t}\right) - \overline {{\mathbf {m}}} \left(\boldsymbol {\theta} ^ {*}\right), \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\rangle \geq \beta \mathbb {E} \left[ \left(\widehat {f} \left(\boldsymbol {\theta} _ {t}\right) - \widehat {f} \left(\boldsymbol {\theta} ^ {*}\right)\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right], \right. \tag {6.9}

where $\beta = (1 - \alpha^{-1 / 2})\in (0,1)$ is a constant. Substituting (6.7), (6.8) and (6.9) into (6.6), we have it holds that

βˆ₯ΞΈt+1βˆ’ΞΈβˆ—βˆ₯22≀βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯22+Ξ·t2C42(2+Ξ³)2mlog⁑(T/Ξ΄)+2Ξ·tC2(2+Ξ³)mβˆ’1/6log⁑mlog⁑(T/Ξ΄)+2Ξ·tC3(mlog⁑(T/Ξ΄)+m2Ο‰2)Ο„βˆ—Ξ·max⁑{0,tβˆ’Ο„βˆ—}βˆ’2Ξ·tΞ²E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0],(6.10) \begin{array}{l} \left\| \boldsymbol {\theta} _ {t + 1} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} \\ \leq \left\| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} + \eta_ {t} ^ {2} C _ {4} ^ {2} (2 + \gamma) ^ {2} m \log (T / \delta) \\ + 2 \eta_ {t} C _ {2} (2 + \gamma) m ^ {- 1 / 6} \sqrt {\log m \log (T / \delta)} \\ + 2 \eta_ {t} C _ {3} (m \log (T / \delta) + m ^ {2} \omega^ {2}) \tau^ {*} \eta_ {\max \{0, t - \tau^ {*} \}} \\ - 2 \eta_ {t} \beta \mathbb {E} \left[ \left(\widehat {f} \left(\boldsymbol {\theta} _ {t}\right) - \widehat {f} \left(\boldsymbol {\theta} ^ {*}\right)\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right], \tag {6.10} \\ \end{array}

with probability at least $1 - 2\delta -3L^{2}\exp (-C_{1}m\omega^{2 / 3}L)$ over the randomness of the initial point $\theta_0$ , where we used the fact that $| \mathbf{g}_t| _F\leq C_4(2 + \gamma)\sqrt{m\log(T / \delta)}$ from Lemma 6.1. Rearranging the above inequality yields

E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0]≀βˆ₯ΞΈtβˆ’ΞΈβˆ—βˆ₯22βˆ’βˆ₯ΞΈt+1βˆ’ΞΈβˆ—βˆ₯222Ξ²Ξ·t+C2(2+Ξ³)mβˆ’1/6log⁑mlog⁑(T/Ξ΄)Ξ²+C4(2+Ξ³)2mlog⁑(T/Ξ΄)Ξ·tΞ²+C3m(log⁑(T/Ξ΄)+mΟ‰2)Ο„βˆ—Ξ·max⁑{0,tβˆ’Ο„βˆ—}Ξ², \begin{array}{l} \mathbb {E} \left[ \left(\widehat {f} (\boldsymbol {\theta} _ {t}) - \widehat {f} (\boldsymbol {\theta} ^ {*})\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right] \\ \leq \frac {\left\| \boldsymbol {\theta} _ {t} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2} - \left\| \boldsymbol {\theta} _ {t + 1} - \boldsymbol {\theta} ^ {*} \right\| _ {2} ^ {2}}{2 \beta \eta_ {t}} \\ + \frac {C _ {2} (2 + \gamma) m ^ {- 1 / 6} \sqrt {\log m \log (T / \delta)}}{\beta} \\ + \frac {C _ {4} (2 + \gamma) ^ {2} m \log (T / \delta) \eta_ {t}}{\beta} \\ + \frac {C _ {3} m (\log (T / \delta) + m \omega^ {2}) \tau^ {*} \eta_ {\max \{0 , t - \tau^ {*} \}}}{\beta}, \\ \end{array}

with probability at least $1 - 2\delta -3L^{2}\exp (-C_{1}m\omega^{2 / 3}L)$ over the randomness of the initial point $\pmb{\theta}_{0}$ . Recall the choices of the step sizes $\eta_0 = \dots = \eta_T = 1 / (2\beta m\sqrt{T})$ and the radius $\omega = C_0m^{-1 / 2}L^{-9 / 4}$ . Dividing the above inequality by $T$ and telescoping it from $t = 0$ to $T$ yields

1Tβˆ‘t=0Tβˆ’1E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0]≀mβˆ₯ΞΈ0βˆ’ΞΈβˆ—βˆ₯22T+C2(2+Ξ³)mβˆ’1/6log⁑mlog⁑(T/Ξ΄)Ξ²+C4(2+Ξ³)2log⁑(T/Ξ΄)log⁑TΞ²2T+C3(log⁑(T/Ξ΄)+1)Ο„βˆ—log⁑TΞ²T. \begin{array}{l} \frac {1}{T} \sum_ {t = 0} ^ {T - 1} \mathbb {E} \left[ \left(\widehat {f} \left(\boldsymbol {\theta} _ {t}\right) - \widehat {f} \left(\boldsymbol {\theta} ^ {*}\right)\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right] \\ \leq \frac {m \| \boldsymbol {\theta} _ {0} - \boldsymbol {\theta} ^ {*} \| _ {2} ^ {2}}{\sqrt {T}} + \frac {C _ {2} (2 + \gamma) m ^ {- 1 / 6} \sqrt {\log m \log (T / \delta)}}{\beta} \\ + \frac {C _ {4} (2 + \gamma) ^ {2} \log (T / \delta) \log T}{\beta^ {2} \sqrt {T}} \\ + \frac {C _ {3} (\log (T / \delta) + 1) \tau^ {*} \log T}{\beta \sqrt {T}}. \\ \end{array}

For $\pmb{\theta}_0, \pmb{\theta}^* \in \Theta$ , again by $\omega = Cm^{-1/2}L^{-9/4}$ , we have $|\pmb{\theta}_0 - \pmb{\theta}^*|2^2 \leq 1/m$ . Since $\widehat{f}(\cdot) \in \mathcal{F}{\Theta,m}$ , by Lemma 6.1, it

holds with probability at least $1 - 2\delta -3L^{2}\exp (-C_{0}m^{2 / 3}L)$ over the randomness of the initial point $\pmb{\theta}_{0}$ that

≀C14/3C2mβˆ’1/3log⁑m(6.12) \leq C _ {1} ^ {4 / 3} C _ {2} m ^ {- 1 / 3} \log m \tag {6.12}

1Tβˆ‘t=0Tβˆ’1E[(f^(ΞΈt)βˆ’f^(ΞΈβˆ—))2∣θ0]≀1T+C1Ο„βˆ—log⁑(T/Ξ΄)log⁑TΞ²2T+C2log⁑mlog⁑(T/Ξ΄)Ξ²m1/6, \begin{array}{l} \frac {1}{T} \sum_ {t = 0} ^ {T - 1} \mathbb {E} \left[ \left(\widehat {f} (\boldsymbol {\theta} _ {t}) - \widehat {f} (\boldsymbol {\theta} ^ {*})\right) ^ {2} \mid \boldsymbol {\theta} _ {0} \right] \\ \leq \frac {1}{\sqrt {T}} + \frac {C _ {1} \tau^ {*} \log (T / \delta) \log T}{\beta^ {2} \sqrt {T}} + \frac {C _ {2} \sqrt {\log m \log (T / \delta)}}{\beta m ^ {1 / 6}}, \\ \end{array}

where we used the fact that $\gamma < 1$ . This completes the proof.

6.2. Proof of Theorem 5.6

Before we prove the global convergence of Algorithm 1, we present the following lemma that shows that near the initialization point $\theta_0$ , the neural network function $f(\pmb{\theta}; \mathbf{x})$ is almost linear in $\pmb{\theta}$ for all unit input vectors.

Lemma 6.4 (Theorems 5.3 and 5.4 in Cao & Gu (2019a)). Let $\pmb{\theta}_0 = (\mathbf{W}_0^{(1)\top},\dots,\mathbf{W}_0^{(L)\top})^\top$ be the initial point and $\pmb {\theta} = (\mathbf{W}^{(1)\top},\dots,\mathbf{W}^{(L)\top})^\top \in \mathbb{B}(\pmb {\theta}0,\omega)$ be a point in the neighborhood of $\pmb{\theta}{0}$ . If

mβ‰₯C1max⁑{dL2log⁑(m/Ξ΄),Ο‰βˆ’4/3Lβˆ’8/3log⁑(m/(ωδ))},ω≀C2Lβˆ’5(log⁑m)βˆ’3/2, \begin{array}{l} m \geq C _ {1} \max \{d L ^ {2} \log (m / \delta), \omega^ {- 4 / 3} L ^ {- 8 / 3} \log (m / (\omega \delta)) \}, \\ \omega \leq C _ {2} L ^ {- 5} (\log m) ^ {- 3 / 2}, \\ \end{array}

then for all $\mathbf{x} \in S^{d-1}$ , with probability at least $1 - \delta$ it holds that

∣f(ΞΈ;x)βˆ’f^(ΞΈ;x)βˆ£β‰€Ο‰1/3L8/3mlog⁑mβˆ‘l=1Lβˆ₯W(l)βˆ’W0(l)βˆ₯2+C3L3mβˆ‘l=1Lβˆ₯W(l)βˆ’W0(l)βˆ₯22. \begin{array}{l} | f (\boldsymbol {\theta}; \mathbf {x}) - \widehat {f} (\boldsymbol {\theta}; \mathbf {x}) | \\ \leq \omega^ {1 / 3} L ^ {8 / 3} \sqrt {m \log m} \sum_ {l = 1} ^ {L} \left\| \mathbf {W} ^ {(l)} - \mathbf {W} _ {0} ^ {(l)} \right\| _ {2} \\ + C _ {3} L ^ {3} \sqrt {m} \sum_ {l = 1} ^ {L} \left\| \mathbf {W} ^ {(l)} - \mathbf {W} _ {0} ^ {(l)} \right\| _ {2} ^ {2}. \\ \end{array}

Under the same conditions on $m$ and $\omega$ , if $\pmb{\theta}_t \in \mathbb{B}(\pmb{\theta}_0, \omega)$ for all $t = 1, \dots, T$ , then with probability at least $1 - \delta$ , we have $|f(\pmb{\theta}_t; \phi(s_t, a_t))| \leq C_4 \sqrt{\log(T / \delta)}$ for all $t \in [T]$ .

Proof of Theorem 5.6. To simplify the notation, we abbreviate $\mathbb{E}[\cdot |\pmb{\theta}_0]$ as $\mathbb{E}[\cdot ]$ in the rest of this proof. Therefore, we have

E[(Q(s,a;ΞΈT)βˆ’Qβˆ—(s,a))2]≀3E[(f(ΞΈT;s,a)βˆ’f^(ΞΈT;s,a))2]+3E[(f^(ΞΈT;s,a)βˆ’f^(ΞΈβˆ—;s,a))2]+3E[(f^(ΞΈβˆ—;s,a)βˆ’Qβˆ—(s,a))2].(6.11) \begin{array}{l} \mathbb {E} \left[ \left(Q (s, a; \boldsymbol {\theta} _ {T}) - Q ^ {*} (s, a)\right) ^ {2} \right] \\ \leq 3 \mathbb {E} \left[ \left(f (\boldsymbol {\theta} _ {T}; s, a) - \widehat {f} (\boldsymbol {\theta} _ {T}; s, a)\right) ^ {2} \right] \\ + 3 \mathbb {E} \left[ \left(\widehat {f} (\boldsymbol {\theta} _ {T}; s, a) - \widehat {f} (\boldsymbol {\theta} ^ {*}; s, a)\right) ^ {2} \right] \\ + 3 \mathbb {E} \left[ \left(\widehat {f} \left(\boldsymbol {\theta} ^ {*}; s, a\right) - Q ^ {*} (s, a)\right) ^ {2} \right]. \tag {6.11} \\ \end{array}

By Lemma 6.4 and the parameter choice that $\omega = C_1 / (\sqrt{m} L^{9/4})$ , we have

E[(f(ΞΈT;s,a)βˆ’f^(ΞΈT;s,a))2]≀C2(Ο‰4/3L4mlog⁑m)2 \mathbb {E} [ (f (\pmb {\theta} _ {T}; s, a) - \widehat {f} (\pmb {\theta} _ {T}; s, a)) ^ {2} ] \leq C _ {2} (\omega^ {4 / 3} L ^ {4} \sqrt {m \log m}) ^ {2}

with probability at least $1 - \delta$ . Recall that $\widehat{f}(\pmb{\theta}^*;\cdot,\cdot)$ is the fixed point of $\Pi_{\mathcal{F}}\mathcal{T}$ and $Q^*(\cdot,\cdot)$ is the fixed point of $\mathcal{T}$ . Then we have

∣f^(ΞΈβˆ—;s,a)βˆ’Qβˆ—(s,a)∣=∣f^(ΞΈβˆ—;s,a)βˆ’Ξ FΘ,mQβˆ—(s,a)+Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a)∣=∣ΠFΘ,mTf^(ΞΈβˆ—;s,a)βˆ’Ξ FΘ,mTQβˆ—(s,a)+Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a)βˆ£β‰€βˆ£Ξ FΘ,mTf^(ΞΈβˆ—;s,a)βˆ’Ξ FΘ,mTQβˆ—(s,a)∣+∣ΠFΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a)βˆ£β‰€Ξ³βˆ£f^(ΞΈβˆ—;s,a)βˆ’Qβˆ—(s,a)∣+∣ΠFΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a)∣, \begin{array}{l} \left| \widehat {f} \left(\boldsymbol {\theta} ^ {*}; s, a\right) - Q ^ {*} (s, a) \right| \\ = \left| \widehat {f} \left(\boldsymbol {\theta} ^ {*}; s, a\right) - \Pi_ {\mathcal {F} _ {\boldsymbol {\Theta}, m}} Q ^ {*} (s, a) \right. \\ + \Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a) \Big | \\ = \left| \Pi_ {\mathcal {F} _ {\Theta , m}} \mathcal {T} \widehat {f} \left(\boldsymbol {\theta} ^ {*}; s, a\right) - \Pi_ {\mathcal {F} _ {\Theta , m}} \mathcal {T} Q ^ {*} (s, a) \right. \\ + \Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a) \Big | \\ \leq \left| \Pi_ {\mathcal {F} _ {\Theta , m}} \mathcal {T} \hat {f} \left(\boldsymbol {\theta} ^ {*}; s, a\right) - \Pi_ {\mathcal {F} _ {\Theta , m}} \mathcal {T} Q ^ {*} (s, a) \right| \\ + \left| \Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a) \right| \\ \leq \gamma | \widehat {f} (\boldsymbol {\theta} ^ {*}; s, a) - Q ^ {*} (s, a) | + \left| \Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a) \right|, \\ \end{array}

where the first inequality follows the triangle inequality and in the second inequality we used the fact that $\Pi_{\mathcal{F}_{\Theta,m}}\mathcal{T}$ is $\gamma$ -contractive. This further leads to

(1βˆ’Ξ³)∣f^(ΞΈβˆ—;s,a)βˆ’Qβˆ—(s,a)βˆ£β‰€βˆ£Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a)∣.(6.13) \begin{array}{l} (1 - \gamma) | \hat {f} (\boldsymbol {\theta} ^ {*}; s, a) - Q ^ {*} (s, a) | \\ \leq \left| \Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s, a) - Q ^ {*} (s, a) \right|. \tag {6.13} \\ \end{array}

Combining (6.12), (6.13) and the result from Theorem 5.4 and substituting them back into (6.11), we have

E[(Q(s,a;ΞΈT)βˆ’Qβˆ—(s,a))2]≀3E[(Ξ FΘ,mQβˆ—(s,a)βˆ’Qβˆ—(s,a))2](1βˆ’Ξ³)2+1T+C2Ο„βˆ—log⁑(T/Ξ΄)log⁑TΞ²2T+C3log⁑(T/Ξ΄)log⁑mΞ²m1/6, \begin{array}{l} \mathbb {E} \left[ \left(Q (s, a; \boldsymbol {\theta} _ {T}) - Q ^ {*} (s, a)\right) ^ {2} \right] \\ \leq \frac {3 \mathbb {E} \left[ \left(\Pi_ {\mathcal {F} _ {\Theta , m}} Q ^ {*} (s , a) - Q ^ {*} (s , a)\right) ^ {2} \right]}{(1 - \gamma) ^ {2}} + \frac {1}{\sqrt {T}} \\ + \frac {C _ {2} \tau^ {*} \log (T / \delta) \log T}{\beta^ {2} \sqrt {T}} + \frac {C _ {3} \sqrt {\log (T / \delta) \log m}}{\beta m ^ {1 / 6}}, \\ \end{array}

with probability at least $1 - 3\delta - L^2 \exp(-C_6 m^{2/3} L)$ , which completes the proof.

7. Conclusions

In this paper, we provide the first finite-time analysis of Q-learning with neural network function approximation (i.e., neural Q-learning), where the data are generated from a Markov decision process and the action-value function is approximated by a deep ReLU neural network. We prove that neural Q-learning converge to the optimal action-value function up to the approximation error with $O(1 / \sqrt{T})$ rate, where $T$ is the number of iterations. Our proof technique is of independent interest and can be extended to analyze other deep reinforcement learning algorithms. One interesting future direction would be to remove the projection step in our algorithm by applying the ODE based analysis in Srikant & Ying (2019); Chen et al. (2019).

Acknowledgements

We would like to thank the anonymous reviewers for their helpful comments. This research was sponsored in part by the National Science Foundation IIS-1904183 and Adobe Data Science Research Award. The views and conclusions contained in this paper are those of the authors and should not be interpreted as representing any funding agencies.

References

Agarwal, A., Kakade, S. M., Lee, J. D., and Mahajan, G. Optimality and approximation with policy gradient methods in markov decision processes. In Conference On Learning Theory, 2020.
Allen-Zhu, Z., Li, Y., and Liang, Y. Learning and generalization in overparameterized neural networks, going beyond two layers. In Advances in neural information processing systems, 2019a.
Allen-Zhu, Z., Li, Y., and Song, Z. A convergence theory for deep learning via over-parameterization. In International Conference on Machine Learning, pp. 242-252, 2019b.
Arora, S., Du, S., Hu, W., Li, Z., and Wang, R. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In International Conference on Machine Learning, pp. 322-332, 2019.
Baird, L. Residual algorithms: Reinforcement learning with function approximation. In Machine Learning Proceedings 1995, pp. 30-37. Elsevier, 1995.
Bertsekas, D. P. Dynamic programming and optimal control, volume 1. Athena scientific Belmont, MA, 1995.
Bhandari, J., Russo, D., and Singal, R. A finite time analysis of temporal difference learning with linear function approximation. In Conference On Learning Theory, pp. 1691-1692, 2018.
Borkar, V. S. and Meyn, S. P. The ode method for convergence of stochastic approximation and reinforcement learning. SIAM Journal on Control and Optimization, 38 (2):447-469, 2000.
Cai, Q., Yang, Z., Lee, J. D., and Wang, Z. Neural temporal-difference learning converges to global optima. In Advances in Neural Information Processing Systems, 2019a.
Cai, T., Gao, R., Hou, J., Chen, S., Wang, D., He, D., Zhang, Z., and Wang, L. A gram-gauss-newton method learning overparameterized deep neural networks for regression problems. arXiv preprint arXiv:1905.11675, 2019b.
Cao, Y. and Gu, Q. A generalization theory of gradient descent for learning over-parameterized deep relu networks. arXiv preprint arXiv:1902.01384, 2019a.

Cao, Y. and Gu, Q. Generalization bounds of stochastic gradient descent for wide and deep neural networks. In Advances in Neural Information Processing Systems, 2019b.
Chen, Z., Zhang, S., Doan, T. T., Maguluri, S. T., and Clarke, J.-P. Performance of q-learning with linear function approximation: Stability and finite-time analysis. arXiv preprint arXiv:1905.11425, 2019.
Chizat, L. and Bach, F. On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in neural information processing systems, pp. 3036-3046, 2018.
Dalal, G., SzΓΆrenyi, B., Thoppe, G., and Mannor, S. Finite sample analyses for td (0) with function approximation. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
Devraj, A. M. and Meyn, S. Zap q-learning. In Advances in Neural Information Processing Systems, pp. 2235-2244, 2017.
Du, S., Lee, J., Li, H., Wang, L., and Zhai, X. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pp. 1675-1685, 2019a.
Du, S. S., Zhai, X., Poczos, B., and Singh, A. Gradient descent provably optimizes over-parameterized neural networks. In International Conference on Learning Representations, 2019b. URL https://openreview.net/forum?id=S1eK3i09YQ.
Hu, B. and Syed, U. A. Characterizing the exact behaviors of temporal difference learning algorithms using markov jump linear system theory. In Advances in Neural Information Processing Systems, 2019.
Jaakkola, T., Jordan, M. I., and Singh, S. P. Convergence of stochastic iterative dynamic programming algorithms. In Advances in Neural Information Processing Systems, pp. 703-710, 1994.
Jacot, A., Gabriel, F., and Hongler, C. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pp. 8571-8580, 2018.
Kalashnikov, D., Irpan, A., Pastor, P., Ibarz, J., Herzog, A., Jang, E., Quillen, D., Holly, E., Kalakrishnan, M., Vanhoucke, V., et al. Scalable deep reinforcement learning for vision-based robotic manipulation. In Conference on Robot Learning, pp. 651-673, 2018.
Konda, V. R. and Tsitsiklis, J. N. Actor-critic algorithms. In Advances in Neural Information Processing Systems, pp. 1008-1014, 2000.

Lakshminarayanan, C. and Szepesvari, C. Linear stochastic approximation: How far does constant step-size and iterate averaging go? In International Conference on Artificial Intelligence and Statistics, pp. 1347-1355, 2018.
Levin, D. A. and Peres, Y. Markov chains and mixing times, volume 107. American Mathematical Soc., 2017.
Levine, S., Wagener, N., and Abbeel, P. Learning contact-rich manipulation skills with guided policy search. In 2015 IEEE International Conference on Robotics and Automation (ICRA), pp. 156-163. IEEE, 2015.
Liu, B., Liu, J., Ghavamzadeh, M., Mahadevan, S., and Petrik, M. Finite-sample analysis of proximal gradient td algorithms. In Proceedings of the Thirty-First Conference on Uncertainty in Artificial Intelligence, pp. 504-513. AUAI Press, 2015.
Mehta, P. and Meyn, S. Q-learning and pontryagin's minimum principle. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, pp. 3598-3605. IEEE, 2009.
Melo, F. S., Meyn, S. P., and Ribeiro, M. I. An analysis of reinforcement learning with function approximation. In Proceedings of the 25th International Conference on Machine Learning, pp. 664-671. ACM, 2008.
Meyn, S. P. and Tweedie, R. L. Markov chains and stochastic stability. Springer Science & Business Media, 2012.
Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., et al. Human-level control through deep reinforcement learning. Nature, 518(7540): 529, 2015.
Munos, R. and SzepesvΓ‘ri, C. Finite-time bounds for fitted value iteration. Journal of Machine Learning Research, 9 (May):815-857, 2008.
Ormoneit, D. and Sen, S. Kernel-based reinforcement learning. Machine learning, 49(2-3):161-178, 2002.
Papini, M., Binaghi, D., Canonaco, G., Pirotta, M., and Restelli, M. Stochastic variance-reduced policy gradient. In International Conference on Machine Learning, pp. 4023-4032, 2018.
Perkins, T. J. and Pendorith, M. D. On the existence of fixed points for q-learning and sarsa in partially observable domains. In Proceedings of the Nineteenth International Conference on Machine Learning, pp. 490-497. Morgan Kaufmann Publishers Inc., 2002.

Peters, J. and Schaal, S. Reinforcement learning of motor skills with policy gradients. Neural Networks, 21(4): 682-697, 2008.
Riedmiller, M. Neural fitted q iteration-first experiences with a data efficient neural reinforcement learning method. In European Conference on Machine Learning, pp. 317-328. Springer, 2005.
Schmidhuber, J. Deep learning in neural networks: An overview. Neural Networks, 61:85-117, 2015.
Schwarting, W., Alonso-Mora, J., and Rus, D. Planning and decision-making for autonomous vehicles. Annual Review of Control, Robotics, and Autonomous Systems, 2018.
Shalev-Shwartz, S., Shammah, S., and Shashua, A. Safe, multi-agent, reinforcement learning for autonomous driving. CoRR, abs/1610.03295, 2016. URL http:// arxiv.org/abs/1610.03295.
Silver, D., Lever, G., Heess, N., Degris, T., Wierstra, D., and Riedmiller, M. Deterministic policy gradient algorithms. In International Conference on Machine Learning, 2014.
Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M., Dieleman, S., Grewe, D., Nham, J., Kalchbrenner, N., Sutskever, I., Lillicrap, T. P., Leach, M., Kavukcuoglu, K., Graepel, T., and Hassabis, D. Mastering the game of go with deep neural networks and tree search. Nature, 529:484-489, 2016.
Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., et al. Mastering the game of go without human knowledge. Nature, 550(7676):354, 2017.
Srikant, R. and Ying, L. Finite-time error bounds for linear stochastic approximation and td learning. arXiv preprint arXiv:1902.00923, 2019.
Sutton, R. S. and Barto, A. G. Reinforcement learning: An introduction. MIT press, 2018.
Sutton, R. S., McAllester, D. A., Singh, S. P., and Mansour, Y. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, pp. 1057-1063, 2000.
Szeptesvari, C. Algorithms for reinforcement learning. Synthesis lectures on artificial intelligence and machine learning, 4(1):1-103, 2010.
Tsitsiklis, J. N. and Van Roy, B. Analysis of temporal-difference learning with function approximation. In Advances in Neural Information Processing Systems, pp. 1075-1081, 1997.

Van Hasselt, H., Guez, A., and Silver, D. Deep reinforcement learning with double q-learning. In Thirtieth AAAI conference on artificial intelligence, 2016.
Wang, G., Li, B., and Giannakis, G. B. A multistep lyapunov approach for finite-time analysis of biased stochastic approximation. arXiv preprint arXiv:1909.04299, 2019.
Wang, L., Cai, Q., Yang, Z., and Wang, Z. Neural policy gradient methods: Global optimality and rates of convergence. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BJgQfkSYDS.
Wang, Z., Schaul, T., Hessel, M., Hasselt, H., Lanctot, M., and Freitas, N. Dueling network architectures for deep reinforcement learning. In International Conference on Machine Learning, pp. 1995-2003, 2016.
Watkins, C. J. and Dayan, P. Q-learning. Machine Learning, 8(3-4):279-292, 1992.
Xu, P., Gao, F., and Gu, Q. An improved convergence analysis of stochastic variance-reduced policy gradient. In International Conference on Uncertainty in Artificial Intelligence, 2019a.
Xu, P., Gao, F., and Gu, Q. Sample efficient policy gradient methods with recursive variance reduction. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=HJlxIJBFDr.
Xu, T., Zou, S., and Liang, Y. Two time-scale off-policy td learning: Non-asymptotic analysis over markovian samples. In Advances in Neural Information Processing Systems, pp. 10634-10644, 2019b.
Yang, Z., Xie, Y., and Wang, Z. A theoretical analysis of deep q-learning. arXiv preprint arXiv:1901.00137, 2019.
Zou, D. and Gu, Q. An improved analysis of training overparameterized deep neural networks. In Advances in Neural Information Processing Systems, 2019.
Zou, D., Cao, Y., Zhou, D., and Gu, Q. Stochastic gradient descent optimizes over-parameterized deep relu networks. Machine Learning, 2019a.
Zou, S., Xu, T., and Liang, Y. Finite-sample analysis for sarsa and q-learning with linear function approximation. In Advances in Neural Information Processing Systems, 2019b.