Last-iterate Convergence of Decentralized Optimistic Gradient Descent/Ascent in Infinite-horizon Competitive Markov Games
Chen-Yu Wei, Chung-Wei Lee, Mengxiao Zhang, Haipeng Luo
Introduction
Multi-agent reinforcement learning studies how multiple agents should interact with each other and the environment, and has wide applications in, for example, playing board games (Silver et al., 2017) and real-time strategy games (Vinyals et al., 2019). To model these problems, the framework of Markov games (also called stochastic games) (Shapley, 1953) is often used, which can be seen as a generalization of Markov Decision Processes (MDPs) from a single agent to multiple agents. In this work, we focus on one fundamental class: two-player zero-sum Markov games.
In this setting, there are many centralized algorithms developed in a line of recent works with near-optimal sample complexity for finding a Nash equilibrium (Wei et al., 2017; Sidford et al., 2020; Xie et al., 2020; Bai and Jin, 2020; Zhang et al., 2020a; Liu et al., 2021). These algorithms require a central controller that collects some global knowledge (such as the actions and the rewards of all players) and then jointly decides the policies for all players. Centralized algorithms are usually convergent (as defined in (Bowling and Veloso, 2001)), in the sense that the policies of the players converge to the set of Nash equilibria.
On the other hand, there is also a surge of studies on decentralized algorithms that run independently on each player, requiring only local information such as the player’s own action and the corresponding reward feedback (Zhang et al., 2019; Bai et al., 2020; Tian et al., 2021; Liu et al., 2020; Daskalakis et al., 2020). Compared to centralized ones, decentralized algorithms are usually more versatile and can potentially run in different environments (cooperative or competitive). Many of them enjoy the property of being rational (as defined in (Bowling and Veloso, 2001)), in the sense that a player’s policy converges to the best response to the opponent no matter what stationary policy the opponent uses. However, it is also often more challenging to show the convergence to a Nash equilibrium when the two players execute the same decentralized algorithm.
It can be seen that a rational algorithm has different benefits compared to a convergent algorithm – the former satisfies individual player’s interests, while the latter might be better for achieving social good. Therefore, a single algorithm that possesses both properties is highly desirable. For example, in a market where “enforcing” all traders to follow the same rule is difficult, but “recommending” them to use a specific algorithm is possible, a rational and convergent algorithm would be a good candidate — if all traders follow the recommendation, then a social equilibrium is quickly attained; otherwise, those who follow the recommendation are still satisfied because they best respond to a stationary environment.
Based on this motivation, our main contribution is to develop the first decentralized algorithm that is simultaneously rational, last-iterate convergent (with a concrete finite-time guarantee),Note that while average-iterate convergence is possible (and standard) for stateless convex-concave games (e.g. (Syrgkanis et al., 2015)), it does not work for Markov games since the problem is nonconvex-nonconcave in the space of policies (Daskalakis et al., 2020). agnostic, and symmetric (more details to follow in \texorpdfstring\hyperref[subsec: related work]Section 1.1Section 1.1) for two-player zero-sum Markov games. Our algorithm is based on Optimistic Gradient Descent/Ascent (OGDA) (Chiang et al., 2012; Rakhlin and Sridharan, 2013) and importantly relies on a critic that slowly learns a certain value function for each state. Following previous works on learning MDPs (Abbasi-Yadkori et al., 2019; Agarwal et al., 2020) or Markov games (Perolat et al., 2018), we present the convergence guarantee in terms of the number of iterations of the algorithm and the estimation error of some gradient information (along with other problem-dependent constants), where the estimation error can be zero in a full-information setting, or goes down to zero fast enough with additional structural assumptions (e.g. every stationary policy pair induces an irreducible Markov chain, similar to (Auer and Ortner, 2007)).
While the OGDA algorithm, first studied in (Popov, 1980) under a different name, has been extensively used in recent years for learning matrix games (a special case of Markov games with one state), to the best of our knowledge, no previous work has applied it to learning Markov games and derived a concrete last-iterate convergence rate. Several recent works derive last-iterate convergence of OGDA for matrix games (Hsieh et al., 2019; Liang and Stokes, 2019; Mokhtari et al., 2020; Golowich et al., 2020; Wei et al., 2021), and our analysis is heavily inspired by the approach of (Wei et al., 2021). However, the extension to infinite-horizon Markov games is highly non-trivial as there is additional “instability penalty” in the system that we need to handle; see \texorpdfstring\hyperref[sec:analysis]Section 4Section 4 for detailed discussions.
In this section, we discuss and compare related works on learning two-player zero-sum Markov games. We refer the readers to a thorough survey by (Zhang et al., 2020b) for other topics in multi-agent reinforcement learning.
Shapley (1953) first introduces the Markov game model and proposes an algorithm analogous to value iteration for solving two-player zero-sum Markov games (with all parameters known). Later, Hoffman and Karp (1966) propose a policy iteration algorithm, and Pollatschek and Avi-Itzhak (1969) propose another policy iteration variant that works better in practice but cannot always converge. With the efforts of Van Der Wal (1978) and Filar and Tolwinski (1991), a slight variant of the (Pollatschek and Avi-Itzhak, 1969) algorithm is proposed in (Filar and Tolwinski, 1991) and proven to converge. In such a full-information setting where all parameters are know, our algorithm has no estimation error and can also be viewed as a new policy-iteration algorithm.
Littman (1994) initiates the study of competitive reinforcement learning under the framework of Markov games and proposes an extension of the single-player Q-learning algorithm, called minimax-Q, which is later proven to converge under some conditions (Szepesvári and Littman, 1999). While minimax-Q can run in a decentralized manner, it is conservative and only converges to the minimax policy but not the best response to the opponent.
To fix this issue, the work of Bowling and Veloso (2001) argues that a desirable multi-agent learning algorithm should have the following two properties simultaneously: rational and convergent. By their definition, a rational algorithm converges to its opponent’s best response if the opponent converges to a stationary policy,It is tempting to consider an even stronger rationality notion, that is, having no regret against an arbitrary opponent. This is, however, known to be computationally hard (Radanovic et al., 2019; Bai et al., 2020). while a convergent algorithm converges to a Nash equilibrium if both agents use it. They propose the WoLF (Win-or-Learn-Fast) algorithm to achieve this goal, albeit only with empirical evidence. Subsequently, Conitzer and Sandholm (2007); Perolat et al. (2018); Sayin et al. (2020) design decentralized algorithms that provably enjoy these two properties, but only with asymptotic guarantees.
Recently, there is a surge of works that provide finite-time guarantees and characterize the tight sample complexity for finding Nash equilibria (Perolat et al., 2015; Pérolat et al., 2016; Wei et al., 2017; Sidford et al., 2020; Xie et al., 2020; Zhang et al., 2020a; Bai and Jin, 2020; Liu et al., 2021). These algorithms are all essentially centralized. Below, we focus on comparisons with several recent works that propose decentralized algorithms and provide finite-time guarantees.
These algorithms, like minimax-Q, converge to the minimax policy instead of the best response to the opponent, even when the opponent is weak (i.e., not using its best policy). In other words, these algorithms are not rational. Another drawback of these algorithms is that the learner has to observe the actions taken by the opponent. Our algorithm, on the other hand, is both rational and agnostic to what the opponent plays.
Comparison with Optimistic Nash V-Learning (Bai et al., 2020; Tian et al., 2021)
The Optimistic Nash V-Learning algorithm handles the finite-horizon tabular case. It runs an exponential-weight algorithm on each state, with importance-weighted loss/reward estimators. It is unclear whether the dynamics of Optimistic Nash V-Learning leads to last iterate convergence. After training, however, Optimistic Nash V-Learning can output a near-optimal non-Markovian policy with size linear in the training time. In contrast, our algorithm exhibits last-iterate convergence, and the output is a simple Markovian policy.
Comparison with Smooth-FSP (Liu et al., 2020)
The Smooth-FSP algorithm handles the function approximation setting. The objective function it optimizes is the original objective plus an entropy regularization term. Because of this additional regularization, the players are only guaranteed to converge to some neighborhood of the minimax policy pair (with a constant radius), even when their gradient estimation error is zero. In contrast, our algorithm converges to the true minimax policy pair when the gradient estimation error goes to zero.
Comparison with Independent PG (Daskalakis et al., 2020)
Daskalakis et al. (2020) studies independent policy gradient in the tabular case. To achieve last-iterate convergence, the two players have to use asymmetric learning rates, and only the one with a smaller learning rate converges to the minimax policy. In contrast, the two players of our algorithm are completely symmetric, and they simultaneously converge to the equilibrium set.
Preliminaries
We consider a two-player zero-sum discounted Markov game defined by a tuple , where: 1) is a finite state space; 2) and are finite action spaces for Player 1 and Player 2 respectively; 3) is the loss (payoff) function for Player 1 (Player 2), with specifying how much Player 1 pays to Player 2 if they are at state and select actions and respectively; 4) is the transition function, with being the probability of transitioning to state after actions and are taken by the two players respectively at state ( denotes the set of probability distributions over ); 5) and is a discount factor.The discount factor is usually some value close to , so we assume that it is no less than for simplicity. Also note that we consider the discounted setting instead of the finite-horizon episodic setting because the former captures more challenges of this problem (and is also the original setting considered in (Bowling and Veloso, 2001)). Indeed, in the episodic setting where states have a layered structure, convergence can be directly shown in a layer-by-layer manner; see (Lee et al., 2020), an early version of (Wei et al., 2021).
A stationary policy of Player 1 can be described by a function that maps each state to an action distribution. We use to denote the action distribution for Player 1 on state , and use to denote the complete policy. We define and similarly for Player 2. For notational convenience, we further define as the concatenated policy of the players on state , and let .
For a pair of stationary policies and an initial state , the expected discounted value that the players pay/gain can be represented as
The minimax game value on state is then defined as
It is known that a pair of stationary policies attaining the minimax value on state is necessarily attaining the minimax value on all states (Filar and Vrieze, 2012), and we call such a minimax policy, such a maximin policy, and such pair a Nash equilibrium. Further define \mathcal{X}^{s}_{\star}=\{x^{s}_{\star}\in x_{\star}:\text{x_{\star}is a minimax policy}\} and similarly \mathcal{Y}^{s}_{\star}=\{y^{s}_{\star}\in y_{\star}:\text{y_{\star}is a maximin policy}\}, and denote . It is also known that any with for all is a minimax policy (similarly for ) (Filar and Vrieze, 2012).
We also define the Q-function on state under policy pair as
where is some learning rate. As one can see, unlike the standard Gradient Descent Ascent algorithm which simply sets , OGDA takes a further descent/ascent step using the latest gradient to obtain , which is then used to evaluate the gradient (of the function ). Wei et al. (2021) prove that the iterate (or ) converges to the set of Nash equilibria of the matrix game at a linear rate, which motivates us to generalize it to Markov games. As we show in the following sections, however, the extensions of both the algorithm and the analysis are highly non-trivial.
We remark that while Wei et al. (2021) also analyze the last-iterate convergence of another algorithm called Optimistic Multiplicative Weight Update (OMWU), which is even more commonly used in finite-action games, they also show that the theoretical guarantees of OMWU hold under more limited assumptions (e.g., requiring the uniqueness of the equilibrium), and its empirical performance is also inferior to that of OGDA. We therefore only extend the latter to Markov games.
Algorithm and Main Results
A natural idea to extend OGDA to Markov games is to run the same algorithm described in \texorpdfstring\hyperref[sec:prelim]Section 2Section 2 for each state with the game matrix being . However, an important difference is that now the game matrix is changing over time. Indeed, if the polices are changing rapidly for subsequent states, the game matrix will also be changing rapidly, which makes the update on state highly unstable and in turn causes similar issues for previous states.
At the end of each iteration , the critic then updates the value function via , where is an estimation of such that .For simplicity, here we assume that the two players share the same estimator (and thus same and ). However, our analysis works even if they maintain different versions of , as long as they are -close to with respect to their own . To stabilize the game matrix, we require the learning rate to decrease in and go to zero. Most of our analysis is conducted under this general condition, and the final convergence rate depends on the concrete form of , which we set to with inspired by (Jin et al., 2018) (there could be a different choice leading to a better convergence though).
Our main results are the following two theorems on the last-iterate convergence of \texorpdfstring\hyperref[algo: main alg]Algorithm 1Algorithm 1.
[algo: main alg]Algorithm 1Algorithm 1 with the choice of where guarantees
[algo: main alg]Algorithm 1Algorithm 1 with the choice of where guarantees with ,
[thm: main 1]Theorem 3.1Theorem 3.1 shows that the average duality-gap for each state goes to zero when both and go to zero, though it does not show the convergence of the policy. \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2, on the other hand, shows a concrete finite-time convergence rate on the distance of from the equilibrium set, which goes down at the rate of up to the estimation error . The problem-dependent constant is similar to the matrix game case analyzed in (Wei et al., 2021), as we will discuss in \texorpdfstring\hyperref[sec:analysis]Section 4Section 4. As far as we know, this is the first symmetric algorithm with finite-time last-iterate convergence for both players simultaneously.
In the full-information setting where all parameters of the Markov game are given, we can calculate the exact value of , , and , making . In this case, our algorithm is essentially a new policy-iteration style algorithm for solving Markov games. However, in a learning setting where the parameters are unknown, the players need to estimate these quantities based on any feedback from the environments. Here, we discuss how to do so when the players only observe their current state and their loss/reward after taking an action.
Specifically, in iteration of our algorithm and with at hand, the two players interact with each other for a sequence of steps, following a mixed strategy with a certain amount of uniform exploration defined via: and , where . This generates a sequence of observations for Player 1 and similarly a sequence of observations for Player 2, where , , and . Then we construct the estimators as follows:
(If any of the denominator is zero, define the corresponding estimator as zero.) To make sure that these are accurate estimators for every state, we naturally need to ensure that every state is visited often enough. To this end, we make the following assumption similar to (Auer and Ortner, 2007), which essentially requires that the induced Markov chain under any stationary policy pair is irreducible.
There exists such that , where is the expected time to reach from following the policy pair .
Under this assumption, the following theorem shows that taking is enough to ensure the accuracy of the estimators (see \texorpdfstring\hyperref[app: samples]Appendix HAppendix H for the proof).
Together with \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1 and \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2, given a fixed number of interactions between the players, we can now determine optimally how many iterations we should run our algorithm (and consequently how large we should set ). Equivalently, we show below how many iterations or total interactions are need to achieve a certain accuracy. (The choice of is the same as in \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1 and \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2.)
If \texorpdfstring\hyperref[assum:irreducibility]Assumption 1Assumption 1 holds, then running \texorpdfstring\hyperref[algo: main alg]Algorithm 1Algorithm 1 with estimators \texorpdfstring\hyperref[eq: est1]Eq. (7)Eq. (7), \texorpdfstring\hyperref[eq: est2]Eq. (8)Eq. (8), \texorpdfstring\hyperref[eq: est3]Eq. (9)Eq. (9) and for iterations ensures with probability at least , . Ignoring other dependence, this requires interactions in total.
2 Rationality
Finally, we argue that from the perspective of a single player (take Player 1 as an example), our algorithm is also rational, in the sense that it allows Player 1 to converge to the best response to her opponent if Player 2 is not applying our algorithm but instead uses an arbitrary stationary policy.The rationality defined by Bowling and Veloso (2001) requires that the learner converges to the best response as long as the opponent converges to a stationary policy. While our algorithm does handle this case, as a proof of concept, we only consider the simpler scenario where the opponent simply uses a stationary policy. We show this single-player-perspective version in \texorpdfstring\hyperref[algo: main alg single]Algorithm 2Algorithm 2, where Player 1 still follows the updates \texorpdfstring\hyperref[eq: update 1]Eq. (2)Eq. (2), \texorpdfstring\hyperref[eq: update 2]Eq. (3)Eq. (3), and \texorpdfstring\hyperref[eq: update 5]Eq. (6)Eq. (6), while is fixed to a stationary policy used by Player 2.
[algo: main alg single]Algorithm 2Algorithm 2 with the choice of where guarantees
and for and some problem-dependent constant ,
Analysis Overview
In this section, we give an overview of how we analyze \texorpdfstring\hyperref[algo: main alg]Algorithm 1Algorithm 1 and prove \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1 and \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2. We start by giving a quick review of the analysis of (Wei et al., 2021) for matrix games, and then highlight how we overcome the challenges when generalizing it to Markov games.
Recall the update in \texorpdfstring\hyperref[eq:OGDA_matrix_games]Eq. (1)Eq. (1) for a fixed matrix . Wei et al. (2021) show the following two convergence guarantees:
where is the duality gap of .
By taking , summing over , canceling the penalty term with the bonus term, telescoping and rearranging, we get . An application of Cauchy-Schwarz inequality then proves \texorpdfstring\hyperref[eq: matrix game duality gap]Eq. (10)Eq. (10).
By upper bounding and rearranging, they further obtain:
Overview of our proofs
We are now ready to show the high-level ideas of our analysis. For simplicity, we consider the case with and also assume that there is a unique equilibrium (these assumptions are removed in the formal proofs). Our analysis follows the steps below.
Step 1 (\texorpdfstring\hyperref[app: step-1]Appendix BAppendix B)
Similar to \texorpdfstring\hyperref[eq: single step for matrix game]Eq. (12)Eq. (12), we conduct a single-step analysis for OGDA in Markov games (\texorpdfstring\hyperref[lemma: distance decrease]Lemma B.3Lemma B.3), which shows for all state :
Comparing this with \texorpdfstring\hyperref[eq: single step for matrix game]Eq. (12)Eq. (12), we see that, importantly, since the game matrix is changing over time, we have two extra instability penalty terms: and . Our hope is to further upper bound these two penalty terms by something related to , so that they can again be canceled by the bonus term . Indeed, in Steps 3-5, we show that part of them can be bounded by a weighted sum of .
for some coefficient defined in \texorpdfstring\hyperref[app: aux coeff]Appendix A.2Appendix A.2. With recursive expansion, the above implies that can be upper bounded by a weighted sum of for and .
We first upper bound with respect to the following weighted-regret quantity
To do so, we define and show for the same coefficient mentioned earlier,
In this step, we further relate to . From a one-step regret analysis of OGDA, we have the following (for Player 1):
Recall that is defined via a weighted sum of the left-hand side above with weights . Therefore, we take the weighted sum of the above and bound by
where in the inequality we rearrange the first summation and use the fact (see the formal proof in \texorpdfstring\hyperref[lem: interval regret discount nonuniform]Lemma E.3Lemma E.3). Since the case for is similar, by the definition of , we conclude that is upper bounded by the maximum over of the sum of the three terms in \texorpdfstring\hyperref[eq: upper bounde barReg]Eq. (19)Eq. (19). Note that, is itself a weighted sum of , and can also be upper bounded by a weighted sum of as we already showed in Step 3.
Combining all steps.
Summing up \texorpdfstring\hyperref[eq: single step MG]Eq. (16)Eq. (16) over all , and based on all earlier discussions, we have
Obtaining average duality-gap bound
To obtain the average duality-gap bound in \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1, we sum \texorpdfstring\hyperref[eq: aggre]Eq. (20)Eq. (20) over , and further argue that the sum of over is smaller than the sum of over (hence they are canceled with each other). Rearranging and telescoping leads to
As long as is decreasing and going to zero, the right-hand side above can be shown to be sub-linear in . Further relating to (\texorpdfstring\hyperref[lem: relate duality gap]Lemma F.5Lemma F.5) proves \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1.
Obtaining last-iterate convergence bound
Then ideally we would like to follow a similar argument from \texorpdfstring\hyperref[eq: matrix game last-iterate]Eq. (14)Eq. (14) to \texorpdfstring\hyperref[eq: linear lastiterate]Eq. (15)Eq. (15) to obtain a last-iterate convergence guarantee. However, we face two more challenges here. First, we have an extra . Fortunately, this term vanishes when is large as long as decreases and converges to zero. Second, in \texorpdfstring\hyperref[eq: matrix game last-iterate]Eq. (14)Eq. (14), the indices of the negative term and the positive term are only offset by so that a simple rearrangement is enough to get \texorpdfstring\hyperref[eq: linear lastiterate]Eq. (15)Eq. (15), while in \texorpdfstring\hyperref[eq: aggre last iterate]Eq. (21)Eq. (21), the indices in and are far from each other. To address this issue, we further introduce a set of weights and consider a weighted sum of \texorpdfstring\hyperref[eq: aggre last iterate]Eq. (21)Eq. (21) over . We then show that the weighted sum of can be canceled by the weighted sum of . Combining the above proves \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2. Note that due to these extra terms, our last-iterate convergence rate is only sublinear (while \texorpdfstring\hyperref[eq: matrix game last itera]Eq. (11)Eq. (11) shows a linear rate for matrix games).
Conclusion and Future Directions
In this work, we propose the first decentralized algorithm for two-player zero-sum Markov games that is rational, convergent, agnostic, symmetric, and having a finite-time convergence rate guarantee at the same time. The algorithm is based on running OGDA on each state, together with a slowly changing critic that stabilizes the game matrix on each state.
Our work studies the most basic tabular setting, and also requires a structural assumption when estimation is needed that sidesteps the difficulty of performing exploration over the state space. Important future directions include relaxing either of these assumptions, that is, extending our framework to allow function approximation and/or incorporating efficient exploration mechanisms. Studying OGDA-based algorithms beyond the two-player zero-sum setting is also an interesting future direction.
This work is supported by NSF Award IIS-1943607 and a Google Faculty Research Award.
References
Appendix A Notations
We define the following notations to simplify the proofs:
Besides, for a matrix , we define . To avoid cluttered notation, a product of the form is usually simply written as .
A.2 Auxiliary Coefficients
In this subsection, we define several coefficients that are related to the value learning rate .
() For non-negative integers and with , define .
() For non-negative integers and with , define .
() For positive integers and with , define . Define .
() For positive integers , define .
() For positive integers and with , define . Define .
A.3 Auxiliary Variables
In this subsection, we define several auxiliary variables to be used in the later analysis.
() For every state , define the sequence by
Furthermore, define .
() For every state , define the sequence by
Furthermore, define .
() Define , i.e., the projection of onto the set of optimal policy on state . Similarly, , and .
() Define for all .
() Define
and .
() Define .
() Define
We require to satisfy the following:
as
Furthermore, . Below is an useful lemma that is used in many places:
If and are non-negative sequences that satisfy for , then .
We prove it by induction. When , since , . Assume that the formula is correct for . Then
They immediately follow from \texorpdfstring\hyperref[lemma: recur1]Lemma A.15Lemma A.15 and the definition of .
Appendix B Proof for Step 1: Single-Step Inequality
By standard proof of OGDA (see, e.g., the proof of Lemma 1 in (Wei et al., 2021) or Lemma 1 in (Rakhlin and Sridharan, 2013)), we have
Combining them with \texorpdfstring\hyperref[eq: x-regret]Eq. (22)Eq. (22) and the fact that , we get the first inequality that we want to prove. The other inequality is similar.
Summing up the two inequalities in \texorpdfstring\hyperref[lem: one-step regret bound]Lemma B.1Lemma B.1, we get
The left-hand side above, can be lower bounded by
Combining the inequalities and using the definition of finish the proof.
By \texorpdfstring\hyperref[eq: update 1]Eq. (2)Eq. (2) and the optimality condition for , we have
where in the last inequality we use \texorpdfstring\hyperref[eq: temp100]Eq. (23)Eq. (23). Thus we have for any ,
Using the fact that , we get
Similarly, we have . Combining them and using , we get
(Key Lemma for Average Duality-gap Bounds) For all , we have
Combining \texorpdfstring\hyperref[lem: step-2]Lemma C.1Lemma C.1 with \texorpdfstring\hyperref[lemma: distance decrease]Lemma B.3Lemma B.3, we get
(Key Lemma for Point-wise Convergence Bounds) There exists a constant (which depends on the transition and the loss/payoff functions) such that for all ,
By Theorem 5 of (Wei et al., 2021) or Lemma 3 of (Gilpin et al., 2012), we have
for some problem-dependent constant ( depends on ). Thus \texorpdfstring\hyperref[theorem: main theorem discount]Theorem C.3Theorem C.3 implies
By defining , we further get
Notice that . Thus we further have
where in the last inequality we use because .
We have for and all ,
It is equivalent to prove that for all ,
Now it suffices to upper bound for any . By \texorpdfstring\hyperref[cor: useful corollary]Corollary A.17Corollary A.17, we have . Therefore,
where we use which is due to Cauchy-Schwarz inequality. By \texorpdfstring\hyperref[lemma: recur1]Lemma A.15Lemma A.15 and the definitions of , , , in \texorpdfstring\hyperref[def: cumm path length]Definition A.7Definition A.7 and \texorpdfstring\hyperref[def: cumm Q diff]Definition A.8Definition A.8,
Combining them with the previous upper bound for , we get
for all . Further combining this with \texorpdfstring\hyperref[eq: relate Q to V]Eq. (26)Eq. (26), we get
Summing the first bound in \texorpdfstring\hyperref[lem: one-step regret bound]Lemma B.1Lemma B.1 over with weights , and dropping negative terms , we get
Observe that by definition, we have for ,
where in the inequality we use . Using this in \texorpdfstring\hyperref[eq: temp 167]Eq. (27)Eq. (27), we get
Using , and the definition of finishes the proof.
Appendix F Combining Lemmas to Show Last-iterate Convergence
In this section, we provide proofs for \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1 and \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2. To achieve so, we first prove \texorpdfstring\hyperref[lemma: ut bound]Lemma F.1Lemma F.1 by combining the results in \texorpdfstring\hyperref[app: step-3]Appendix DAppendix D and \texorpdfstring\hyperref[app: step-4-5]Appendix EAppendix E. Then we combine \texorpdfstring\hyperref[theorem: main theorem discount]Theorem C.3Theorem C.3, \texorpdfstring\hyperref[lemma: using SPRSI]Lemma C.5Lemma C.5, and \texorpdfstring\hyperref[lemma: ut bound]Lemma F.1Lemma F.1 to prove \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1 and \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2.
where and .
By \texorpdfstring\hyperref[lem: key lemma 1]Lemma D.1Lemma D.1, for all ,
By \texorpdfstring\hyperref[lem: optimistic lemma discount]Lemma E.1Lemma E.1 and \texorpdfstring\hyperref[lem: interval regret discount nonuniform]Lemma E.3Lemma E.3, for all ,
Now, multiply \texorpdfstring\hyperref[eq: final 2]Eq. (29)Eq. (29) with , and then add it to \texorpdfstring\hyperref[eq: final 1]Eq. (28)Eq. (28). Then we get that for ,
where in the second inequality we use that since , and in the last inequality, we use . Define the new variable
Then the above implies that for all ,
Observe that \texorpdfstring\hyperref[eq: key 1]Eq. (30)Eq. (30) is in the form of \texorpdfstring\hyperref[lemma: double recursion]Lemma G.1Lemma G.1 with the following choices:
because . Further using \texorpdfstring\hyperref[lemma: triple recursion]Lemma G.3Lemma G.3 on the first two terms on the right-hand side, and noticing that , we further get that for ,
Finally, notice that according to the definition of , we have . Combining \texorpdfstring\hyperref[eq: key 3]Eq. (31)Eq. (31), we finish the proof for case for . The case for is trivial since .
of \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1. Define and let be an upper bound of for any . With the choice of specified in the theorem, we have . By \texorpdfstring\hyperref[lem: sum of beta 1]Lemma G.15Lemma G.15, we have . Define .
Combining \texorpdfstring\hyperref[lemma: ut bound]Lemma F.1Lemma F.1 and \texorpdfstring\hyperref[theorem: main theorem discount]Theorem C.3Theorem C.3, we get that for ,
Summing the above over and , and denoting , we get
and . Combining these three inequalities with \texorpdfstring\hyperref[eq: tmp bound]Eq. (32)Eq. (32), we get
By Cauchy-Schwarz inequality, we further have
Finally, by \texorpdfstring\hyperref[lem: relate duality gap]Lemma F.5Lemma F.5, we get
of \texorpdfstring\hyperref[thm: main 2]Theorem 3.2Theorem 3.2. Combining \texorpdfstring\hyperref[lemma: using SPRSI]Lemma C.5Lemma C.5 and \texorpdfstring\hyperref[lemma: ut bound]Lemma F.1Lemma F.1, we get that for all ,
The key idea of the following analysis is to use the negative (bonus) term to cancel the positive (penalty) term . Since the time indices do not match, we perform smoothing over time to help. Consider the following weighted sum of with weights :
where in the second-to-last inequality we use \texorpdfstring\hyperref[lem: consecutive lambda for special choice]Lemma G.17Lemma G.17: with the special choice of specified in the theorem, we have for .
Let . Then we have
Finally, we add to both sides, and note that
where the first and second equality is by \texorpdfstring\hyperref[lem: consecutive lambda for special choice]Lemma G.17Lemma G.17. Then we get
Then we can further write that for ,
Applying \texorpdfstring\hyperref[lemma: final recursion]Lemma G.13Lemma G.13 with , , , we get
With the choice of where , we have
Combining them and noticing that when , we get that for ,
Since , the above bound also trivially holds for . Then noticing that finishes the proof.
For any policy pair , the duality gap on the game can be related to the duality gap on individual states as follows:
Notice that for any policy and state ,
Taking max over on two sides and rearranging, we get
Appendix G Auxiliary Lemmas
Let be non-negative sequences that satisfy for all . Then .
We prove it by induction. When , the condition guarantees . Suppose that it holds for . Then
It remains to prove that for all . We use another induction to show this. Fix and , and define the partial sum for . Below we show that
Notice that the right-hand side above is when , which is exactly what we want to prove.
When , where the inequality is because . Now assume that \texorpdfstring\hyperref[eq: double induction]Eq. (34)Eq. (34) holds up to for some . Then
Let and be non-negative sequences that satisfy . Then
It remains to prove that for , , or equivalently, . Below we use another induction to prove this. Fix and , and define the partial sum for . We will show that
Suppose that \texorpdfstring\hyperref[eq: recur hard]Eq. (35)Eq. (35) holds up to for some . Then
This finishes the induction. Applying the result with , we get
where the last inequality is by . This finishes the proof.
For , .
We prove it by induction on . When , since . Suppose that the formula holds for . Then , which finishes the induction.
For any positive integers with , .
for . When , . Suppose this holds for some . Then
which finishes the induction. Notice that this implies
where the second inequality is by the definition of . Thus,
.
where in the first inequality we use and in the second inequality we use the definition of . When , we have .
.
Below we use induction to prove that for all ,
When , the left-hand side is , which is the right-hand side.
Therefore, .
Let , be non-negative sequences that satisfy for some for all . Then
The case of is clear. Suppose that this holds for . Then
𝐻1𝐻𝑡\alpha_{t}=\frac{H+1}{H+t} Lemma G.15. For the choice with , we have .
and thus .
For the choice with , we have for .
By the condition, we have . Therefore, . Thus for ,
Appendix H Analysis on Sample Complexity
Therefore, with probability at least , \texorpdfstring\hyperref[eq: epsA]Eq. (38)Eq. (38) holds if
Now it remains to determine to make \texorpdfstring\hyperref[eq: Az1]Eq. (39)Eq. (39) hold with high probability. Note that by \texorpdfstring\hyperref[assum:irreducibility]Assumption 1Assumption 1, we know that for any . Let be the distribution of random variable which is the number of rounds between the current state-action pair and the next occurrence of under strategy and . The mean of this distribution is . Then by Markov inequality,
Therefore, with probability at least , within rounds, we reach state-action at least pair once. Thus, \texorpdfstring\hyperref[eq: Az1]Eq. (39)Eq. (39) holds when with probability . Solving gives . The cases for and are similar. Finally, using a union bound on all , , , and all iterations, we know that with probability , the -approximations are always guaranteed if we use the estimation above and take .
H.2 Proof of \texorpdfstring\hyperref[col: thm2]Corollary 3.4Corollary 3.4
From \texorpdfstring\hyperref[thm: main 1]Theorem 3.1Theorem 3.1, we know that in order to show , it is sufficient to show and . Solving these two inequalities, we get and . Plugging into in \texorpdfstring\hyperref[thm: samples]Theorem 3.3Theorem 3.3 gives the required .
H.3 Proof of \texorpdfstring\hyperref[col: thm1]Corollary 3.5Corollary 3.5
Appendix I Analysis on Rationalily
In this section, we analyze the rationality of our algorithm. First, we present the full pseudocode of \texorpdfstring\hyperref[algo: main alg single]Algorithm 2Algorithm 2, which is the single-player-perspective version of \texorpdfstring\hyperref[algo: main alg]Algorithm 1Algorithm 1, and then prove that \texorpdfstring\hyperref[algo: main alg single]Algorithm 2Algorithm 2 achieves rationality.
I.2 Analysis of \texorpdfstring\hyperref[algo: main alg single]Algorithm 2Algorithm 2
Suppose that the claim holds at . By definition and the inductive assumption, we have