Global Convergence of Multi-Agent Policy Gradient in Markov Potential Games

Stefanos Leonardos, Will Overman, Ioannis Panageas, Georgios Piliouras

Introduction

Reinforcement learning (RL) has been a fundamental driver of numerous recent advances in Artificial Intelligence (AI) that range from super-human performance in competitive game-playing and strategic decision-making in multiple tasks to robotics, autonomous-driving and cyber-physical systems . A core ingredient for the success of single-agent RL systems, which are typically modelled as Markov Decision Processes (MDPs), is the existence of stationary deterministic optimal policies . This allows the design of efficient algorithms that provably converge towards such policies . However, in practice, a majority of the above systems involve multi-agent interactions. In such cases, despite the notable empirical advancements, there is a lack of understanding of the theoretical convergence guarantees of existing multi-agent reinforcement learning (MARL) algorithms.

The main challenge when transitioning from single to multi-agent RL settings is the computation of Nash policies. A Nash policy for n>1n>1 agents is defined to be a profile of policies (π1∗,...,πn∗)(\pi_{1}^{*},...,\pi_{n}^{*}) so that by fixing the stationary policies of all agents but ii, πi∗\pi_{i}^{*} is an optimal policy for the resulting single-agent MDP and this is true for all 1≤i≤n1\leq i\leq n Analogue of Nash equilibrium notion. (see Definition 1). Note that in multi-agent settings, Nash policies may not be unique in principle.

A common approach for computing Nash policies in MDPs is the use of policy gradient methods. There has been significant progress in the analysis of policy gradient methods during the last couple of years, notably including the works of (and references therein), but it has mainly concerned the single-agent case: the convergence properties of policy gradient in MARL remain poorly understood. Existing steps towards a theory for multi-agent settings involve the papers of who show convergence of independent policy gradient to the optimal policy for two-agent zero-sum stochastic games, of who improve the result of using optimistic policy gradient and of who study extensions of Natural Policy Gradient using function approximation. It is worth noting that the positive results of and depend on the fact that two-agent stochastic zero-sum games satisfy the “min-max equals max-min” property (even though the value-function landscape may not be convex-concave, which implies that Von Neumann’s celebrated minimax theorem may not be applicable).

While the previous works enhance our understanding in competitive interactions, i.e., interactions in which gains can only come at the expense of others, MARL in cooperative settings remains largely under-explored and constitutes one of the current frontiers in AI research . Based on the above, our work is motivated by the following natural question:

Can we get (provable) convergence guarantees for multi-agent RL settings in which cooperation is desirable?

To address this question, we define and study a class of nn-agent MDPs that naturally generalize normal form potential games , called Markov Potential Games (MPGs). In words, a multi-agent MDP is a MPG as long as there exists a (state-dependent) real-valued potential function Φ\Phi so that if an agent ii changes their policy (and the rest of the agents keep their policy unchanged), the difference in agent ii’s value/utility, ViV^{i}, is captured by the difference in the value of Φ\Phi (see Definition 2). Weighted and ordinal MPGs are defined similar to their normal form counterparts (see Remark 1).

Under our definition, we answer the above motivating question in the affirmative. In particular, we show that if every agent ii independently runs (with simultaneous updates) policy gradient on his utility/value ViV^{i}, then, after O(1/ϵ2)O(1/\epsilon^{2}) iterations, the system will reach an ϵ\epsilon-approximate Nash policy (see informal Theorem 1.1 and formal Theorem 4.5). Moreover, for the finite sample analogue, i.e., if every agent ii independently runs (with simultaneous updates) stochastic policy gradient, we show that the system will reach an ϵ\epsilon-approximate Nash policy after O(1/ϵ6)O(1/\epsilon^{6}) iterations.

Along the way, we prove several properties about the structure of MPGs and their Nash policies (see Theorem 1.2 and Section 3). In sum, our results can be summarized in the following two Theorems.

Consider a MPG with nn agents and let ϵ>0\epsilon>0. Suppose that each agent ii runs independent policy gradient using direct parameterization on their policy and that the updates are simultaneous. Then, the learning dynamics reach an ϵ\epsilon-Nash policy after O(1/ϵ2)\mathcal{O}(1/\epsilon^{2}) iterations. If instead, each agent ii runs stochastic policy gradient using greedy parameterization (see (4)) on his policy and that the updates are simultaneous, then the learning dynamics reach an ϵ\epsilon-Nash policy after O(1/ϵ6)\mathcal{O}(1/\epsilon^{6}) iterations.

This result holds trivially for weighted MPGs and asymptotically also for ordinal MPGs, see Remark 5.

The following facts are true for MPGs with nn-agents:

There always exists a Nash policy profile (π1∗,…,πn∗)(\pi_{1}^{*},\dots,\pi_{n}^{*}) so that πi∗\pi_{i}^{*} is deterministic for each agent ii (see Theorem 3.1).

We can construct MDPs for which each state is a (normal-form) potential game but which are not MPGs. This can be true regardless of whether the whole MDP is competitive or cooperative in nature (see Examples 1 and 2, respectively). On the opposite side, we can construct MDPs that are MPGs but which include states that are purely competitive (i.e., zero-sum games), see Example 3.

We provide sufficient conditions so that a MDP is a MPG. These include cases where each state is a (normal-form) potential game and the transition probabilities are not affected by agents actions or the reward functions satisfy certain regularity conditions between different states (see conditions C1 and C2 in Proposition 3.2).

Technical Overview.

The first challenge in the proof of Theorem 1.1 is that multi-agent settings (MPGs) do not satisfy the gradient dominance property, which is an important part in the proof of convergence of policy gradient in single-agent settings . In particular, different Nash policies may yield different value to each agent and as a result, there is not a properly defined notion of value in MPGs (in contrast to zero-sum stochastic games ). On the positive side, we show that agent-wise (i.e., after fixing the policy of all agents but ii), the value function, ViV^{i}, satisfies the gradient dominance property along the direction of πi\pi_{i} (policy of agent ii). This can be leveraged to show that every (approximate) stationary point (Definition 4) of the potential function Φ\Phi is an (approximate) Nash policy (Lemma 4.2). As a result, convergence to an approximate Nash policy is established by first showing that Φ\Phi is smooth and then by applying Projected Gradient Ascent (PGA) on Φ\Phi. This step uses the rather well-known fact that (PGA) converges to ϵ\epsilon-stationary points in O(1/ϵ2)O(1/\epsilon^{2}) iterations for smooth functions. As a result, by applying PGA on the potential Φ\Phi, one gets an approximate Nash policy. Our convergence result then follows by showing that PGA on the potential function, Φ\Phi, generates the same dynamics as if each agent ii runs independent PGA on their value function, ViV^{i}.

In the case that agents do not have access to exact gradients, we derive a similar result for finite samples. In this case, we apply Projected Stochastic Gradient Ascent (PSGA) on Φ\Phi which (as was the case for PGA) can be shown to be the same as when agents apply PSGA independently on their individual value functions. The key is to get an unbiased sample for the gradient of the value functions and prove that it has bounded variance (in terms of the parameters of the MPG). This comes from the discount factor, γ\gamma; in this case, 1−γ1-\gamma can be interpreted as the probability to terminate the MDP at a particular state (and γ\gamma to continue). This can be used to show that a trajectory of the MDP is an unbiased sample for the gradient of the value functions. To guarantee that the estimate has bounded variance, we apply the approach of which requires that agents perform PSGA with α\alpha-greedy exploration (see (4)). The main idea is that this parameterization stays away from the boundary of the simplex throughout its trajectory.

Concerning our structural results, the main technical challenge is the dependence of state-transitions (in addition to agents’ rewards) on agents’ actions. Our work in this part is mainly concerned with showing that the class of MPGs can be significantly larger than state based potential games but also that even simple coordination games may fail to satisfy the (exact) MPG property. Finally, concerning the existence of a deterministic Nash policies, the main challenge is (as in Theorem 1.1) the lack of a (unique) value in general multi-agent settings. As we show in the proof of Theorem 3.1, this issue can be still handled within the class of MPGs by constructing single-agent deviations (to deterministic optimal policies) which keep the value of the potential constant (at its global maximum). This process (which leads to a deterministic Nash policy profile) depends critically on the MPG property and does not generalize to arbitrary MARL settings.

Other works on MPGs.

There are only a few papers in the recent literature that define and analyze MARL settings under the term Markov Potential Games using slight different definitions (see ). These papers mainly focus on state-based potential MDPs (i.e., MDPs in which every state is a potential game) and require rather restrictive additional conditions, such as equality or monotonicity of the state-based potential functions, to address the computational challenge of finding Nash policies.The relation of these conditions to the current work is discussed in more detail in Proposition 3.2 and Remark 2. Our current results demonstrate the efficiency of simultaneous policy gradient as a to powerful method to find Nash policies even without additional restrictive assumptions on the state-based potential functions. Moreover, as mentioned in Theorem 1.2, the current definition also encompasses MDPs that are not necessarily potential at each state. To the best of our knowledge, the only (cooperative) MPGs that have been successfully addressed prior to this work, are the ones in which all agents receive the same value/utility and which constitute a subclass of the MPG setting considered in this paper.

Preliminaries

The following notation is standard and largely follows and . We consider a setting with nn agents who repeatedly select actions in a shared Markov Decision Process (MDP). The goal of each agent is to maximize their respective value function. Formally, a MDP is defined as a tuple G=(S,N,{Ai,Ri}i∈N,P,γ,ρ)\mathcal{G}=(\mathcal{S},\mathcal{N},\{\mathcal{A}_{i},R_{i}\}_{i\in\mathcal{N}},P,\gamma,\rho), where

S\mathcal{S} is a finite state space of size S=∣S∣S=|\mathcal{S}|. We will write Δ(S)\Delta(\mathcal{S}) to denote the set of all probability distributions over the set S\mathcal{S}.

N={1,2,…,n}\mathcal{N}=\{1,2,\dots,n\} is the set of the n≥2n\geq 2 agents in the game.

