Near-Optimal Reinforcement Learning with Self-Play
Yu Bai, Chi Jin, Tiancheng Yu
Introduction
A wide range of modern artificial intelligence challenges can be cast as a multi-agent reinforcement learning (multi-agent RL) problem, in which more than one agent performs sequential decision making in an interactive environment. Multi-agent RL has achieved significant recent success on traditionally challenging tasks, for example in the game of GO , Poker , real-time strategy games , decentralized controls or multiagent robotics systems , autonomous driving , as well as complex social scenarios such as hide-and-seek . In many scenarios, the learning agents even outperform the best human experts .
Despite the great empirical success, a major bottleneck for many existing RL algorithms is that they require a tremendous number of samples. For example, the biggest AlphaGo Zero model is trained on tens of millions of games and took more than a month to train . While requiring such amount of samples may be acceptable in simulatable environments such as GO, it is not so in other sample-expensive real world settings such as robotics and autonomous driving. It is thus important for us to understand the sample complexity in RL—how can we design algorithms that find a near optimal policy with a small number of samples, and what is the fundamental limit, i.e. the minimum number of samples required for any algorithm to find a good policy.
Can we design algorithms with near-optimal sample complexity for learning Markov games?
Apart from finding Nash equilibria, we prove that learning the best responses of fixed opponents in Markov games is as hard as learning parity with noise—a notoriously difficult problem that is believed to be computationally hard (Section 5). As a corollary, this hardness result directly implies that achieving sublinear regret against adversarial opponents in Markov games is also computationally hard, a result that first appeared in . This in turn rules out the possibility of designing efficient algorithms for finding Nash equilibria by running no-regret algorithms for each player separately.
In addition to above contributions, this paper also features a novel approach of extracting certified policies—from the estimates produced by reinforcement learning algorithms such as Nash Q-learning and Nash V-learning—that are certified to have similar performance as Nash equilibrium policies, even when facing against their best response (see Section 3 for more details). We believe this technique could be of broader interest to the community.
2 Related Work
Markov games (or stochastic games) are proposed in the early 1950s . They are widely used to model multi-agent RL. Learning the Nash equilibria of Markov games has been studied in classical work , where the transition matrix and reward are assumed to be known, or in the asymptotic setting where the number of data goes to infinity. These results do not directly apply to the non-asymptotic setting where the transition and reward are unknown and only a limited amount of data are available for estimating them.
A recent line of work tackles self-play algorithms for Markov games in the non-asymptotic setting with strong reachability assumptions. Specifically, Wei et al. 2017 assumes no matter what strategy one agent sticks to, the other agent can always reach all states by playing a certain policy, and Jia et al. 2019, Sidford et al. 2019 assume access to simulators (or generative models) that enable the agent to directly sample transition and reward information for any state-action pair. These settings ensure that all states can be reached directly, so no sophisticated exploration is not required.
Very recently, study learning Markov games without these reachability assumptions, where exploration becomes essential. However, both results suffer from highly suboptimal sample complexity. We compare them with our results in Table 1. The results of also applies to the linear function approximation setting. We remark that the R-max algorithm does provide provable guarantees for learning Markov game, even in the setting of playing against the adversarial opponent, but using a definition of regret that is weaker than the standard regret. Their result does not imply any sample complexity result for finding Nash equilibrium policies.
Adversarial MDP
Another line of related work focuses on provably efficient algorithms for adversarial MDPs. Most work in this line considers the setting with adversarial rewards , because adversarial MDP with changing dynamics is computationally hard even under full-information feedback . These results do not directly imply provable self-play algorithms in our setting, because the opponent in Markov games can affect both the reward and the transition.
Single-agent RL
Preliminaries
We consider zero-sum Markov Games (MG) , which are also known as stochastic games in the literature. Zero-sum Markov games are generalization of standard Markov Decision Processes (MDP) into the two-player setting, in which the max-player seeks to maximize the total return and the min-player seeks to minimize the total return.
A Markov policy of the max-player is a collection of functions , which maps from a state to a distribution of actions. Here is the probability simplex over action set . Similarly, a policy of the min-player is a collection of functions . We use the notation and to present the probability of taking action or for state at step under Markov policy or respectively.
for all . We define for all .
Best response and Nash equilibrium
For any Markov policy of the max-player , there exists a best response of the min-player, which is a Markov policy satisfying for any . Here the infimum is taken over all possible policies which are not necessarily Markovian (we will define later in this section). We define . By symmetry, we can also define and . It is further known (cf. ) that there exist Markov policies , that are optimal against the best responses of the opponents, in the sense that
We call these optimal strategies the Nash equilibrium of the Markov game, which satisfies the following minimax equation: The minimax theorem here is different from the one for matrix games, i.e. for any matrix , since here is in general not bilinear in .
Intuitively, a Nash equilibrium gives a solution in which no player has anything to gain by changing only her own policy. We further abbreviate the values of Nash equilibrium and as and . We refer readers to Appendix A for Bellman optimality equations for values of best responses or Nash equilibria.
General (non-Markovian) policy
For a pair of general policy , we can still use the same definitions (1) to define their value at step . We can also define the best response of a general policy as the minimizing policy so that at step 1. We remark that the best response of a general policy is not necessarily Markovian.
Learning Objective
There are two possible learning objectives in the setting of Markov games. The first one is to find the best response for a fixed opponent. Without loss of generality, we consider the case where the learning agent is the max-player, and the min-player is the opponent.
For an opponent with an fixed unknown general policy , a general policy is the -approximate best response if .
The second goal is to find a Nash equilibrium of the Markov games. We measure the suboptimality of any pair of general policies using the gap between their performance and the performance of the optimal strategy (i.e. Nash equilibrium) when playing against the best responses respectively:
A pair of general policies is an -approximate Nash equilibrium, if .
Loosely speaking, Nash equilibria can be viewed as “the best responses to the best responses”. In most applications, they are the ultimate solutions to the games. In Section 3 and 4, we present sharp guarantees for learning an approximate Nash equilibrium with near-optimal sample complexity. However, rather surprisingly, learning a best response in the worst case is more challenging than learning the Nash equilibrium. In Section 5, we present a computational hardness result for learning an approximate best response.
Optimistic Nash Q-learning
In this section, we present our first algorithm Optimistic Nash Q-learning and its corresponding theoretical guarantees.
Our algorithm Optimistic Nash Q-learning (Algorithm 1) is an optimistic variant of Nash Q-learning . For each step in each episode, it (a) takes actions according to the previously computed policy , and observes the reward and next state, (b) performs incremental updates on Q-values, and (c) computes new greedy policies and updates -values. Part (a) is straightforward; we now focus on explaining part (b) and part (c).
In part (b), the incremental updates on Q-values (Line 8, 9) are almost the same as standard Q-learning , except here we maintain two separate Q-values— and , as upper and lower confidence versions respectively. We add and subtract a bonus term in the corresponding updates, which depends on —the number of times has been visited at step . We pick parameter and as follows for some large constant , and log factors :
In part (c), our greedy policies are computed using a Coarse Correlated Equilibrium (CCE) subroutine, which is first introduced by to solve Markov games using value iteration algorithms. For any pair of matrices , returns a distribution such that
It can be shown that a CCE always exists, and it can be computed by linear programming in polynomial time (see Appendix B for more details).
Now we are ready to state an intermediate guarantee for optimistic Nash Q-learning. We assume the algorithm has played the game for episodes, and we use to denote values, visitation counts, and policies at the beginning of the -th episode in Algorithm 1.
For any , choose hyperparameters as in (3) for a large absolute constant and . Then, with probability at least , Algorithm 1 has following guarantees
for all .
.
Lemma 3 makes two statements. First, it claims that the and computed in Algorithm 1 are indeed upper and lower bounds of the value of the Nash equilibrium. Second, Lemma 3 claims that the averages of the upper bounds and the lower bounds are also very close to the value of Nash equilibrium , where the gap decrease as . This implies that in order to learn the value up to -accuracy, we only need episodes.
However, Lemma 3 has a significant drawback: it only guarantees the learning of the value of Nash equilibrium. It does not imply that the policies used in Algorithm 1 are close to the Nash equilibrium, which requires the policies to have a near-optimal performance even against their best responses. This is a major difference between Markov games and standard MDPs, and is the reason why standard techniques from the MDP literature does not apply here. To resolve this problem, we propose a novel way to extract a certified policy from the optimistic Nash Q-learning algorithm.
Algorithm part II: certified policies
We describe our procedure of executing the certified policy of the max-player is described in Algorithm 2. Above, denote the marginal distributions of produced in Algorithm 1 over action set respectively. We also introduce the following quantities that directly induced by :
whose properties are listed in the following Lemma 11. Especially, , so defines a distribution over . We use to denote the index of the episode where is observed in step for the -th time. The certified policy of the min-player is easily defined by symmetry. We note that are clearly general policies, but they are no longer Markov policies.
The intuitive reason why such policy defined in Algorithm 2 is certified by Nash Q-learning algorithm, is because the update equation in line 8 of Algorithm 1 and equation (5) gives relation:
This certifies the good performance against the best responses if the max-player plays a mixture of policies at step with mixing weights (see Appendix C.2 for more details). A recursion of this argument leads to the certified policy —a nested mixture of policies.
We now present our main result for Nash Q-learning, using the certified policies .
For any , choose hyperparameters as in (3) for large absolute constant and . Then, with probability at least , if we run Nash Q-learning (Algorithm 1) for episodes where
the certified policies (Algorithm 2) will be -approximate Nash, i.e. .
Theorem 4 asserts that if we run the optimistic Nash Q-learning algorithm for more than episodes, the certified policies extracted using Algorithm 2 will be -approximate Nash equilibrium (Definition 2).
We make two remarks. First, the executions of the certified policies require the storage of and for all . This makes the space complexity of our algorithm scales up linearly in the total number of episodes . Second, Q-learning style algorithms (especially online updates) are crucial in our analysis for achieving sample complexity linear in . They enjoy the property that every sample is only been used once, on the value function that is independent of this sample. In contrast, value iteration type algorithms do not enjoy such an independence property, which is why the best existing sample complexity scales as . Despite provides techniques to improve the sample complexity from to for value iteration in MDP, the same techniques can not be applied to Markov games due to the unique challenge that, in Markov games, we aim at finding policies that are good against their best responses.
Optimistic Nash V-learning
Nash V-learning combines the idea of Follow-The-Regularized-Leader (FTRL) in the bandit literature with the Q-learning algorithm in reinforcement learning. This algorithm does not require extra information exchange between players other than standard game playing, thus can be ran separately by the two players. We describe the max-player version in Algorithm 3. See Algorithm 7 in Appendix D for the min-player version, where , , , and are defined symmetrically.
Here is the uniform distribution over all actions . Solving above minimization problem gives the update equation as in Line 12 in Algorithm 3. In multi-arm bandit, FTRL can defend against adversarial losses, with regret independent of the number of the opponent’s actions. This property turns out to be crucial for Nash V-learning to achieve sharper sample complexity than Nash Q-learning (see the analog of Lemma 3 in Lemma 15).
Similar to Nash Q-learning, we also propose a new algorithm (Algorithm 4) to extract a certified policy from the optimistic Nash V-learning algorithm. The certified policies are again non-Markovian. We choose all hyperparameters as follows, for some large constant , and log factors .
We now present our main result on the sample complexity of Nash V-learning.
For any , choose hyperparameters as in (6) for large absolute constant and . Then, with probability at least , if we run Nash V-learning (Algorithm 3 and 7) for episodes with
its induced policies (Algorithm 4) will be -approximate Nash, i.e. .
Hardness for Learning the Best Response
In this section, we present a computational hardness result for computing the best response against an opponent with a fixed unknown policy. We further show that this implies the computational hardness result for achieving sublinear regret in Markov games when playing against adversarial opponents, which rules out a popular approach to design algorithms for finding Nash equilibria.
We first remark that if the opponent is restricted to only play Markov policies, then learning the best response is as easy as learning a optimal policy in the standard single-agent Markov decision process, where efficient algorithms are known to exist. Nevertheless, when the opponent can as well play any policy which may be non-Markovian, we show that finding the best response against those policies is computationally challenging.
We say an algorithm is a polynomial time algorithm for learning the best response if for any policy of the opponent , and for any , the algorithm finds the -approximate best response of policy (Definition 1) with probability at least , in time polynomial in .
We can show the following hardness result for finding the best response in polynomial time.
There exists a Markov game with deterministic transitions and rewards defined for any horizon with , , and , such that if there exists a polynomial time algorithm for learning the best response for this Markov game, then there exists a polynomial time algorithm for learning parity with noise (see problem description in Appendix E).
We remark that learning parity with noise is a notoriously difficult problem that has been used to design efficient cryptographic schemes. It is conjectured by the community to be hard.
There is no polynomial time algorithm for learning party with noise.
Theorem 6 with Conjecture 7 demonstrates the fundamental difficulty—if not strict impossibility—of designing a polynomial time for learning the best responses in Markov games. The intuitive reason for such computational hardness is that, while the underlying system has Markov transitions, the opponent can play policies that encode long-term correlations with non-Markovian nature, such as parity with noise, which makes it very challenging to find the best response. It is known that learning many other sequential models with long-term correlations (such as hidden Markov models or partially observable MDPs) is as hard as learning parity with noise .
Theorem 6 directly implies the difficulty for achieving sublinear regret in Markov games when playing against adversarial opponents in Markov games. Our construction of hard instances in the proof of Theorem 6 further allows the adversarial opponent to only play Markov policies in each episode. Since playing against adversarial opponent is a different problem with independent interest, we present the full result here.
Without loss of generality, we still consider the setting where the algorithm can only control the max-player, while the min-player is an adversarial opponent. In the beginning of every episode , both players pick their own policies and , and execute them throughout the episode. The adversarial opponent can possibly pick her policy adaptive to all the observations in the earlier episodes.
We say an algorithm for the learner is a polynomial time no-regret algorithm if there exists a such that for any adversarial opponent, and any fixed , the algorithm outputs policies which satisfies the following, with probability at least , in time polynomial in .
Theorem 6 directly implies the following hardness result for achieving no-regret against adversarial opponents, a result that first appeared in .
There exists a Markov game with deterministic transitions and rewards defined for any horizon with , , and , such that if there exists a polynomial time no-regret algorithm for this Markov game, then there exists a polynomial time algorithm for learning parity with noise (see problem description in Appendix E). The claim remains to hold even if we restrict the adversarial opponents in the Markov game to be non-adaptive, and to only play Markov policies in each episode.
Similar to Theorem 6, Corollary 8 combined with Conjecture 7 demonstrates the fundamental difficulty of designing a polynomial time no-regret algorithm against adversarial opponents for Markov games.
Corollary 8 also rules out a natural approach for designing efficient algorithms for finding approximate Nash equilibrium through combining two no-regret algorithms. In fact, it is not hard to see that if the min-player also runs a non-regret algorithm, and obtain a regret bound symmetric to (7), then summing the two regret bounds shows the mixture policies —which assigns uniform mixing weights to policies and respectively—is an approximate Nash equilibrium. Corollary 8 with Conjecture 7 claims that any algorithm designed using this approach is not a polynomial time algorithm.
Conclusion
In this paper, we designed first line of near-optimal self-play algorithms for finding an approximate Nash equilibrium in two-player Markov games. The sample complexity of our algorithms matches the information theoretical lower bound up to only a polynomial factor in the length of each episode. Apart from finding Nash equilibria, we also prove the fundamental hardness in computation for finding the best responses of fixed opponents, as well as achieving sublinear regret against adversarial opponents, in Markov games.
References
Appendix A Bellman Equations for Markov Games
In this section, we present the Bellman equations for different types of values in Markov games.
For any pair of Markov policy , by definition of their values in (1) (2), we have the following Bellman equations:
for all , where for all .
Best responses.
For any Markov policy of the max-player, by definition, we have the following Bellman equations for values of its best response:
for all , where for all .
Similarly, for any Markov policy of the min-player, we also have the following symmetric version of Bellman equations for values of its best response:
for all , where for all .
Nash equilibria.
Finally, by definition of Nash equilibria in Markov games, we have the following Bellman optimality equations:
for all , where for all .
Appendix B Properties of Coarse Correlated Equilibrium
Recall the definition for CCE in our main paper (4), we restate it here after rescaling. For any pair of matrix , the subroutine returns a distribution that satisfies:
We make three remarks on CCE. First, a CCE always exists since a Nash equilibrium for a general-sum game with payoff matrices is also a CCE defined by , and a Nash equilibrium always exists. Second, a CCE can be efficiently computed, since above constraints (8) for CCE can be rewritten as linear constraints on , which can be efficiently resolved by standard linear programming algorithm. Third, a CCE in general-sum games needs not to be a Nash equilibrium. However, a CCE in zero-sum games is guaranteed to be a Nash equalibrium.
Let , and be the marginal distribution over both players’ actions induced by . Then is a Nash equilibrium for payoff matrix .
Let be the value of Nash equilibrium for . Since , by definition, we have:
Intuitively, a CCE procedure can be used in Nash Q-learning for finding an approximate Nash equilibrium, because the values of upper confidence and lower confidence— and will be eventually very close, so that the preconditions of Proposition 9 becomes approximately satisfied.
Appendix C Proof for Nash Q-learning
In this section, we present proofs for results in Section 3.
We will use the following notations several times later: suppose was taken at the in episodes at the -th step. Since the definition of depends on the tuple and , we will show the dependence explicitly by writing when necessary and omit it when there is no confusion. We also define to be the number of times has been taken at the beginning of the -th episode. Finally we denote .
The following lemma is a simple consequence of the update rule in Algorithm 1, which will be used several times later.
Let and suppose was previously taken at episodes at the -th step. The update rule in Algorithm 1 is equivalent to the following equations.
We begin an auxiliary lemma. Some of the analysis in this section is adapted from which studies Q-learning under the single agent MDP setting.
([14, Lemma 4.1]) The following properties hold for :
for every .
and for every .
for every .
Here we prove a stronger version of the first claim by induction: for any ,
Suppose the guarantee is true for , then by the above concentration result,
where has just been proved. The other direction is proved similarly.
Now we continue with the proof of the second claim. Let and define , then by definition
where is by taking the difference of equation (9) and equation (10) and
Taking the summation w.r.t. , we begin with the first two terms,
where is by changing the order of summation and is by Lemma 11.
Recursing this argument for gives
with high probability. The proof is completed by putting everything together.
C.2 Certified policies
Algorithm 1 only learns the value of game but itself cannot give a near optimal policy for each player. In this section, we analyze the certified policy based on the above exploration process (Algorithm 2) and prove the sample complexity guarantee. To this end, we need to first define a new group of policies to facilitate the proof , and are defined similarly. Notice is related to defined in Algorithm 2 by .
We also define for , which is na intermediate algorithm only involved in the analysis. The above two policies are related by where . is defined similarly.
Since the policies defined in Algorithm 5 and Algorithm 6 are non-Markov, many notations for values of Markov policies are no longer valid here. To this end, we need to define the value and Q-value of general policies starting from step , if the general policies starting from the -th step do not depends the history before the -th step. Notice the special case has already been covered in Section 2. For a pair of general policy which does not depend on the hostory before the -th step, we can still use the same definitions (1) and (2) to define their value and at step . We can also define the best response of a general policy as the minimizing policy so that at step . Similarly, we can define . As before, the best reponse of a general policy is not necessarily Markovian.
It should be clear from the definition of Algorithm 5 and Algorithm 6 that , , and does not depend on the history before step , therefore related value and Q-value functions are well defined for the corresponding steps. Now we can show the policies defined above are indeed certified.
For any , with probability at least , the following holds for any ,
because is CCE, and by definition .
Now suppose the claim is true for , consider the case. Consider a fixed tuple and let . Suppose was previously taken at episodes at the -th step. Let be the -algebra generated by all the random variables in until the -th episode. Then is a martingale differene sequence w.r.t. the filtration . By Azuma-Hoeffding and the definition of ,
with high probability. Combining this with the induction hypothesis,
where we have taken the maximum operator out of the summation in ,which does not increase the sum.
where is by the definition of CCE and is the induction hypothesis. The other direction is proved by performing smilar arguments on , , and . ∎
Finally we give the theoretical guarantee of the policies defined above.
and Lemma 3 upper bounds this quantity by
By definition of the induced policy, with probability at least , if we run Nash Q-learning (Algorithm 1) for episodes with
its induced policies (Algorithm 2) will be -optimal in the sense . ∎
Appendix D Proof for Nash V-learning
We will use the following notations several times later: suppose the state was visited at episodes at the -th step. Since the definition of depends on the state , we will show the dependence explicitly by writing when necessary and omit it when there is no confusion. We also define to be the number of times the state has been visited at the beginning of the -th episode. Finally we denote . Notice the definitions here are different from that in Appendix C.
The following lemma is a simple consequence of the update rule in Algorithm 3, which will be used several times later.
Let and suppose was previously visited at episodes at the -th step. The update rule in Algorithm 3 is equivalent to the following equations.
We first give Algorithm 7: the min-player counterpart of Algorithm 3. Almost everything is symmetric except the definition of loss function to keep it non-negative.
D.2 Learning values
As usual, we begin with learning the value of the Markov game. We begin with an auxiliary lemma, which justifies our choice of confidence bound.
Let and suppose state was previously taken at episodes at the -th step. Choosing and , with probability , for any , there exist a constant s.t.
We prove the first inequality. The proof for the second inequality is similar. We consider thoughout the proof a fixed . Define as the -algebra generated by all the random variables before the -th episode. Then is a martingale sequence w.r.t. the filtration . By Azuma-Hoeffding,
where is the weighted regret in the first times of visiting state , with respect to the optimal policy in hindsight, in the following adversarial bandit problem. The loss function is defined by
with weight . We note the weighted regret can be rewrite as where is argmax for (13), and the loss function satisfies
Therefore, Algorithm 3 is essentially performing follow the regularized leader (FTRL) algorithm with changing step size for each state to solve this adversarial bandit problem. The policy we are using is and the optimistic biased estimator
A more detailed discussion on how to solve the weighted adversarial bandit problem is included in Appendix F. Note that is monotonic inscreasing, i.e. . By Lemma 17, we have
with probability . Finally by a union bound over all , we finish the proof. ∎
We now prove the following Lemma 15, which is an analoge of Lemma 3 in Nash Q-learning.
For any , choose hyperparameters as in (6) for large absolute constant and . Then, with probability at least , Algorithm 3 and 7 will jointly provide the following guarantees
for all .
.
We proof the first claim by backward induction. The claim is true for . Asumme for any s, , . For a fixed and episode , let and suppose was previously visited at episodes at the -th step. By Bellman equation,
Comparing with the decomposition of in Equation (11) and use Lemma 14, we can see if , then . Similar by taking , we also have .
The second cliam is to bound . Similar to what we have done in Nash Q-learning analysis, taking the difference of Equation (11) and Equation (12),
Taking the summation w.r.t. , we begin with the first two terms,
where is by changing the order of summation and is by Lemma 11. Putting them together,
Recursing this argument for gives
Expanding this formula repeatedly and apply pigeonhole argument we have
D.3 Certified policies
As before, we construct a series of new policies in Algorithm 8. Notice is related to defined in Algorithm 4 by . Also we need to consider value and Q-value functions of general policies which does not depend on the hostory before the -th step. See Appendix C.2 for details. Again, we can show the policies defined above are indeed certified.
For any , with probability at least , the following holds for any ,
We prove one side by induction and the other side is similar. The claim is trivially satisfied for . Suppose it is ture for , consider a fixed state . Let and suppose was previously visited at episodes at the -th step. Then using Lemma 13,
where is by using Lemma 14 and the definition of , and is by induction hypothesis. ∎
Equipped with the above lemmas, we are now ready to prove Theorem 5.
and Lemma 15 upper bounds this quantity by
By definition of the induced policy, with probability at least , if we run Nash V-learning (Algorithm 3) for episodes with
its induced policies (Algorithm 4) will be -optimal in the sense . ∎
Appendix E Proofs of Hardness for Learning the Best Responses
In this section we give the proof of Theorem 6, and Corollary 8. Our proof is inspired by a computational hardness result for adversarial MDPs in [37, Section 4.2], which constructs a family of adversarial MDPs that are computationally as hard as an agnostic parity learning problem.
Section E.1, E.2, E.3 will be devoted to prove Theorem 6, while Corollary 8 is proved in Section E.4. Towards proving Theorem 6, we will:
(Section E.2) Define a series of problems where a solution in problem implies another.
(Section E.3) Based on the believed computational hardness of learning paries with noise (Conjecture 7), we conclude that finding the best response of non-Markov policies is computationally hard.
We now describe a Markov game inspired the adversarial MDP in [37, Section 4.2]. We define a Markov game in which we have states, , (the initial state) and (the terminal state) In the states are denoted by instead. Here we slightly change the notation to make it different from the notation of the actions. In each state the max-player has two actions and , while the min-player has two actions and . The transition kernel is deterministic and the next state for steps is defined in Table 2:
At the -th step, i.e. states and , the next state is always regardless of the action chosen by both players. The reward function is always except at the -th step. The reward is determined by the action of the min-player, defined by
At the beginning of every episode , both players pick their own policies and , and execute them throughout the episode. The min-player can possibly pick her policy adaptive to all the observations in the earlier episodes. The only difference from the standard Markov game protocol is that the actions of the min-player except the last step will be revealed at the beginning of each episode, to match the setting in agnostic learning parities (Problem 2 below). Therefore we are actually considering a easier problem (for the max-player) and the lower bound naturally applies.
E.2 A series of computationally hard problems
We first introduce a series of problems and then show how the reduction works.
Problem 2
Let be a vector in , and .The parity of on is the boolean function . In words, outputs if the number of ones in the subvector is even and otherwise. A uniform query oracle for this problem is a randomized algorithm that returns a random uniform vector , as well as a noisy classification which is equal to w.p. and w.p. . All examples returned by the oracle are independent. The learning parity with noise problem consists in designing an algorithm with access to the oracle such that,
We remark that Problem 2.3 is the formal definition of learning parity with noise [20, Definition 2], which is conjectured to be computationally hard in the community (see also Conjecture 7).
Problem 2.3 reduces to Problem 2.2
Step 2: Construct estimators using additional data ,
Pick . When , with probability at least , we have
Problem 2.2 reduces to Problem 2.1:
Problem 2.1 reduces to Problem 1:
Consider the Markov game constructed above with . The only missing piece we fill up here is the policy of the min-player, which is constructed as following. The min-player draws a sample from the uniform query oracle, then taking action at the step if and otherwise. For the -th step, the min-player take action if and otherwise. Also notice the policy of the max-player can be descibed by a set where he takes action at step if and otherwise. As a result, the max-player receive non-zero result iff .
by the -approximation guarantee.
E.3 Putting them together
So far, we have proved that Solving Problem 1 implies solving Problem 2.3, where Problem 1 is the problem of learning -approximate best response in Markov games (the problem we are interested in), and Problem 2.3 is precisely the problem of learning parity with noise . This concludes the proof.
E.4 Proofs of Hardness Against Adversarial Opponents
Corollary 8 is a direct consequence of Theorem 6, as we will show now.
We only need to prove a polynomial time no-regret algorithm also learns the best response in a Markov game where the min-player following non-Markov policy . Then the no-regret guarantee implies,
where is the policy of the max-player in the -th episode. If we choose uniformly randomly from , then
Choosing , and the running time of the no-regret algorithm is still to learn the -approximate best response.
To see that the Corollary 8 remains to hold for policies that are Markovian in each episode and non-adaptive, we can take the hard instance in Theorem 6 and let denote the min-player’s policy in the -th episode. Note that each is Markovian and non-adaptive on the observations in previous episodes. If there is a polynomial time no-regret algorithm against such , then by the online-to-batch conversion similar as the above, the mixture of learns a best response against in polynomial time.
Appendix F Auxiliary Lemmas for Weighted Adversarial Bandit
In this section, we formulate the bandit problem we reduced to in the proof of Lemma 14. Although the machnisms are already well understood, we did not find a good reference of Follow the Regularized Leader (FTRL) algorithm with
For completeness, we give the detailed derivation here.
Define the filtration by the -algebra generated by . Then the regret can be defined as
We can easily check the definitions here is just an abstract version of that in the proof of Lemma 14 with rescaling. To state the regret guarantee, we also define for any . Now we can upper bound the regret by
Following Algorithm 9, with probability , for any and we have
The regret can be decomposed into three terms
and we bound in Lemma 19, in Lemma 20 and in Lemma 21.
Setting , the conditions in Lemma 19 and Lemma 21 are satisfied. Putting them together and take union bound, we have with probability
The rest of this section is devoted to the proofs of the Lemmas used in the proofs of Lemma 17. We begin the following useful lemma adapted from Lemma 1 in , which is crucial in constructing high probability guarantees.
For any sequence of coefficients s.t. is -measurable, we have with probability ,
Define . By definition,
where is because for all .
where is because for any and . Here we are using the condition to guarantee the condition is satisfied.
Equipped with the above bound, we can now prove the concentration result.
The claim is proved by taking the union bound. ∎
Using Lemma 18, we can bound the separately as below.
If for all , with probability , for any and ,
We use the standard analysis of FTRL with changing step size, see for example Exercise 28.13 in . Notice the essential step size is ,
where is by using Lemma 18 with . The any-time guarantee is justifed by taking union bound. ∎
With probability , for any ,
With probability , for any and any , if is non-increasing in ,
Then for all the , apply Lemma 18 with . Sine now , the condition in Lemma 18 is satisfied. As a result,
Since any is a convex combination of , by taking the union bound over , we have