A Theoretical Analysis of Deep Q-Learning
Jianqing Fan, Zhaoran Wang, Yuchen Xie, Zhuoran Yang
Introduction
Reinforcement learning (RL) attacks the multi-stage decision-making problems by interacting with the environment and learning from the experiences. With the breakthrough in deep learning, deep reinforcement learning (DRL) demonstrates tremendous success in solving highly challenging problems, such as the game of Go (Silver et al. 2016; Silver et al. 2017), computer games (Vinyals et al. 2019), robotics (Kober and Peters 2012), dialogue systems (Chen et al. 2017). In DRL, the value or policy functions are often represented as deep neural networks and the related deep learning techniques can be readily applied. For example, deep Q-network (DQN) (Mnih et al. 2015), asynchronous advantage actor-critic (A3C) (Mnih et al. 2016), trust region policy optimization (TRPO) (Schulman et al. 2015), proximal policy optimization (PPO) (Schulman et al. 2017) build upon classical RL methods (Watkins and Dayan 1992; Sutton et al. 2000; Konda and Tsitsiklis 2000) and have become benchmark algorithms for artificial intelligence.
Despite its great empirical success, there exists a substantial gap between the theory and practice of DRL. In particular, most existing theoretical work on reinforcement learning focuses on the tabular case where the state and action spaces are finite, or the case where the value function is linear. Under these restrictive settings, the algorithmic and statistical perspectives of reinforcement learning are well-understood via the tools developed for convex optimization and linear regression. However, in presence of nonlinear function approximators such as deep neural network, the theoretical analysis of reinforcement learning becomes intractable as it involves solving a highly nonconvex statistical optimization problem.
To bridge such a gap in DRL, we make the first attempt to theoretically understand DQN, which can be cast as an extension of the classical Q-learning algorithm (Watkins and Dayan 1992) that uses deep neural network to approximate the action-value function. Although the algorithmic and statistical properties of the classical Q-learning algorithm are well-studied, theoretical analysis of DQN is highly challenging due to its differences in the following two aspects.
First, in online gradient-based temporal-difference reinforcement learning algorithms, approximating the action-value function often leads to instability. Baird 1995 proves that this is the case even with linear function approximation. The key technique to achieve stability in DQN is experience replay (Lin 1992; Mnih et al. 2015). In specific, a replay memory is used to store the trajectory of the Markov decision process (MDP). At each iteration of DQN, a mini-batch of states, actions, rewards, and next states are sampled from the replay memory as observations to train the Q-network, which approximates the action-value function. The intuition behind experience replay is to achieve stability by breaking the temporal dependency among the observations used in training the deep neural network.
Second, in addition to the aforementioned Q-network, DQN uses another neural network named the target network to obtain an unbiased estimator of the mean-squared Bellman error used in training the Q-network. The target network is synchronized with the Q-network after each period of iterations, which leads to a coupling between the two networks. Moreover, even if we fix the target network and focus on updating the Q-network, the subproblem of training a neural network still remains less well-understood in theory.
In this paper, we focus on a slight simplification of DQN, which is amenable to theoretical analysis while fully capturing the above two aspects. In specific, we simplify the technique of experience replay with an independence assumption, and focus on deep neural networks with rectified linear units (ReLU) (Nair and Hinton 2010) and large batch size. Under this setting, DQN is reduced to the neural fitted Q-iteration (FQI) algorithm (Riedmiller 2005) and the technique of target network can be cast as the value iteration. More importantly, by adapting the approximation results for ReLU networks to the analysis of Bellman operator, we establish the algorithmic and statistical rates of convergence for the iterative policy sequence obtained by DQN. As shown in the main results in §3, the statistical error characterizes the bias and variance that arise from approximating the action-value function using neural network, while the algorithmic error geometrically decays to zero as the number of iteration goes to infinity.
Furthermore, we extend DQN to two-player zero-sum Markov games (Shapley 1953). The proposed algorithm, named Minimax-DQN, can be viewed as a combination of the Minimax-Q learning algorithm for tabular zero-sum Markov games (Littman 1994) and deep neural networks for function approximation. Compared with DQN, the main difference lies in the approaches to compute the target values. In DQN, the target is computed via maximization over the action space. In contrast, the target obtained computed by solving the Nash equilibrium of a zero-sum matrix game in Minimax-DQN, which can be efficiently attained via linear programming. Despite such a difference, both these two methods can be viewed as approximately applying the Bellman operator to the Q-network. Thus, borrowing the analysis of DQN, we also establish theoretical results for Minimax-DQN. Specifically, we quantify the suboptimality of policy returned by the algorithm by the difference between the action-value functions associated with this policy and with the Nash equilibrium policy of the Markov game. For this notion of suboptimality, we establish the both algorithmic and statistical rates of convergence, which implies that the action-value function converges to the optimal counterpart up to an unimprovable statistical error in geometric rate.
Our contribution is three-fold. First, we establish the algorithmic and statistical errors of the neural FQI algorithm, which can be viewed as a slight simplification of DQN. Under mild assumptions, our results show that the proposed algorithm obtains a sequence of Q-networks that geometrically converges to the optimal action-value function up to an intrinsic statistical error induced by the approximation bias of ReLU network and finite sample size. Second, as a byproduct, our analysis justifies the techniques of experience replay and target network used in DQN, where the latter can be viewed as a single step of the value iteration. Third, we propose the Minimax-DQN algorithm that extends DQN to two-player zero-sum Markov games. Borrowing the analysis for DQN, we establish the algorithmic and statistical convergence rates of the action-value functions associated with the sequence of policies returned by the Minimax-DQN algorithm.
There is a huge body of literature on deep reinforcement learning, where these algorithms are based on Q-learning or policy gradient (Sutton et al. 2000). We refer the reader to Arulkumaran et al. 2017 for a survey of the recent developments of DRL. In addition, the DQN algorithm is first proposed in Mnih et al. 2015, which applies DQN to Artari 2600 games (Bellemare et al. 2013). The extensions of DQN include double DQN (van Hasselt et al. 2016), dueling DQN (Wang et al. 2016), deep recurrent Q-network (Hausknecht and Stone 2015), asynchronous DQN (Mnih et al. 2016), and variants designed for distributional reinforcement learning (Bellemare et al. 2017; Dabney et al. 2018b; Dabney et al. 2018a). All of these algorithms are corroborated only by numerical experiments, without theoretical guarantees. Moreover, these algorithms not only inherit the tricks of experience replay and the target network proposed in the original DQN, but develop even more tricks to enhance the performance. Furthermore, recent works such as Schaul et al. 2016; Andrychowicz et al. 2017; Liu and Zou 2018; Zhang and Sutton 2017; Novati and Koumoutsakos 2019 study the effect of experience replay and propose various modifications.
In addition, our work is closely related to the literature on batch reinforcement learning (Lange et al. 2012), where the goal is to estimate the value function given transition data. These problems are usually formulated into least-squares regression, for which various algorithms are proposed with finite-sample analysis. However, most existing works focus on the settings where the value function are approximated by linear functions. See Bradtke and Barto 1996; Boyan 2002; Lagoudakis and Parr 2003; Lazaric et al. 2016; Farahmand et al. 2010; Lazaric et al. 2012; Tagorti and Scherrer 2015 and the references therein for results of the least-squares policy iteration (LSPI) and Bellman residue minimization (BRM) algorithms. Beyond linear function approximation, a recent work (Farahmand et al. 2016) studies the performance of LSPI and BRM when the value function belongs to a reproducing kernel Hilbert space. However, we study the fitted Q-iteration algorithm, which is a batch RL counterpart of DQN. The fitted Q-iteration algorithm is proposed in Ernst et al. 2005, and Riedmiller 2005 proposes the neural FQI algorithm. Finite-sample bounds for FQI have been established in Murphy 2005; Munos and Szepesvári 2008 for large classes of regressors. However, their results are not applicable to ReLU networks due to the huge capacity of deep neural networks. Furthermore, various extensions of FQI are studied in Antos et al. 2008a; Farahmand et al. 2009; Tosatto et al. 2017; Geist et al. 2019 to handle continuous actions space, ensemble learning, and entropy regularization. The empirical performances of various batch RL methods have been examined in Levine et al. 2017; Agarwal et al. 2019; Fujimoto et al. 2019.
Moreover, Q-learning, and reinforcement learning methods in general, have been widely applied to dynamic treatment regimes (DTR) (Chakraborty 2013; Laber et al. 2014; Tsiatis 2019), where the goal is to find sequential decision rules for individual patients that adapt to time-evolving illnesses. There is a huge body of literature on this line of research. See, e.g., Murphy 2003; Zhao et al. 2009; Qian and Murphy 2011; Zhao et al. 2011; Zhang et al. 2012; Zhao et al. 2012; Goldberg and Kosorok 2012; Nahum-Shani et al. 2012; Goldberg et al. 2013; Schulte et al. 2014; Song et al. 2015; Zhao et al. 2015; Linn et al. 2017; Zhou et al. 2017; Shi et al. 2018; Zhu et al. 2019 and the references therein. Our work provides a theoretical underpinning for the application of DQN to DTR (Liu et al. 2019b) and motivates the principled usage of DRL methods in healthcare applications (Yu et al. 2019).
Furthermore, our work is also related to works that apply reinforcement learning to zero-sum Markov games. The Minimax-Q learning is proposed by Littman 1994, which is an online algorithm that is an extension Q-learning. Subsequently, for Markov games, various online algorithms are also proposed with theoretical guarantees. These works consider either the tabular case or linear function approximation. See, e.g., Bowling 2001; Conitzer and Sandholm 2007; Prasad et al. 2015; Wei et al. 2017; Pérolat et al. 2018; Srinivasan et al. 2018; Wei et al. 2017 and the references therein. In addition, batch reinforcement learning is also applied to zero-sum Markov games by Lagoudakis and Parr 2002; Pérolat et al. 2015; Pérolat et al. 2016a; Pérolat et al. 2016b; Zhang et al. 2018, which are closely related to our work. All of these works consider either linear function approximation or a general function class with bounded pseudo-dimension (Anthony and Bartlett 2009). However, there results cannot directly imply finite-sample bounds for Minimax-DQN due to the huge capacity of deep neural networks.
Finally, our work is also related a line of research on the model capacity of ReLU deep neural networks, which leads to understanding the generalization property of deep learning (Mohri et al. 2012; Kawaguchi et al. 2017). Specifically, Bartlett 1998; Neyshabur et al. 2015b; Neyshabur et al. 2015a; Bartlett et al. 2017; Golowich et al. 2018; Liang et al. 2019 propose various norms computed from the networks parameters and establish capacity bounds based upon these norms. In addition, Maass 1994; Bartlett et al. 1999; Schmidt-Hieber 2020+; Bartlett et al. 2019; Klusowski and Barron 2016; Barron and Klusowski 2018; Suzuki 2019; Bauer et al. 2019 study the Vapnik-Chervonenkis (VC) dimension of neural networks and Dziugaite and Roy 2017; Neyshabur et al. 2018 establish the PAC-Bayes bounds for neural networks. Among these works, our work is more related to Schmidt-Hieber 2020+; Suzuki 2019, which relate the VC dimension of the ReLU networks to a set of hyperparameters used to define the networks. Based on the VC dimension, they study the statistical error of nonparametric regression using ReLU networks. In sum, theoretical understanding of deep learning is pertinent to the study of DRL algorithms. See Kawaguchi et al. 2017; Neyshabur et al. 2017; Fan et al. 2019 and the references therein for recent developments on theoretical analysis of the generalization property of deep learning.
2 Notation
Background
In this section, we introduce the background. We first lay out the formulation of the reinforcement learning problem, and then define the family of ReLU neural networks.
A policy for the MDP maps any state to a probability distribution over . For a given policy , starting from the initial state , the actions, rewards, and states evolve according to the law as follows:
The policy can be controlled by decision makers, yet the functions and are given by the nature or the system that are unknown to decision makers.
By the law of iterative expectation, for any policy ,
where , called an action value function, is given by
and define the Bellman operator by Then in (2.3) is the unique fixed point of .
The goal of reinforcement learning is to find the optimal policy, which achieves the largest cumulative reward via dynamically learning from the acquired data. To characterize optimality, by (2.2), we naturally define the optimal action-value function as
Based on , we define the optimal policy as any policy that is greedy with respect to . It can be shown that . Finally, we define the Bellman optimality operator via
Then we have the Bellman optimality equation .
2 Deep Neural Network
Here we focus on functions that are uniformly bounded because the value functions in (2.1) and (2.3) are always bounded by . We also assume that the network weights are uniformly bounded and bounded by one without loss of generality. In the sequel, we write as to simplify the notation. In addition, we restrict the networks weights to be sparse, i.e., is much smaller compared with the total number of parameters. Such an assumption implies that the network has sparse connections, which are useful for applying deep learning in memory-constrained situations such as mobile devices (Han et al. 2016; Liu et al. 2015). Empirically, sparse neural networks are realized via various regularization techniques such as Dropout (Srivastava et al. 2014), which randomly sets a fixed portion of the network weights to zero. Moreover, sparse network architectures have recently been advocated by the intriguing lottery ticket hypothesis (Frankle and Carbin 2019), which states that each dense network has a subnetwork with the sparse connections, when trained in isolation, achieves comparable performance as the original network. Thus, focusing on the class of sparse ReLU networks does not sacrifice the statistical accuracy.
Moreover, we introduce the notion of Hölder smoothness as follows, which is a generalization of Lipschitz continuity, and is widely used to characterize the regularity of functions.
Finally, we conclude this section by defining functions that can be written as a composition of multiple Hölder functions, which captures complex mappings in real-world applications such as multi-level feature extraction.
with for each and .
Here in (2.10) is a composition of vector-valued mappings where each has components and its -th component, , , is a Hölder smooth function defined on . Moreover, it is well-known the statistical rate for estimating a Hölder smooth function depends on the input dimension (Tsybakov 2008). Here we assume that only depends on of its inputs, where can be much smaller than , which enables us to obtain a more refined analysis that adapts to the effective smoothness of . In particular, Definition 2.3 covers the family of Hölder smooth functions and the additive model (Friedman and Stuetzle 1981) on as two special cases, where the former suffers from the curse of dimensionality whereas the latter does not.
Understanding Deep Q-Network
First, DQN use the trick of experience replay (Lin 1992). Specifically, at each time , we store the transition into the replay memory , and then sample a minibatch of independent samples from to train the neural network via stochastic gradient descent. Since the trajectory of MDP has strong temporal correlation, the goal of experience replay is to obtain uncorrelated samples, which yields accurate gradient estimation for the stochastic optimization problem.
Another trick is to use a target network with parameter (current estimate of parameter). With independent samples from the replay memory (we use instead of for the next state right after and to avoid notation crash with next independent sample in the state space), to update the parameter of the Q-network, we compute the target
(compare with Bellman optimality operator (2.7)), and update by the gradient of
Whereas parameter is updated once every steps by letting . That is, the target network is hold fixed for steps and then updated it by the current weights of the Q-network.
To demystify DQN, it is crucial to understand the role played by these two tricks. For experience replay, in practice, the replay memory size is usually very large. For example, the replay memory size is in Mnih et al. 2015. Moreover, DQN use the -greedy policy, which enables exploration over . Thus, when the replay memory is large, experience replay is close to sampling independent transitions from an explorative policy. This reduces the variance of the , which is used to update . Thus, experience replay stabilizes the training of DQN, which benefits the algorithm in terms of computation.
Furthermore, to further understand the necessity of the target network, let us first neglect the target network and set . Using bias-variance decomposition, the the expected value of in (3.1) is
To resolve this problem, we use a target network in (3.1), which has expectation
where the variance of does not depend on . Thus, minimizing is close to solving
where is the parameter space. Note that in DQN we hold still and update for steps. When is sufficiently large and we neglect the fact that the objective in (3.3) is nonconvex, we would update by the minimizer of (3.3) for fixed .
Therefore, in the ideal case, DQN aims to solve the minimization problem (3.3) with fixed, and then update by the minimizer . Interestingly, this view of DQN offers a statistical interpretation of the target network. In specific, if is sufficiently large such that it contains , then (3.3) has solution , which can be viewed as one-step of value iteration (Sutton and Barto 2011) for neural networks. In addition, in the sample setting, is used to construct , which serve as the response in the regression problem defined in (3.1), with being the regression function.
Furthermore, turning the above discussion into a realizable algorithm, we obtain the neural fitted Q-iteration (FQI) algorithm, which generates a sequence of value functions. Specifically, let be a class of function defined on . In the -th iteration of FQI, let be current estimate of . Similar to (3.1) and (3.3), we define , and update by
This gives the fitted-Q iteration algorithm, which is stated in Algorithm 1.
The step of minimization problem in (3.4) essentially finds in such that . Let us denote where is an approximation of the Bellman optimality operator learned from the training data in the -th iteration. With the above notation, we can now understand our Algorithm 1 as follows. Starting from the initial estimator , collect the data and learn the map via (3.4) and get . Then, get a new batch of sample and learn the map and get , and so on. Our final estimator of the action value is , which resembles the updates of the value iteration algorithm at the population level.
When is the family of neural networks, Algorithm 1 is known as the neural FQI algorithm, which is proposed in Riedmiller 2005. Thus, we can view neural FQI as a modification of DQN, where we replace experience replay with sampling from a fixed distribution , so as to understand the statistical property. As a byproduct, such a modification naturally justifies the trick of target network in DQN. In addition, note that the optimization problem in (3.4) appears in each iteration of FQI, which is nonconvex when neural networks are used. However, since we focus solely on the statistical aspect, we make the assumption that the global optima of (3.4) can be reached, which is also contained . Interestingly, a recent line of research on deep learning (Du et al. 2019b; Du et al. 2019a; Zou et al. 2018; Chizat et al. 2019; Allen-Zhu et al. 2019a; Allen-Zhu et al. 2019b; Jacot et al. 2018; Cao and Gu 2019; Arora et al. 2019; Weinan et al. 2019; Mei et al. 2019; Yehudai and Shamir 2019) has established global convergence of gradient-based algorithms for empirical risk minimization when the neural networks are overparametrized. We provide more discussions on the computation aspect in §B. Furthermore, we make the i.i.d. assumption in Algorithm 1 to simplify the analysis. Antos et al. 2008b study the performance of fitted value iteration with fixed data used in the regression sub-problems repeatedly, where the data is sampled from a single trajectory based on a fixed policy such that the induced Markov chain satisfies certain conditions on the mixing time. Using similar analysis as in Antos et al. 2008b, our algorithm can also be extended to handled fixed data that is collected beforehand.
Theoretical Results
Following Definition 2.1, let be the family of sparse ReLU networks defined on with and . Then we define by
By this definition, for any function and any action , is a ReLU network defined on , which is standard for Q-networks. Moreover, contains a broad family of smooth functions on . In the following, we make a mild assumption on and .
We assume that for any , we have , where is the Bellman optimality operator defined in (2.7). That is, for any and any , can be written as compositions of Hölder smooth functions as a function of .
This assumption specifies that the target function in each FQI step stays in function class . When can be approximated by functions in accurately, this assumption essentially implies that is close to and that is approximately closed under Bellman operator . Such an completeness assumption is commonly made in the literature on batch reinforcement learning under various forms and is conjectured to be indispensable in Chen and Jiang 2019.
We remark that this Assumption (4.2) holds when the MDP satisfies some smoothness conditions. For any state-action pair , let be the density of the next state. By the definition of the Bellman optimality operator in (2.7), we have
Then by (4.3) we have . Then Assumption 4.2 holds if is Hölder smooth and both and can be represented as compositions of Hölder functions. Thus, Assumption 4.2 holds if both the reward function and the transition density of the MDP are sufficiently smooth.
Moreover, even when the transition density is not smooth, we could also expect Assumption 4.2 to hold. Consider the extreme case where the MDP has deterministic transitions, that is, the next state is a function of and , which is denoted by . In this case, for any ReLU network , we have Since
for any , and network is Lipschitz continuous for any fixed , function is Lipschitz on . Thus, for any fixed , if both and are compositions of Hölder functions, so is . Therefore, even if the MDP has deterministic dynamics, when both the reward function and the transition function are sufficiently nice, Assumption 4.2 still holds true.
In the following, we define the concentration coefficients, which measures the similarity between two probability distributions under the MDP.
Let be two probability measures that are absolutely continuous with respect to the Lebesgue measure on . Let be a sequence of policies. Suppose the initial state-action pair of the MDP has distribution , and we take action according to policy . For any integer , we denote by the distribution of . Then we define the -th concentration coefficient as
where the supremum is taken over all possible policies.
Furthermore, let be the sampling distribution in Algorithm 1 and let be a fixed distribution on . We assume that there exists a constant such that
where in (4.5) is a normalization term, since .
By definition, concentration coefficients in (4.4) quantifies the similarity between and the distribution of the future states of the MDP when starting from . Moreover, (4.5) is a standard assumption in the literature. See, e.g., Munos and Szepesvári 2008; Lazaric et al. 2016; Scherrer et al. 2015; Farahmand et al. 2010; Farahmand et al. 2016. This assumption holds for large class of systems MDPs and specifically for MDPs whose top-Lyapunov exponent is finite. Moreover, this assumption essentially requires that the sampling distribution has sufficient coverage over and is shown to be necessary for the success of batch RL methods (Chen and Jiang 2019). See Munos and Szepesvári 2008; Antos et al. 2007; Chen and Jiang 2019 for more detailed discussions on this assumption.
Now we are ready to present the main theorem.
For the hyperparameters , , and of the ReLU network, we set and . Moreover, we set
This theorem implies that the statistical rate of convergence is the sum of a statistical error and an algorithmic error. The algorithmic error converges to zero in linear rate as the algorithm proceeds, whereas the statistical error reflects the fundamental difficulty of the problem. Thus, when the number of iterations satisfy
iterations, where is a sufficiently large constant, the algorithmic error is dominated by the statistical error. In this case, if we view both and as constants and ignore the polylogarithmic term, Algorithm 1 achieves error rate
Furthermore, as a concrete example, we assume that both the reward function and the Markov transition kernel are Hölder smooth with smoothness parameter . As stated below Assumption 4.2, for any , we have . Then Theorem 4.4 implies that Algorithm 1 achieves error rate when is sufficiently large. Since is finite, this rate achieves the minimax-optimal statistical rate of convergence within the class of Hölder smooth functions defined on (Stone 1982) and thus cannot be further improved. As another example, when can be represented as an additive model over where each component has smoothness parameter , (4.9) reduces to , which does not depends on the input dimension explicitly. Thus, by having a composite structure in , Theorem 4.4 yields more refined statistical rates that adapt to the intrinsic difficulty of solving each iteration of Algorithm 1.
In the sequel, we conclude this section by sketching the proof of Theorem 4.4; the detailed proof is deferred to §6.
Recall that is the greedy policy with respect to and is the action-value function associated with , whose definition is given in (2.3). Since is constructed by a iterative algorithm, it is crucial to relate , the quantity of interest, to the errors incurred in the previous steps, namely . Thus, in the first step of the proof, we establish Theorem 6.1, also known as the error propagation (Munos and Szepesvári 2008; Lazaric et al. 2016; Scherrer et al. 2015; Farahmand et al. 2010; Farahmand et al. 2016) in the batch reinforcement learning literature, which provides an upper bound on using . In particular, Theorem 6.1 asserts that
where , given in (4.5), is a constant that only depends on distributions and .
It remains to bound for any . We achieve such a goal using tools from nonparametric regression. Specifically, as we will show in Theorem 6.2, under Assumption 4.2, for any we have
for any , where is an absolute constant,
In the sequel, we fix in (4.11), which implies that
where is an absolute constant.
In the subsequent proof, we establish upper bounds for defined in (4.12) and , respectively. Recall that the family of composite Hölder smooth functions is defined in (4.2).
By the definition of in (4.2), for any and any , is a composition of Hölder smooth functions, that is, Recall that, as defined in Definition 2.3, is the -th entry of the vector-valued function . Here for each and . To construct a ReLU network that is , we first show that can be reformulated as a composition of Hölder functions defined on a hypercube. Specifically, let , , and
for all . Then we immediately have
Furthermore, by the definition of Hölder smooth functions in Definition 2.2, for any and , it is not hard to verify that where we define by
To apply Lemma 6.3 we set for a sufficiently large constant , and set to be a sufficiently large integer that depends on , which will be specified later. In addition, we set Then, by Lemma 6.3, there exists a ReLU network such that Furthermore, we have with
Combining this with (4.17) and the fact that , we obtain that
Moreover, using classical results on the covering number of neural networks (Anthony and Bartlett 2009), we further show that
where . Therefore, combining (4.11), (4.13), (4.18), and (4.19), we conclude the proof. ∎
Extension to Two-Player Zero-Sum Markov Games
In this section, we propose the Minimax-DQN algorithm, which combines DQN and the Minimax-Q learning for two-player zero-sum Markov games. We first present the background of zero-sum Markov games and introduce the the algorithm in §5.1. Borrowing the analysis for DQN in the previous section, we provide theoretical guarantees for the proposed algorithm in §5.2.
Moreover, for joint policy of two players, we define the Bellman operators and by
That is, and solves the zero-sum matrix game based on for all . By this definition, we obtain that the equilibrium joint policy with respect to the minimax function defined in (5.3) achieves the Nash equilibrium of the Markov game.
Therefore, to learn the Nash equilibrium, it suffices to estimate , which is the unique fixed point of the Bellman operator . Similar to the standard Q-learning for MDP, Littman 1994 proposes the Minimax-Q learning algorithm, which constructs a sequence of action-value functions that converges to . Specifically, in each iteration, based on a transition , Minimax-Q learning updates the current estimator of , denoted by , via
which can be attained via linear programming. Then we update in the direction of , where . Finally, the target network is updated every steps by letting . For brevity, we defer the details of Minimax-DQN to Algorithm 4 in §A.
To understand the theoretical aspects of this algorithm, we similarly utilize the framework of batch reinforcement learning for statistical analysis. With the insights gained in §3, we consider a modification of Minimax-DQN based on neural fitted Q-iteration, whose details are stated in Algorithm 2. As in the MDP setting, we replace sampling from the replay memory by sampling i.i.d. state-action tuples from a fixed distribution , and estimate in (5.3) by solving a sequence of least-squares regression problems specified by (5.8). Intuitively, this algorithm approximates the value iteration algorithm for zero-sum Markov games (Littman 1994) by constructing a sequence of value functions such that for all , where defined in (5.5) is the Bellman operator.
2 Theoretical Results for Minimax-FQI
Following the theoretical results established in §4, in this subsection, we provide statistical guarantees for the Minimax-FQI algorithm with being a family of deep neural networks with ReLU activation. Hereafter, without loss of generality, we assume with being a fixed integer, and the action spaces and are both finite. To evaluate the performance of the algorithm, we first introduce the best-response policy as follows.
Note that when the first player adopt a fixed policy , from the perspective of the second player, the Markov game becomes a MDP. Thus, is the optimal policy of the MDP induced by . Moreover, it can be shown that, for any policy , holds for every state-action tuple . Thus, by considering the adversarial case where the opponent always plays the best-response policy, the difference between and servers as a characterization of the suboptimality of . Hence, to quantify the performance of Algorithm 2, we consider the closeness between and , which will be denoted by hereafter for simplicity. Specifically, in the following we establish an upper bound for for some distribution .
We first specify the function class in Algorithm 2 as follows.
Following Definition 4.1, let and be the family of sparse ReLU networks and the set of composition of Hölder smooth functions defined on , respectively. Similar to (4.1), we define by
For the Bellman operator defined in (5.5), we assume that for any and any state-action tuple , we have .
We remark that this Assumption is in the same flavor as Assumption 4.2. As discussed in §4, this assumption holds if both the reward function and the transition density of the Markov game are sufficiently smooth.
In the following, we define the concentration coefficients for Markov games.
Let be a sequence of joint policies for the two players in the zero-sum Markov game. Let be two absolutely continuous probability measures. Suppose the initial state-action pair has distribution , the future states are sampled according to the Markov transition kernel, and the action is sampled from policy . For any integer , we denote by the distribution of . Then, the -th concentration coefficient is defined as
where the supremum is taken over all possible joint policy sequences .
Furthermore, for some , we assume that there exists a finite constant such that where is the sampling distribution in Algorithm 2 and is the -th concentration coefficient defined in (5.10).
We remark that the definition of the -th concentration coefficient is the same as in (4.4) if we replace the action space of the MDP by of the Markov game. Thus, Assumptions 4.3 and 5.3 are of the same nature, which are standard in the literature.
Now we are ready to present the main theorem.
where appears in (4.7), and is specified in Assumption 5.3.
Similar to Theorem 4.4, the bound in (5.11) shows that closeness between returned by Algorithm 2 and the Nash equilibrium policy , measured by , is bounded by the sum of statistical error and an algorithmic error. Specifically, the statistical error balances the bias and variance of estimating the value functions using the family of deep ReLU neural networks, which exhibits the fundamental difficulty of the problem. Whereas the algorithmic error decay to zero geometrically as increases. Thus, when is sufficiently large, both and are constants, and the polylogarithmic term is ignored, Algorithm 2 achieves error rate
Proof of the Main Theorem
In this section, we present a detailed proof of Theorem 4.4.
The proof requires two key ingredients. First in Theorem 6.1 we quantify how the error of action-value function approximation propagates through each iteration of Algorithm 1. Then in Theorem 6.2 we analyze such one-step approximation error for ReLU networks.
Recall that are the iterates of Algorithm 1. Let be the one-step greedy policy with respect to , and let be the action-value function corresponding to . Under Assumption 4.3, we have
where we define the maximum one-step approximation error as . Here is a constant that only depends on the probability distributions and .
We remark that similar error propagation result is established for the state-value function in Munos and Szepesvári 2008 for studying the fitted value iteration algorithm, which is further extended by Lazaric et al. 2016; Scherrer et al. 2015; Farahmand et al. 2010; Farahmand et al. 2016 for other batch reinforcement learning methods.
In the sequel, we establish an upper bound for the one-step approximation error for each .
Let be a class of measurable functions on that are bounded by , and let be a probability distribution on . Also, let be i.i.d. random variables in following . For each , let and be the reward and the next state corresponding to . In addition, for any fixed , we define . Based on , we define as the solution to the least-squares problem
where and are two positive absolute constants and is defined as
This theorem characterizes the bias and variance that arise in estimating the action-value functions using deep ReLU networks. Specifically, in (6.4) corresponds to the bias incurred by approximating the target function using ReLU neural networks. It can be viewed as a measure of completeness of with respect to the Bellman operator . In addition, controls the variance of the estimator, where the covering number is used to obtain a uniform bound over .
To obtain an upper bound for as required in Theorem 6.1, we set in Theorem 6.2. Then according to Algorithm 1, defined in (6.2) becomes . We set the function class in Theorem 6.2 to be the family of ReLU Q-networks defined in (4.1). By setting and in Theorem 6.2, we obtain
where is a positive absolute constant and
is the -covering number of . In the subsequent proof, we establish upper bounds for defined in (6.4) and , respectively. Recall that the family of composite Hölder smooth functions is defined in (4.2). By Assumption 4.2, we have for any . Hence, we have
By the definition of in (4.2), for any and any , is a composition of Hölder smooth functions, that is, . Recall that, as defined in Definition 2.3, is the -th entry of the vector-valued function . Here for each and . In the sequel, we construct a ReLU network to approximate and establish an upper bound of the approximation error on the right-hand side of (6.7). We first show that can be reformulated as a composition of Hölder functions defined on a hypercube. We define ,
and . Then we immediately have
Furthermore, by the definition of Hölder smooth functions in Definition 2.2, for any , we have that takes value in $h_{1k}\in\mathcal{C}_{t_{1}}(^{t_{1}},\beta_{1},1)j\in\{2,\ldots,q-1\}k\in[p_{j+1}]h_{jk}$ and
Finally, recall that we use the convention that , that is, is a scalar-valued function that satisfies
In the following, we show that the composition function in (6.8) can be approximated by an element in when the network hyperparameters are properly chosen. Our proof consists of three steps. In the first step, we construct a ReLU network that approximates each in (6.9). Then, in the second step, we approximate by the composition of and quantify the architecture of this network. Finally, in the last step, we prove that this network can be embedded into class and characterize the final approximation error.
For any integers and , let , , for each , and . For any , there exists a ReLU network as defined in Definition 2.1 such that
where the parameter satisfies .
See Appendix B in Schmidt-Hieber 2020+ for a detailed proof. The idea is to first approximate the Hölder smooth function by polynomials via local Taylor expansion. Then, neural networks are constructed explicitly to approximate each monomial terms in these local polynomials. ∎
We apply Lemma 6.3 to for any and . We set for a sufficiently large constant , and set to be a sufficiently large integer depending on , which will be specified later. In addition, we set
We will later verify that for all . Then by Lemma 6.3, there exists a ReLU network such that
Furthermore, we have with
Moreover, since both and take value in $$, by (6.12) we have
where the constant is defined in (6.11). Since we can set the constant in (6) to be sufficiently large, the second term on the right-hand side of (6) is the leading term asymptotically, that is,
Thus, in the first step, we have shown that there exists satisfying (6.16).
where we define , , and . Recall that is defined in (6.10). Then when is sufficiently large, we have
where is an absolute constant. Here the last inequality follows from (4.6). Moreover, for defined in (6.17), by (4.6) we have
In addition, combining (6.13), (4.6), and the fact that , we obtain
Step (iii). In the last step, we show that the function class in (6.17) can be embedded in and characterize the final approximation bias, where , , and are specified in (4.7). To this end, we set
where the absolute constant is sufficiently large. Note that we define . Then (6.21) implies that . When is sufficiently large, it holds that for all . When in (4.7) satisfies , by (6) we have
In addition, (6.19) and (4.7) implies that we can set for all . Finally, by (6) and (6.21), we have which implies . For an -layer ReLU network in (6.17), we can make it an -layer ReLU network by inserting identity layers, since the inputs of each layer are nonnegative. Thus, ReLU networks in (6.17) can be embedded in
which is a subset of by (4.7).
To obtain the approximation error , we define and for any . By triangle inequality, for any we have
where the constant is defined in (6.11). Here in (6.23) we use the fact that for all and .
Thus, we combine (6.7), (6.21), and (6.24) to obtain
As the final step of the proof, it remains to control the covering number of defined in (4.1). By definition, for any , we have for any . For notational simplicity, we denote by the -covering of , that is, we define
Now we utilize the following lemma in Anthony and Bartlett 2009 to obtain an upper bound of the cardinality of .
See Theorem 14.5 in Anthony and Bartlett 2009 for a detailed proof. ∎
Recall that we denote by in (6.6). By combining (6.26) with Lemma 6.4 and setting , we obtain that
Finally, combining (6.1), (6.5), (6.25), and (6.27), we conclude the proof of Theorem 4.4. ∎
Conclusion
We study deep Q-network from the statistical perspective. Specifically, by neglecting the computational issues, we consider the fitted Q-iteration algorithm with ReLU networks, which can be viewed as a modification of DQN that fully captures its key features. Under mild assumptions, we show that DQN creates a sequence of policies whose corresponding value functions converge to the optimal value function, when both the sample size and the number of iteration go to infinity. Moreover, we establish a precise characterization of both the statistical and the algorithmic rates of convergence. As a byproduct, our results provide theoretical justification for the trick of using a target network in DQN. Furthermore, we extend DQN to two-player zero-sum Markov games by proposing the Minimax-DQN algorithm. Utilizing the analysis of DQN, we establish theoretical guarantees for Minimax-DQN. To further extend this work, one future direction is to analyze reinforcement learning methods targeting at MDP with continuous action spaces, e.g., example, soft Q-learning (Haarnoja et al. 2017) and deep deterministic policy gradient (DDPG) (Lillicrap et al. 2016). Another promising direction is to combine results on optimization for deep learning with our statistical analysis to gain a unified understanding of the statistical and computational aspects of DQN.
Appendix A Deep Q-Network
We first present the DQN algorithm for MDP in details, which is proposed by Mnih et al. 2015 and adapted here to discounted MDP. As shown in Algorithm 3 below, DQN features two key tricks that lead to its empirical success, namely, experience replay and target network.
Furthermore, in the following, we present the details of the Minimax-DQN algorithm that extends DQN to two-player zero-sum Markov games introduced in §5. Similar to DQN, this algorithm also utilizes the experience replay and target networks. The main difference is that here the target in (5.7) is obtained by solving a zero-sum matrix game. In Algorithm 4 we present the algorithm for the second player, which can be easily modified for the first player. We note that for the second player, similar to (5.6),the equilibrium joint policy is defined as
Appendix B Computational Aspect of DQN
Recall that in Algorithm 1 we assume the global optima of the nonlinear least-squares problem in (3.1) is obtained in each iteration. We make such an assumption as our focus is on the statistical analysis. In terms of optimization, it has been shown recently that, when the neural network is overparametrized, (stochastic) gradient descent converges to the global minima of the empirical function. Moreover, the generalization error of the obtained neural network can also be established. The intuition behind these results is that, when the neural network is overparametrized, it behaves similar to the random feature model (Rahimi and Recht 2008; Rahimi and Recht 2009). See, e.g., Du et al. 2019b; Du et al. 2019a; Zou et al. 2018; Chizat et al. 2019; Allen-Zhu et al. 2019a; Allen-Zhu et al. 2019b; Jacot et al. 2018; Cao and Gu 2019; Arora et al. 2019; Weinan et al. 2019; Mei et al. 2019; Yehudai and Shamir 2019; Bietti and Mairal 2019; Yang and Salman 2019; Yang 2019; Gao et al. 2019; Bai and Lee 2019; Huang et al. 2020 and the references therein. Also see Fan et al. 2019 for a detailed survey. In this section, we make an initial attempt in providing a unified statistical and computational analysis of DQN.
We represent the Q-network by the family of two-layer neural networks
For such class of neural networks, for any , in -th iteration of the neural FQI algorithm, the optimization problem in (3.1) becomes
where is the target and is the Q-network computed in the previous iteration. Notice that this problem is a least-squares regression with overparameterized neural networks. For computational efficiency, we propose to solve (B.2) via stochastic gradient descent (SGD). Specifically, in each iteration of SGD, we sample a fresh observation with drawn from the sampling distribution , , and . Then an estimator of the gradient is computed based on , which is used to update the network parameters. We run the SGD updates for a total of iterations and denote the output by .
where is a sufficiently large constant. Thus, the population version of the -th iteration of the FQI algorithm becomes
where and is computed using . We solve this optimization problem via projected SGD, which generates a sequence of weight matrices satisfying
where is the projection operator onto with respect to the Frobenius norm, is the step size, and is a random observation. We present the details of fitted Q-iteration method with projected SGD in Algorithm 5.
To understand the convergence of the projected SGD updates in (B.5), we utilize the fact that the dynamics of training overparametrized neural networks is captured by the neural tangent kernel (Jacot et al. 2018) when the width is sufficiently large. Specifically, since , the gradient of the Q-network in (B.1) is given by
Recall that we initialize parameters and as and and that we only update during training. We define a function class as
By (B.6), for each function , we can write it as
which is the first-order linearization of at . Furthermore, since in (B.3) is a constant, for each weight matrix in , when goes to infinity, would be small for almost all , which implies that holds with high probability for all and . As a result, when is sufficiently large, defined in (B.7) is close to
where and are the initial parameters. Specifically, as proved in Lemma A.2 in Wang et al. 2019, when the sampling distribution is regular in the sense that Assumption (B.2) specified below is satisfied, for any , we have
Besides, for all , we let denote . Due to the symmetric initialization scheme, are i.i.d. random feature functions and for all . Thus, each in (B.8) can be equivalently written as
Let . Since , we have
where we use the fact that for all . Thus, combining (B.10) and (B.11), we conclude that in (B.8) is a subset of defined as
For two functions and in represented by and , respectively, their inner product is given by
We let denote the RKHS norm of . Then, when goes to infinity, in (B.12) converges to the RKHS norm ball .
Therefore, from the perspective of neural tangent kernel, when the Q-network is represented by the class of overparametrized neural networks given in (B.1) with a sufficiently large number of neurons, each population problem associated with each FQI iteration in (B.4) becomes
where the minimization is over a subset of as is a subset of .
Utilizing the connection between neural network training and RKHS, in the sequel, we provide a jointly statistical and computational analysis of Algorithm 5. To this end, we define a function class as
We assume that that for all for all , where is the Bellman optimality operator and is given in (B.1).
This assumption specifies that maps any neural network with weight matrix in to a subset of the RKHS . When is sufficiently large, this assumption is similar to stating that is approximately closed under .
We also impose the following regularity condition on the sampling distribution .
We assume that there exists an absolute constant such that
Assumption B.2 states that the density of is sufficiently regular, which holds when the density is upper bounded.
Now we are ready to present the main result of this section, which characterizes the performance of returned by Algorithm 5.
In Algorithm 5, we assume that each step of the fitted-Q iteration is solved by steps of projected SGD updates with a constant stepsize . We set and , where , are absolute constants that are properly chosen. Then, under Assumptions 4.3, B.1, and B.2, we have
Finally, we remark that focus on the class of two-layer overparametrized ReLU neural networks only for the simplicity of presentation. The theory of neural tangent kernel can be extended to feedforward neural networks with multiple layers and neural networks with more complicated architectures (Gao et al. 2019; Frei et al. 2019; Yang and Salman 2019; Yang 2019; Huang et al. 2020).
where , specified in Assumption 4.3, is a constant that only depends on the concentration coefficients. Thus, it remains to characterize for each , which corresponds to the prediction risk of the estimator constructed by projected SGD steps.
In the sequel, we characterize the prediction risk of the projected SGD method via the framework of neural tangent kernel. Our proof technique is motivated by recent work (Gao et al. 2019; Cai et al. 2019; Liu et al. 2019a; Wang et al. 2019; Xu and Gu 2019) which analyze the training of overparametrized neural networks via projected SGD for adversarial training and reinforcement learning. We focus on the case where the target network is and bound .
To begin with, recall that we define function classes , , and in (B.7), (B.12), and (B.14), respectively. Notice that is a neural network where due to projection. Then, by Assumption B.1, belongs to , which is a subset of the RKHS . Thus, it suffices to study the least-squares regression problem where the target function is in and the neural network is trained via projected SGD.
In the following, we use function class to connect and . Specifically, we show that any function as well as can be well approximated by functions in and quantify the approximation errors. Finally, we focus on the projected SGD algorithm within the linearized function class and establish the statistical and computational error. The proof is divided into three steps as follows.
Let be defined in (B.3). Under Assumption B.2, for any , we have
See Lemma A.2 in Wang et al. 2019 for a detailed proof. ∎
Notice that we have and . Applying Lemma B.4 with , we obtain that
Thus, we have constructed a function in that is close to when is sufficiently large, which completes the first step of the proof.
Step (2). In the second step, we show that each function in can also be well approximated by functions in . To this end, similar to the definition of in (B.14), we define a function class as
which is a subset of by definition. Intuitively, as goes to infinity, becomes . The following Lemma, obtained from (Rahimi and Recht 2009), provides a rigorous characterization of this argument.
Let be any fixed function in and define as the solution to
Then, there exists a constant such that, for any , we have
See Rahimi and Recht 2009 for a detailed proof. ∎
where in the second equality we let . Thus, by (B.1) we have
where . Thus, we conclude the second step.
Step (3). Finally, in the last step, we utilize the existing analysis of projected SGD over function class to obtain an upper bound on .
In Algorithm 5, let be the number of iterations of projected SGD steps for solving each iteration of the FQI update and we set . Under Assumption B.2, it holds that
See Theorem 4.5 in Liu et al. 2019a for a detailed proof. ∎
Finally, combining (B.17), (B.21), and (B.22) we obtain that
Setting in (B.1), we obtain that
Combining (B.16) and (B.24), we conclude the proof of Theorem B.3. ∎
Appendix C Proofs of Auxiliary Results
In this section, we present the proofs for Theorems 6.1 and 6.2, which are used in the §6 to establish our main theorem.
Before we present the proof, we introduce some notation. For any , we denote by and define
In addition, we define the operator by
Finally, we denote by . Now we are ready to present the proof, which consists of three key steps.
Step (i): In the first step, we establish a recursion that relates with to measure the sub-optimality of the value function . In the following, we first establish an upper bound for as follows. For each , by the definition of in (C.1), we have
where is the greedy policy with respect to . Now we leverage the following lemma to show .
Note that we have for any and . Thus, it holds that
Recall that is the greedy policy with respect to such that
which concludes the proof of Lemma C.1. ∎
By Lemma C.1, we have . Also note that is the unique fixed point of . Thus, by (C.1) we have
In the following, we establish a lower bound for based on . Note that, by Lemma C.1, we have and . Similar to (C.1), since is the unique fixed point of , it holds that
Thus, combining (C.4) and (C.1) we obtain that, for any ,
The inequalities in (C.6) show that the error can be sandwiched by the summation of a term involving and the error , which is defined in (C.1) and induced by approximating the action-value function. Using defined in (C.2), we can write (C.6) in a more compact form,
Meanwhile, note that defined in (C.2) is a linear operator. In fact, is the Markov transition operator for the Markov chain on with transition dynamics
By the linearity of the operator and the one-step error bound in (C.6), we have the following characterization of the multi-step error.
Here is defined in (C.1) and we use and to denote the composition of operators.
Note that is a linear operator for any policy . We obtain (C.8) and (C.9) by iteratively applying the inequalities in (C.7). ∎
Lemma C.2 gives the upper and lower bounds for the propagation of error through multiple iterations of Algorithm 1, which concludes the first step of our proof.
Step (ii): The results in the first step only concern the propagation of error . In contrast, the output of Algorithm 1 is the greedy policy with respect to . In the second step, our goal is to quantify the suboptimality of , which is the action-value function corresponding to . In the following, we establish an upper bound for .
To begin with, we have by the definition of in (2.5). Note that we have and Hence, it holds that
Now we quantify the three terms on the right-hand side of (C.1) respectively. First, by Lemma C.1, we have
Meanwhile, by the definition of the operator in (C.2), we have
Plugging (C.11) and (C.12) into (C.1), we obtain
Here is the identity operator. Since is a -contractive operator for any policy , is invertible. Thus, we obtain
Then we plug (C.14) and (C.15) into (C.13) and obtain
One can show that . Meanwhile, we define linear operators by
Using this notation, for any , by (C.1) we have
where both and are functions defined on . Here (C.1) gives a uniform upper bound for , which concludes the second step.
By the linearity of expectation, (C.1) implies
Moreover, for any , by expanding into a infinite series, we have
To upper bound the right-hand side of (C.1), we consider the following quantity
Here are policies. Recall that is the transition operator of a Markov process defined on for any policy . Then the integral on the right-hand side of (C.24) corresponds to the expectation of the function , where is a Markov process defined on . Such a Markov process has initial distribution . The first transition operators are , followed by identical transition operators . Hence, is the marginal distribution of , which we denote by for notational simplicity. Hence, (C.24) takes the form
for any measurable function on . By Cauchy-Schwarz inequality, we have
Now we combine (C.21), (C.22), and (C.1) to obtain
Recall that in Theorem 6.1 and (C.1) we define . We have that is further upper bounded by
where the last equality follows from the definition of in (C.18). We simplify the summation on the right-hand side of (C.28) and use Assumption 4.3 to obtain
where the last inequality follows from (4.5) in Assumption 4.3. Finally, combining (C.28) and (C.1), we obtain
which concludes the third step and hence the proof of Theorem 6.1. ∎
C.2 Proof of Theorem 6.2
For notational simplicity, in the sequel we denote by for all . For any , we define . Since both and are bounded by , we only need to consider the case where . Here is the cardinality of . Moreover, let be the centers of the minimal -covering of . Then by the definition of -covering, there exists such that . It is worth mentioning that is a random variable since is obtained from data.
For each , we define . Then (C.31) can be written as
In addition, by triangle inequality and (C.33), we have
where satisfies . In the following, we upper bound the two terms on the right-hand side of (C.2) respectively. For the first term, by applying Cauchy-Schwarz inequality twice, we have
It remains to upper bound the second term on the right-hand side of (C.2). We first define self-normalized random variables
for all . Here recall that are the centers of the minimal -covering of . Then we have
where the first inequality follows from triangle inequality and the second inequality follows from the fact that . Then applying Cauchy-Schwarz inequality to the last term on the right-hand side of (C.2), we obtain
By the definition of in (C.37), conditioning on , is a centered and sub-Gaussian random variable with
Moreover, since is a summation of independent sub-Gaussian random variables, by Lemma 5.9 of Vershynin 2010, the -norm of satisfies
where is an absolute constant. Furthermore, by Lemmas 5.14 and 5.15 of Vershynin 2010, is a sub-exponential random variable, and its the moment-generating function is bounded by
for any satisfying , where and are two positive absolute constants. Moreover, by Jensen’s inequality, we bound the moment-generating function of by
where is an absolute constant. Hence, plugging (C.42) into (C.2) and (C.2), we upper bound the second term of the right-hand side of (C.33) by
Finally, combining (C.32), (C.36) and (C.2), we obtain the following inequality
where and are two positive absolute constants. Here in the first inequality we take the infimum over because (C.31) holds for any , and the second inequality holds because .
where and are two positive absolute constants. Now we conclude the first step.
where the last inquality follows from the fact that and for any . Then by the definition of and (C.2), we have
where we apply (C.2) to obtain the first inequality, and in the last equality we define
where is the variance of .
We first apply Bernstein’s inequality by setting for each . Then we take a union bound for all to obtain
where the last inequality holds when Moreover, the definition of in (C.50) implies that In the following, we only need to consider the case where , since we already have (6.3) if , which concludes the proof.
Then, when holds, combining (C.52) and (C.55) we obtain
which concludes the second step of the proof.
Finally, combining these two steps together, namely, (C.46) and (C.2), we conclude that
where and are two absolute constants. Moreover, since , we have
which concludes the proof of Theorem 6.2. ∎
Appendix D Proof of Theorem 5.4
In this section, we present the proof of Theorem 5.4. The proof is similar to that of Theorem 4.4, which is presented in §6 in details. In the following, we follow the proof in §6 and only highlight the differences for brevity.
The proof requires two key ingredients, namely the error propagation and the statistical error incurred by a single step of Minimax-FQI. We note that Pérolat et al. 2015 establish error propagation for the state-value functions in the approximate modified policy iteration algorithm, which is more general than the FQI algorithm.
Recall that are the iterates of Algorithm 2 and is the equilibrium policy with respect to . Let be the action-value function corresponding to , where is the best-response policy of the second player against . Then under Assumption 5.3, we have
where we define the maximum one-step approximation error , and constant is specified in Assumption 5.3.
We note that the proof of Theorem 6.1 cannot be directly applied to prove this theorem. The main reason is that here we also need to consider the role played by the opponent, namely player two. Different from the MDP setting, here is a fixed point of a nonlinear operator due to the fact that player two adopts the optimal policy against . Thus, we need to conduct a more refined analysis. See §D.1 for a detailed proof. ∎
By this theorem, we need to derive an upper bound of . We achieve such a goal by studying the one-step approximation error for each .
Let be a family of measurable functions on that are bounded by . Also, let be i.i.d. random variables following distribution . . For each , let and be the reward obtained by the first player and the next state following . In addition, for any fixed , we define the response variable as
Based on , we define as the solution to the least-squares problem
Then for any and any , we have
By the definition of in (D.2), for any , we have
Thus, can be viewed as the ground truth of the nonlinear least-squares regression problem in (D.3). Therefore, following the same proof of Theorem 6.2, we obtain the desired result. ∎
Now we let be the family of ReLU Q-networks defined in (5.9) and set in Theorem D.2. In addition, setting and in (D.4), we obtain
where is a positive absolute constant, is the -covering number of , and function class is defined as
Here the second inequality follows from Assumption 5.2.
By the definition of in (D.6), for any and any , we have . Following the same construction as in §C.2, we can find a function in such that
Combining (D.8) with Lemma 6.4 and setting , we obtain that
Finally, combining (D.1), (D), (D.7), and (D), we conclude the proof of Theorem 5.4. ∎
The proof is similar to the that of Theorem D.1. Before presenting the proof, we first introduce the following notation for simplicity. For any , we denote by and define In addition, throughout the proof, for two action-value functions and , we write if for any , and define similarly. Furthermore, we denote by and the equilibrium policies with respect to by , respectively. Besides, in addition to the Bellman operators and defined in (5.4) and (5.5), for any policy of the first player, we define
corresponds to the case where the first player follows policy and player 2 adopts the best policy in response to . By this definition, it holds that . Unlike the MDP setting, here is a nonlinear operator due to the minimization in (D.10). Furthermore, for any fixed action-value function , we define the best-response policy against with respect to , denote by , as
Using this notation, we can write (D.10) equivalently as
Notice that is a linear operator and that by definition.
Now we are ready to present the proof, which can be decomposed into three key steps.
Step (i): In the first step, we establish recursive upper and lower bounds for . For each , similar to the decomposition in (C.1), we have
where is part of the equilibrium policy with respect to and is defined in (D.10).
Similar to Lemma C.1, we utilize the following lemma to show .
Furthermore, for any policy of player one and any action-value function , we have
for any policy , where is the best-response policy defined in (D.11).
Note that for any , by the definition of equilibrium policy, we have
Thus, for any state-action tuple , taking conditional expectations of with respect to on both ends of this equation, we have
which proves . Moreover, for any policy of the first player, it holds that
Taking expectations with respect to on both ends, we establish .
It remains to show the second part of Lemma D.3. By the definition of , we have
which, combined with the definition of in (D.10), implies that . Finally, for any policy of player two, we have
which yields . Thus, we conclude the proof of this lemma. ∎
Hereafter, for notational simplicity, for each , let be the equilibrium joint policy with respect to , and we denote and by and , respectively. Applying Lemma D.3 to (D.12) and utilizing the fact that , we have
where the last inequality follows from (D.13). Furthermore, for a lower bound of , similar to (C.1), we have
where the both inequalities follow from Lemma D.3. Thus, combining (D.1) and (D.1) we have
for any . Similar to the proof of Lemma C.2 , by applying recursion to (D.16), we obtain the following upper and lower bounds for the error propagation of Algorithm 2.
The desired results follows from applying the inequalities in (D.16) multiple times and the linearity of the operator for any joint policy . ∎
The above lemma establishes recursive upper and lower bounds for the error terms , which completes the first step of the proof.
Step (ii): In the second step, we characterize the suboptimality of the equilibrium policies constructed by Algorithm 2. Specifically, for each , we denote by the action-value function obtained when agent one follows while agent two adopt the best-response policy against . In other words, is the fixed point of Bellman operator defined in (D.10). In the following, we obtain an upper bound of , which establishes the a notion of suboptimality of policy from the perspective of the first player.
To begin with, for any , we first decompose by
Since is the equilibrium policy with respect to , by Lemma D.3, we have Recall that is the joint equilibrium policy with respect to . The second argument of Lemma D.3 implies that
where and we define . Thus, combining (D.19) and (D.20) yields that
Furthermore, since is invertible, by (D.1) we have
To simplify the notation, we define as in (C.18). Note that we have by definition. Moreover, we define linear operators as follows. For any , let
Therefore, taking absolute values on both sides of (D.25), we obtain that
for any , which concludes the second step of the proof.
By the definition of , we can write as
To upper bound the right-hand side of (D.28), we consider the following quantity
where are joint policies of the two-players. By Cauchy-Schwarz inequality, it holds that
where is the -th concentration parameter defined in (5.10). Thus, by (D.28)we have
Finally, combining (D.27), (D.29), and (D.30), we obtain that
where the last inequality follows from the fact that . Note that in (C.1) we show that it holds under Assumption 5.3 that
Hence, we obtain (D.1) and thus conclude the proof of Theorem D.1. ∎