Ai\mathcal{A}_{i} is a finite action space for agent i∈Ni\in\mathcal{N} with generic element ai∈Aia_{i}\in\mathcal{A}_{i}. Using common conventions, we will write A=∏i∈NAi\mathcal{A}=\prod_{i\in\mathcal{N}}\mathcal{A}_{i} and A−i=∏j≠iAj\mathcal{A}_{-i}=\prod_{j\neq i}\mathcal{A}_{j} to denote the joint action spaces of all agents and of all agents other than ii with generic elements a=(ai)i∈N\mathbf{a}=(a_{i})_{i\in\mathcal{N}} and a−i=(aj)i≠j∈N\mathbf{a_{-i}}=(a_{j})_{i\neq j\in\mathcal{N}}, respectively. According to this notation, we have that a=(ai,a−i)\mathbf{a}=(a_{i},\mathbf{a_{-i}}). We will write X=∣X∣X=|\mathcal{X}| and Δ(X)\Delta(\mathcal{X}) to denote the size of any set X∈{Ai,A−i,A}\mathcal{X}\in\{\mathcal{A}_{i},\mathcal{A}_{-i},\mathcal{A}\} and the space of all probability distributions over X\mathcal{X}, respectively.

Ri:S×A→R_{i}:\mathcal{S}\times\mathcal{A}\to is the individual reward function of agent i∈Ni\in\mathcal{N}, i.e., Ri(s,ai,a−i)R_{i}(s,a_{i},\mathbf{a}_{-i}) is the instantaneous reward of agent ii when agent ii takes action aia_{i} and all other agents take actions a−i\mathbf{a}_{-i} at state s∈Ss\in\mathcal{S}.

PP is the transition probability function, for which P(s′∣s,a)P(s^{\prime}\mid s,\mathbf{a}) is the probability of transitioning from ss to s′s^{\prime} when a∈A\mathbf{a}\in\mathcal{A} is the action profile chosen by the agents.

γ\gamma is a discount factor for future rewards of the MDP, shared by all agents.

ρ∈Δ(S)\rho\in\Delta(\mathcal{S}) is the distribution for the initial state at time t=0t=0.

Whenever time is relevant, we will index the above terms with tt. In particular, at each time step t≥0t\geq 0, all agents observe the state st∈Ss_{t}\in\mathcal{S}, select actions at=(ai,t,a−i,t)\mathbf{a}_{t}=(a_{i,t},\mathbf{a}_{-i,t}), receive rewards ri,t:=Ri(st,at),i∈Nr_{i,t}:=R_{i}(s_{t},\mathbf{a}_{t}),i\in\mathcal{N} and transition to the next state st+1∼P(⋅∣st,at)s_{t+1}\sim P(\cdot\mid s_{t},\mathbf{a}_{t}). We will write τ=(st,at,rt)t≥0\tau=(s_{t},\mathbf{a}_{t},\mathbf{r}_{t})_{t\geq 0} to denote the trajectories of the system, where rt:=(ri,t),i∈N\mathbf{r}_{t}:=(r_{i,t}),i\in\mathcal{N}.

Policies and Value Functions.

Nash Policies.

The solution concept that will be focusing on is the Nash Policy. Formally:

A joint policy, π∗=(πi∗)i∈N∈Π\pi^{*}=(\pi_{i}^{*})_{i\in\mathcal{N}}\in\Pi, is a Nash policy if for each agent i∈Ni\in\mathcal{N} it holds that

i.e., if the policy, πi∗\pi_{i}^{*}, of each agent i∈Ni\in\mathcal{N} maximizes agent ii’s value function for each starting state s∈Ss\in\mathcal{S} given the policies, π−i∗=(πj∗)j≠i\pi^{*}_{-i}=(\pi^{*}_{j})_{j\neq i}, of all other agents j≠i∈Nj\neq i\in\mathcal{N}. Similarly, a joint policy π∗=(πi∗)i∈N\pi^{*}=(\pi_{i}^{*})_{i\in\mathcal{N}} is an ϵ\epsilon-Nash policy if there exists an ϵ>0\epsilon>0 so that for each agent ii

We note that the definition of Nash policy is the same if s∼ρs\sim\rho (random starting state).

Markov Potential Games.

We are ready to define the class of MDPs that we will focus on for the rest of the paper, i.e., Markov Potential Games.

Similar to normal-form games, one may also define more general notions of MPGs, such as ordinal or weighted Markov Potential Games. Specifically, if for all agents i∈Ni\in\mathcal{N}, all states s∈Ss\in\mathcal{S} and all policies πi,πi′∈Πi,π−i∈Π−i\pi_{i},\pi_{i}^{\prime}\in\Pi_{i},\pi_{-i}\in\Pi_{-i}, the function Φs,s∈S\Phi_{s},s\in\mathcal{S} satisfies

then the MDP, G\mathcal{G}, is called an Ordinal Markov Potential Game (OMPG). If there exist positive constants wi>0,i∈Nw_{i}>0,i\in\mathcal{N} so that

then G\mathcal{G} is called a Weighted Markov Potential Game (WMPG).

Similarly to normal-form games, such classes are naturally motivated also in the setting of multi-agent MDPs. As Example 2 in Section B.1 shows, even simple potential-like settings, i.e., settings in which coordination is desirable for all agents, may fail to be exact MPGs (but may still be ordinal or weighted MPGs) due to the dependence of both the rewards and the transitions on agents’ decisions. From our current perspective, ordinal and weighted MPGs (as defined in Remark 1) remain relevant, since as we argue, policy gradient still converges to Nash policies in these classes of games (see Remark 5).

Independent Policy Gradient and Direct Parameterization

We assume that all agents update their policies independently according to the projected gradient ascent (PGA) or policy gradient algorithm on their policies. Independence here refers to the fact that (PGA) requires only local information (each agent’s own rewards, actions and view of the environment) to form the updates, i.e., to estimate that agent’s policy gradients. Such protocols are naturally motivated and particularly suitable for distributed AI settings in which all information about the interacting agents, the type of interaction and the agent’s actions (policies) is encoded in the environment of each agent.In practice, even though every agent treats their environment as fixed, the environment changes as other agents update their policies. This is what makes the analysis of such protocols particularly challenging in full generality. It also highlights the importance of studying classes of games (MDPs) in which convergence of independent learning protocols can be obtained such as zero-sum stochastic games or MPGs as we do in this paper.

for each agent i∈Ni\in\mathcal{N}, where PΔ(Ai)SP_{\Delta(\mathcal{A}_{i})^{S}} is the projection onto Δ(Ai)S\Delta(\mathcal{A}_{i})^{S} in the Euclidean norm. We also assume that all players i∈Ni\in\mathcal{N} use direct policy parameterizations, i.e.,

with xi,s,a≥0x_{i,s,a}\geq 0 for all s∈S,a∈Ais\in\mathcal{S},a\in\mathcal{A}_{i} and ∑a∈Aixi,s,a=1\sum_{a\in\mathcal{A}_{i}}x_{i,s,a}=1 for all s∈Ss\in\mathcal{S}. This parameterization is complete in the sense that any stochastic policy can be represented in this class .

In practice, agents use projected stochastic gradient ascent (PSGA), according to which, the actual gradient, ∇πiVρi(π(t))\nabla_{\pi_{i}}V_{\rho}^{i}(\pi^{(t)}), is replaced by an estimate thereof that is calculated from a randomly selected (yet finite) sample of trajectories of the MDP. This estimate, ∇^πi(t)\hat{\nabla}_{\pi_{i}}^{(t)} may be derived from a single or a batch of observations which in expectation behave as the actual gradient. We choose the estimate of the gradient of VρiV^{i}_{\rho} to be

where s0t∼ρs_{0}^{t}\sim\rho, and Ri(T,t)=∑k=0Tri,tkR^{(T,t)}_{i}=\sum_{k=0}^{T}r^{k}_{i,t} is the sum of rewards of agent ii for a batch of time horizon TT along the trajectory generated by the stochastic gradient ascent algorithm at its tt-th iterate (recall that the discount factor, γ\gamma, functions as the probability to continue at each step, so TT is sampled from a geometric distribution).

The direct parameterization is not sufficient to ensure that the variance of the gradient estimator is bounded (as policies approach the boundary). In this case, we will require that each agent i∈Ni\in\mathcal{N} uses instead direct parameterization with α\alpha-greedy exploration as follows

where α\alpha is the exploration parameter for all agents. Under α\alpha-greedy exploration, it can be shown that (3) is unbiased and has bounded variance (see Lemma 4.6). The form of PSGA is

Structural Properties of Markov Potential Games

The first question that we examine, is whether MPGs possess a deterministic Nash policy profile, as is the case in normal-form potential games . In Theorem 3.1, we show that this important property indeed carries over (which settles part (a) of informal Theorem 1.2).

Let G\mathcal{G} be a Markov Potential Game (MPG). Then, there exists a Nash policy π∗∈Δ(A)S\pi^{*}\in\Delta(\mathcal{A})^{S} which is deterministic, i.e., for each agent i∈Ni\in\mathcal{N} and each state s∈Ss\in\mathcal{S}, there exists an action ai∈Aia_{i}\in\mathcal{A}_{i} so that πi∗(ai∣s)=1\pi_{i}^{*}(a_{i}\mid s)=1.

The proof of Theorem 3.1 (which is deferred to Appendix B) exploits the fact that we can iteratively reduce the non-deterministic components of an arbitrary Nash policy profile that corresponds to a global maximizer of the potential and still retain the Nash profile property at all times. At each iteration, we isolate an agent i∈Ni\in\mathcal{N}, and find a deterministic (optimal) policy for that agent in the (single-agent) MDP in which the policies of all other agents but ii remain fixed. The important observation is that the resulting profile is again a global maximizer of the potential and hence, a Nash policy profile. This argument critically relies on the MPG structure and does not seem directly generalizable to MDPs that do not satisfy Definition 2.

Sufficient Conditions for MPGs.

We next turn to the question of which types of games are captured by Definition 2. It is tempting to think that MDPs which are potential at every state (meaning that the immediate rewards at every state are captured by a (normal-form) potential game at that state) are trivially MPGs. As we show in Examples 1 and 2, this intuition fails in the most straightforward way: we can construct simple MDPs that are potential at every state but which are purely competitive (do not possess a deterministic Nash policy) overall (Example 1) or which are cooperative in nature overall but which do not possess an exact potential function (Example 2).

