theoTheorem \NewEnvironcommentblock \BODY \NewEnvirondraftblock \BODY
Learning in Markov Games with Adaptive Adversaries: Policy Regret, Fundamental Barriers, and Efficient Algorithms
Abstract
We study learning in a dynamically evolving environment modeled as a Markov game between a learner and a strategic opponent that can adapt to the learner’s strategies. While most existing works in Markov games focus on external regret as the learning objective, external regret becomes inadequate when the adversaries are adaptive. In this work, we focus on policy regret – a counterfactual notion that aims to compete with the return that would have been attained if the learner had followed the best fixed sequence of policy, in hindsight. We show that if the opponent has unbounded memory or if it is non-stationary, then sample-efficient learning is not possible. For memory-bounded and stationary, we show that learning is still statistically hard if the set of feasible strategies for the learner is exponentially large. To guarantee learnability, we introduce a new notion of consistent adaptive adversaries, wherein, the adversary responds similarly to similar strategies of the learner. We provide algorithms that achieve policy regret against memory-bounded, stationary, and consistent adversaries.
1 Introduction
Recent years have witnessed tremendous advances in reinforcement learning for various challenging domains in AI, from the game of Go (Silver et al., 2016, 2017, 2018), real-time strategy games such as StarCraft II (Vinyals et al., 2019) and Dota (Berner et al., 2019), autonomous driving (Shalev-Shwartz et al., 2016), to socially complex games such as hide-and-seek (Baker et al., 2019), capture-the-flag (Jaderberg et al., 2019), and highly tactical games such as poker game Texas hold’ em (Moravčík et al., 2017; Brown and Sandholm, 2018). Notably, most challenging RL applications can be systematically framed as multi-agent reinforcement learning (MARL) wherein multiple strategic agents learn to act in a shared environment (Yang and Wang, 2020; Zhang et al., 2021).
Despite the empirical successes, the theoretical foundations of MARL are underdeveloped, especially in settings where the learner faces adaptive opponents who can strategically adapt and react to the learner’s policies. Consider for example the optimal taxation problem in the AI economist (Zheng et al., 2020), a game that simulates dynamic economies that involve multiple actors (e.g., the government and its citizens) who strategically contribute to the game dynamics. The government agent learns to set a tax rate that optimizes for the economic equality and productivity of its citizens, whereas the citizens who perhaps have their own interests, respond adaptively to tax policies of the government agent (e.g., relocating to states that offer generous tax rates). Such adaptive behavior of participating agents is a crucial component in other applications as well, e.g., mechanism design (Conitzer and Sandholm, 2002; Balcan et al., 2005), optimal auctions (Cole and Roughgarden, 2014; Dütting et al., 2019).
The question of learning against adaptive opponents has been mostly studied under the framework of external regret, wherein the agent is required to compete with the best fixed policy in hindsight (Liu et al., 2022). However, external regret is not adequate to study adaptive opponents as it does not take into account the counterfactual response of the opponents. This motivates us to study MARL using the framework of policy regret (Arora et al., 2012), a counterfactual notion that aims to compete with the return that would have been attained if the agent had followed the best fixed sequence of policy in hindsight. Even though policy regret is now a standard notion to study adaptive adversaries and has been extensively studied in online (bandit) learning (Merhav et al., 2002; Arora et al., 2012; Malik et al., 2022) and repeated games (Arora et al., 2018), it has not received much attention in a multiagent reinforcement learning setting. In this paper, we aim to fill in this gap. We consider two-player Markov games (MGs) (Shapley, 1953; Littman, 1994) as a model for MARL, wherein one agent (the learner) learns to act against an adaptive opponent. We provide a series of negative and positive results for policy regret minimization in Markov games, highlighting the fundamental limits of learning and showcasing key principles underpinning the design of efficient learning algorithms against adaptive adversaries.
Fundamental barriers.
We first show that any learner must incur a linear policy regret against an adaptive opponent who can adapt and remember the learner’s past policies (Theorem 1). When the opponent has a bounded memory span, any learner must require an exponential number of samples to obtain an -suboptimal policy regret, even with the weakest form of memory wherein the opponent is oblivious (Theorem 2). When the memory-bounded opponent’s response is stationary, i.e., the response function does not vary with episodes, learning is still statistically hard when the learner’s policy set is exponentially large, as in this case the policy regret necessarily scales polynomially with the cardinality of the learner’s policy set (Theorem 3).
Efficient algorithms.
Motivated by these statistical hardness results, we consider a structural condition on the response of the opponents, which we refer to as consistent behavior, wherein the opponent responds similarly to similar sequences of policies (5). We propose two algorithms OPO-OMLE (Algorithm 1) and APE-OVE (Algorithm 3) that obtain policy regret against -memory bounded, stationary, and consistent adversaries, for and , respectively.
-
•
For memory length : We show that OPO-OMLE obtains a policy regret upper bound of , when the learner’s policy set is the set of all deterministic Markov policies, where is the episode length, is the number of states, and are the numbers of actions for the learner and the opponent, respectively, and is the number of episodes.
-
•
For general memory length : We show that APE-OVE obtains a policy regret upper bound of , where is an instance-dependent quantity that features the minimum positive visitation probability.
We provide a summary of our main results in Table 1.
Opponent’s Adaptive Behavior | Policy Regret |
Unbounded memory | |
-memory bounded () | |
-memory bounded + stationary () | |
-memory bounded + stationary + consistent | |
-memory bounded + stationary + consistent |
2 Related work
Learning in Markov games.
Learning problems in Markov games have been studied extensively in the MARL literature. Most existing works focus on learning Nash equilibria either with known dynamics or infinite data (Littman, 1994; Hu and Wellman, 2003; Hansen et al., 2013; Wei et al., 2020), or otherwise in a self-play setting wherein we control all the players (Wei et al., 2017; Bai et al., 2020; Bai and Jin, 2020; Xie et al., 2020; Liu et al., 2021), or in an online setting wherein we control one player to learn against other potentially adversarial players (Brafman and Tennenholtz, 2002; Wei et al., 2020; Tian et al., 2021; Jin et al., 2022). Other related work focuses on exploiting sub-optimal opponents via no-external regret learning (Liu et al., 2022) and studying Stackelberg equilibria in two-player general-sum turn-based MGs, wherein only one player is allowed to take actions in each state (Ramponi and Restelli, 2022).
Policy regret in online learning settings.
Policy regret minimization has been studied mostly in online (bandit) learning problems. It was first studied in a full information setting (Merhav et al., 2002) and extended to the bandit setting and more powerful competitor classes using swap regret and -regret (Arora et al., 2012). A lower bound of on policy regret in a bandit setting was provided by Dekel et al. (2014) and was later extended to action space with metric (Koren et al., 2017a, b). A long line of works studies (complete) policy regret in “tallying” bandits, wherein an action’s loss is a function of the number of the action’s pulls in the previous rounds (Heidari et al., 2016; Levine et al., 2017; Seznec et al., 2019; Lindner et al., 2021; Awasthi et al., 2022; Malik et al., 2022, 2023).
Beyond online (bandit) learning, policy regret has been studied in several more challenging settings. In Arora et al. (2018) authors study the notion of policy equilibrium in repeated games (Markov games with ) when agents follow no-policy regret algorithms. A more complete characterization of the learnability in online learning with dynamics, where the loss function additionally depends on time-evolving states, was given in Bhatia and Sridharan (2020). Finally, in Dinh et al. (2023), authors study policy regret in online MDP, where an adversary who follows a no-external regret algorithm generates the loss functions, which effectively alleviates policy regret minimization to the standard external regret minimization in online MDPs.
3 Problem setup
Markov games.
In this paper, we use the framework of Markov Games to study an interactive multi-agent decision-making and learning environment (Shapley, 1953). Markov games extend Markov decision processes (MDPs) to multiplayer scenarios, where each agent’s action affects not only the environment but also the subsequent state of the game and the actions of other agents. Formally, a standard two-player Markov Game (MG) is specified by a tuple . Here, denotes the state space with cardinality , is the action space of the first player (called learner) with cardinality , is the action space of the second player (referred to as an opponent or an adversary) with cardinality , is the time horizon for each game. are the transition kernels with each specifying the probability of transitioning to the next state given the current state, learner’s action, and adversary’s action ( denotes the set of all probability distributions over ). Finally, are the (expected) reward functions with each . For simplicity, we assume the learner knows the reward function.111Our results immediately generalize to unknown reward functions, as learning the transitions is more difficult than learning the reward functions in tabular MGs.
Each episode begins in a fixed initial state . At step , the learner observes the state and picks her action while the opponent/adversary picks an action . As a result, the learner observes , receives reward and the environment transitions to . The episode terminates after steps.
Policies and value functions.
A learner’s policy (also referred to as strategy) is any tuple where . A policy is said be Markovian if for every . Similarly, an adversary’s policy is any tuple where . is said to be Markovian if for every , . For simplicity, we will focus only on Markov policies for both the learner and the adversary in this paper. Let (respectively, ) be the set of all feasible policies of the learner (respectively, the adversary). The value of a policy tuple at step in state , denoted by is the expected accumulated reward starting in state from step , if the learner and the adversary follow and respectively, i.e., , where the expectation is with respect to the trajectory distributed according to , , and . We also denote the action-value function . Given a , we write . For any , , , denote for any .
Adaptive adversaries.
We allow the adversary to be adaptive, i.e., the adversary can choose their policy in episode based on the learner’s policies on episodes . We assume that the adversary is deterministic and has unlimited computational power, i.e., the adversary can plan, in advance, using as much computation as needed, as to how they would react in each episode to any sequence of policies. Formally, the adversary defines in advance a sequence of deterministic functions , where . The input to each response function is an entire history of the learner’s policies, including her policy in episode . Therefore, if the learner follows policies , the adversary responds with policy in episode . Since the response function depends on the learner’s policy at round , our setup is essentially a principal-follower model, akin to Stackelberg games (Letchford et al., 2009; Blum et al., 2014) and mechanism design for learning agents (Braverman et al., 2019). In this context, the principal agent (mechanism designer or learner) publicly declares a strategy before committing to it, allowing the followers to subsequently choose their strategies based on their understanding of the principal’s decisions.
We evaluate the learner’s performance using the notion of policy regret (Merhav et al., 2002; Arora et al., 2012), which compares the return on the first episodes to the return of the best fixed sequence of policy in hindsight. Formally, the learner’s policy regret after episodes is defined as
(1) |
Policy regret has been studied in online (bandit) learning (Merhav et al., 2002; Arora et al., 2012) and repeated games (Arora et al., 2018), yet, to the best of our knowledge, it has never been studied in Markov games. Policy regret differs from the more common definition of external regret defined as , which is used in (Liu et al., 2022). However, external regret is inadequate for measuring the learner’s performance against an adaptive adversary. Indeed, when the adversary is adaptive, the quantity is hardly interpretable anymore – see (Arora et al., 2012) for a more detailed discussion.
As a warm-up, we show in the following example that, policy regret minimization generalizes the standard Nash equilibrium learning problem in zero-sum two-player Markov games.
Example 3.1 (Nash equilibrium).
Consider the adversary with the following behavior: for any Markov policy of the learner, the adversary ignores all the learner’s past policies and respond only to the current policy with a Markov policy such that for all , , where the minimum is taken over all the possible Markov policies for the adversary. By Filar and Vrieze (2012), such an exists. In addtion, there also exists a Markov policy such that for all , . The policies is a Nash equilibrium (Nash, 1950) of the Markov game. For such an adversary, the policy regret becomes . This Nash equilibrium can be computed using, e.g., the Q-ol algorithm of (Tian et al., 2021) with (policy) regret.222Q-ol algorithm solves a problem that is a bit more general than the policy regret minimization in Footnote 2 in that as long as the benchmark is the Nash value , regardless of the behavior of the adversary, the said rate for the policy regret is guaranteed. V-learning algorithm of Jin et al. (2021) solves a similar problem but in a self-play setting; it is not immediately clear if their rate remains in the online setting.
Additional notation.
We write to mean . We use to represent an absolute constant that can have different values in different appearances.
4 Fundamental barriers for learning against adaptive adversaries
In this section, we show that achieving low policy regret in Markov games against an adaptive adversary is statistically hard when (i) the adversary has an unbounded memory (see Definition 1), or (ii) the adversary is non-stationary, or (iii) the learner’s policy set is exponentially large (even if the adversary is memory-bounded and stationary).
To begin with, we show that any learner must incur a linear policy regret in the general setting.
Theorem 1.
For any learner, there exists an adaptive adversary and a Markov game instance such that .
The construction in the proof of Theorem 1, shown in Section A.1, takes advantage of the unbounded memory of the adversary, that can remember the policy the learner takes in the first episode. This motivates us to consider memory-bounded adversaries, a situation that is quite similar to the online bandit learning setting of Arora et al. (2012).
Definition 1 (-memory bounded adversaries).
An adversary is said to be -memory bounded for some if for every and policy sequence , we have .
Is it possible to efficiently learn against memory-bounded adversaries? Unlike online bandit learning, we show that learning in Markov games is statistically hard even when the adversary is memory-bounded, even for the weakest case of memory and the adversary’s policy set is small.
Theorem 2.
For any learner and any and , , there exists an oblivious adversary (i.e., ) with the policy space of cardinality at least , a Markov game (with states, actions for the learner, actions for the adversary) such that .
Theorem 2 claims that competing even with an oblivious adversary that employs a small set of policies takes an exponential number of samples (e.g., set ). The construction of the lower bound follows the construction used to prove a lower bound for learning latent MDPs (Kwon et al., 2021) and a reduction of a given latent MDP into a Markov game (Liu et al., 2022); we give complete details in Section A.2. The proof of Theorem 2 utilizes the fact that the sequence of response function an adversary utilizes can be completely arbitrary. It implies that we need to constrain the adversary further beyond being memory-bounded. A natural restriction we consider given the construction is to assume stationarity, i.e. consider adversaries whose response functions do not change over time.
Definition 2 (Stationary adversaries).
An -memory bounded adversary is said to be stationary if there exists an such that for all and , we have .
The stationary behavior is sometimes also referred to as “g-restricted” in the online learning literature– see the related discussion of Malik et al. (2022). In the special case wherein the adversary is both stationary and oblivious (i.e., ), the Markov game reduces to the standard single-agent MDP (and the policy regret reduces to standard regret of the MDP) – this setting has been studied in (Zhang et al., 2023). We, therefore, only need to consider .
Connections to Stackelberg equilibrium in general-sum Markov games.
While seemingly restrictive, policy regret minimization with -memory bounded and stationary adversaries already subsumes the problem of learning Stackelberg equilibrium (Von Stackelberg, 2010) in general-sum Markov games (Ramponi and Restelli, 2022).333Ramponi and Restelli (2022) consider a more restrictive setting of turn-based Markov games, wherein at each state only one player is allowed to take actions. In addition, they require the opponents to respond with only deterministic policies. In general-sum Markov games, the adversary (“follower”) aims at maximizing his own reward function given any policy of the learner (“leader”). That is, the adversary is -memory bounded, and the response function corresponds to a function that selects the best response policy to any given policy of the learner. The benchmark in policy regret then becomes the Stackelberg equilibrium.
Is sample-efficient learning possible against -memory bounded and stationary adversaries? One can notice an immediate approach to learning against a -memory bounded and stationary adversaries is to simply view the problem as a -armed bandit problem and apply any state-of-the-art bandit algorithm (Audibert and Bubeck, 2009) to obtain . However, scaling polynomially with the learner’s policy class is not desirable when the class is exponentially large (e.g., when the learner’s policy class is the set of all deterministic policies, then ). And in fact, we cannot avoid polynomial scaling with the cardinality of the learner’s policy class in general.
Theorem 3.
For any learner with policy class , there exists a -memory bounded and stationary adversary and a Markov game with such that .
Note that the lower bound applies to , and, therefore, to any . Proof in Section A.3.
5 Efficient algorithms for learning against adaptive adversaries
Thus far, we have shown that learning against an adaptive adversary in Markov games is statistically hard, even when the adversary is -memory bounded and stationary. The reason that stationarity is not sufficient for efficient learning (which the lower bound in Theorem 3 exploits for the construction of a hard instance) comes from the unstructured response of the adversary in the worst case. Even if the learner plays nearly identical sequence of policies differing only on a small number of states and steps, the adversary can essentially respond completely arbitrarily. In other words, knowing the policies that the adversary plays in response to the policies of the learner (i.e., observing the values of the response function at specific inputs) reveals zero information about the function on previously seen inputs. Thus, the learner is required to explore all the policies in to be able to identify an optimal policy. This motivates us to consider an additional structural assumption on how the adversary responds to the learner’s policies. We assume that the adversary is consistent in response to two similar sequences of policies of the learner. In essence, given that the learner plays two sequences of policies that agree on certain states () and steps () – then, we assume that the opponent also responds with two sequences of policies that agree on the same states and steps. We refer to this behavior as consistent; a formal definition follows.
Definition 3 (Consistent adversaries).
An -memory bounded and stationary adversary is said to be consistent if, for any two sequences of learner’s policies and , and any , if , then . Otherwise, we say that the opponent’s response is arbitrary.
We argue that the definition above is natural if we are to consider opponents that are self-interested strategic agents, and not simply a malicious adversary. So, it would be in an opponent’s interest to play in a somewhat consistent manner. Playing optimally after figuring out the learner’s strategy would indeed require playing consistently. An opponent that plays completely arbitrary, while challenging to learn anything from, also does not improve their value function. Some remarks are in order.
Remark 1 (-approximately consistent adversaries).
Our algorithms and results for consistent adversaries easily extend to -approximately consistent adversaries for any fixed constant . An adversary is said to be -approximately consistent if, for any and , and any , if , then . For simplicity, we stick with 3 (i.e., ) to best convey our algorithmic and theoretical ideas.
Remark 2.
While our notion of consistent behaviors is quite natural, it might as well be that there is a more general notion of complexity for the opponent’s response function classes that fully characterizes learnability in this setting. This likely requires the definition of appropriate norms in the input policy space and the output policy space , and a certain notion of predictability for the opponent’s response function classes (e.g., in the spirit of Eluder dimension (Russo and Van Roy, 2013)), so that the learner can accurately estimate the opponent’s response function, without trying out all possible policies. This question goes beyond the scope of our current work and is left to a future investigation.
Remark 3.
To permit learnability in terms of external regret in Markov games, Liu et al. (2022) consider a policy-revealed setting, wherein the opponent reveals his current strategy to the learner at the end of each episode. No external regret is possible because the benchmark in external regret evaluates the learner’s comparator policy against the same policy that the opponent reveals. For policy regret, however, knowing the opponent’s strategy at the end of the episode gives the learner no advantage in general, as the counterfactual benchmark requires evaluating the learner’s policies against the policy sequence that the opponent would have reacted with. Indeed, our lower bound in Theorem 3 still applies to the policy-revealed setting.
For -memory bounded, stationary and consistent adversaries, we present two algorithms, one for and the other for general , with sublinear policy regret. We give special consideration to the case with as it helps with the exposition of key algorithmic design principles rather simply. For simplicity, we focus on being the set of all deterministic policies (i.e., ). Our algorithms and upper bounds easily extend to any general with polynomial log-cardinality.
Assumption 5.1.
The learner’s policy class is the set of all deterministic policies.
A key component of our algorithms is using maximum likelihood estimation (MLE) (Geer, 2000) to estimate action distributions with which the opponent can respond. As is the convention in MLE analysis, we make a realizability assumption and use bracketing numbers to control the model class.
Assumption 5.2.
For any policy that the adversary employs and for all , assume , where the set has -bracketing number w.r.t. norm, defined as the minimum number of -brackets with , that are needed to cover .
Intuitively, restricting the adversary to be consistent, allows the learner to predict the opponent’s response from previous episodes to similar settings. The learner can collect the data from what the adversary responds to and learn his response function. Given the consistent behavior, for every , the number of action distributions that the adversary can respond with cannot exceed the number of possible action distributions that the learner can construct in state at step . Given is the set of all deterministic policies, we only need to learn action distributions that the adversary can respond at any state and step. We begin with the oblivious case of and end up resolving the general case after.
5.1 Memory of length
We first consider the memory length of for stationary and consistent adversaries.
Algorithm.
We propose OPO-OMLE (Algorithm 1), which represents Optimistic Policy Optimization with Optimistic Maximum Likelihood Estimation. OPO-OMLE is a variant of the optimistic value iteration algorithm of (Azar et al., 2017), wherein we build an upper confidence bound on the value function for any policy , using a bonus function and optimistic MLE (Liu et al., 2023). The upper confidence bound is based on two levels of optimism: a bonus term that is based on confidence intervals on the transition kernels and the parameter version spaces of the adversary’s response at each level . The parameter version spaces construct a set of parameters that are close to the MLE solution, up to an error , in terms of the log-likelihood in the observed actions taken by the adversary.
Theoretical guarantee.
We now present a theoretical guarantee for OPO-OMLE.
Theorem 4.
In Algorithm 1, choose , where , and . With probability at least , we have
Theorem 4 shows that OPO-OMLE achieves -policy regret bounds against -memory bounded, stationary and consistent adversaries in Markov games. Notably, the policy regret depends only on the log-cardinality of the learner’s policy class and the log-bracketing number of the set of action distributions with which the adversary responds to the learner. Since , the bound translates into .
Finally, comparing the lower bound of for single-agent MDPs (Domingues et al., 2021), which applies to this setting, the dominating term in our upper bound (Theorem 4) is worse only by a factor of – this is due to the need to learn the opponent’s moves.444A factor in is perhaps unrelated to the need to learn the opponent’s moves. This factor perhaps can be removed with a more intricate algorithm that takes into account the variance of transition kernels.
5.2 Memory of any fixed length
We now consider the general case of stationary and consistent adversaries that have a memory of any fixed length . Note that we assume that the learner knows (an upper bound of) . Playing against a -memory bounded adversary does not stop the learner from changing her policies often, as the adversary does not remember any policies that the learner has taken previously. However, a sublinear policy regret learner against -memory bounded adversaries should switch her policies as less frequently as possible, and at most only sublinear time switches. The reason is that every policy switch will add a constant cost to policy regret, as the benchmark in the policy regret is with the best fixed sequence of policy. This makes the regret minimizer OPO-OMLE unable to generalize from to any fixed . Instead, we propose a low-switching algorithm, in which the learner learns to play exploratory policies repeatedly over consecutive episodes so that the switching cost is reduced. Here, as in Jin et al. (2020), exploratory policies are those with good coverage over the state space from which uniform policy evaluation can be performed to identify near-optimal policies.
Algorithm.
We propose APE-OVE (Algorithm 3), which represents Adaptive Policy Elimination by Optimistic Value Estimation. APE-OVE generalizes the adaptive policy elimination algorithm of (Qiao et al., 2022) for MDPs to Markov games with unknown opponents. The high-level idea of our algorithm is as follows. The learner maintains a version space of remaining high-quality policies after each epoch – which is a sequence of consecutive episodes with an appropriate length (epoch has a length of in APE-OVE).
-
•
Layerwise exploration (5 of Algorithm 3): Within each epoch, the learner performs layerwise exploration (Algorithm 4), wherein we devise high-coverage sampling policies that aim at exploring in step and epoch , starting from the lowest layer up to the highest layer . However, some states might not be visited frequently by any policy, thus taking a large amount of exploration. They, fortunately, do not significantly affect the value functions of any policy and thus can be identified (by storing in ) and removed from exploration quickly (via the truncated transition kernel estimates obtained in Algorithm 5). Layerwise exploration requires value estimation uniformly over all policies. However, the learner does not know the adversary’s response . To address this, we use optimistic value estimation via the optimistic MLE in the collected data of the adversary’s moves (Algorithm 6).
-
•
Version space refinement (6 of Algorithm 3): After the layerwise exploration, we refine the version space of policies that the learner can choose from at the next epoch using the optimistic value estimation based on the empirical transition kernels , the parameter version space and the set of infrequent transition samples given any reward function . The version space is designed in such a way that the expected value for the learner to play any policy from the version space is guaranteed to be no worse than compared to the optimal, with high probability.
Note that we do not directly use the reward function in the version space refinement. Instead, we use a truncated reward function that is zero for any in the infrequent transition set . This truncated design is critical to our analysis and the subsequent guarantees, e.g., see Lemma B.10. For the truncated reward functions, the backup step in Algorithm 6 should be understood as: .
We now present a theoretical guarantee for APE-OVE. We bound policy regret in terms of an instance-dependent quantity, namely minimum positive visitation probability, defined as follows.
Definition 4 (Minimum positive visitation probability).
The quantity is said to be the minimum positive visitation probability, where
The minimum positive visitation probability – which has also been used recently to characterize instance-dependent bounds for PAC RL (Tirinzoni et al., 2023), is the minimal probability that any state-action pair can be visited at a time step, given they can be visited at all. This implies that during the exploration phase if we try a certain policy for episodes and encounter at step (in any episode), on average, would visit for times out of episodes. This, along with the assumption that the adversary is consistent enables us to estimate the adversary’s response to any that is visited within an estimation error of order . Note that we do not need to take care of the adversary’s response to any that is not visited as these tuples are deemed infrequent by any policy and thus have negligible impact on the value estimation.
Theorem 5.
Playing APE-OVE against any -memory bounded, stationary, and consistent adversaries in any Markov game for episodes, with , and
guarantees that with probability at least ,
where is the minimum positive visitation probability and is as defined in Algorithm 3.
Theorem 5 asserts a policy regret bound against -memory bounded, stationary, and consistent adversaries in Markov games. Notably, our bounds grow linearly with memory length . Compared to the bound in Theorem 4, given is sufficiently large, the bound in Theorem 5 deals with the general memory length at the cost of a worse dependence on all other factors . Dealing with -approximately consistent adversaries (see Remark 1) will incur an additional term to the policy regret.
6 Discussion
In this paper, we study learning in Markov games against adaptive adversaries and highlight the statistical hardness of learning in this setting. We identify a natural structural assumption on the response function of the adversary, wherein we provide two distinct algorithms that attain policy regret, one for the unit memory and the other for general memory length.
There are several notable gaps in our current understanding of policy regret in Markov games. First, we do not know if the dependence on the minimum positive visitation probability when learning against -memory bounded opponents is necessary. In other words, can we derive minimax bounds that hold for any problem instance, regardless of how small is, for the case of general ? While it seems to us that such a dependence is necessary (as it seems difficult otherwise to learn the opponent’s response while also learning high-return policies), yet we are unable to prove or reject this conjecture. Second, as we state in Remark 2, we do not currently know the necessary conditions on the opponent’s response functions for learnability in this setting. This might as well require an alternate condition that generalizes our notion of consistent behaviors and fully characterizes the predictability of the opponent (in a similar way as the VC dimension characterizes learnability in statistical learning theory). Third, our theory currently views information, and not computation, as the main bottleneck and aims for policy regret minimization without worrying about computational complexity. As a result, some of the steps in our algorithms happen to be computationally inefficient. In particular, selecting a policy that maximizes the optimistic value function requires iterating over the learner’s policy set, which is exponentially large. Can we hope for computationally efficient no-policy regret algorithms in Markov games? Fourth, our policy regret bounds scale with the cardinality of the state space and the action space, which could be large in many practical settings. Can we avoid such dependence by employing function approximation (e.g., neural networks)?
Acknowledgments and Disclosure of Funding
This research was supported, in part, by the DARPA GARD award HR00112020004, NSF CAREER award IIS-1943251, funding from the Institute for Assured Autonomy (IAA) at JHU, and the Spring’22 workshop on “Learning and Games” at the Simons Institute for the Theory of Computing.
References
- Agarwal et al. [2020] Alekh Agarwal, Sham Kakade, Akshay Krishnamurthy, and Wen Sun. Flambe: Structural complexity and representation learning of low rank MDPs. Advances in neural information processing systems, 33:20095–20107, 2020.
- Arora et al. [2012] Raman Arora, Ofer Dekel, and Ambuj Tewari. Online bandit learning against an adaptive adversary: from regret to policy regret. arXiv preprint arXiv:1206.6400, 2012.
- Arora et al. [2018] Raman Arora, Michael Dinitz, Teodor Vanislavov Marinov, and Mehryar Mohri. Policy regret in repeated games. Advances in Neural Information Processing Systems, 31, 2018.
- Audibert and Bubeck [2009] Jean-Yves Audibert and Sébastien Bubeck. Minimax policies for adversarial and stochastic bandits. In COLT, pages 217–226, 2009.
- Awasthi et al. [2022] Pranjal Awasthi, Kush Bhatia, Sreenivas Gollapudi, and Kostas Kollias. Congested bandits: Optimal routing via short-term resets. In International Conference on Machine Learning, pages 1078–1100. PMLR, 2022.
- Azar et al. [2017] Mohammad Gheshlaghi Azar, Ian Osband, and Rémi Munos. Minimax regret bounds for reinforcement learning. In International conference on machine learning, pages 263–272. PMLR, 2017.
- Bai and Jin [2020] Yu Bai and Chi Jin. Provable self-play algorithms for competitive reinforcement learning. In International conference on machine learning, pages 551–560. PMLR, 2020.
- Bai et al. [2020] Yu Bai, Chi Jin, and Tiancheng Yu. Near-optimal reinforcement learning with self-play. Advances in neural information processing systems, 33:2159–2170, 2020.
- Baker et al. [2019] Bowen Baker, Ingmar Kanitscheider, Todor Markov, Yi Wu, Glenn Powell, Bob McGrew, and Igor Mordatch. Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019.
- Balcan et al. [2005] M-F Balcan, Avrim Blum, Jason D Hartline, and Yishay Mansour. Mechanism design via machine learning. In 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS’05), pages 605–614. IEEE, 2005.
- Berner et al. [2019] Christopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław Dębiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, et al. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019.
- Bhatia and Sridharan [2020] Kush Bhatia and Karthik Sridharan. Online learning with dynamics: A minimax perspective. Advances in Neural Information Processing Systems, 33:15020–15030, 2020.
- Blum et al. [2014] Avrim Blum, Nika Haghtalab, and Ariel D Procaccia. Learning optimal commitment to overcome insecurity. Advances in Neural Information Processing Systems, 27, 2014.
- Brafman and Tennenholtz [2002] Ronen I Brafman and Moshe Tennenholtz. R-max-a general polynomial time algorithm for near-optimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002.
- Braverman et al. [2019] Mark Braverman, Jieming Mao, Jon Schneider, and S Matthew Weinberg. Multi-armed bandit problems with strategic arms. In Conference on Learning Theory, pages 383–416. PMLR, 2019.
- Brown and Sandholm [2018] Noam Brown and Tuomas Sandholm. Superhuman AI for heads-up no-limit poker: Libratus beats top professionals. Science, 359(6374):418–424, 2018.
- Cole and Roughgarden [2014] Richard Cole and Tim Roughgarden. The sample complexity of revenue maximization. In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pages 243–252, 2014.
- Conitzer and Sandholm [2002] Vincent Conitzer and Tuomas Sandholm. Complexity of mechanism design. arXiv preprint cs/0205075, 2002.
- Dann et al. [2017] Christoph Dann, Tor Lattimore, and Emma Brunskill. Unifying PAC and regret: Uniform PAC bounds for episodic reinforcement learning. Advances in Neural Information Processing Systems, 30, 2017.
- Dekel et al. [2014] Ofer Dekel, Jian Ding, Tomer Koren, and Yuval Peres. Bandits with switching costs: regret. In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pages 459–467, 2014.
- Dinh et al. [2023] Le Cong Dinh, David Henry Mguni, Long Tran-Thanh, Jun Wang, and Yaodong Yang. Online Markov decision processes with non-oblivious strategic adversary. Autonomous Agents and Multi-Agent Systems, 37(1):15, 2023.
- Domingues et al. [2021] Omar Darwiche Domingues, Pierre Ménard, Emilie Kaufmann, and Michal Valko. Episodic reinforcement learning in finite MDPs: Minimax lower bounds revisited. In Algorithmic Learning Theory, pages 578–598. PMLR, 2021.
- Dütting et al. [2019] Paul Dütting, Zhe Feng, Harikrishna Narasimhan, David Parkes, and Sai Srivatsa Ravindranath. Optimal auctions through deep learning. In International Conference on Machine Learning, pages 1706–1715. PMLR, 2019.
- Filar and Vrieze [2012] Jerzy Filar and Koos Vrieze. Competitive Markov decision processes. Springer Science & Business Media, 2012.
- Geer [2000] Sara A Geer. Empirical Processes in M-estimation, volume 6. Cambridge university press, 2000.
- Hansen et al. [2013] Thomas Dueholm Hansen, Peter Bro Miltersen, and Uri Zwick. Strategy iteration is strongly polynomial for 2-player turn-based stochastic games with a constant discount factor. Journal of the ACM (JACM), 60(1):1–16, 2013.
- Heidari et al. [2016] Hoda Heidari, Michael J Kearns, and Aaron Roth. Tight policy regret bounds for improving and decaying bandits. In IJCAI, pages 1562–1570, 2016.
- Hu and Wellman [2003] Junling Hu and Michael P Wellman. Nash q-learning for general-sum stochastic games. Journal of machine learning research, 4(Nov):1039–1069, 2003.
- Jaderberg et al. [2019] Max Jaderberg, Wojciech M Czarnecki, Iain Dunning, Luke Marris, Guy Lever, Antonio Garcia Castaneda, Charles Beattie, Neil C Rabinowitz, Ari S Morcos, Avraham Ruderman, et al. Human-level performance in 3d multiplayer games with population-based reinforcement learning. Science, 364(6443):859–865, 2019.
- Jin et al. [2020] Chi Jin, Akshay Krishnamurthy, Max Simchowitz, and Tiancheng Yu. Reward-free exploration for reinforcement learning. In International Conference on Machine Learning, pages 4870–4879. PMLR, 2020.
- Jin et al. [2021] Chi Jin, Qinghua Liu, Yuanhao Wang, and Tiancheng Yu. V-learning–a simple, efficient, decentralized algorithm for multiagent RL. arXiv preprint arXiv:2110.14555, 2021.
- Jin et al. [2022] Chi Jin, Qinghua Liu, and Tiancheng Yu. The power of exploiter: Provable multi-agent RL in large state spaces. In International Conference on Machine Learning, pages 10251–10279. PMLR, 2022.
- Koren et al. [2017a] Tomer Koren, Roi Livni, and Yishay Mansour. Bandits with movement costs and adaptive pricing. In Conference on Learning Theory, pages 1242–1268. PMLR, 2017a.
- Koren et al. [2017b] Tomer Koren, Roi Livni, and Yishay Mansour. Multi-armed bandits with metric movement costs. Advances in Neural Information Processing Systems, 30, 2017b.
- Kwon et al. [2021] Jeongyeol Kwon, Yonathan Efroni, Constantine Caramanis, and Shie Mannor. RL for latent MDPs: Regret guarantees and a lower bound. Advances in Neural Information Processing Systems, 34:24523–24534, 2021.
- Letchford et al. [2009] Joshua Letchford, Vincent Conitzer, and Kamesh Munagala. Learning and approximating the optimal strategy to commit to. In Algorithmic Game Theory: Second International Symposium, SAGT 2009, Paphos, Cyprus, October 18-20, 2009. Proceedings 2, pages 250–262. Springer, 2009.
- Levine et al. [2017] Nir Levine, Koby Crammer, and Shie Mannor. Rotting bandits. Advances in neural information processing systems, 30, 2017.
- Lindner et al. [2021] David Lindner, Hoda Heidari, and Andreas Krause. Addressing the long-term impact of ml decisions via policy regret. arXiv preprint arXiv:2106.01325, 2021.
- Littman [1994] Michael L Littman. Markov games as a framework for multi-agent reinforcement learning. In Machine learning proceedings 1994, pages 157–163. Elsevier, 1994.
- Liu et al. [2021] Qinghua Liu, Tiancheng Yu, Yu Bai, and Chi Jin. A sharp analysis of model-based reinforcement learning with self-play. In International Conference on Machine Learning, pages 7001–7010. PMLR, 2021.
- Liu et al. [2022] Qinghua Liu, Yuanhao Wang, and Chi Jin. Learning Markov games with adversarial opponents: Efficient algorithms and fundamental limits. In International Conference on Machine Learning, pages 14036–14053. PMLR, 2022.
- Liu et al. [2023] Qinghua Liu, Praneeth Netrapalli, Csaba Szepesvari, and Chi Jin. Optimistic MLE: A generic model-based algorithm for partially observable sequential decision making. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 363–376, 2023.
- Malik et al. [2022] Dhruv Malik, Yuanzhi Li, and Aarti Singh. Complete policy regret bounds for tallying bandits. In Conference on Learning Theory, pages 5146–5174. PMLR, 2022.
- Malik et al. [2023] Dhruv Malik, Conor Igoe, Yuanzhi Li, and Aarti Singh. Weighted tallying bandits: overcoming intractability via repeated exposure optimality. In International Conference on Machine Learning, pages 23590–23609. PMLR, 2023.
- Merhav et al. [2002] Neri Merhav, Erik Ordentlich, Gadiel Seroussi, and Marcelo J Weinberger. On sequential strategies for loss functions with memory. IEEE Transactions on Information Theory, 48(7):1947–1958, 2002.
- Moravčík et al. [2017] Matej Moravčík, Martin Schmid, Neil Burch, Viliam Lisỳ, Dustin Morrill, Nolan Bard, Trevor Davis, Kevin Waugh, Michael Johanson, and Michael Bowling. Deepstack: Expert-level artificial intelligence in heads-up no-limit poker. Science, 356(6337):508–513, 2017.
- Nash [1950] John F. Nash. Equilibrium points in -person games. Proceedings of the National Academy of Sciences, 36(1):48–49, 1950. doi: 10.1073/pnas.36.1.48.
- Qiao et al. [2022] Dan Qiao, Ming Yin, Ming Min, and Yu-Xiang Wang. Sample-efficient reinforcement learning with loglog (t) switching cost. In International Conference on Machine Learning, pages 18031–18061. PMLR, 2022.
- Ramponi and Restelli [2022] Giorgia Ramponi and Marcello Restelli. Learning in Markov games: can we exploit a general-sum opponent? In Uncertainty in Artificial Intelligence, pages 1665–1675. PMLR, 2022.
- Russo and Van Roy [2013] Daniel Russo and Benjamin Van Roy. Eluder dimension and the sample complexity of optimistic exploration. Advances in Neural Information Processing Systems, 26, 2013.
- Seznec et al. [2019] Julien Seznec, Andrea Locatelli, Alexandra Carpentier, Alessandro Lazaric, and Michal Valko. Rotting bandits are no harder than stochastic ones. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 2564–2572. PMLR, 2019.
- Shalev-Shwartz et al. [2016] Shai Shalev-Shwartz, Shaked Shammah, and Amnon Shashua. Safe, multi-agent, reinforcement learning for autonomous driving. arXiv preprint arXiv:1610.03295, 2016.
- Shapley [1953] Lloyd S Shapley. Stochastic games. Proceedings of the national academy of sciences, 39(10):1095–1100, 1953.
- Silver et al. [2016] David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of Go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
- Silver et al. [2017] David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of Go without human knowledge. nature, 550(7676):354–359, 2017.
- Silver et al. [2018] David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140–1144, 2018.
- Tian et al. [2021] Yi Tian, Yuanhao Wang, Tiancheng Yu, and Suvrit Sra. Online learning in unknown Markov games. In International conference on machine learning, pages 10279–10288. PMLR, 2021.
- Tirinzoni et al. [2023] Andrea Tirinzoni, Aymen Al-Marjani, and Emilie Kaufmann. Optimistic PAC reinforcement learning: the instance-dependent view. In International Conference on Algorithmic Learning Theory, pages 1460–1480. PMLR, 2023.
- Vinyals et al. [2019] Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019.
- Von Stackelberg [2010] Heinrich Von Stackelberg. Market structure and equilibrium. Springer Science & Business Media, 2010.
- Wei et al. [2017] Chen-Yu Wei, Yi-Te Hong, and Chi-Jen Lu. Online reinforcement learning in stochastic games. Advances in Neural Information Processing Systems, 30, 2017.
- Wei et al. [2020] Chen-Yu Wei, Chung-Wei Lee, Mengxiao Zhang, and Haipeng Luo. Linear last-iterate convergence in constrained saddle-point optimization. arXiv preprint arXiv:2006.09517, 2020.
- Xie et al. [2020] Qiaomin Xie, Yudong Chen, Zhaoran Wang, and Zhuoran Yang. Learning zero-sum simultaneous-move Markov games using function approximation and correlated equilibrium. In Conference on learning theory, pages 3674–3682. PMLR, 2020.
- Yang and Wang [2020] Yaodong Yang and Jun Wang. An overview of multi-agent reinforcement learning from game theoretical perspective. arXiv preprint arXiv:2011.00583, 2020.
- Zhang et al. [2021] Kaiqing Zhang, Zhuoran Yang, and Tamer Başar. Multi-agent reinforcement learning: A selective overview of theories and algorithms. Handbook of reinforcement learning and control, pages 321–384, 2021.
- Zhang [2006] Tong Zhang. From -entropy to KL-entropy: Analysis of minimum information complexity density estimation. 2006.
- Zhang et al. [2023] Zihan Zhang, Yuxin Chen, Jason D Lee, and Simon S Du. Settling the sample complexity of online reinforcement learning. arXiv preprint arXiv:2307.13586, 2023.
- Zheng et al. [2020] Stephan Zheng, Alexander Trott, Sunil Srinivasa, Nikhil Naik, Melvin Gruesbeck, David C Parkes, and Richard Socher. The AI economist: Improving equality and productivity with AI-driven tax policies. arXiv preprint arXiv:2004.13332, 2020.
Contents
Appendix A Missing proofs for Section 4
A.1 Proof of Theorem 1
Proof of Theorem 1.
The construction of a hard problem essentially follows the proof idea of Arora et al. [2012]. Policy regret requires the learner to compete with the best fixed sequence of policy in hindsight as if she could have changed her past policies. The lower bound utilizes this fact to construct an instance such that once the learner picks a particular policy in the first episode, she will receive a low reward for the remaining episodes. The only way to achieve a higher reward is to go back in time and select a different policy.
More formally, let’s consider any learner. Let be a policy that the learner commits in the first episode with the highest positive probability . Note that and are the inherent property of the learner and do not depend on the adversary and the Markov game as in the first episode, the learner has zero information about the adversary and the Markov game. Now let’s consider the adversary that depends only on the learner’s policy in the first episode and nothing else, i.e., for all and policy sequence , for some function . In addition, let such that if and otherwise, where and such that for all , . There exists a Markov game that always guarantees the existence of such (the constructions are fairly straightforward). Thus, with probability , we have . Note that the external regret for this construction is .
∎
A.2 Proof of Theorem 2
Proof of Theorem 2.
The proof follows from the two main arguments: (i) a reduction from any latent MDP [Kwon et al., 2021] to a Markov game with an adversary playing policies from a finite set of Markov policies, and (ii) a reduction from the notion of regret in latent MDPs to the policy regret w.r.t. an oblivious sequence of Markov policies.
Argument (i) is directly taken from [Liu et al., 2022, Proposition 5]. In particular, interacting with any latent MDP [Kwon et al., 2021] of latent variables, states, actions, time steps, and binary rewards is equivalent to interacting (from the perspective of the learner) a (simulated) Markov game against an adversary whose policies are chosen from a set of Markov policies. In particular, the simulated Markov game has states, actions for the learner, actions for the adversary, and time steps (see [Liu et al., 2022, Section A.4] for the detailed construction of the simulated Markov game from any latent MDP). Thus, we can utilize any lower bound for latent MDP for the Markov game (but not vice versa).
To continue from Argument (i) and begin with Argument (ii), we recall the definition of latent MDPs [Kwon et al., 2021]. At the beginning of each episode, the nature secretly draws uniformly at random from a set of base MDPs and the learner interacts with this drawn MDP for the episode. [Kwon et al., 2021, Theorem 3.1] show that for any learner, there exists a latent MDP with base MDPs such that the learner needs at least episodes to identify an -suboptimal policy, where the optimality is defined with respect to the average values over the base MDPs. Note that in the construction of the hard latent MDP instance above, there is a unique optimal policy (let’s call it ) with respect to the aforementioned optimality notion. Thus, the regret of this learner over episodes competing against is at least (the learner suffers an instantaneous regret of every time she fails to identify ). Note again that the regret above is the expectation with respect to the uniform distribution over base MDPs. Thus, there exists a particular realization of a sequence of base MDPs in a certain order such that the regret with respect to this sequence when competing with is at least the expected regret with respect to the uniform distribution over base MDPs, which is . Finally, note that is also an optimal policy with respect to the total value across the sequence of MDPs since is an optimal policy for each individual base MDP, per the construction in Kwon et al. [2021]. Thus, we can conclude that, for any learner, there exists a sequence of MDPs from a set of MDPs such that the regret of the learner with respect to this MDP sequence is . ∎
A.3 Proof of Theorem 3
Proof of Theorem 3.
Consider any learner. Consider the adversary’s policy space where for all , and are arbitrary but and , for some . Let the reactive function to map all policies but some in to , whereas . Now consider a deterministic Markov game with the following properties. The transition kernel is deterministic and always traverses through the same sequence of states, regardless of what actions the learner and the adversary take. The reward functions are deterministic everywhere, and also zero everywhere except that . Except for that yields a positive reward if the learner selects it, all other policies in give zero reward. In addition, since the learner does not know and that there is no relation whatsoever between and for any , the learner needs to play all policies in at least once to be able to identify . ∎
Appendix B Missing proofs for Section 5
B.1 Support lemmas
Maximum Likelihood Estimation.
Let where . Denote the -bracketing number of function class . The following lemma says that the log-likelihood of the true model in the empirical data is close to that of any model within the model class, up to an error that scales logarithmically with the model complexity measured in a bracketing number.
Lemma B.1.
There exists an absolute constant such that for any , with probability at least , for all and , we have
The following lemma says that any model that is close to the true model in the log-likelihood in the historical data would yield a similar data distribution as the true model.
Lemma B.2.
There exists an absolute constant such that for any , with probability at least , for all and ,
where denotes the total variation distance.
The two lemmas above directly follow from [Liu et al., 2023, Proposition B.1] and [Liu et al., 2023, Proposition B.2], respectively, wherein the analysis built on the classical analysis of MLE [Geer, 2000] and the “tangent” sequence analysis in [Zhang, 2006, Agarwal et al., 2020], respectively. The following lemma is a direct corollary of Lemma B.1 and Lemma B.2.
Lemma B.3.
Let . Define the version space:
Then, with probability at least , for all , we have and
B.2 Proof of Theorem 4
We first introduce several notations that we will use throughout our proofs. We denote and the counters and the parameter confidence sets at the beginning of the episode .
Lemma B.4 (Optimism).
With probability at least , for all , we have
Proof of Lemma B.4.
We will prove a stronger statement: For any , we have
We will prove by induction with . For , the claim in the lemma trivially holds. Assume by induction that the claim holds for some . We will prove that it holds for . Indeed, for any such that , of course . Consider any such that , we have
where the first inequality uses the induction assumption that and the last inequality uses Hoeffding’s inequality and the union bound. In addition, it follows from Lemma B.3 and the union bound that, with probability at least , for any , we have
Under the same event wherein the above relation holds, we have
This completes the case for and thus completes the proof. ∎
Proof of Theorem 4.
By the optimism of (Lemma B.4), with probability at least , for all , we have
where the second inequality follows from 4 of Algorithm 1, and the last equation is a result of what we now define:
We now decompose as follows:
We will bound each of separately as follows.
Bounding .
For simplicity, we denote . We define
Note that the optimality above does not require that there exists an optimal policy such that . Note that if , it is trivial that . Thus, we only need to consider when , and thus
By Bernstein’s inequality, with probability at least , for all and with , we have
where note that the first inequality holds even when and the second inequality follows form AM-GM. Thus, with probability , for all , we have
Plugging this inequality into above, then with probability at least , for all ,
where we define
Bounding and .
Note that for all , and are martingale difference sequences. Thus, by Azuma-Hoeffding’s inequality and the union bound, with probability at least , we have
Bounding .
By Lemma B.3, and the union bound, with probability at least , for all , we have
Plugging these bounds into the definition of , combining them using the union bound and re-scaling , we have that: with probability at least , for all , we have
Thus, we have with probability at least , we have
Finally, note that
Plugging these three inequalities above into the bound for right before and re-scaling complete the proof. ∎
B.3 Proof of Theorem 5
The layerwise exploration stage (Algorithm 4) performs layerwise exploration for each layer and estimates infrequent transitions into . Since infrequent transitions do not significantly affect policy evaluation in any way (will be proved precisely later), we can exclude them and quickly refrain from exploring them extensively. However, excluding them changes the underlying data distribution of the experiences that the earner would receive when interacting with the environment. To handle this bias issue, it is often convenient to consider an “absorbing” Markov game , a refinement of the original Markov game that excludes all infrequent transitions.
Definition 5 (Absorbing Markov games).
Given a Markov game , a set of transitions , and a dummy state , an absorbing Markov game w.r.t. is defined as follows: For any ,
and . In addition, , ,
Let be the absorbing transition kernels w.r.t. (5). Notice that the transition dynamics by Algorithm 4 are unbiased estimates of the absorbing transition dynamics .
B.3.1 Sampling policies are sufficiently exploratory
We now show that the sampling policies in the reward-free exploration stage are sufficiently exploratory over the state-action space of the Markov game. We start with bounding the difference between and (5 of Algorithm 3) using empirical Bernstein’s inequality.
Lemma B.5.
Define the event : such that ,
where and are the counter at layer in epoch obtained at 9 by running Algorithm 4 in epoch . Then, we have . In addition, , .
Proof of Lemma B.5.
Lemma B.5 is essentially the analogous of [Qiao et al., 2022, Lemma E.2] from MDPs to Markov games. The first part follows from empirical Bernstein’s inequality and union bound. The second part comes from the definition of the absorbing transition kernels and the construction of the empirical transition kernels . ∎
Lemma B.6.
Conditioned on the event in Lemma B.5: For all such that , we have
Lemma B.7.
Conditioned on the event in Lemma B.5: For all and any policy , we have
where denotes the expected total reward under policies and the Markov game specified by the reward function and transition kernels .
Proof of Lemma B.7.
The proof essentially follows from the proof of [Qiao et al., 2022, Lemma E.5]. ∎
Lemma B.5 to Lemma B.7 are similar in nature with corresponding lemmas in a single-agent MDP in [Qiao et al., 2022]. We now prove a novel lemma that’s absent in the single-agent MDP setting yet crucial to our theorem. Recall our notion that, which is given in Algorithm 6.
Lemma B.8.
Fix any and consider (5 of Algorithm 3). Define the event : for all and all , we have
where . Assume that is sufficiently large such that . Then, .
Proof of Lemma B.8.
Let us fix any and . Note that the value function for any policy under any dynamic w.r.t. the reward function is zero at any step . Also, notice that, prior to the exploration of layer in the reward-free exploration (Algorithm 4), are already constructed.
Additional notations.
In (Algorithm 6), we denote the intermediate value estimates by to emphasize the dependence on the reward function and the transition dynamics being used. We denote the count of pairs during the -th layer exploration of Algorithm 4. We write in place of to emphasize the dependence on the reward function and transition dynamic .
We will evaluate the quantity for any .
The first part follows from that with probability at least , . Thus, is an optimistic estimate of . For the second part, we have
where we use the convention that , and the last inequality follows from that if , that , and that, for any two distributions over a finite support , we have .
If , then . Consider the case . That means that the state-action pair must be visited in step at least once by at least one policy for some . Note that this policy is run for consecutive episodes. Thus, by the definition of the minimum positive visitation probability , we must have
where the expectation is w.r.t. the transition kernel of the original Markov game and policy . By Hoelfding’s inequality and the union bound: With probability at least , for all , we have
In particular, for such that and for , we have with probability at least . Combined with Lemma B.3, with probability at least , we have
(2) |
Thus, under the same event that the above inequality holds, we have
∎
Next, we will show that the transition samples collected in are indeed infrequent transitions by any policy. Let be a random trajectory generated by the learner’s policy and the opponent’s policies for some policy .
Definition 6 (Bad events).
Under the original transition kernel , we define to be the event that there exists such that and we define to be the event such that is the smallest step that . Under the absorbing transition kernel , we define to be the event that there exists such that and we define to be the event such that is the smallest step that .
Lemma B.9.
Proof of Lemma B.9.
Under the event in Lemma B.5 and the event in Lemma B.8, for any , we have
(3) |
where the first inequality and the last inequality follow from Lemma B.7, the second inequality follows from Lemma B.8, the second and third inequality follow from Lemma B.8, and the equation follows from the definition of in Algorithm 4. Let be a policy that chooses each with probability for any . Thus, we have
(4) |
By the construction of , we have that
Thus, combined with Equation 4, we have
Finally, note that
which concludes our proof.
∎
B.3.2 Uniform policy evaluation
In this part, we will show that the empirical transition kernel constructed from the exploratory data by our sampling policies is a good surrogate for the true transition kernel in evaluating the value of uniformly all policies.
Lemma B.10.
Proof of Lemma B.10.
Lemma B.11.
With probability at least , for any , any reward function , and any policy , we have
Proof of Lemma B.11.
The first inequality is trivial, following the first part of Lemma B.8. We will focus on the second inequality. Fix any deterministic policy . For simplicity, we write , and . Let .
First of all, by construction of and , we have if or if . This explains the very reason we design the truncated reward function .
We now consider such that . This condition, along with the consistent behavior and the minimum visitation probability, allows us to estimate the response sufficiently. In particular, depends only on the data obtained by visiting which is indeed visited at least times, thus can be estimated up to an order of error. We have
Lemma B.12.
Proof of Lemma B.12.
By the simulation lemma [Dann et al., 2017], we have
where . Define the sampling distribution by
Then, we have
where the second equality is due to that is deterministic, the first inequality follows from Equation 3, the third inequality follows from Jensen’s inequality, and the last inequality follows from the fundamental Lemma B.13. ∎
Lemma B.13 ([Jin et al., 2020, Lemma C.2]).
With probability at least , for all , we have
Proof of Lemma B.13.
Note that is the empirical transition kernel constructed by sampling according to the data distribution under the transition kernel for samples. Thus, Lemma B.13 is a direct application of [Jin et al., 2020, Lemma C.2]. ∎
Finally, we will show that any policy in is of high quality.
Lemma B.14.
Recall the version space defined at 6 of Algorithm 3. With probability at least , for any and any , and any reward function , we have
Proof of Lemma B.14.
Consider any . We have
where the first inequality follows from the first part of Lemma B.10, the second inequality follows from Lemma B.12, the third inequality follows from Lemma B.11, the fourth inequality follows from the definition of , the fifth inequality follows from Lemma B.11, the sixth inequality follows from Lemma B.12, and the last inequality follows from the second part of Lemma B.10. ∎
Proof of Theorem 5.
Note that . Moreover, Algorithm 3 runs for episodes, by the choice of , where . By Lemma B.14, with probability at least , we have
Note that the third term always dominates the second term. We can further simplify the bound (in the last inequality above), by making either the third term or the last term dominate the fourth term, which is implied by,
Also notice the condition in Lemma B.8 translates into:
Under these conditions of , the bound becomes:
∎