Model-Based Multi-Agent RL in Zero-Sum Markov Games with Near-Optimal Sample Complexity
Kaiqing Zhang, Sham M. Kakade, Tamer Başar, Lin F. Yang
Introduction
Recent years have witnessed numerous successes of reinforcement learning (RL) in many applications, e.g., playing strategy games (OpenAI, 2018; Vinyals et al., 2019), playing the game of Go (Silver et al., 2016, 2017), autonomous driving (Shalev-Shwartz et al., 2016), and security (Nguyen and Reddi, 2019; Zhang et al., 2019b). Most of these successful applications involve more than one decision-maker, giving birth to the surging interests and efforts in studying multi-agent RL (MARL) recently, especially on the theoretical side (Wei et al., 2017; Zhang et al., 2018a; Sidford et al., 2020; Zhang et al., 2019a; Xie et al., 2020; Shah et al., 2020; Bai and Jin, 2020; Bai et al., 2020). See also comprehensive surveys on MARL in Busoniu et al. (2008); Zhang et al. (2021a); Nguyen et al. (2020).
In general MARL, all agents affect both the state transition and the rewards of each other, while each agent may possess different, sometimes even totally conflicting objectives. Without knowledge of the model, the agents have to resort to data to either estimate the model, improve their own policy, and/or infer other agents’ policies. One fundamental challenge in MARL is the emergence of non-stationarity during the learning process (Busoniu et al., 2008; Zhang et al., 2021a): when multiple agents improve their policies concurrently and directly using samples, the environment becomes non-stationary from each agent’s perspective. This has posed great challenge to development of effective MARL algorithms based on single-agent ones, especially model-free ones, as the condition for guaranteeing convergence in the latter fails to hold in MARL. One tempting remedy for this non-stationarity issue is the simple while intuitive method — model-basedNote that we here follow the convention of model-based approach in the generative model setting (Azar et al., 2013; Agarwal et al., 2019a; Li et al., 2020), which separates these two stages explicitly. In general, model-based RL approaches do not have to separate the two stages, see e.g., Bayesian RL (Poupart et al., 2006; Ghavamzadeh et al., 2015), and model-based RL in online exploration settings (Azar et al., 2017; Bai and Jin, 2020). MARL: one first estimates an empirical model using data, and then finds the optimal, more specifically, equilibrium policies in this empirical model, via planning. Model-based MARL naturally decouples the learning and planning phases, and can be incorporated with any black-box planning algorithm that is efficient, e.g., value iteration (Shapley, 1953) and (generalized) policy iteration (Patek, 1997; Pérolat et al., 2015). More importantly, after estimating the model, this approach can potentially handle more than one MARL tasks with different reward functions but a common transition model, without re-sampling the data. Being able to handle this reward-agnostic case greatly expands the power of such a model-based approach.
Though intuitive and widely-used, rigorous theoretical justifications for these model-based MARL methods are relatively rare. In this work, our goal is to answer the following standing question: how good is the performance of this naïve “plug-in” method in terms of non-asymptotic sample complexity? To this end, we focus on arguably the most basic MARL setting since Littman (1994): two-player discounted zero-sum Markov games (MGs) with simultaneous-move agents, given only access to a generative model. This generative model allows agents to sample the MG, and query the next state from the transition process, given any state-action pair as input. The generative model setting has been a benchmark in RL when studying the sample efficiency of algorithms (Kearns and Singh, 1999; Kakade, 2003; Azar et al., 2013; Sidford et al., 2018; Agarwal et al., 2019a). Indeed, this model allows for the study of sample-based multi-agent planning over a long horizon, and helps develop better understanding of the statistical properties of the algorithms, decoupled from the exploration complexity.
Motivated by recent minimax optimal complexity results for single-agent model-based RL (Agarwal et al., 2019a), we address the question above with a positive answer: the model-based MARL approach can achieve near-minimax optimal sample complexity — in terms of dependencies on the size of the state space, the horizon, and the desired accuracy — for finding both the Nash equilibrium (NE) value and the NE policies. We also provide a separation in the achievable sample complexity, unique to the multi-agent setting, where, with regards to the dependencies on the number of actions, the naïve model-based approach is sub-optimal. A detailed description is provided next.
We establish the sample complexities of model-based MARL in zero-sum discounted Markov games, when a generative model is available. First, observing that the sampling process in this setting is agnostic to the reward function, we distinguish between two algorithmic frameworks: reward-aware and reward-agnostic cases, depending on whether the reward is revealed before or after the sampling. The model-based approach can inherently handle both cases, especially the latter case with multiple reward functions, without re-sampling the data. Second, by establishing lower bounds for both cases, we show that there is indeed a separation in sample complexity, which is unique in the multi-agent setting. Third, we show that up to some logarithmic factors, the model-based approach is indeed minimax optimal in all parameters in the more challenging reward-agnostic case, and has only a gap on the (both agents’ action space size) dependence in the reward-aware case. This separation and the (near-)minimax results have not only justified the sample efficiency of this simple approach, but also highlighted both its power (easily handling multiple reward functions known in hindsight) and its limitation (less adaptive and can hardly achieve optimal complexity with reward knowledge), particularly arising in the multi-agent RL context. These results are first-of-their-kind in model-based MARL, and among the first (near-)minimax results in general MARL, to the best of our knowledge. We also believe that this separation may shed some light on the choice of model-free and model-based approaches in various MARL scenarios in practice, and provide new understandings for algorithm-design in other MARL settings, e.g., with no generative model, and going beyond two-player zero-sum MGs.
Related Work.
Stemming from the formative work Littman (1994), MARL has been mostly studied under the framework of Markov games (Shapley, 1953). There has been no shortage of provably convergent MARL algorithms ever since then (Littman, 2001; Hu and Wellman, 2003; Greenwald et al., 2003). However, most of these early results are Q-learning-based (thus model-free) and asymptotic, with no sample complexity guarantees. To establish non-asymptotic results, Pérolat et al. (2015, 2016a, 2016b); Fan et al. (2019); Zhang et al. (2018b) have studied the sample complexity of batch model-free MARL methods. There are also increasing interests in policy-based (thus also model-free) methods for solving special MGs with non-asymptotic convergence guarantees (Pérolat et al., 2018; Srinivasan et al., 2018; Zhang et al., 2019a). No result on the (near-)minimax optimality of these complexities has been established prior to the present work.
Specific to the two-player zero-sum setting, Jia et al. (2019) and Sidford et al. (2020) have considered turn-based MGs, a special case of the simultaneous-move MGs considered here, with a generative model. Specifically, Sidford et al. (2020) established near-optimal sample complexity of for a variant of Q-learning for this setting. More recently, Bai and Jin (2020); Xie et al. (2020) have established both regret and sample complexity guarantees for episodic zero-sum MGs, without a generative model, with focus on efficient exploration. The work in Shah et al. (2020) also focused on the turn-based setting, and combined Monte-Carlo Tree Search and supervised learning to find the NE values. In contrast, model-based MARL theory has relatively limited literature. Brafman and Tennenholtz (2002) proposed the R-MAX algorithm for average-reward MGs, with polynomial sample complexity. Wei et al. (2017) developed a model-based upper confidence algorithm with polynomial sample complexities for the same setting. These methods differ from ours, as they are either specific model-free approaches, or not clear yet if they are (near-)minimax optimal in the corresponding setups. Concurrent to our work, Bai et al. (2020) developed model-free algorithms with near-optimal sample complexities in episodic settings without a generative model. The results are optimal in dependence, but not in the horizon . Finally, we note that MARL in Markov games is not restricted to the competitive setting of two-player zero-sum, and the studies in (multi-player) cooperative/potential settings (Leonardos et al., 2021; Zhang et al., 2021b; Ding et al., 2022; Sayin et al., 2022) and general-sum settings (Hu and Wellman, 2003; Liu et al., 2021; Jin et al., 2021; Mao et al., 2022; Mao and Başar, 2023) also exist, and is not the focus of the present paper.
In the single-agent regime, there has been extensive literature on non-asymptotic efficiency of RL in MDPs; see Kearns and Singh (1999); Kakade (2003); Strehl et al. (2009); Jaksch et al. (2010); Azar et al. (2013); Osband and Van Roy (2014); Dann and Brunskill (2015); Azar et al. (2017); Wang (2017); Sidford et al. (2018); Jin et al. (2018); Li et al. (2020). Amongst them, we highlight the minimax optimal ones: Azar et al. (2013) and Azar et al. (2017) have provided minimax optimal results for sample complexity and regret in the settings with and without a generative model, respectively. Specifically, Azar et al. (2013) has shown that to achieve the -optimal value in Markov decision processes (MDPs), at least samples are needed, for . They also showed that to find an -optimal policy, the same minimax complexity order in and can be attained, if and the total sample complexity is , which is in fact linear in the model size. Later, Sidford et al. (2018) has proposed a Q-learning based approach to attain this lower bound and remove the extra dependence on , for . More recently, Agarwal et al. (2019a) developed new techniques based on absorbing MDPs, to show that model-based RL also achieves the lower bound for finding an -optimal policy, with a larger range of While preparing the present work, Li et al. (2020) has further improved the minimax optimal results in Agarwal et al. (2019a), in that they cover the entire range of sample sizes. We believe the improvement can also be incorporated in the MARL setting here, which is left as our future work.. Finally, our separation of the reward-agnostic case is motivated by the recent novel framework of reward-free RL in Jin et al. (2020).
Preliminaries
Consider a zero-sum MGWe will hereafter refer to this model simply as a MG. characterized by , where is the state space; are the action spaces of agents and , respectively; denotes the transition probability of states; denotes the reward functionOur results can be generalized to other ranges of reward function by a standard reduction, see e.g., Sidford et al. (2018), and randomized reward functions. of agent (thus is the bounded reward function of agent ); and is the discount factor. The goal of agent (agent ) is to maximize (minimize) the long-term accumulative discounted reward. In MARL, the agents aim to achieve this goal using data samples collected from the model.
At each time , agent (agent ) has a stationary (not necessarily deterministic) policy (), where denotes the space of all probability measures over , so that (). The state makes a transition from to following the probability distribution , given . As in the MDP model, one can define the state-value function under a pair of joint policies as
Note that for any as , and the expectation is taken over the random trajectory produced by the joint policy . Also, the state-action/Q-value function under is defined by
The solution concept considered is the (approximate) Nash equilibrium, as defined below.
For a zero-sum MG , a Nash equilibrium policy pair satisfies the following pair of inequalitiesIn game theory, this pair is commonly referred to as saddle-point inequalities. for any , , and
If (1) holds with some relaxation, i.e., for some policy , such that
then is an -Nash equilibrium policy pair.
By Shapley (1953); Patek (1997), there exists a Nash equilibrium policy pair for two-player discounted zero-sum MGs. The state-value is referred to as the value of the game. The corresponding Q-value function is denoted by . The objective of the two agents is to find the NE policy of the MG, namely, to solve the saddle-point problem
for every , where the order of and can be interchanged (Von Neumann et al., 1953; Shapley, 1953). For notational convenience, for any policy , we define
and denote the corresponding optimizers by and , respectively. We refer to these values and optimizers as the best-response values and policies, given and , respectively.
Reward-Aware v.s. Reward-Agnostic.
We first differentiate between two algorithmic mechanisms in the generative-model setting. In the reward-aware case, the reward function is either known to the agents (Azar et al., 2013; Sidford et al., 2018; Agarwal et al., 2019a; Sidford et al., 2020; Li et al., 2020), or can at least be estimated from data. The reward knowledge can thus be used to potentially guide the sampling process, making the algorithm adaptive. In the reward-agnostic case, reward knowledge is not used to guide sampling, and is possibly only revealed after the sampling. This especially fits in the scenario when there is more than one reward function of interest, or when the reward function is engineered iteratively, since it can now handle a class of reward functions that are not pre-specified, without re-sampling the data for each of them. Existing works in single-agent settings have no such a separation (Azar et al., 2013; Sidford et al., 2018; Agarwal et al., 2019b; Li et al., 2020), as the sample complexity of estimating the reward function is typically of lower order, and the reward function is thus assumed to be known. In particular, the model-based approaches in Azar et al. (2013); Agarwal et al. (2019b); Li et al. (2020) are reward-agnostic, while the model-free approaches in Sidford et al. (2018, 2020) are reward-aware. Interestingly, in two-agent Markov games, whether the reward is known beforehand or not may lead to different sample complexity lower-bounds, as we will see in §3.1. We thus point out this separation here for clarity.
The reward-agnostic case we advocate here is closely related to the recent novel algorithmic framework of reward-free RL (Jin et al., 2020), where there are also two phases, exploration and planning, while trajectories are only collected in the exploration phase, without any reward knowledge, and various reward functions are fed to the algorithm for evaluation in the planning phase. One key difference is that the reward-free setting aims to be effective for all reward function in the planning phase simultaneously, while the reward-agnostic setting only focuses on handling the underlying single-reward (or a few, e.g., polynomial number of, reward functions) that is not pre-specified. Being less general than the pure reward-free setting, the sample complexity bounds are thus possibly better, as we will show in §3.
Model-Based Approach with Generative Model.
As a standard setting, suppose that we have access to a generative model/sampler, which can provide us with samples for any . The model-based MARL algorithm simply calls the sampler times at each state-joint-action pair , and constructs an empirical estimate of the transition model , denoted by , following
Here is the number of times the state-action pair forces a transition to state . Note that the reward function is not estimated, in either the reward-aware or reward-agnostic cases, as for the former, the sample complexity of estimating is only a lower order term, and is thus typically assumed to be known (Azar et al., 2013; Sidford et al., 2018; Agarwal et al., 2019a; Li et al., 2020); while for the latter, no reward information is even available in the sampling processes. This model-based approach via estimating inherently handles both cases. Such a model-estimation can be implemented by both agents independently.
Planning Oracle.
The reward function, together with the empirical transition model and the components in the true model , constitutes an empirical game model . As in Azar et al. (2013); Agarwal et al. (2019a); Jin et al. (2020); Li et al. (2020) for single-agent RL, we assume that an efficient planning oracle is available, which takes as input, and outputs a policy pair . This oracle decouples the statistical and computational aspects of the empirical model . The output policy pair, referred to as being near-equilibrium, is assumed to satisfy certain -order of equilibrium, in terms of value functions, and we evaluate the performance of on the original MG . Common planning algorithms include value iteration (Shapley, 1953) and (generalized) policy iteration (Patek, 1997; Pérolat et al., 2015), which are efficient in finding the (-)NE of . In addition, it is not hard to have an oracle that is smooth in generating policies, i.e., the change of the approximate NE policies can be bounded by the changes of the NE value. See our Definition 7 later for a formal statement. Finally, we note that our definition of model-based approach in the generative-model-setting follows from that in (Azar et al., 2013; Agarwal et al., 2019a; Li et al., 2020), which separates these two stages explicitly. In general, model-based RL approaches do not have to separate the two stages, see e.g., Bayesian RL (Ghavamzadeh et al., 2015), and model-based RL in online exploration settings (Azar et al., 2017; Bai and Jin, 2020).
Main Results
We now introduce the main results of this paper. For notational convenience, we use , , , and to denote the value under , the best-response value under and , and the NE value, under the empirical game model , respectively. A similar convention is also used for Q-functions.
We first establish lower bounds on both approximating the NE value function and learning the -NE policy pair, in both reward-aware and reward-agnostic cases.
Let be an unknown zero-sum MG, and the agents learn in a reward-aware case, i.e., the reward knowledge is available during sampling. Then, there exist , such that for all , , the sample complexity of learning an -NE policy pair, or an -approximate NE value, i.e., finding a such that for , with a generative model with probability at least , is \widetilde{\Omega}\big{(}{|{\mathcal{S}}|(|\mathcal{A}|+|\mathcal{B}|)}{(1-\gamma)^{-3}\epsilon^{-2}}\log({1}/{\delta})\big{)}.
The proof of Lemma 3, via a straightforward adaptation from the lower bounds for MDPs (Azar et al., 2013; Feng et al., 2019), is provided in §A.1. In particular, one can design a two-player zero-sum Markov game such that one of the players is dummy – she has no control on the reward nor the transition dynamics. Then, the existing lower bound in Azar et al. (2013); Feng et al. (2019) for MDPs leads to the desired result. Note that as in Azar et al. (2013); Sidford et al. (2018, 2020); Agarwal et al. (2019a); Li et al. (2020), the reward function is known in this case. As we will show momentarily, our sample complexity is tight in and , while has a gap in dependence ( versus ). In §A.1, we discuss that the lower bound may not be improved in this reward-aware case, and might be attainable by model-free algorithms instead (as is inherent in model-based approaches due to estimating ). Interestingly, in the concurrent work Bai et al. (2020), under a different MARL setting, such an complexity is indeed shown to be attainable by a model-free algorithm with online updates.
On the other hand, note that our model-based approach can inherently also handle the more challenging reward-agnostic case. Indeed, estimating the transition model seems a bit of an overkill for the reward-aware case, in terms of sample complexity. A natural two-part question then becomes: what is the sample complexity lower bound in this more challenging reward-agnostic case, and can the model-based approach attain it? We formally answer the first part of the question in the following theorem, whose proof is deferred to §A.2, and answer the second part in §3.2 and §3.3.
Let be an unknown zero-sum MG, and the agents learn in a reward-agnostic case, i.e., they first call the generative model for sampling, without reward knowledge, and then are fed with the reward function in , for finding either an -NE policy pair, or an -approximate NE value for . Then, there exist , such that for all , , the sample complexity of achieving either goal with probability at least , is
Compared to Lemma 3, the dependence on is increased from to . Several remarks are now in order. First, this suggests that without guidance from the reward, the reward-agnostic case can be more challenging to tackle. The intuition is that, when the reward is only given in hindsight, which might be chosen adversarially, costs the algorithm to at least sample at all elements in the Q-value at each state often enough. Second, when reduced to the single-agent setting (e.g., with ), such a separation disappears, showing its unique emergence in the multi-agent setting, and explaining why these two cases were not differentiated explicitly in the single-agent literature. Third, this lower bound is also related to the reward-free setting (Jin et al., 2020) with a single unknown reward (not infinitely many as in Jin et al. (2020)).
The basic intuition regarding the separation between the lower bounds in reward-aware and reward-agnostic cases, when compared to the single-agent setting (where there is no such a separation), is the insensitivity of Nash equilibrium (NE) to the changes in payoff matrices in two-player zero-sum games (Jansen, 1981). In particular, NE in general depends on the joint behavior and preferences of both agents. Specifically, to construct the lower bound (even in the single-agent case, see e.g., Azar et al. (2013); Feng et al. (2019)), we needed to carefully perturb the Q-value function at each state-action pair of some null hypothesis instance, so that the solution (which is the maximum in the single-agent case, and Nash equilibrium in the multi-agent case) is also changed in the perturbed alternative hypothesis cases. Hence, for each alternative hypothesis case, we need to change the NE by only changing elements in the payoff matrix, i.e., the Q-value table. In the reward-aware setting, since the reward is known (or can be estimated accurately with negligible sample complexity), we can only perturb the transition matrix to perturb the Q-value table, which share the same size (i.e., the degree-of-freedom). Due to the insensitivity, we can hardly construct different hard cases (as needed to construct a lower bound) while by only perturbing elements in the transition matrix in each case. Note that such a perturbation can be effective in the single-agent MDP setting, as by only perturbing one element in the transition matrix, the maximum of the Q-value can be changed, see e.g., Azar et al. (2013); Feng et al. (2019).
In contrast, in the reward-agnostic setting, the reward information is given after the sampling phase and the estimation of the model. This way, more freedom is allowed to construct different hard cases, by adversarially choosing the reward function afterwards. In particular, the Q-value will be affected by both the transition matrix and the reward, and with polynomial number of reward functions, we were able to construct Q-value tables in different hard cases. Note that taking a union bound over the polynomial number of reward functions do not affect the total sample complexity, as it is still dominated by the sample complexity of estimating the transition matrix. In other words, the freedom of constructing and perturbing the reward functions adversarially afterwards forces the algorithm to estimate all the elements in the transition matrix well, in order to handle the reward-agnostic setting. This has been inherently done by our model-based approach. We defer more details about the lower bounds comparison in Appendix A.
2 Near-Optimality in Finding ϵitalic-ϵ\epsilon-Approximate NE Value
We now establish the near-minimax optimal sample complexities of model-based MARL. Note that theses results apply to both reward-aware and reward-agnostic cases, as the implementation of our model-based approach does not rely on the reward function. We start by showing the sample complexity to achieve an -approximate NE value.
Suppose that the policy pair is obtained from the Planning Oracle using the empirical model , which satisfies
Then, for any and , if
for some absolute constant , it holds that with probability at least ,
Theorem 5 shows that if the planning error is made small, e.g., with the order of , then the Nash equilibrium Q-value can be estimated with a sample complexity of , as queries are made for each pair. This planning error can be achieved by performing any efficient black-box optimization technique over the empirical model . Examples of such oracles include value iteration (Shapley, 1953) and (generalized) policy iteration (Patek, 1997; Pérolat et al., 2015). Moreover, note that, in contrast to the single-agent setting, where only a operator is used, a (or ) operator is used in these algorithms, which involves solving a matrix game at each state. This can be solved as a linear program (Osborne and Rubinstein, 1994), with at best polynomial runtime complexity (Grötschel et al., 1981; Karmarkar, 1984). This in total leads to an efficient polynomial runtime complexity algorithm.
As per Lemma 3, our complexity is near-minimax optimal for the reward-aware case, in that it is tight in the dependence of and , and sublinear in the model-size (which is ). However, there is a gap on the dependence ( versus ). Unfortunately, without further assumption on the MG, e.g., being turn-based, the model-based algorithm can hardly avoid the dependence, as it is required to estimate each accurately to perform the planning. It is only minimax-optimal if the action-space size of one agent dominates the other’s (e.g., ).
In the reward-agnostic case, as per Theorem 4, is indeed minimax-optimal, and is tight in all and dependence. More significantly, in this case, more than one reward functions can be handled simultaneously, as long as the transition model is estimated accurately enough. Specifically, with reward functions, by letting in Theorem 5 and using union bounds, the sample complexity of finding -approximate NE value corresponding to all reward functions becomes , which, with being polynomial in , is of the same order as that in Theorem 5.
However, this (near-)optimal result does not necessarily lead to near-optimal sample complexity for obtaining the -NE policies. We first use a direct translation to obtain such an -NE policy pair based on Theorem 5, for any Planning Oracle.
Let and satisfy the conditions in Theorem 5. Let
and be the one-step Nash equilibrium of , namely, for any
Then, with probability at least ,
namely, constitutes a -Nash equilibrium policy pair.
Corollary 6 is equivalently to saying that the sample complexity of achieving an -NE policy pair is . This is worse than the model-based single-agent setting (Agarwal et al., 2019a), and also worse than both the model-free single-agent (Sidford et al., 2018) and turn-based two-agent (Sidford et al., 2020) settings, where can be achieved for learning the optimal policy. This also has a gap from the lower bound in both Lemma 3 and Theorem 4. Note that the above sample complexity still matches that of the Empirical QVI in Azar et al. (2013) if for single-agent RL, but with a larger choice of of . As the Markov game setting is more challenging than MDPs, it is not clear yet if the lower bounds in Lemma 3 and Theorem 4 in finding -NE policies can be achieved, using a general Planning Oracle. In contrast, we show next that a stable Planning Oracle can indeed (almost) match the lower bounds.
3 Near-Optimality in Finding ϵitalic-ϵ\epsilon-NE Policy
Admittedly, Corollary 6 does not fully exploit the model-based approach, since it finds the NE policy according to the Q-value estimate , instead of using the output policy pair directly. This loses a factor of . To improve the sample complexity of obtaining the NE policies, we first introduce the following definition of a smooth Planning Oracle.
A smooth Planning Oracle generates policies that are smooth with respect to the NE Q-values of the empirical model. Specifically, for two empirical models and , the generated near-equilibrium policy pair and satisfy that for each , and for some constantWe allow to depend polynomially on , which, as we will show later, does not affect the sample complexity as it appears as . , where is the NE Q-value of for , and is the total variation distance.
Such a smooth Planning Oracle can be readily obtained in several ways. For example, one simple (but possibly computationally expensive) approach is to output the average over the entire policy space, using a softmax randomization over best-response values induced by . Specifically, for agent , the output is given by
Another more tractable way to obtain is by directly solving a regularized matrix game induced by . Specifically, one solves
for each , where is the regularizer for agent ’s policy, usually a strongly convex function, are the temperature parameters. This strongly-convex-strongly-concave saddle point problem admits a unique solution, and can be solved efficiently (Facchinei and Pang, 2007; Cherukuri et al., 2017; Liang and Stokes, 2019). This regularization has been widely used in both single-agent MDPs (Neu et al., 2017; Haarnoja et al., 2018; Chow et al., 2018; Geist et al., 2019), and learning in games (Syrgkanis et al., 2015; Mertikopoulos and Sandholm, 2016; Grill et al., 2019), to improve both the exploration and convergence.
With small enough (with the order of , see §B.1), the solution to (6) will be -close to that of the unregularized one (Geist et al., 2019). More importantly, many commonly used regularizations, including negative entropy (Neu et al., 2017), Tsallis entropy (Chow et al., 2018) and Rényi entropy with certain parameters (Mertikopoulos and Sandholm, 2016), naturally yield a smooth Planning Oracle; see Lemma 24 in §B.1 for a formal statement. Note that the smoothness of the oracle does not affect the sample complexity of our model-based MARL algorithm.
Now we present another theorem, which gives the -Nash equilibrium policy pair directly, with the (near-)minimax optimal sample complexity of .
Suppose that the policy pair is obtained from a smooth Planning Oracle using the empirical model (see Definition 7), which satisfies
Then, for any and , if
for some absolute constant , then, letting , with probability at least ,
namely, constitutes a -Nash equilibrium policy pair.
Theorem 8 shows that the sample complexity of achieving an -NE policy can be near-minimax optimal for the reward-aware case, and minimax-optimal for the reward-agnostic case, if a smooth Planning Oracle is used. The dependence on and also matches the only known near-optimal complexity in MGs in Sidford et al. (2020), with a turn-based setting and a model-free algorithm. Inherited from Agarwal et al. (2019a), this improves the second result in Azar et al. (2013) that also has in finding an -optimal policy, by removing the dependence on and enlarging the choice of from to , and removing a factor of in the total sample complexity for any fixed . In addition, Theorem 8 also applies to the multi-reward setting, as Theorem 5, by taking a union bound argument over all reward functions in the reward-agnostic case. If the number of reward functions is of order , the sample complexity of handling multiple reward functions has the same order as that in Theorem 8.
Theorems 5 and 8 together justify that, this simple model-based MARL algorithm is indeed sample-efficient, in approximating both the Nash equilibrium values and policies. Moreover, our separation of the reward-aware and reward-agnostic cases highlights both the power (easily handling multiple reward functions), and the limitation (less adaptive and can hardly achieve ) of the model-based approach, particularly arising in the multi-agent RL context.
Proofs
We first introduce some additional notation for convenience.
Hence, the Q-value function can be written as
Then, we define to be the variance of the discounted reward under the MG , i.e.,
It can be shown (see an almost identical formula for MDPs in (Azar et al., 2013, Lemma 6)) that satisfies some Bellman-type equation for any policy pair :
It can also be verified that (Azar et al., 2013; Agarwal et al., 2019a). Before proceeding further, we provide a roadmap for the proof.
Proof Roadmap.
Our proof mainly consists of the following steps:
Helper lemmas and a crude bound. We first establish several important lemmas, including the component-wise error bounds for the final Q-value errors, the variance error bound, and a crude error bound that directly uses Hoeffding’s inequality. Some of the results are adapted from the single-agent setting to zero-sum MGs, see Agarwal et al. (2019a). See §4.1.
Establishing an auxiliary Markov game. To improve the crude bound, we build up an absorbing Markov game, in order to handle the statistical dependence between and some value function generated by , which occurs as a product in the component-wise bound above. By carefully designing the auxiliary game, we establish a Bernstein-like concentration inequality, despite this dependency. See §4.2, more precisely, Lemmas 17 and 18.
Final bound for -approximate NE value. Lemma 17 in Step 2 allows us to exploit the variance bound, see Lemma 11, to obtain an order bound on the Q-value error, leading to a near-minimax optimal sample complexity for achieving the -approximate NE value. See §4.3.
Final bounds for -NE policy. Based on the final bound in Step 3, we then establish a sample complexity for obtaining an -NE policy pair, by solving an additional matrix game over the output Q-value . See §4.4. In addition, given a smooth Planning Oracle, by Lemma 18 in Step 2, and more careful self-bounding techniques, we establish a sample complexity for achieving such an -NE policy, directly using the output policies . See §4.5.
1 Important Lemmas
We start with the component-wise error bounds.
For any policy pair , it follows that
where we recall that and denote the best-response policy given and , respectively (see (4)). Moreover, we have
Similar arguments yield the third inequality in the first argument.
which, combined with triangle inequality, yields the first inequality. Similarly, we have
Using triangle inequality proves the second inequality. For (10)-(11), we similarly have
Notice that for any and ,
Combining (12)-(13) and (14)-(15), together with triangle inequality, we arrive at (10)-(11), and complete the proof.
We establish the decomposition in (8)-(9) for the following intuition and reasons. The error in (8)-(9) contains three terms: the first and third terms and are the differences of the Q-value for some policy pairs in the true and estimated models, respectively, which will be handled later based on the statistical error of the model estimation; the second term is the optimization error we obtained from the algorithm that solves the empirical game, which will be controlled with an efficient Planning Oracle. To deal with the statistical errors, we first introduce the following lemma, which is adapted from Lemma in Agarwal et al. (2019a).
Proof The proof is straightforward. Letting , we have . Triangle inequality yields , which completes the proof.
Next we establish the Bellman property of a policy pair ’s variance and its accumulation. This has been observed for MDPs before in Munos and Moore (1999); Lattimore and Hutter (2012); Azar et al. (2012); Agarwal et al. (2019a). We establish the counterpart for Markov games as follows.
For any policy pair and MG with transition model , we have
Proof The proof follows that of (Agarwal et al., 2019a, Lemma 3). For any positive vector , by Jensen’s inequality, we have
In addition, by (7), we have . Letting in (18) and noticing that completes the proof.
Finally, if we just apply Hoeffding’s inequality, we obtain the following concentration argument, upon which we will improve to obtain our final results.
Let be the Nash equilibrium policy pair under the actual model . Then, for any , with probability at least , we have
Proof First note that is fixed and independent of the randomness in . Due to the boundedness of that , and the union of Hoeffding bounds over , we have that with probability at least
Similarly, let be the corresponding operator defined under the estimated transition . Note that and are the fixed points of and , respectively. We thus have
To show the first argument, letting and , we have
Using (4.1) to bound the last term in (20), and solving for from (20), we obtain the first argument.
For the second argument, letting and (note that ), we have
where the first inequality is due to the non-expansiveness of the operator. Using (4.1) to bound the last term in (20), and solving for from (20), we obtain the second argument. Similarly, we can obtain the third argument.
For the fourth argument, letting and , the NE policy under (note that ), we have
where the inequalities are due to the non-expansivenesses of both the and the operators. This, combined with (20), completes the proof.
The argument above will lead to a crude bound, with an additional dependence compared to our main results in Theorem 5 and Theorem 8. The key reason is that we used some self-bounding of the error terms, e.g., , which appears on both sides of the inequality, with a discounting on the right-hand side. This way, by subtracting the term on the right-hand side, we have an additional order after dividing on both sides. This was essentially due to the fact that the direct concentration argument can only deal with the concentration of \big{\|}(\widehat{P}-P)V^{*}\big{\|}_{\infty}, where and are not dependent as is a fixed vector. To obtain sharper rates, one has to directly deal with the quantities as \big{\|}(\widehat{P}-P)\widehat{V}\big{\|}_{\infty}, where denotes some value function obtained from the empirical model, and is correlated with . Properly handling this interdependence will be the focus of our proof next.
2 An Auxiliary Markov Game
Motivated by the absorbing MDP technique in Agarwal et al. (2019a), we introduce an absorbing Markov game, in order to handle the interdependence between and , for any (which may also depend on ), which will show up frequently in the analysis.
In addition, we define for some state to choose from, which is a set of evenly spaced elements in the interval for some , i.e., . An appropriately chosen size of will be the key in the proof. We also use to denote the transition model of the absorbing MG for the empirical MG , denoted by . Specifically, at all non-absorbing states, is identical to ; while at the absorbing state, for any . The corresponding value functions are for short denoted by and . Similar as in the original MG, we also use to denote the NE value under the model , and use and to denote the best-response values of some given and , under the model . Now we first have the following lemma based on Bernstein’s inequality; see a similar argument in Lemma 5 in Agarwal et al. (2019a).
For fixed state , action , a finite set , and , it holds that for all , with probability greater than ,
where and are the transition models extracted from the original game and its empirical version , respectively (not related to either or ), and is the output of the Planning Oracle using the auxiliary empirical model
Proof The key observation is that the random variables and are independent. Using Bernstein’s inequality along with a union bound over all , we obtain the first inequality. The other inequalities follow similarly, as is independent of , , , , and . This is because the latter terms are all decided by the original game , and/or the auxiliary empirical game (not the original empirical game ).
Note that the arguments in Lemma 13 do not hold, if we replace by , or by , or by . It will neither hold if we replace and by some and , for any that is dependent on , e.g., the NE policy for the original empirical game . This is one of the key subtleties that are worth emphasizing.
Next we establish two helpful lemmas that help guide the choices of , so that (resp. , , and ) will be a good approximate of (resp. , , and ).
For the absorbing state , and any joint policy , suppose that , , , and . Then,
Proof For the first formula, we need to verify that satisfies the optimal (Nash equilibrium) Bellman equation for the game . To this end, note that if , then satisfies the Bellman equation trivially, since is absorbing with the value .
On the other hand, for any , the outgoing transition model at in is the same as that in , and per se satisfies the Bellman equation in (which are the same for at these states ). Thus, satisfies the Bellman equation in for all states. This proves the first equation. The proofs for the remaining three equations are analogous.
Perfect choices of have been specified in Lemma 14 above. Moreover, we need to quantify how the value changes if we deviate from these perfect choices, i.e., the robustness to misspecification of (Agarwal et al., 2019a). This result is formally established in the following lemma; see also Lemma 7 in Agarwal et al. (2019a) for a similar result.
Proof Note that , since the reward functions only differ at , where and . We denote the NE policy pair in by . Thus,
implying the relationships of the corresponding Q-values; (24) is by definition; (25) uses the observation that is the same as (transition is not affected by the value of ). Similarly, we can establish the lower bound that , which proves . Moreover, we have
For the second one, recalling that the best-response policy of under being , we have
where (27) uses the definition of a best-response value, (28) plugs in the best-response policy , and (29) also uses the fact that the transition does not depend on the value . A lower bound can be established by noticing that . This proves . Furthermore, notice that
which proves the second inequality. Similar arguments can also be used to establish the third and the fourth inequalities. This completes the proof.
We are now ready to show the main result in this section.
For any state , joint action pair , and a finite set , with probability greater than , we have
Moreover, recalling that is the output of the Planning Oracle using , we have
Proof First, for all and with probability greater than , we have
where (30)-(31) use triangle inequality, (32) is due to Lemma 13, and (33) uses the facts that , and . Moreover, by Lemmas 14 and 15, we obtain that
which, combined with (33) and taken minimization over all , yields the first inequality. Proofs for the remaining inequalities are analogous, except that for the last two, the norms and are kept and not further bounded.
Next we establish the important result that characterizes the errors , , , and , which could not have been handled without the arguments above, due to the dependence between and (and also , , and ).
For any , with probability greater than , it holds that
where is defined as
Proof Let denote a set with evenly spaced elements in the interval , with , and being defined in Lemma 12. Lemma 12 shows that with probability greater than ,
for all . Since each subinterval determined by is of length , and will fall into one of them, we know that
where we have used the fact that . We then choose to be in Lemma 16, so that it holds for all states and joint actions with probability greater than . By substitution and noting that the two events in Lemmas 12 and 16 both fail with probability , we obtain the first inequality by properly choosing the constant . Similarly, for the other two inequalities, note that Lemma 12 can be applied to show that , , and , all lie in the interval in (34) (centered at ). By similar arguments, the remaining three inequalities can be proved (note that Lemma 16 can be applied to , , and , as well).
Lastly, with a smooth Planning Oracle, see Definition 7, we can similarly establish the following error bounds on and , thanks to Lemma 16.
With a smooth Planning Oracle that has a smooth constant (see Definition 7), for any , with probability greater than , it holds that
where is defined as
Proof Following the proof of Lemma 17, let denote a set with evenly spaced elements in the interval , with being defined in Lemma 12. By Lemma 12, we know that lies in this interval with probability greater than , for all . Now we choose , where is the smooth coefficient in Definition 7. As will fall into one of the subintervals determined by , we have
which also uses the fact . Furthermore, by Definition 7 and the proof of Lemma 15, we have
where (37) uses Hölder’s inequality, and (38) follows by expanding the Q-value functions, using (36), and noticing that . Combining (38) and (35), and taking over , we have
The rest of the proof follows the arguments of Lemma 17, which combines the last two inequalities in Lemma 16 to obtain the desired bound. Note that the absolute constant here might be different from that in Lemma 17. The proof for the second inequality is analogous.
Note that compared to Lemma 17, Lemma 18 has to additionally deal with the interdependence between and (as well as that between and ). What can be guaranteed before, in the absorbing MGs, is that the value function can be controlled to be close to that in the original MG (see Lemmas 14 and 15, and the proof of Lemma 16). However, in general, it is unclear how much the NE policy changes, as well as how much the best-response value in the original true MG changes. This calls for some stability of the NE policy, and was made possible due to the smoothness of our Planning Oracle (see (36)-(38)). Lemma 18 will play an important role in obtaining the near-optimal sample complexity in Theorem 8 (see §4.5).
3 Proof of Theorem 5
We are now ready to prove Theorem 5. To this end, we first establish the following lemma.
For any policy pair that satisfies the condition in Theorem 5, there exists some absolute constant such that
where (39) is due to Lemma 9; (40) uses triangle inequality; and (41) is due to the non-negativeness of the entries in , the sub-optimality of , and Lemma 10. Since the first term in (41) can be bounded using Lemma 17, we have
where (42) uses the fact that ; (43) is due to Lemma 11, the fact that , and ; (44) is due to . Solving for in (45) yields the desired inequality.
For the second inequality, by Lemma 9, we first have
For the first term in the operator above, by similar arguments from (42)-(45), we have
where (47) is due to Lemma 17, (48) uses triangle inequality, and (50) uses Lemma 11. Solving for \big{\|}{Q}^{\mu^{*},\nu^{*}}-\widehat{Q}^{\mu^{*},\nu^{*}}\big{\|}_{\infty} gives the bound for it.
Similarly, the second term in the operator in (46) can be bounded by
which can be solved to obtain a bound for \big{\|}Q^{\mu^{*},\widehat{\nu(\mu^{*})}}-\widehat{Q}^{\mu^{*},*}\big{\|}_{\infty}. Combining the two bounds and (46), we prove the second inequality in the lemma. The proof for the third inequality is analogous.
With Lemma 19 in hand, we are ready to prove Theorem 5. Note that the condition on in Theorem 5 makes . Thus, by (8)-(9) in Lemma 9 with being replaced by , we have
Substituting in the bounds of , , and in Lemma 19, we arrive at the final bound for :
With a certain choice of , we have .
For the last argument in Theorem 5, by triangle inequality, with the same constant used above, we have
4 Proof of Corollary 6
We now prove Corollary 6, based on Theorem 5. For any state , we have
by definition of . Hence, (53), together with Theorem 5, implies that
5 Proof of Theorem 8
We now prove the second main result, Theorem 8. First, following the proof of Corollary 6, it suffices to prove that , , since they together imply that is a -Nash equilibrium. The following analysis is devoted to proving this argument.
The idea is similar to that presented in §4.3, i.e., we use the component-wise error decompositions in Lemma 9, but use (10)-(11) instead. In particular, letting and , we have
Note that the bounds for and have already been established in Lemma 19 (without dependence on and the Planning Oracle). It now suffices to bound and . For the former term, by Lemma 9, we first have
The first term in the operator, where the policies in the pair are both obtained from the empirical model , can be bounded similarly as that for in Lemma 19. Specifically, following (39)-(41), we have
where (59) uses triangle inequality, and (60) is due to the optimization error of . Then, to bound \gamma\big{\|}(I-\gamma P^{\widehat{\mu},\widehat{\nu(\widehat{\mu})}})^{-1}\big{|}(P-\widehat{P})\widehat{V}^{*}\big{|}\big{\|}_{\infty}, the rest of the proof is analogous to the derivations in (42)-(45), by replacing therein by , and bound by . Solving for yields the desired bound for the first term in the in (58), namely, there exists some constant such that with probability greater than ,
where is defined as
For the second term in the in (58), note that is obtained from , while is obtained from the true model . Note that this mismatch is one key difference from the single-agent setting (Agarwal et al., 2019a) and the above proof for the first term. By Lemma 18, it holds that
where (62) uses the norm-like triangle-inequality property of and triangle inequality, (63) is due to Lemma 11, and the facts that , , and Lemma 10. Moreover, notice that
where (64) uses triangle inequality, (65) uses the norm-like triangle inequality of and , and the fact for , and (66) uses and the definition of . In addition, we know that with probability at least ,
due to Hoeffding bound and . Combining (63), (66), and (4.5) yields
Solving for further leads to
Now we substitute (4.5) and (4.5) into (58), to complete the bound in (56). If the first term in the in (58) is larger, and noticing that the choice of in the theorem can make , (56), (58), (4.5), and Lemma 19 together lead to
with some absolute constant , where we have replaced the term in the bounds for and in Lemma 19 (including that in the definition of ) by , a larger number. If the second term in the in (58) is larger, (56), (58), (4.5), and Lemma 19 together yield
where we have used the fact that . Taking infinity norm on both sides and solving for , we have
with some absolute constant (which can be different from that in (4.5)). Using the choice of in the theorem, and combining (4.5) and (70), we finally have . Note that on the right-hand side of (70), the that makes the third term to be is , which is dominated by when . In addition, to make , should be larger than , which is consistent with both the first and third terms on the right-hand side of (70) to be , determining the allowed range of to be . This proves the first bound in the theorem.
The proof for completing the bound in (57) is analogous: using Lemmas 18 and 9 to bound , which is then substituted into (57). This completes the proof.
Concluding Remarks
In this paper, we have established the first (near-)minimax optimal sample complexity for model-based MARL, when a generative model is available. Our setting was focused on the basic model in MARL — infinite-horizon discounted two-player zero-sum Markov games (Littman, 1994). By noticing that reward is not used in the sampling process of this model-based approach, we have separated the reward-aware and reward-agnostic cases, and established sample complexity lower bounds correspondingly, a unique separation in the multi-agent context. We have then shown that this simple model-based approach is near-minimax optimal in the reward-aware case, with only a gap in the dependence on ; and is indeed minimax-optimal in the reward-agnostic case. This separation and the (near-)optimal results have not only justified the sample-efficiency of this simple approach, but also reflected both its power (easily handling multiple reward functions known in hindsight), and its limitation (less adaptive and can hardly achieve the optimal ). We believe that our results may shed light on the choice of model-free and model-based approaches in various MARL scenarios in practice.
Our results naturally open up the following interesting future directions. First, besides the turn-based setting in Sidford et al. (2020) and the episodic setting in the concurrent work Bai et al. (2020), the minimax-optimal sample complexity in all parameters for model-free algorithms is still open. As discussed in §3, in the reward-aware case, the lower bound may only be attainable by model-free ones. It would be interesting to compare the results with our model-based ones, in both reward-aware and reward-agnostic cases, to better understand their pros and cons in various MARL settings. It would also be interesting to explore the (near-)optimal sample complexity or regret of model-based approaches in other MARL scenarios, such as when no generative model is available, episodic and average-reward settings, general-sum Markov games, and the setting with function approximation.
Acknowledgments and Disclosure of Funding
The research of K.Z. and T.B. was supported in part by the US Army Research Laboratory (ARL) Cooperative Agreement W911NF-17-2-0196, and in part by the Office of Naval Research (ONR) MURI Grant N00014-16-1-2710. The research of S.K. was supported by the funding from the ONR award N00014-18-1-2247, and NSF Awards CCF-1703574 and CCF-1740551. We would also like to thank all the anonymous reviewers for their valuable feedback that helped improve our paper.
References
Appendix A Lower Bounds
Now we discuss lower bounds of the sample complexity given in §3.1.
The proof follows by recalling the hard cases of MDPs considered in Azar et al. (2013) or Feng et al. (2019), and replacing each action therein by a joint-action . Without loss of generality, suppose . Then, we design a Markov game such that agent has no effect on the reward or the transition. Thus, finding an NE is now the same as agent finding the optimal value/policy. By the arguments in Azar et al. (2013); Feng et al. (2019), the sample complexity is at least \widetilde{\Omega}\big{(}|{\mathcal{S}}|\cdot\max\{|\mathcal{A}|,|\mathcal{B}|\}\cdot(1-\gamma)^{-3}\epsilon^{-2}\big{)}, where suppresses some log factors of and . Noticing that \max\{|\mathcal{A}|,|\mathcal{B}|\}=(|\mathcal{A}|+|\mathcal{B}|+\big{|}|\mathcal{A}|-|\mathcal{B}|\big{|})/2, we obtain the lower bound.
Challenge in Obtaining Ω~(|𝒜||ℬ|)~Ω𝒜ℬ\widetilde{\Omega}(|\mathcal{A}||\mathcal{B}|).
Note that the proof of a \widetilde{\Omega}\big{(}|{\mathcal{S}}|(|\mathcal{A}|+|\mathcal{B}|)\cdot(1-\gamma)^{-3}\epsilon^{-2}\big{)} lower bound is a straightforward adaptation from the single-agent result. The lower bound can also be obtained in several other ways (via a treatment of turn-based Markov games, or the attempts to be introduced next). Nevertheless, these attempts can hardly lead to a lower bound of , in this reward-aware case. We highlight the challenges as follows.
The core proof idea of Azar et al. (2013); Feng et al. (2019) for the single-agent setting lower bound is to create a class of number of MDPs, which are hard to distinguish from each other. When the reward function is given (i.e., in the reward-aware setting), one can only change the transition model to obtain different hard MDPs. Hence, in Azar et al. (2013), their approach is to first create a null hypothesis, in which the optimal -value and -optimal actions at every state are fixed. Then in each of the alternative hypothesis, they change the transition probability of a distinct state-action pair in the null case to make the Q-value slightly differ from the null-setting and such that is an -optimal action at state . They construct the hard instance cleverly such that if an algorithm correctly outputs the optimal Q-value (or optimal policy) in an alternative hypothesis with high probability, then it must have sampled samples at the corresponding pair in the null hypothesis. As this holds for all alternative hypotheses, we obtain an sample lower bound.
In the game setting, however, the above idea requires to change the Nash equilibrium (say, a unique pure strategy) to a different state-action-action tuple at any state while only make changes to the probability transition of the corresponding state-joint-action tuple. Nevertheless, this is challenging to achieve in general, as the NE value of zero-sum matrix games is not sensitive to the small number of element changes in the payoff matrices. This can be evidenced either by the stability of the NE in this case against the payoff perturbation (Jansen, 1981), or by the sensitivity analysis of the equivalent linear program of the game (Luce and Raiffa, 1989) against the problem data (Dantzig, 1998). Indeed, one can verify that only changing elements in the transition probability matrix, and thus changing elements in the Q-value table at each state, by a small amount, can hardly change the NE value/policy too much. Some order of (or ) number of changes may suffice, but will eventually yields (or ) hard alternative cases, leading to the same result as Lemma 3. In other words, one can hardly obtain the sufficient number of required hard cases ( in total) by changing only elements in the transition probability matrix of each alternative hypothesis case.
On the other hand, interestingly, we note that there are some results on the payoff query complexity, i.e., the number of queries for the elements in the payoff matrix, for finding the NE (Fearnley et al., 2015; Fearnley and Savani, 2016). It is possible to use queries to find the -NE in zero-sum matrix games when , where (Fearnley and Savani, 2016). Note that the lower bound given in Fearnley and Savani (2016), though being , requires the accuracy to be small, which cannot be used in our previous analysis with a dimension-free choice of . From a different angle, these results imply that it may indeed be unnecessary to accurately estimate all elements in the matrix, in order to obtain an approximate Nash equilibrium.
In light of these observations, we have conjectured that with reward knowledge, the lower bound of is indeed unimprovable, which might be matched by some other (possibly model-free) MARL algorithms, as general model-based approaches inherently require for transition model estimation. Such a lower bound on regret has been provided recently in Bai and Jin (2020), though in a different setting. More interestingly, though not entirely comparable to us, in the concurrent work Bai et al. (2020), the complexity is indeed shown to be attainable by a model-free Nash-V learning algorithm in the episodic setting, with the reward information guiding the online update.
A.2 Reward-Agnostic Case
Now we establish the lower bound for the reward-agnostic case, i.e., the proof of Theorem 4. The idea to construct hard cases is similar to that discussed in §A.1, which is motivated by Azar et al. (2013); Feng et al. (2019), but with additional flexibility to design the reward function that is unknown in the sampling stage. Our hard cases apply to both finding the -NE policy pair and finding the -approximate NE value. For the sake of presentation, we focus on proving the lower bound for the -NE policy. Let us first formally define the notion of a correct algorithm in terms of learning an -NE policy in this reward-agnostic case.
(()-correct reward-agnostic algorithm) We say that an RL algorithm is -correct in the reward-agnostic case, if for any unknown MG , first calls a generative model on , and is then fed with the reward , and outputs an -NE policy with probability at least .
Note that is only revealed to after the sampling, and such an should be able to output an ()-correct NE policy for any single in the underlying model. Thus, for reward functions defined over the same , using a union bound argument, the -NE policy corresponding to all reward functions can be obtained simultaneously with probability greater than (of course with a small enough ). To prove the theorem, we will construct a class of Markov game models. We show that if algorithm only draws samples much fewer than the lower bound, there exists an MG such that cannot be an -correct reward-agnostic algorithm for. Compared to the reward-aware case, we now allow more freedom to construct hard instances, by not only perturbing the transition matrix, but also choosing the reward function judiciously. This would eventually allow us to obtain hard cases, combating the insensitivity of NE to the perturbation of the payoff matrices (c.f. discussion in §A.1).
which is fully characterized by and .
Transition Model Hypotheses of 𝒢𝒢\mathcal{G}.
We restrict . Let and . We consider possibilities of the transition models of , where — the null hypothesis is:
and for all , , and the alternative hypotheses are:
where , for some and absolute constants to be determined later. Note that each alternative hypothesis only has one element in the transition model different from the null one.
Reward Functions.
We define a class of reward functions , which is unknown to during sampling, and is defined as follows (recall that other than the value specified by , rewards are all zero):
for all , , and .
By the construction above, if the reward function is assigned to the corresponding transition model in , for either or any , then the corresponding Q-values become
and ,
We then select such that for ,
and is selected such that and
for all . Moreover, we require that , and . Hence, .
Moreover, one can verify that if any reward with , , and (instead of as in (74)) is assigned to the transition model of , then the NE policy at can never be the pure strategy , (it can be some mixed NE policy). As a consequence, for algorithm , after estimating the transition model of , if is revealed, then it will output some -NE policy with probability greater than ; this -NE policy pair, which can be mixed strategies at , should output the joint-action with a small probability, which is smaller than
(implying that ), where the first inequality is due to (A.2)-(77), and the last one follows by upper-bounding simply by . This is because otherwise, the value of the -NE policy at , denoted by satisfies
where the first inequality is because with reward being assigned to model , at state and with the joint-action , the Q-value is , while the smallest Q-value at state is ; the last equation is due to the definition of in (78). However, one can verify that the NE-value in this case lies in the range , by finding the minimax and maximin elements in the payoff matrix, i.e., the Q-value table at (using Lemma 25). Thus, (79) contradicts the fact that this policy is an -NE policy (thus making -close to the NE-value). If we define the following events for every , , and :
Now, we fix and , where and will be determined later. Let
where is an absolute constant to be determined later. We also define to be the number of samples that algorithm calls from the generative model with input state till stops (these sample calls are not necessarily consecutive). Note that no reward information is used/revealed to the agent in this sampling process of . For every , , and , we define the following two events:
where is the number of transitions to itself in the calls to the generative model with input state . For these events, we have the following lemmas.
Proof We denote outcome to be if the transition from ends up on itself; otherwise 0. By definition, the outcomes from state are i.i.d. Bernoulli- random variables. Let . By Chernoff-Hoeffding bound and , we have that
Additional application of proves the lemma.
Proof Let be the length- random sequence of the next states by calling the generative model times with the input state . To simplify notation, we represent as a binary sequence where represents the next state from to itself and otherwise. If and , forms an i.i.d. Bernoulli- sequence; if , this is an i.i.d Bernoulli- sequence. We define the likelihood function as
Recall that the notation denotes the total number of ’s in . For convenience, let us denote
To additionally simplify the notation, we define and . With these new notations, we compute as follows
Note that . By our choice of , , , and , it holds that and . With the fact that for and for , we have that
due to . Next, we proceed on the event . By definition, if occurs, event has occurred. Using for , it follows that
Using for , we also have that
Further, we have that when occurs, also occurs. Therefore,
By taking small enough, e.g., , we have . Note that by (73), the probability measure of the whole sample sequence under the two hypotheses and only differ at . By a change of measure, we deduce that
which, by the -NE property, should satisfy
Similarly, let , we have
Appendix B Auxiliary Results
We now show that solving the regularized matrix game induced by , see (6), leads to a smooth Planning Oracle with certain smoothness coefficient (see Definition 7).
Suppose that the nonnegative regularizers for in (6) are twice continuously differentiable, strongly convex, and bounded over the simplex. Suppose that for each , the solution policy pair of (6) with lies in the relative interior of the simplexes and , respectively. Then, is smooth with respect to , namely, this Planning Oracle follows Definition 7, with some constant , and meanwhile , namely, in Theorem 8 satisfies .
where and , denotes the all-one vector of proper dimension, and denotes the vector of proper dimension whose -th element is one and all other elements are zero.
Since the solution lies in the relative interior of and , by first-order optimality, we have that for each
whose solution is unique since (90) is still a strongly-convex-strongly-concave minimax problem. In particular, note that by the chain rule, the Hessians of are and , where
Notice that the Jacobian of with respect to is
which is always invertible for any point in . This is because are strongly convex, and thus the real parts of the eigenvalues of the matrix, which are the eigenvalues of , are always positive and uniformly lower bounded. Specifically, we have
with being the -th largest eigenvalues of the corresponding matrix. This further implies that for any ,
where is the -th largest singular value of the corresponding matrix.
By the implicit function theorem (Krantz and Parks, 2012), for any point that solves , since is invertible, there exists a neighborhood , , and around it, such that is a unique function of for all , and
where denotes the Kronecker product. Thus, we have
Notice that this is a uniform bound on the gradient of the implicit function, at any point in , which together with the mean-value theorem leads to
where the pair is the unique solution of corresponding to . By the equivalence of norms and considering all , we can find some constant (which depends on , , , as well as and polynomially) as the smooth coefficient, and this completes the first argument of the result.
Now, it suffices to prove that the obtained solution with parameter also leads to small . Let denotes the upper bound of the regularizer over the simplex. Then, we have that for any
To ensure that the solution of (6) lies in the relative interior of the simplexes, the common choice of steep regularizers will suffice (Mertikopoulos and Sandholm, 2016). The steep regularizer means that for any (resp. ) on the boundary of the simplex (resp. ), and for every interior sequence (resp. ) that approaches it, it holds that \big{\|}\frac{d\Omega_{1}(u)}{du}\big{|}_{u=u_{n}}\big{\|}_{2}\to\infty (resp. \big{\|}\frac{d\Omega_{2}(\vartheta)}{d\vartheta}\big{|}_{\vartheta=\vartheta_{n}}\big{\|}_{2}\to\infty). This way, the optimizer is not on the boundary of the simplexes. Examples of steep regularizers in Lemma 24 include the commonly used negative entropy, Tsallis entropy and Rényi entropy with certain parameters; see Mertikopoulos and Sandholm (2016) for more discussions. Also note that they are bounded over simplex for standard choices of the parameters, and thus satisfy the conditions in our Lemma 24.
B.2 Properties of (ϵitalic-ϵ\epsilon-)NE in Zero-Sum Matrix Games
Now we establish several properties of the (-)NE strategies in zero-sum matrix games, which have been used in the proof in §A.2.
where denote the all-zero vector except a single at element , with proper dimensions. Also, notice that
where the inequality is due to that and the on the right is taken over a smaller set, thus has a larger value. This proves the right-hand side of the inequality. Proof for the other side is analogous.
Consider the game as above in Lemma 25. Let and be strategies such that is a Nash equilibrium strategy, and is an -NE strategy. Then, both and are -NE strategy pairs.
Proof Let denote the value under any strategy pair . By definition, we have that for any and
for any and , showing that is an -NE. The proof for the pair is analogous.