Consider the two-agent, two-state, and two actions per state MDP, G=(S={0,1},N={A,B},(Ai={0,1},Ri)i∈N,P,ρ)\mathcal{G}=\left(\mathcal{S}=\{0,1\},\mathcal{N}=\{A,B\},(\mathcal{A}_{i}=\{0,1\},R_{i})_{i\in\mathcal{N}},P,\rho\right) in Figure 2. At state (11), agent A always receives +2+2 () and agent B always receives (+2+2) regardless of the actions they choose. That is, the reward functions for both states are constant, which implies that both states are potential games. The transitions are determinstic and are given by

where ⊕\oplus denotes the xor operator or equivalently, addition modulo 22, i.e., 1⊕1=01\oplus 1=0. The MDP G\mathcal{G} is illustrated in Figure 2.

To show that G\mathcal{G} is not a MPG, it suffices to show that it cannot have a deterministic Nash policy as should be the case according to Theorem 3.1. To obtain a contradiction, assume that agent AA is using a deterministic action aA0∈{0,1}a_{A}^{0}\in\{0,1\} at state . Then, agent BB, who prefers to move to state 11, will optimize their utility by choosing the action aB0∈{0,1}a^{0}_{B}\in\{0,1\} that yields aA0⊕aB0=1a^{0}_{A}\oplus a_{B}^{0}=1. In other words, given any deterministic action of agent AA at state , agent BB can choose an action that always moves the sequence of play to state 11. Thus, such an action cannot be optimal for agent AA which implies that the MDP G\mathcal{G} does not have a deterministic Nash policy profile as claimed.

Intuitively, the two agents in Example 1 play a game of matching pennies in terms of the actions that they choose (since they prefer playing in opposing states). Thus, competition arises due to the opposing preferences of the agents over states even though the immediate rewards at each states are determined by normal form potential games.

Example 2 shows that a state-based potential game may fail to be a MPG even if agents have similar preferences over states. In that case, the reason is that one cannot find an exact potential function due to the dependence of the transitions on agents’ actions. However, in the case of Example 2, it is straightforward to show that the game is an ordinal potential game, cf. Remark 2.

Consider the two-agent, two-state MDP, G=(S={0,1},N={A,B},{Ai,\mathcal{G}=(\mathcal{S}=\{0,1\},\mathcal{N}=\{A,B\},\{\mathcal{A}_{i}, Ri}i∈N,P,ρ)R_{i}\}_{i\in\mathcal{N}},P,\rho) in Figure 2. At state s0s_{0}, each agent has two actions, Ai={0,1}\mathcal{A}_{i}=\{0,1\}, whereas at state s1s_{1}, each agent has a single action. The transitions and instantaneous rewards, (RA(s,a),RB(s,a)),s=0,1,a=(aAs,aBs)(R_{A}(s,\mathbf{a}),R_{B}(s,\mathbf{a})),s=0,1,\mathbf{a}=(a^{s}_{A},a^{s}_{B}) of this MDP are shown in Figure 2. If the action profile a=(aA0,aB0)=(0,0)\mathbf{a}=(a^{0}_{A},a^{0}_{B})=(0,0) is selected at state s0s_{0}, then the play remains there, otherwise the play transitions to state s1s_{1} and remains there forever.

where p,q∈p,q\in are the probabilities with which agents AA and BB respectively select their action at state s0s_{0}. This expression clearly indicates the complexity that emerges in MPGs versus static games. Namely, the first term of the value function is a common term (same for both agents) that can conveniently become part of a potential function. However, the second term is a mixture of a common term (denominator) and a term that is different for each agent (numerator). The reason is that the policy of each agent determines the time that the agents spend at each state and thus, it does not (generally) allow for an agent independent term (as required by the definition of a potential game). However, this game is clearly a potential-like game in which agents have common interests. This motivates to look at the notion of ordinal or weighted MPGs. Note that (by a straightforward calculation) this game is an ordinal MPG for the potential function Φs=ϕs\Phi_{s}=\phi_{s} for s=0,1s=0,1.

Based on the intuition from the previous Examples, we formulate the following sufficient conditions in Proposition 3.2 which ensure that a state based potential game (i.e., a game that is potential at every state) is also a MPG according to Definition 2 (cf. Theorem 1.2 part (c)).

Consider a MDP G\mathcal{G} in which every state s∈Ss\in\mathcal{S} is a potential game, i.e., the immediate rewards R(s,a)=(Ri(s,a))i∈NR(s,\mathbf{a})=(R_{i}(s,\mathbf{a}))_{i\in\mathcal{N}} for each state s∈Ss\in\mathcal{S} are captured by the utilities of a (normal-form) potential game with potential function ϕs\phi_{s}. Additionally, assume that one of the following conditions holds

Agent-Independent Transitions: P(s′∣s,a)P(s^{\prime}\mid s,\mathbf{a}) does not depend on a\mathbf{a}, that is, P(s′∣s,a)=P(s′∣s)P(s^{\prime}\mid s,\mathbf{a})=P(s^{\prime}\mid s) is just a function of the present state for all states s,s′∈Ss,s^{\prime}\in\mathcal{S}.

If either C1 or C2 are true, then G\mathcal{G} is a MPG.

As the rest of the proofs of Section 3, the proof of Proposition 3.2 is provided in Appendix B. The following remarks are due.

Condition C1 can also be viewed as a special case of condition C2. However, due to its simplicity, it is more instructive to state C1 separately. Condition C2 (or variations of it) are already present in existing studies of potential-like MDPs . Example 2 shows that such conditions are restrictive, in the sense that they do not capture very simple MDPs that intuitively have a potential-like (cooperative) structure. This motivates the study of ordinal or weighted potential games as natural models to capture such cases. As we show, our convergence results about independent policy gradient naturally extend to these classes as well (see Remark 5).

The previous discussion focuses on games that are potential at every state as natural candidates to generalize the notion of normal-form games to state games. This leaves an important question unanswered: are there games which are not potential at every state but which are captured by the our current definition of MPGs? Example 3 answers this question in the affirmative. Together with Example 1, this settles the claim in Theorem 1.2, part (b).

At state s0s_{0}, agents’ rewards, (R1(s0,a),R2(s0,a))(R_{1}(s_{0},\mathbf{a}),R_{2}(s_{0},\mathbf{a})) form a constant sum (equivalent to zero-sum) game. The agents’ actions at s0s_{0} induce a deterministic transition to a state sabs_{ab} with a,b∈{H,T}a,b\in\{H,T\} in which the only available actions are precisely the chosen actions at s0s_{0}. Each agent’s instantaneous reward at this state is the reward of the other agent at s0s_{0} (scaled by 1/γ1/\gamma). The MDP then transitions deterministically to state s1s_{1} which is a potential game with rewards (R1(s1,a),R2(s1,a))(R_{1}(s_{1},\mathbf{a}),R_{2}(s_{1},\mathbf{a})). After the agents select their actions at s1s_{1}, there is an exogenous given probability, p0p_{0}, according to which the play transitions to state s=0s=0. Otherwise it remains at s1s_{1}.

While the game at state s=0s=0 is not a potential game, the combined states in the dotted rectangle of Figure 3 do form a potential game, with potential function equal to the sum of the agent’s payoffs at s0s_{0} (the rewards of both agents are equal for every pass of the play through the states in the dotted rectangle). Thus, it is not hard to see that both value functions are of the form

for s∈{s0,s1}s\in\{s_{0},s_{1}\} and i={1,2}i=\{1,2\}, where c1(s),c2(s)>0c_{1}\left(s\right),c_{2}\left(s\right)>0 are appropriate constants that depend only the state s∈{s0,s1}s\in\{s_{0},s_{1}\} and not on the agents. Since the game at s1s_{1} is a potential game, with potential function given by a 2×22\times 2 matrix ϕ1\phi_{1}, it is immediate to see that

is a potential function so that G\mathcal{G} satisfies the definition of an MPG.

Convergence of Policy Gradient in Markov Potential Games

The current section presents the proof of convergence of (projected) policy gradient to approximate Nash policies in Markov Potential Games (MPGs). We analyze the cases of both infinite and finite samples using direct and α\alpha-greedy parameterizations, respectively.

Before we proceed with the formal statements and proofs of this section, we provide the commonly used definition of distribution mismatch coefficient applied to our setting.

Let μ\mu be any distribution in Δ(S)\Delta(\mathcal{S}) and let O\mathcal{O} be the set of policies π∈Δ(A)S\pi\in\Delta(\mathcal{A})^{S}. We call

the distribution mismatch coefficient, where dμπd^{\pi}_{\mu} is the discounted state distribution (17).

The first auxiliary Lemma has to do with the projection operator that is used on top of the independent policy gradient, so that the policy vector πi(t)\pi^{(t)}_{i} remains a probability distribution for all agents i∈Ni\in\mathcal{N} (see (PGA)). It is not hard to show (due to separability) that the projection operator being applied independently for each agent ii on Δ(Ai)S\Delta(\mathcal{A}_{i})^{S} is the same as jointly applying projection on Δ(A)S\Delta(\mathcal{A})^{S}. This is the statement of Lemma 4.1.

Let π:=(π1,...,πn)\pi:=(\pi_{1},...,\pi_{n}) be the policy profile for all agents and let

be a gradient step on the potential function for a step-size α>0\alpha>0. Then, it holds that

The main implication of Lemma 4.1 along with the equality of the derivatives between value functions and the potential function in MPGs, i.e., ∇πiVsi(π)=∇πiΦ(π)\nabla_{\pi_{i}}V_{s}^{i}(\pi)=\nabla_{\pi_{i}}\Phi(\pi) for all i∈Ni\in\mathcal{N} (see property P2 in Proposition B.1), is that running independent (PGA) on each agent’s value function is equivalent to running (PGA) on the potential function Φ\Phi. In turn, Lemma 4.2 suggests that as long as policy gradient reaches a point π(t)\pi^{(t)} with small gradient along the directions in Δ(A)S\Delta(\mathcal{A})^{S}, it must be the case that π(t)\pi^{(t)} is an approximate Nash policy. Together with Lemma 4.1, this will be sufficient to prove convergence of (PGA).

To proceed, we need the formal definition of a stationary point for the potential function Φ\Phi which is given below.

A policy profile π:=(π1,...,πn)∈Δ(A)S\pi:=(\pi_{1},...,\pi_{n})\in\Delta(\mathcal{A})^{S} is called ϵ\epsilon-stationary for Φ\Phi w.r.t distribution μ\mu as long as

In words, the function Φ(π)\Phi(\pi) cannot increase in value by more than ϵ\epsilon along every possible local direction δ=(δ1,…,δn)\delta=(\delta_{1},\dots,\delta_{n}) that is feasible (namely π+δ\pi+\delta is also a policy profile).

Let ϵ≥0\epsilon\geq 0, and let π\pi be an ϵ\epsilon-stationary point of Φ\Phi (see Definition 4). Then, it holds that π\pi is a SDϵ1−γ\frac{\sqrt{S}D\epsilon}{1-\gamma}-Nash policy.

To prove Lemma 4.2, we will need the Gradient Domination property that has been shown to hold in single-agent MDPs . This is presented in Lemma 4.3.

Let G\mathcal{G} be a MPG with potential function Φ\Phi, fix any agent i∈Ni\in\mathcal{N}, and let π=(πi,π−i)∈Δ(A)S\pi=(\pi_{i},\pi_{-i})\in\Delta(\mathcal{A})^{S} be a policy. Let πi∗\pi_{i}^{*} be an optimal policy for agent ii in the single agent MDP in which the rest of the agents are fixed to choose π−i.\pi_{-i}. Then, for the policy π∗=(πi∗,π−i)∈Δ(A)S\pi^{*}=(\pi^{*}_{i},\pi_{-i})\in\Delta(\mathcal{A})^{S} that differs from π\pi only in the policy component of agent ii, it holds that

for any distributions μ,ρ∈Δ(S)\mu,\rho\in\Delta(\mathcal{S}).

Intuitively, Lemma 4.3 implies that there is a best response structure in the agents’ updates that we can exploit to show convergence of (projected) policy gradient to a Nash policy profile. In particular, given a fixed policy profile of all agents other than ii, the decision of agent ii is equivalent to the decision of that agent in a single MDP. Thus, the following inequality (which stems directly from the gradient domination property in the single MDP)

implies that any stationary point of VsiV_{s}^{i} (w.r.t the variables xi,s,ax_{i,s,a} of agent’s ii policy with the rest of the variables being fixed) is an optimal policy for ii, i.e., a best response given the policies of all other agents.

Lemma 4.3 also suggests that there is an important difference in the Gradient Domination Property between (multi-agent) MPGs and single agent MDPs (cf. Lemma 4.1 in ). Specifically, for MPGs, the value (of each agent) at different Nash policies may not be uniqueThis is in contrast to single-agent MDPs for which the agent has a unique optimal value even though their optimal policy may not necessarily be unique. which implies that the gradient domination property, as stated in Lemma 4.3, will only be enough to guarantee convergence to one of the optimal (stationary) points of Φ\Phi (and not necessarily to the absolute maximum of Φ\Phi). Having all these in mind, we can now prove Lemma 4.2.

Fix agent ii and suppose that ii deviates to an optimal policy πi∗\pi^{*}_{i} (w.r.t the corresponding single agent MDP). Since π\pi is ϵ\epsilon-stationary it holds that (Definition 4)

Thus, with π∗=(πi∗,π−i)\pi^{*}=(\pi^{*}_{i},\pi_{-i}), Lemma 4.3 implies that

Thus, using the definition of the potential function (cf. Definition 2), we obtain that

Since the choice of ii was arbitrary, we conclude that π\pi is an SDϵ1−γ\frac{\sqrt{S}D\epsilon}{1-\gamma}-approximate Nash policy. ∎

The last critical step before we proceed to the formal statement and proof of Theorem 1.1 is that the potential function Φ\Phi is smooth. This fact is used in the analysis of both (PGA) and its stochastic counterpart (PSGA).

Let Amax⁡:=max⁡i∈N∣Ai∣A_{\max}:=\max_{i\in\mathcal{N}}|\mathcal{A}_{i}| (the maximum number of actions for some agent). Then, for any initial state s0∈Ss_{0}\in\mathcal{S} (and hence for every distribution μ∈Δ(S)\mu\in\Delta(\mathcal{S}) on states) it holds that

i.e., Φμ(π)\Phi_{\mu}(\pi) is 2nγAmax⁡(1−γ)3\frac{2n\gamma A_{\max}}{(1-\gamma)^{3}}-smooth.

Importantly, Amax⁡:=max⁡i∈N∣Ai∣A_{\max}:=\max_{i\in\mathcal{N}}|\mathcal{A}_{i}|, i.e., the maximum number of actions for some agent, scales linearly in the number of agents.

Exact gradients case.

We are now ready to prove Theorem 1.1 (restated formally), following standard arguments about (PGA). Recall that the global maximum among all values/utilities of agents must be at most one.

Let G\mathcal{G} be a MPG and consider an arbitrary initial state. Let also Amax⁡=max⁡i∣Ai∣A_{\max}=\max_{i}|\mathcal{A}_{i}|, and set the number of iterations to be T=16nγD2SAmax⁡Φmax⁡(1−γ)5ϵ2T=\frac{16n\gamma D^{2}SA_{\max}\Phi_{\max}}{(1-\gamma)^{5}\epsilon^{2}} and the learning rate (step-size) to be η=(1−γ)32nγAmax⁡\eta=\frac{(1-\gamma)^{3}}{2n\gamma A_{\max}}. If the agents run independent projected policy gradient (PGA) starting from arbitrarily initialized policies, then there exists a t∈{1,…,T}t\in\{1,\dots,T\} such that π(t)\pi^{(t)} is an ϵ\epsilon-approximate Nash policy.

The first step is to show that Φ\Phi is a β\beta-smooth function, in particular, that ∇πΦ\nabla_{\pi}\Phi is β\beta-Lipschitz with β=2nγAmax⁡(1−γ)3\beta=\frac{2n\gamma A_{\max}}{(1-\gamma)^{3}} as established in Lemma 4.4. Then, a standard ascent lemma for Gradient Ascent (see Lemma D.1 from ) implies that for any β\beta-smooth function ff it holds that f(x′)−f(x)≥12β∥x′−x∥22f(x^{\prime})-f(x)\geq\frac{1}{2\beta}\left\|x^{\prime}-x\right\|^{2}_{2} where x′x^{\prime} is the next iterate of (PGA). Applied to our setting, this gives

Thus, if the number of iterates, TT, is 16nγD2SAmax⁡(1−γ)5ϵ2\frac{16n\gamma D^{2}SA_{\max}}{(1-\gamma)^{5}\epsilon^{2}}, then there must exist a 1≤t≤T1\leq t\leq T so that ∥π(t+1)−π(t)∥2≤ϵ(1−γ)2DS\left\|\pi^{(t+1)}-\pi^{(t)}\right\|_{2}\leq\frac{\epsilon(1-\gamma)}{2D\sqrt{S}}. Using a standard approximation property (see Lemma D.2), we then conclude that π(t+1)\pi^{(t+1)} will be a ϵ(1−γ)DS\frac{\epsilon(1-\gamma)}{D\sqrt{S}}-stationary point for the potential function Φ\Phi. Hence, by Lemma 4.2, it follows that π(t+1)\pi^{(t+1)} is an ϵ\epsilon-Nash policy and the proof is complete. ∎

Finite sample case.

In the case of finite samples, we analyze (PSGA) on the value ViV^{i} of each agent ii which (as was the case for PGA) can be shown to be the same as applying projected gradient ascent on Φ\Phi. The key is to get an estimate of the gradient of Φ\Phi (3) at every iterate. Note that 1−γ1-\gamma now captures the probability for the MDP to terminate after each round (and it does not play the role of a discounted factor since we consider finite length trajectories). Lemma 4.6 argues that the estimator of equation (3) is both unbiased and bounded.

It holds that ∇^πi(t)\hat{\nabla}_{\pi_{i}}^{(t)} is an unbiased estimator of ∇πiΦ\nabla_{\pi_{i}}\Phi for all i∈Ni\in\mathcal{N}, that is

Moreover, for all agents i∈Ni\in\mathcal{N}, it holds that

It is straightforward from Lemma D.4 and the equality of the partial derivatives between the value functions and the potential, i.e., ∇πiΦμ=∇πiVμi\nabla_{\pi_{i}}\Phi_{\mu}=\nabla_{\pi_{i}}V^{i}_{\mu} for all i∈Ni\in\mathcal{N} (see property P2 in Proposition B.1). ∎

We now state and prove part (b) of Theorem 1.1.

Let G\mathcal{G} be a MPG and consider an arbitrary initial state. Let Amax⁡=max⁡i∣Ai∣A_{\max}=\max_{i}|\mathcal{A}_{i}|, and set the number of iterations to be T=48(1−γ)Amax⁡Φmax⁡D4S2ϵ6γ3T=\frac{48(1-\gamma)A_{\max}\Phi_{\max}D^{4}S^{2}}{\epsilon^{6}\gamma^{3}} and the learning rate (step-size) to be η=ϵ4(1−γ)3γ48nD2Amax⁡2S\eta=\frac{\epsilon^{4}(1-\gamma)^{3}\gamma}{48nD^{2}A^{2}_{\max}S}. If the agents run projected stochastic policy gradient (PSGA) starting from arbitrarily initialized policies and using α\alpha-greedy parametrization with α=ϵ2\alpha=\epsilon^{2}, then there exists a t∈{1,…,T}t\in\{1,\dots,T\} such that in expectation, π(t)\pi^{(t)} is an ϵ\epsilon-approximate Nash policy.

Let δt=∇^π(t)−∇πΦμ(π(t))\delta_{t}=\hat{\nabla}_{\pi}^{(t)}-\nabla_{\pi}\Phi_{\mu}(\pi^{(t)}) and set λ=(1−γ)32nγAmax⁡\lambda=\frac{(1-\gamma)^{3}}{2n\gamma A_{\max}} (the inverse of the smooth parameter in 4.4). Moreover, we set y(t+1)=PΔ(A)S(π(t)+η∇πΦ(π(t)))y^{(t+1)}=P_{\Delta(\mathcal{A})^{S}}(\pi^{(t)}+\eta\nabla_{\pi}\Phi(\pi^{(t)})) (y(t+1)y^{(t+1)} captures the next iterate of the projected (deterministic) gradient ascent).

We follow the analysis of Projected Stochastic Gradient Ascent for non-convex smooth-functions (see , Theorem 2.1) that makes use of the Moreau envelope. Let

(definition of Moreau envelope for our objective Φ\Phi). From the definition of ϕ\phi and a standard property of projection we get

Using the definition of Moreau envelope and the fact that Φ\Phi is 1λ\frac{1}{\lambda}-smooth (Lemma 4.4, after the parametrization, the smoothness parameter does not increase) we conclude that

Adding telescopically (11), dividing by TT and because w.l.o.g −Φ∈-\Phi\in, we get that

Let t∗t* be the time index that minimizes the above. We show the following inequality (which provides a lower bound on the RHS of (12):

Observe that by 1λ\frac{1}{\lambda}-smoothness of Φμ\Phi_{\mu} we get that H(x):=−Φμ(x)+1λ∥x−π(t∗)∥22H(x):=-\Phi_{\mu}(x)+\frac{1}{\lambda}\left\|x-\pi^{(t*)}\right\|_{2}^{2} is 1λ\frac{1}{\lambda}-strong convex and moreover y(t+1)y^{(t+1)} is the minimizer of HH. Therefore we get that

By taking expectation of terms above, (13) follows. Combining (12) with (13) we conclude that

To get an ϵ\epsilon-Nash policy, we have to bound ∥y(t∗+1)−π(t∗)∥2≤ϵ(1−γ)2DS(2+nAmax)\left\|y^{(t*+1)}-\pi^{(t*)}\right\|_{2}\leq\frac{\epsilon(1-\gamma)}{2D\sqrt{S}(2+\sqrt{nA_{max}})} and choose α=ϵ2\alpha=\epsilon^{2} in the greedy parametrization. This is true because of Lemma D.3 Lemma 4.2. Hence, we need to choose η,T\eta,T so that

We conclude that η\eta can be chosen to be ϵ4(1−γ)3γ48nD2Amax⁡2S\frac{\epsilon^{4}(1-\gamma)^{3}\gamma}{48nD^{2}A^{2}_{\max}S} and TT to be 48(1−γ)Amax⁡D4S2ϵ6γ3.\frac{48(1-\gamma)A_{\max}D^{4}S^{2}}{\epsilon^{6}\gamma^{3}}. ∎

Using Markov’s inequality, it is immediate to show that the statement of Theorem 4.7 holds with high probability. Namely, if we set the number of iterations to be T=48(1−γ)Amax⁡D4S2ϵ6γ3δ4T=\frac{48(1-\gamma)A_{\max}D^{4}S^{2}}{\epsilon^{6}\gamma^{3}\delta^{4}} and the learning rate (step-size) to be η=ϵ4(1−γ)3γδ248nD2Amax⁡2S\eta=\frac{\epsilon^{4}(1-\gamma)^{3}\gamma\delta^{2}}{48nD^{2}A^{2}_{\max}S}, where δ∈(0,1)\delta\in(0,1), then with probability 1−δ1-\delta there exists a t∈{1,…,T}t\in\{1,\dots,T\} such that π(t)\pi^{(t)} is an ϵ\epsilon-approximate Nash policy. However, this is a weaker than desired statement, since, optimally, the running time should be logarithmic in 1/δ1/\delta, (and not polynomial as above) . Proving such a statement though requires bounds on the higher moments of the gradient estimator (to apply martingale arguments and concentration inequalities with exponential bounds) which we could not derive using current techniques (cf. Lemma 2 in ). Such a bound would be possible if we sample multiple trajectories and take the average (per iteration).

We conclude this section by giving a remark on Weighted and Ordinal MPGs (cf. Definition in 1). It is rather straightforward to see that our results carry over for weighted MPGs. The only difference in the running time of (PGA) is to account for the weights (which are just multiplicative constants).

In contrast, the extension to ordinal MPGs is not immediate and the reason is that we cannot prove any bound on the smoothness of Φ\Phi in that case (i.e., we cannot generalize Lemma 4.4). Therefore, we cannot have rates of convergence of policy gradient. Nevertheless, it is quite straightforward that (PGA) converges asymptotically to critical points (in bounded domains) for differentiable functions. Therefore as long as Φ\Phi is differentiable, it is guaranteed that asymptotically (PGA) will converge to a critical point of Φ\Phi. By Lemma 4.2, this point will be a Nash policy.

Experiments: Congestion Games

We next study the performance of the policy gradient algorithm in a general class of MDPs that are congestion games at every state, .

We consider a MDP in which every state is a congestion game (cf. ). In the current experiment, there are N=8N=8 agents, Ai=4A_{i}=4 facilities (resources or locations) that the agents can select from and S=2S=2 states: a safe state and a distancing state. In both states, all agents prefer to be in the same facility with as many other agents as possible (follow the crowd) . In particular, the reward of each agent for being at facility kk is equal to a predefined positive weight wksafew_{k}^{\text{safe}} times the number of agents at k=A,B,C,Dk=A,B,C,D. The weights satisfy wAsafe<wBsafe<wCsafe<wDsafew_{A}^{\text{safe}}<w_{B}^{\text{safe}}<w_{C}^{\text{safe}}<w_{D}^{\text{safe}}, i.e., facility DD is the most preferable by all agents. However, if more than 4=N/24=N/2 agents find themselves in the same facility, then the game transitions to the distancing state. At the distancing state, the reward structure is the same for all agents, but reward of each agent is reduced by a constant amount, cc, where c>0c>0 is a (considerably large) constant. (We also treat the case in which cc is different for each facility in Appendix E). To return to the safe state, the agents need to achieve maximum distribution over the facilities, i.e., no more than 2=N/42=N/4 agents may be in the same facility. We consider deterministic transitions, however, the results are quantitatively equivalent also when these transitions occur with some probability (see Appendix E). The MDP is illustrated in the upper left panel of Figure 4.

Paremeters:

We perform episodic updates with T=20T=20 steps. At each iteration, we estimate the Q-functions, the value function, the discounted visitation distributions and, hence, the policy gradients using the average of mini-batches of size 2020. We use γ=0.99\gamma=0.99. For the presented plots, we use a common learning rate η=0.0001\eta=0.0001 (upper panels) or randomly generated learning rates (different for each agent) in [.00005,.0005][.00005,.0005] (lower panels) in Figure 4. Note that these learning rates are (several orders of magnitude) larger than the theoretical guarantee, η=(1−γ)32γAmax⁡n≈1e−08\eta=\frac{(1-\gamma)^{3}}{2\gamma A_{\max}n}\approx 1e-08, of Theorem 4.5. Experiments (not presented here) with even larger learning rates (e.g., η=0.001\eta=0.001) did not lead (consistently) to convergence.

Results:

The lower left panel of Figure 4 shows that the agents learn the expected Nash profile in both states in all runs (this is common for both the fixed and the random learning rates). At the safe state, the agents distribute themselves equally among the two most preferable facilities (C and D). This leads to a maximum utility and avoids a transition to the distancing (bad) state. At the distancing state, the agents learn the unique distribution (2 agents per facility) that leads them back to the safe state. Importantly, this (Nash) policy profile to which policy gradient converges to is deterministic in line with Theorem 4.5. The panels in the middle and right columns depict the L1-accuracy in the policy space at each iteration which is defined as the average distance between the current policy and the final policy of all 88 agents, i.e., L1-accuracy=1N∑i∈N∣πi−πifinal∣=1N∑i∈N∑s∑a∣πi(a∣s)−πifinal(a∣s)∣.\text{L1-accuracy}=\frac{1}{N}\sum_{i\in\mathcal{N}}|\pi_{i}-\pi_{i}^{\text{final}}|=\frac{1}{N}\sum_{i\in\mathcal{N}}\sum_{s}\sum_{a}|\pi_{i}(a\mid s)-\pi_{i}^{\text{final}}(a\mid s)|. The results are qualitatively equivalent in both cases (common and non-common learning rates). However, due to the larger step-sizes used by some agents, the algorithm becomes more responsive and exhibits faster convergence in the non-common case.

Further Discussion and Conclusions

In this paper, we have presented a number of positive results (both structural and algorithmic) about the performance of independent policy gradient ascent in Markov potential games. Specifically, deterministic Nash policies always exist and independent policy gradient is guaranteed to converge (polynomially fast in the approximation error) to a Nash policy profile even in the case of finite samples. Given these positive results, a number of interesting open questions emerge.

Price of (Markov) Anarchy. Price of Anarchy (PoA) is a classic notion in normal form games that captures the inefficiency due to the lack of a central authority that would coordinate all agents to implement the social optimum outcome. Formally, it is defined as the ratio of the social cost of the worst Nash equilibrium divided by the cost of the social optimum. PoA has been studied extensively in many classes of games including several classes of potential games for which tight PoA bounds exist (e.g. congestion games ). It would be interesting to explore to what extent this type of analysis can be generalized to Markov Potential Games as well as more general classes of Markov Games.

Stability of Deterministic Policies. When it comes to online learning in normal form potential games, it is sometimes possible to prove that the dynamics do not converge to an arbitrary Nash equilibrium, but, in fact, that most initial conditions converge to a deterministic (sometimes referred to also as pure) Nash equilibrium . To produce such equilibrium selection results, standard Lyapunov arguments do not suffice and one needs to apply more advanced techniques such as the Center-Stable-Manifold theorem which would be a fascinating direction for future work in MPGs.

Other Algorithmic Approaches: Softmax Parametrization & Natural Policy Gradient. In , the authors show asymptotic convergence to the global optimum to single-agent MDP in the tabular setting with exact gradients for the softmax policy parameterization. Moreover, polynomial convergence rate is shown when additional KL-based entropy regularizer is used, as well as dimension-free convergence to optimum when Natural Policy Gradient is applied. Extending such algorithmic techniques to the case of multi-agent MPGs is a natural direction for future work.

Global Convergence in other Multi-Agent Markov Games. Recently, there has been intense interest in understanding convergence to Nash policies for different classes of learning dynamics in Markov zero-sum games . Our approach moves in orthogonal direction focusing on MPGs and establishing strong convergence results in these games. A natural open question is whether and under what conditions can we prove strong convergence guarantees in more general classes of Markov games, possibly by combining tools and techniques from both lines of work.

Regularities beyond Equilibration in Multi-Agent Markov Games. Given the complexities of such multi-agent settings, it is highly unlikely to expect practical algorithms which can always guarantee convergence to equilibrium. This is already the case even for the more restricted setting of normal-form games . Nevertheless, strong guarantees can be shown via, e.g., existence of cyclic/recurrent orbits, invariant functions or strong social welfare guarantees . Whether such results can be extended to Multi-Agent Markov Games is a stimulating direction for future work.

Acknowledgements

This project is supported in part by NRF2019-NRF-ANR095 ALIAS grant, grant PIE-SGP-AI-2018-01, NRF 2018 Fellowship NRF-NRFF2018-07, AME Programmatic Fund (Grant No. A20H6b0151) from the Agency for Science, Technology and Research (A*STAR) and the National Research Foundation, Singapore under its AI Singapore Program (AISG Award No: AISG2-RP-2020-016).

References

Appendix A Additional Notation and Definitions: Section 2

We first provide some additional notation and definitions that will be used in the proofs.

Discounted State Distribution.

It will be useful to define the discounted state visitation distribution ds0π(s)d_{s_{0}}^{\pi}(s) for s∈Ss\in\mathcal{S} that is induced by a (joint) policy π\pi as

Appendix B Omitted Materials: Section 3

Let G=(S,N,A={Ai}i∈N,P,R,ρ)\mathcal{G}=(\mathcal{S},\mathcal{N},\mathcal{A}=\{\mathcal{A}_{i}\}_{i\in\mathcal{N}},P,R,\rho) be a Markov Potential Game (MPG) with potential Φs\Phi_{s}, for s∈Ss\in S. Then, for the value function Vsi,s∈SV_{s}^{i},s\in\mathcal{S} of each agent i∈Ni\in\mathcal{N}, the following hold

Equality of Derivatives: the partial derivatives of agent ii’s value function VsiV^{i}_{s} coincide with the partial derivatives of the potential Φs\Phi_{s} that correspond to agent ii’s parameters, i.e.,

To obtain P1, consider any 3 arbitrary policies for agent ii, notated by πi,πi′,πi′′∈Δ(Ai)S\pi_{i},\pi_{i}^{\prime},\pi_{i}^{\prime\prime}\in\Delta(\mathcal{A}_{i})^{S}. Then, by the definition of MPGs, we have that

for every starting state s∈Ss\in\mathcal{S}. This implies that we can write Vsi(πi,π−i)V^{i}_{s}(\pi_{i},\pi_{-i}) as both

Thus, we have that −Φs(πi′,π−i)+Vsi(πi′,π−i)=−Φs(πi′′,π−i)+Vsi(πi′′,π−i)-\Phi_{s}(\pi_{i}^{\prime},\pi_{-i})+V^{i}_{s}(\pi_{i}^{\prime},\pi_{-i})=-\Phi_{s}(\pi_{i}^{\prime\prime},\pi_{-i})+V^{i}_{s}(\pi_{i}^{\prime\prime},\pi_{-i}) for any arbitrary pair of policies πi′\pi_{i}^{\prime} and πi′′\pi_{i}^{\prime\prime} for agent ii, implying that agent ii’s policy has no impact on these terms. Accordingly, we can express them as

where Usi(π−i)U^{i}_{s}(\pi_{-i}) is a function that does not depend on the policy of agent ii. Thus, we can express the utility function of any agent ii in a MPG as

as claimed. To obtain P2, we use P1 for a vector xix_{i} parameterizing πi\pi_{i}, and obtain that

for any coordinate xi,ax_{i,a} with a∈Aia\in A_{i} of xix_{i}, from which we can see that our claim is true. ∎

Note that P1 serves as a characterization of MPGs. Namely, a multi-agent MDP is a MPG if and only if the value function of each agent i∈Ni\in\mathcal{N} can be decomposed in a term that is common for all players (potential function) and in a term that may be different for each agent i∈Ni\in\mathcal{N} but which depends only on the actions of all agents other than ii. This property carries over from normal form (single state) potential games. Also note that both properties, P1 and P2, hold for any (differentiable for P2) policy parameterization and not only for the direct one that we use here.

Let Φ\Phi be the potential function of G\mathcal{G}. Since the space Δ(A)S=Δ(A1)S×...×Δ(An)S\Delta(\mathcal{A})^{S}=\Delta(\mathcal{A}_{1})^{S}\times...\times\Delta(\mathcal{A}_{n})^{S} is compact and Φ\Phi is continuous, Φ\Phi has a global maximum Φmax⁡\Phi_{\max}. Let (π1∗,...,πn∗)(\pi_{1}^{*},...,\pi_{n}^{*}) denote a global maximizer, i.e., a joint policy profile at which Φmax⁡\Phi_{\max} is attained. By the Definitions of MPGs and Nash policies, this implies, in particular, that (π1∗,...,πn∗)(\pi_{1}^{*},...,\pi_{n}^{*}) is a Nash policy, since

The proof is constructive and proceeds by finding the potential function, Φs,s∈S\Phi_{s},s\in\mathcal{S} in both cases, C1-C2. Since the individual rewards of the agents at each state s∈Ss\in\mathcal{S} are captured by a potential function ϕs\phi_{s}, then for the reward, Ri(s,a)R_{i}(s,\mathbf{a}) of each agent ii at the action profile a\mathbf{a}, it holds that

If the transitions do not depend on the action of the players, we have that τ∼P\tau\sim P, where PP is an exogenously given distribution function (state-wise). In this case, we have that

Under the assumptions of condition C2, we will show that again

is a potential function for GG and that the same decomposition as in condition C1 of the value function of agent ii in a common and a dummy term applies. To see this, let πi,πi′∈Πi\pi_{i},\pi_{i}^{\prime}\in\Pi_{i} be two policies of agent ii and let π=(πi,π−i),π′=(πi′,π−i)\pi=(\pi_{i},\pi_{-i}),\pi^{\prime}=(\pi^{\prime}_{i},\pi_{-i}) where π−i\pi_{-i} is the fixed policy of all agents other than ii. Then, using (B), we have that

Using the intermediate value theorem, there exists a policy ξi\xi_{i} which is a convex combination of πi,πi′\pi_{i},\pi_{i}^{\prime} such that

Since πi,πi′\pi_{i},\pi_{i}^{\prime} correspond to probability distributions at every state s∈Ss\in\mathcal{S}, their difference is equal to (state-wise). In turn, the displayed condition in C2 implies that

which is enough to ensure that the dot product in the previous equation is equal to and the claim follows.

Summing up, in both cases, C1-C2, G\mathcal{G} is an MPG as claimed. ∎

Note that the proof of the (trivial) case in which the instantaneous rewards of all agents i∈Ni\in\mathcal{N} are equal at each state s∈Ss\in\mathcal{S} (cf. Remark 2) is similar. In this case, it is immediate to see that the instantaneous rewards are precisely given by the potential function at that state, i.e., it holds that Ri(s,a)=ϕs(a)R_{i}(s,\mathbf{a})=\phi_{s}(\mathbf{a}) for all i∈Ni\in\mathcal{N} and all s∈Ss\in\mathcal{S}. In this case, it holds that usi(a−i)≡0u_{s}^{i}(\mathbf{a}_{-i})\equiv 0 for all i∈Ni\in\mathcal{N} and all s∈Ss\in\mathcal{S} and hence,

is a potential function for GG, and the dummy terms are all equal to , i.e., Usi(π−i)≡0U_{s}^{i}(\pi_{-i})\equiv 0.

At each state, s∈{0,1}s\in\{0,1\}, the agents’ payoffs, (Rs1,Rs2)(R_{s}^{1},R_{s}^{2}), form a potential game (at that state), and are given as follows

In this MDP, agents need only to select an action at state s0s_{0}. Thus, we will denote a policy, π1\pi_{1}, of agent 11 by π1=(p,1−p)\pi_{1}=(p,1-p) where p∈p\in is the probability with which agent AA selects action at state s0s_{0}. Similarly, we will denote a policy, π2\pi_{2}, of agent BB by π2=(q,1−q)\pi_{2}=(q,1-q) where q∈q\in is the probability with which agent BB selects action at state s0s_{0}. Moreover, we will slightly abuse notation and write

We also assume that the horizon is infinite and there is a discount factor γ∈[0,1)\gamma\in[0,1). Accordingly, we can calculate the value functions V0i(π1,π2)V_{0}^{i}(\pi_{1},\pi_{2}) of agents i=A,Bi=A,B starting from state s0s_{0} as follows,

Next, we use the Performance Difference Lemma (Lemma 3.2 by ) to determine the difference in the value between two different policies. We will do this for agent 11 (the calculation is similar for agent 22: we use here 11 for agent 1 and 2 for agent BB). For a policy π=(π1,π2)\pi=(\pi_{1},\pi_{2}), we have at state s0s_{0} that

At state s1s_{1}, there is only one available action for each agent which yields a payoff of . Thus,

Moreover, concerning the discounted visitation distribution, we have that

and d0π(s1)=1−d0π(s0)=γ(1−pq)1−γpqd^{\pi}_{0}(s_{1})=1-d^{\pi}_{0}(s_{0})=\frac{\gamma(1-pq)}{1-\gamma pq}. Thus, using all the above, we have that

which shows that our initial calculations conform with the outcome specified by the Performance Difference Lemma.

Finally, a direct calculation shows that Φs=ϕs\Phi_{s}=\phi_{s} for s=0,1s=0,1 is a valid potential function for which the MDP is an ordinal MPG.

At state s0s_{0}, we consider the game with action sets A1(s0)=A2(s0)={H,T}A_{1}(s_{0})=A_{2}(s_{0})=\{H,T\} and (instantaneous) payoffs

where a1a_{1} denotes the action of agent 11 and a2a_{2} the action of agent 22 (agent 11 selects rows and agent 22 selects columns in both matrices). This is a constant sum game (equivalent to zero-sum) and hence, it is not an (ordinal) potential game. Apart from the instantaneous rewards, agents’ actions at s0s_{0} induce a deterministic transition to a state in which the only available actions to the agents are precisely the actions that they chose at state s0s_{0} and their instantaneous rewards at this state are the rewards of the other agent at s0s_{0}. In particular, there are four possible transitions to states sabs_{ab} with a,b∈{H,T}a,b\in\{H,T\}, with action sets and instantaneous rewards given by

for agents 1 and 2, respectively. Note that the visitation probability of this states is equal to the visitation probability of state s0s_{0}. After visiting one of these states, the MDP transitions to state s1s_{1} which is a potential game, with potential function given by

As mentioned above, the game in state s0s_{0} does not admit a potential function. However, the joined rewards RJ1,RJ2RJ_{1},RJ_{2} of agents 11 and 22 which result from selecting an action profile (a,b)∈H,T2(a,b)\in{H,T}^{2} at s0s_{0} and then traversing both s0s_{0} and the ensuing sabs_{ab} (part included in the dotted rectangle in Figure 3), do admit a potential function. The potential function in this case is the sum of agents’ rewards and is given by

Let π1=(x0,x1)\pi_{1}=(\mathbf{x}_{0},\mathbf{x}_{1}) denote a policy of agent 11. Here x0=(x0,1−x0)\mathbf{x}_{0}=(x_{0},1-x_{0}), where x0∈x_{0}\in is the probability with which agent 11 chooses action HH at state s0s_{0}. Similarly, x1=(x1,1−x1)\mathbf{x}_{1}=(x_{1},1-x_{1}) where x1∈x_{1}\in is the probability with which agent 11 chooses action LL at state s1s_{1}. At states sab,a,b∈{H,T}2s_{ab},a,b\in\{H,T\}^{2}, agents only have one action to choose from, so this choice is eliminated from their policy representation. Similarly, we represent a policy of agent 22 by π2=(y0,y1)\pi_{2}=\left(\mathbf{y}_{0},\mathbf{y}_{1}\right) with y0,y1∈y_{0},y_{1}\in. Let also

In the general case, p0p_{0}, i.e., the transition probability from s1s_{1} to s0s_{0}, may depend on the actions of the agents or it may be completely exogenous (i.e., constant with respect to agents’ actions). If we write

to denote the probability of transitioning from state s1s_{1} to state s0s_{0} given that the agents chose actions a1,a2∈{L,R}a_{1},a_{2}\in\{L,R\} at state s1s_{1}, then we can write p0p_{0} as

Using this notation, we can now proceed to compute the value function of each state of the MDP in Figure 3. Since the value of states sa,b,a,b∈H,T2s_{a,b},a,b\in{H,T}^{2} is equal to a constant reward plus the value of state s1s_{1} (discounted by γ\gamma), it suffices to calculate the value for states s0s_{0} and s1s_{1}. We have that

This is a system of 22 equations in the 22 unknown quantities, V01(π1,π2)V_{0}^{1}\left(\pi_{1},\pi_{2}\right) and V11(π1,π2)V_{1}^{1}\left(\pi_{1},\pi_{2}\right). Solving for these two quantities, yields the unique solution

In the case that p0p_{0} is a constant with respect to π1,π2\pi_{1},\pi_{2}, then both value functions are of the form

where c1(s),c2(s)>0c_{1}\left(s\right),c_{2}\left(s\right)>0 are appropriate constants that depend only the state s∈{s0,s1}s\in\{s_{0},s_{1}\} and on agents 1,21,2. Since the game at s1s_{1} is a potential game, with potential function given by a 2×22\times 2 matrix Φ1\Phi_{1}, it is immediate to infer that

However, if p0p_{0} depends on the actual policies of agents 11 and 22, cf. equation (19), then it is not immediate to determine a potential (or even to decide whether a (exact) potential exists or not).

Several elements of Example 3 have been selected in the sake of simplicity and are not necessary for the main takeaway, i.e., that there are MDP that are not potential at some states but which are MPGs. First, the transitions from s0s_{0} to the states sabs_{ab} need not be deterministic. To see this, let q∈(0,1)q\in(0,1) and assume that if the agents select actions H,TH,T is s0s_{0}, then the process transitions with probability qq to a state sHTs_{HT} with rewards (−1,1)/qγ(-1,1)/q\gamma and with probability (1−q)(1-q) to a state sHT′s^{\prime}_{HT} with rewards (1,−1)/(1−q)γ(1,-1)/(1-q)\gamma. The rest remains the same. Accordingly, the expected reward for agent 11 after (H,T)(H,T) has been selected in s0s_{0} is the same as in the current format.

Second, the construction with states s0s_{0} and sab,(a,b)∈H,T2s_{ab},(a,b)\in{H,T}^{2} is not the only one that leads to such an example. Another very common instance occurs in the case of aliasing between s0s_{0} and states sabs_{ab}, i.e., when the agents cannot tell these states apart. The intuition which carries over from the currently presented example is that the roles of the agents are essentially reversed between the two states but the agents do not know (from the observable features) in which state they are. Thus, any valid policy, selects the same action in both states leading to the same situation as in the presented example.

Finally, if the horizon is finite, then the instantaneous rewards in states sabs_{ab} still work if we eliminate the scaling factor (here γ\gamma). Thus, the construction works in both episodic and continuing settings.

Appendix C Omitted Materials: Section 4

To prove Lemma 4.3, we will use a multi-agent version of the Performance Difference Lemma (cf. for a single agent and for two agents).

Consider an n-agent MDP G\mathcal{G} and fix an agent i∈Ni\in\mathcal{N}. Then, for any policies π=(πi,π−i),π′=(πi′,π−i)∈Π\pi=(\pi_{i},\pi_{-i}),\pi^{\prime}=(\pi^{\prime}_{i},\pi_{-i})\in\Pi and any distribution ρ∈Δ(S)\rho\in\Delta(S), it holds that

where a−i∼π−i(⋅∣s)\mathbf{a}_{-i}\sim\pi_{-i}(\cdot\mid s) denotes the action profile of all agents other than ii that is drawn from the product distribution induced by their policies π−i=(πj)j≠i∈N∈Π−i\pi_{-i}=(\pi_{j})_{j\neq i\in\mathcal{N}}\in\Pi_{-i}.

For any initial state s∈Ss\in\mathcal{S} and joint policies π=(πi,π−i),π′=(πi′,π−i)∈Π\pi=(\pi_{i},\pi_{-i}),\pi^{\prime}=(\pi^{\prime}_{i},\pi_{-i})\in\Pi, it holds that

Taking expectation over the states s∈Ss\in\mathcal{S} with respect to the distribution ρ∈Δ(S)\rho\in\Delta(\mathcal{S}) yields the result. ∎

Fix an agent i∈Ni\in\mathcal{N} and let π=(πi,π−i),π∗=(πi∗,π−i)∈Π=Δ(A)S\pi=(\pi_{i},\pi_{-i}),\pi^{*}=(\pi_{i}^{*},\pi_{-i})\in\Pi=\Delta(\mathcal{A})^{S}. By the definition of MPGs (cf. Definition 2), it holds that

Thus, using the multi-agent version of the Performance Difference Lemma (cf. Lemma C.1), we have for any distribution μ∈Δ(S)\mu\in\Delta(\mathcal{S}) that

Thus, for any πi′∈Πi\pi^{\prime}_{i}\in\Pi_{i} and any state s∈Ss\in\mathcal{S}, it holds that

since Vsi(π)V^{i}_{s}(\pi) does not depend on aia_{i}. Substituting back in the last inequality of the previous calculations, we obtain that

where we used the policy gradient theorem () under the assumption of direct policy parameterization (cf. equation (2)). We can further upper bound the last expression by using that dμπ(s)≥(1−γ)μ(s)d^{\pi}_{\mu}(s)\geq(1-\gamma)\mu(s) which follows immediately from the definition of the discounted visitation distribution dμπ(s)d^{\pi}_{\mu}(s) for any initial state distribution μ\mu. Finally, property P2 of Proposition B.1, implies that ∇πiVρi(π)=∇πiΦρ(π)\nabla_{\pi_{i}}V^{i}_{\rho}(\pi)=\nabla_{\pi_{i}}\Phi_{\rho}(\pi) (making crucial use of the MPG structure). Putting these together, we have that

It suffices to show that the maximum eigenvalue in absolute value of the Hessian of Φ\Phi is at most 2nγAmax⁡(1−γ)3\frac{2n\gamma A_{\max}}{(1-\gamma)^{3}}, i.e., that

We first prove the following intermediate claim.

Consider the symmetric block matrix CC with n×nn\times n matrices so that ∥Cij∥2≤L\left\|C_{ij}\right\|_{2}\leq L. Then, it holds that ∥C∥2≤nL\left\|C\right\|_{2}\leq nL, i.e., if all block submatrices have spectral norm at most LL, then CC has spectral norm at most nLnL.

We will prove the claim by induction on nn. For n=2n=2 we need to show that

if ∥C11∥2,∥C12∥2,∥C21∥2,∥C22∥2≤L.\left\|C_{11}\right\|_{2},\left\|C_{12}\right\|_{2},\left\|C_{21}\right\|_{2},\left\|C_{22}\right\|_{2}\leq L. Define matrix WW to be

where II is the identity matrix (of appropriate size). If we show that WW is positive semi-definite, then it follows that WW has only non-negative eigenvalues, which, in turn, implies that the spectral norm of CC is at most 2L2L. To see this, set

W1W_{1} is positive semi-definite as a block diagonal matrix with diagonal blocks positive semi-definite matrices. Moreover, by Schur complement we get that W2W_{2} is positive semi-definite as long as L⋅IL\cdot I is positive semi-definite and L⋅I−1L⋅C12C21L\cdot I-\frac{1}{L}\cdot C_{12}C_{21} is positive semidefinite. By assumption, we have that

which implies that L⋅I−1L⋅C12C21L\cdot I-\frac{1}{L}\cdot C_{12}C_{21} has non-negative eigenvalues. Thus, W2W_{2} is positive semi-definite. We conclude that W1+W2W_{1}+W_{2} is positive semi-definite (sum of positive semi-definite matrices is positive semi-definite) and the claim follows.

For the induction step, suppose that the claim holds for an n=k−1≥2n=k-1\geq 2. To establish that it also holds for kk, we need to show that

as long as ∥Cij∥2≤L\left\|C_{ij}\right\|_{2}\leq L for all i,ji,j. Let W=kL⋅I−CW=kL\cdot I-C. To show that WW is positive semi-definite consider

By induction, it follows that W2W_{2} is positive semi-definite. We need to show that the same holds for W1W_{1}. By Schur complement we obain that W1W_{1} is positive semi-definite if and only if kL⋅I−C11−1L∑i=2kC1iCi1kL\cdot I-C_{11}-\frac{1}{L}\sum_{i=2}^{k}C_{1i}C_{i1} is positive semi-definite. It follows that

Hence W1W_{1} is positive semi-definite and the induction is complete. ∎

Returning to the statement of Lemma 4.4, we will show that

for all i,j∈Ni,j\in\mathcal{N} with CC chosen to be 2γAmax⁡(1−γ)3\frac{2\gamma A_{\max}}{(1-\gamma)^{3}}. Assuming we have shown (21), we conclude from Claim C.2 that

and hence Φ\Phi will be nCnC-smooth (the proof of Lemma 4.4 will follow).

To prove (21), we follow the same proof steps as in the proof of , Lemma D.3. We will need to prove an upper bound on the largest eigenvalue (in absolute value) of the matrix

along the direction where only agent ii is allowed to change policy.

Fix policy π=(π1,...,πn)\pi=(\pi_{1},...,\pi_{n}), agents i≠ji\neq j, scalars t,s≥0t,s\geq 0, state s0s_{0} and u,vu,v be unit vectors such that πi+t⋅u∈Δ(Ai)S\pi_{i}+t\cdot u\in\Delta(\mathcal{A}_{i})^{S} and πj+s⋅v∈Δ(Aj)S\pi_{j}+s\cdot v\in\Delta(\mathcal{A}_{j})^{S}. Moreover, let V(t)=Vs0i(πi+t⋅u,π−i).V(t)=V^{i}_{s_{0}}(\pi_{i}+t\cdot u,\pi_{-i}). and W(t,s)=Vs0i(πi+t⋅u,πj+s⋅v,π−i,−j).W(t,s)=V^{i}_{s_{0}}(\pi_{i}+t\cdot u,\pi_{j}+s\cdot v,\pi_{-i,-j}). It suffices to show that

It holds that V(t)=∑a∈Ai∑a∈A−i(xi,s0,a+tui,s0,a)∏j≠ixj,s0,ajQs0i((πi+tu,π−i),(a,a))V(t)=\sum_{a\in\mathcal{A}_{i}}\sum_{\mathbf{a}\in\mathcal{A}_{-i}}(x_{i,s_{0},a}+tu_{i,s_{0},a})\prod_{j\neq i}x_{j,s_{0},a_{j}}Q^{i}_{s_{0}}((\pi_{i}+tu,\pi_{-i}),(a,\mathbf{a})) (note that ∑a∈Ai∑a∈A−i(xi,s0,a+tui,s0,a)∏j≠ixj,s0,aj=1\sum_{a\in\mathcal{A}_{i}}\sum_{\mathbf{a}\in\mathcal{A}_{-i}}(x_{i,s_{0},a}+tu_{i,s_{0},a})\prod_{j\neq i}x_{j,s_{0},a_{j}}=1 since it is a distribution), hence taking the second derivative we have

For the remaining of the first part of the proof, we shall show

To bound the derivative of the QQ-function, observe that Qs0i((πi+tu,π−i),(a,a))=es0,a⊤(I−γP(t))−1rQ^{i}_{s_{0}}((\pi_{i}+tu,\pi_{-i}),(a,\mathbf{a}))=e^{\top}_{s_{0},a}(I-\gamma P(t))^{-1}r, where r(s0,a)r(s_{0},a) is the expected reward of agent ii (w.r.t the randomness of the remaining agents) if he chooses action aa at state s0s_{0} and P(t)P(t) is state-action transition matrix of w.r.t the joint distribution of all agents but ii, i.e., π−i\pi_{-i} and the environment.

It is clear that d2Pdt2=0\frac{d^{2}P}{dt^{2}}=0 (linear with respect to tt because of direct parametrization) and moreover ∥dPdt∥∞≤∑a∈Ai∣ui,s0,a∣≤Ai≤Amax⁡.\left\|\frac{dP}{dt}\right\|_{\infty}\leq\sum_{a\in\mathcal{A}_{i}}|u_{i,s_{0},a}|\leq\sqrt{\mathcal{A}_{i}}\leq\sqrt{A_{\max}}. Using the fact that ∥(I−γP(t))−1∥∞≤11−γ,\left\|(I-\gamma P(t))^{-1}\right\|_{\infty}\leq\frac{1}{1-\gamma}, we get

Since uu is arbitrary, the first part of (22) is proved.

For the second part, we focus on W(t)W(t) which is equal to

We consider the derivative of WW (26) and we get

The first term of the sum in absolute value is at most ∣Ai∣∣Aj∣1−γ\frac{\sqrt{|\mathcal{A}_{i}||\mathcal{A}_{j}|}}{1-\gamma} (assuming rewards lie in $.)Moreoverusing(24)thesecondtermofthesuminabsolutevalueisboundedby.) Moreover using (24) the second term of the sum in absolute value is bounded by\frac{\gamma\sqrt{|\mathcal{A}_{i}|}\sqrt{|\mathcal{A}_{i}|}}{(1-\gamma)^{2}}andthethirdtermbyand the third term by\frac{\gamma\sqrt{|\mathcal{A}_{j}|}\sqrt{|\mathcal{A}_{i}|}}{(1-\gamma)^{2}}.ToboundtheTo bound the\frac{d^{2}Q^{i}_{s_{0}}(\pi,\mathbf{a})}{dtds},thesameapproachworksthatweusedtoprove(25)withtheextrafactthatthestate−actiontransitionmatrixis, the same approach works that we used to prove (25) with the extra fact that the state-action transition matrix isP(t,s)andmoreovertherewardand moreover the rewardr(s_{0},a,b)istheexpectedrewardofagentis the expected reward of agenti(w.r.ttherandomnessofallagentsbut(w.r.t the randomness of all agents buti,j)if) ifichoosesactionchooses actionaandandjchooseschoosesbatstateat states_{0}.$

Appendix D Auxiliary Lemmas

Recall that PXP_{\mathcal{X}} denotes the projection onto some set X\mathcal{X}.

Let ff be a β\beta-smooth functionDifferentiable with ∇f\nabla f to be β\beta-Lipschitz. with convex domain X\mathcal{X}. Let x∈Xx\in\mathcal{X}, x+=PX(x−1β∇f(x))x^{+}=P_{\mathcal{X}}(x-\frac{1}{\beta}\nabla f(x)) and gX(x)=β(x−x+)g_{\mathcal{X}}(x)=\beta(x-x^{+}). Then the following holds true:

Let f(π)f(\pi) be a β\beta-smooth function in π∈Δ(A)S\pi\in\Delta(\mathcal{A})^{S}. Define the gradient mapping

and the update rule for the projected gradient is π′=π+1βG(π)\pi^{\prime}=\pi+\frac{1}{\beta}G(\pi). If ∥G(π)∥2≤ϵ\left\|G(\pi)\right\|_{2}\leq\epsilon, then

Let Φμ(π)\Phi_{\mu}(\pi) be the potential function (which is β\beta-smooth) and assume π∈Δ(A)S\pi\in\Delta(\mathcal{A})^{S} uses α\alpha-greedy parametrization. Define the gradient mapping

and the update rule for the projected gradient is π′=π+1βG(π)\pi^{\prime}=\pi+\frac{1}{\beta}G(\pi). If ∥G(π)∥2≤ϵ\left\|G(\pi)\right\|_{2}\leq\epsilon, then

It is a direct application of Lemma D.2 and the fact that Φμ\Phi_{\mu} is Lipschitz with parameter nAmax⁡(1−γ)2\frac{\sqrt{nA_{\max}}}{(1-\gamma)^{2}} (this is Proposition 3 in page 23 of ). ∎

It holds that ∇^πi(t)\hat{\nabla}_{\pi_{i}}^{(t)} is unbiased estimator of ∇πiVi\nabla_{\pi_{i}}V^{i} for all ii, that is

Moreover for all agents ii we get that (this is what the authors actually prove)

Appendix E Additional Experiments

In this part, we provide a systematic analysis of variations of the experimental setting in Section 5.

As mentioned in Remark 5, we know that policy gradient converges also in other cooperative settings which may fail to be exact MPGs. To study this case, we modify our experiment from Section 5. The setting remains mostly the same, except now in the distancing state the rewards are reduced by a differing (yet still sufficiently large) amount, ckc_{k}, for each facility k=A,B,C,Dk=A,B,C,D.

Despite the introduced asymmetry, it is still natural that cooperation is desirable in this setting. In particular, if the ckc_{k}’s for all k=A,B,C,Dk=A,B,C,D are taken to be greater than the cc of the MDP from Section 5, then the agents can be said to have even “stronger” incentive to cooperate. The results of running independent policy gradient on this variant are shown in Figure 5. Independent policy gradient requires more iterations to converge compared to the symmetric setting, but still arrives at the same Nash policy.

Coordination with more agents and facilities

We next test the performance of the independent policy gradient algorithm in a larger setting with N=16N=16 agents and Ai=5A_{i}=5 facilities, Ai={A,B,C,D,E}\mathcal{A}_{i}=\{A,B,C,D,E\} with wA<wB<wC<wD<wEw_{A}<w_{B}<w_{C}<w_{D}<w_{E} (i.e., EE is the most preferable by all agents). We use a learning rate η=0.0001\eta=0.0001 for all agents (which is again much larger than the theoretical guarantee of Theorem 4.5). All runs lead to convergence to an (optimal) Nash policy as shown in the middle and rightmost panels. The leftmost panel shows the distribution of the agents among facilities in both states, which is the same (and the optimal one) in all Nash policies that are reached by the algorithm. The results are shown in Figure 6.

Coordination with random transitions

Next, we study the effect of adding randomness to the transitions on the performance of the individual policy gradient algorithm. In this case, we experiment with the same setting as in Section 5 (i.e., N=8N=8 agents and Ai=4A_{i}=4 facilities that each agent i∈Ni\in\mathcal{N} can choose from), but use the following stochastic transition rule instead: in addition to the existing transition rules, the sequence of play may transition from the safe to the distancing state with probability p%p\% regardless of the distribution of the agents and may remain at the distancing state with probability q%q\% again regardless of the distribution of the agents there.

Two sets of results are presented in Figure 7. In the first (upper panels), we use p,q=1%,10%p,q=1\%,10\% and in the second p,q=5%,20%p,q=5\%,20\%. In both cases, we use a learning rate η=0.0001\eta=0.0001 (several orders of magnitude higher than what is required by Theorem 4.7). Independent policy gradient converges in both cases to deterministic Nash policies despite the randomness in the transitions. However, for higher levels of randomness (lower panels), the algorithm remains at an ϵ\epsilon-Nash policy for a high number of iterations. This is in line with the theoretical predictions of Theorem 4.7.