On the Complexity of Learning to Cooperate with Populations of Socially Rational Agents
Abstract
Artificially intelligent agents deployed in the real-world will require the ability to reliably cooperate with humans (as well as other, heterogeneous AI agents). To provide formal guarantees of successful cooperation, we must make some assumptions about how partner agents could plausibly behave. Any realistic set of assumptions must account for the fact that other agents may be just as adaptable as our agent is. In this work, we consider the problem of cooperating with a population of agents in a finitely-repeated, two player general-sum matrix game with private utilities. Two natural assumptions in such settings are that: 1) all agents in the population are individually rational learners, and 2) when any two members of the population are paired together, with high-probability they will achieve at least the same utility as they would under some Pareto efficient equilibrium strategy. Our results first show that these assumptions alone are insufficient to ensure zero-shot cooperation with members of the target population. We therefore consider the problem of learning a strategy for cooperating with such a population using prior observations its members interacting with one another. We provide upper and lower bounds on the number of samples needed to learn an effective cooperation strategy. Most importantly, we show that these bounds can be much stronger than those arising from a "naive” reduction of the problem to one of imitation learning.
1 Introduction
In this work, we address the problem of learning to cooperate with a socially intelligent population of agents from observations interactions between members of this population. We study cooperation in finitely-repeated, two-player, general-sum matrix games with private payoffs. W say that a population of adaptive agents is socially intelligent if its members are (1) individually Hannan-consistent and (2) compatible in the sense that any pair of agents will perform nearly as well as some Pareto-optimal Nash equilibrium of the matrix game. We argue that this model of cooperation is more realistic than those that assume identical payoffs or public utilities. In real-world applications it is unlikely that independent agents will have identical utilities, or that they will provide complete information about their preferences or future behaviour to others. In the case of AI–AI cooperation, agents developed by different companies will not have access to each other’s source-code, while in the case of human–AI cooperation, having the human fully describe there preferences or behaviour in advance may be infeasible. Therefore, the question we address in this work is: Can we learn to cooperate with a socially intelligent population of agent by observing its members cooperate with each other? We answer this question by providing upper and lower bounds on the sample complexity of learning good cooperation strategies.
If we make no assumptions about the target population, we can do little more than attempt to mimic observed behavior as closely as possible, reducing the problem to one of imitation learning. Unfortunately, the strategies of adaptive agents may depend on the full history of interaction, and so the sample complexity of imitation learning will grow exponentially in the length of the repeated game. Our main contribution is an upper-bound showing that, for partners drawn from a socially intelligent (consistent and compatible) population, we can learn to cooperate with far fewer samples than would be required by a pure imitation learning approach.
This result utilizes a class of what we refer to as imitate-then-commit strategies, which leverage the fact that the population is socially intelligent to achieve cooperation without perfect imitation. The key idea is that our agent only needs to learn to imitate a member of the target population long enough to for the average strategy to approximate a Pareto-efficient solution. Once such a strategy is identified, our agent can switch to a coercive strategy such that any Hannan-consistent partner will either continue to adhere to the current joint strategy, or else switch to a superior strategy, with either case corresponding to “successful” cooperation.
In section 2 formalize our repeated game setting, and provide background on external regret and Hannan-consistency. We also propose a definition of cooperative compatibility (Definition 2.2) that is closely related to the notion of compatibility used in [1]. In Section 2.3, we provide our novel definition of social intelligence, and describe a realistic class of agents that satisfy it. In Section 3 we formalize our learning problem as that of trying to minimize altruistic regret, which we argue is the most natural measure of successful cooperation in this setting. We also give lower bounds on its sample complexity under different sets of assumptions. Finally, in Section 4 we present an upper-bound on the number of samples needed to learn strategies that achieve small altruistic regret.
2 Preliminaries
Repeated bi-matrix games with private types.
Let denote the agent index. We assume both agents have pure strategies (henceforth "actions"). Let denote the finite type space, where denote the private types of the two agents, and denotes the joint type. We denote agent ’s payoff matrix as , and let denote the bi-matrix game parameterized by (with agent 1 as the row player). In a single episode, the agents play for a fixed number of stages . We let and denote the actions chosen by agents 1 and 2 in stage . For mixed strategies , we let . We overload and to also denote the mixed strategies that assign all probability mass to actions and , such that and are agent and ’s respective payoffs at stage . We also assume that for all , .
Let be the set of histories of length (with ), and let be the set of all histories of length at most . The strategy space for an agent is then the space of map**s , where is the set of probability distributions over the action set . As a functional, a strategy maps each type to a behavioral strategy [2, Chapter 5.2.2] that maps histories of play to action distributions, such that . We denote agent ’s expected total payoff for following strategy against as
(1) |
where the expectation is taken over the actions and sampled from the agents’ strategies.
2.1 Consistency
A natural criterion for rationality is that an agent should attempt to to achieve a payoff nearly as large as the best response to its partner’s average strategy, which we refer to as consistency. To account for the non-stationary behavior of other agents’, we specifically consider Hannan consistency [3], which in our finite-time setting simply requires that an agent have bounded external regret over stages. The external regret for agent is defined as
(2) |
where denotes the action played at stage within the history .
Definition 2.1 (Consistency).
For , an agent is -consistent if, for all types , and any partner strategy, we have that with probability at least .
We also define the expected external regret by replacing the (the action played at stage ) with their full strategy . and are related by the inequality
(3) |
which holds w.p. at least for all simultaneously (this follows directly from [4, Lemma 4.1]). We therefore only need to bound to provide high-probability regret bounds.
2.2 Cooperative compatibility
Even in a fully cooperative game, the fact that both agents are consistent does not guarantee that they will achieve an optimal outcome. In the game in Table 1a for example, both and are Nash equilibria to which consistent agents could converge, but only is optimal. In general-sum games, consistency may preclude Pareto-optimal outcomes, as in the classic prisoner’s dilemma game (Table 1b), where the only outcome in which neither player incurs positive regret is , which is Pareto-dominated by .Therefore, similar to [1], we define successful cooperation in terms of the Pareto-optimal Nash equilibria (PONE) [5] of a game .
Let be the set of Nash equilibria (NE) of . For a fully-cooperative game, will contain all globally optimal strategy profiles for . It may, however, also contain joint strategies that are highly sub-optimal. Let denote the set of Pareto optimal Nash equilibria. In this work, we say that a strategy profile if and only if , and there does not exist such that and . This means that is a PONE if it is a Nash equilibrium of , and it is not strongly Pareto-dominated by any other Nash equilibrium of . Intuitively, if two agents are individually consistent, and willing to cooperate with each other, their joint payoff profile should not be dominated by any PONE. We formalize this intuition as follows:
Definition 2.2 (Compatibility).
For , two agents and are -compatible if, when played together, for any joint type , w.p. at least , s.t.
(4) |
for both and .
A pair of agents is compatible if, when paired together, with high-probability over their path of play there will exist some PONE that does not -dominate their realized payoffs. Note that this definition is the approximate and finite-horizon version of the one provided in [1].
2.3 Socially intelligent agents
We argue that it is natural to model an existing population of cooperating agents as a set of approximately compatible, but otherwise heterogeneous agents. We therefore introduce the more general idea of a socially intelligent class of agents that are compatible with any other member of their class:
Definition 2.3 (Social Intelligence).
A set of agents forms a socially intelligent class w.r.t. if, for some , each agent is -consistent for all , and any two agents are -compatible over all joint types . An individual agent is called socially intelligent if it forms a socially intelligent class with itself.
The Hannan consistency requirement ensures that any agent in the population always has bounded average regret, whereas the approximate compatibility means if both agents are from , with high probability there will exist some PONE that does not -dominate their path of play. Below we describe a socially intelligent class based on a pre-agreed coordination protocol.
Coordination protocols
For a type space , we first define a function that maps from each joint type to a strategy profile in . We can think of as a common “convention” the agents in have settled upon. Since we assume private types, members of do not know each other’s type at the beginning of their interaction. If any type can be communicated to others in a sequence of actions, then agents in can agree on a coordination protocol similar to a handshake. Let the protocol be a map from types to a history-dependent policy. Then, at the beginning of each interaction, both agents will play for -steps in order to communicate their types. After coordinating with each other, the agents play for the remaining steps. The agents must still ensure their partner does not deviate from for safety against adversarial “imposters”. Since playing a PONE jointly will lead to low regret for both, if ’s regret exceeds a certain threshold, this would indicate is deviating from significantly. The threshold can be chosen by the aid of the following lemma,
Lemma 2.4.
For any , if both players follow strategy at each stage, then with probability at least we have
(5) |
which follows from an application of the Azuma-Hoeffding inequality (shown in Appendix A.1). Then the question is what safe strategy should the fall back into, if the rule is triggered. We base the fallback strategy on the multiplicative weights [6] update rule, defined as:
(6) |
for , where is the uniform strategy. Define as the agent that plays with learning rate . The expected external regret of is bounded as
(7) |
surely [4, Theorem 2.2]. We then define the agent’s overall strategy as follows:
-
1.
In first steps, play
-
2.
If ’s behaviour in not compatible with for any , switch to for all subsequent stages.
-
3.
While , play .
-
4.
Otherwise, switch to for all subsequent stages.
The theorem below shows that agents that follow the social authentication strategy above form a socially intelligent class among themselves. All proofs have been deferred to appendix A.2.
Theorem 2.5.
For any , let , and let . Then for , the is -socially intelligent.
3 Learning to Cooperate
Going forward, we will assume that our agent (henceforth referred to as the “AI”) will take the role of agent , while the other agent (referred to as the “partner”) will be agent . Our goal is to choose a strategy for the AI that can cooperate with a partner drawn from some target population nearly as effectively as agents from this population cooperate with one another. For parametric game , with type space , we will let the target population be a set of strategies forming an -SI class w.r.t. . Ideally, we would hope to choose an AI strategy that can cooperate with without any additional information the strategies in . Looking at the coordination protocol example in Section 2.3, we can see that in many cases a population is likely to use arbitrary conventions to coordinate their behavior, and intuitively we would imagine cooperation to be impossible without prior knowledge of these conventions. (We make this intuition formal in Theorem 3.5).
We therefore consider the problem of learning an cooperative AI strategy using prior observations of members of the target population interacting with one another. We define a social learning problem by a tuple , where is the target population (SI w.r.t. ), is a distribution over , while is a distribution over the joint type space . We can think of as the set of possible strategies that any member of the target population might follow, while is the frequency of those strategies within the population. To choose an AI strategy, we leverage a dataset covering episodes of length . In each episode , two agents and are sampled independently from , and played together under the joint type . The AI observes the full history , along with the agents’ types and . We denote a specific learning algorithm as a data conditioned strategy .
3.1 Altruistic Regret
We seek an AI strategy that minimizes the regret relative to some Pareto optimal solution to . Rather than minimizing regret in terms of the AI’s own payoffs, however, we seek to minimize partner’s relative to their (worst case) PONE in . We formalize this regret with the following definition:
Definition 3.1 (Altruistic Regret).
Let the denote the PONE with the lowest payoff for the agent where . The altruistic regret of agent is defined as
(8) |
In practical cooperation tasks, we would expect outcomes that have low regret for the partner will have low regret for the AI as well.
The cooperation objective for the AI agent can then be formalized as minimising the altruistic regret. Unlike the definition suggests, the AI agent must know its own type as well. This is due to the fact that as seen in the coordination protocols example, if the AI fails to imitate a human of its type or fail to communicate its type correctly, the partner might switch to a safe strategy.
The goal for the AI is to minimize its expected altruistic regret over partners sampled from and types sampled from . The following lemma shows that we can treat the problem of minimizing regret with respect to a heterogeneous population as that of minimizing regret w.r.t. a single stochastic strategy.
Lemma 3.2.
Let be a finite set of agents that are -socially intelligent w.r.t. type space , and let be a distribution over . There exists a mixed strategy that forms an -socially intelligent class, and which is equivalent to playing against partners sampled from in expectation.
Proof. In a perfect recall game, every behavioural strategy has an equivalent mixed strategy and vice-versa [7]. Thus can equivalently be defined as a distribution over mixed strategies so that . Then defining where denotes a pure strategy (i.e. action) completes the proof.
In order to show the joint impact of consistency and compatibility on the learning problem, we discuss the cases where the population is either consistent or compatible, but not both.
3.2 Consistency without Compatibility
Assume that consists of agents that are consistent but not necessarily compatible. The most general class in this case is the class of all no-external-regret learners (no-regret henceforth). It is a well-established result that the long-run average of no-regret learning converges to the set of coarse correlated equilibria. The question is whether the AI agent can learn to do better than a coarse correlated equilibrium when paired with a member of , using only a dataset that consists of histories of play for different CCEs.
Theorem 3.3.
There exists a consistent yet incompatible class of agents such that even with an infinite amount of data, the AI cannot learn strategies that minimise altruistic regret.
Proof. The proof follows from the theorem 3 of Monnot and Piliouras [8] which shows that given any coarse correlated equilibrium of a two-player normal-form game, there exists a pair of no-regret learners that would converge to it. Since can be any subset of no-regret learners, we cannot exclude those who converge to inefficient CCE. If the class contains only the agents that converge to Pareto-inefficient CCE, we cannot hope to learn optimal strategies from any dataset. Given an observed CCE in the dataset, assume that the AI knows it is facing one of the two agents that generated , but does not know their type explicitly. Using a Stackelberg argument similar to Brown et al. [9], we prove in appendix B.2 that the AI can compute and commit to a leader strategy such that the payoffs are never strongly Pareto-dominated by However even in this case, we cannot eliminate the possibility of it being weakly dominated.
Regardless of the dataset, in the online phase, the AI faces a new agent from each time and does not know their type. We may hope to learn a classifier to quickly infer our partner’s type online from their behaviour, assuming there exists a map** from initial behaviour to types. However, since consists only of no-regret learners guaranteed to converge to a CCE in self-play, they have no reason to initially communicate their types to each other.
3.3 Compatibility without consistency
Assume that the members of are compatible but not consistent. We can construct such a class by using the coordination protocols example from section 2.3. Now, when agents from successfully identify each other after the authentication phase, they proceed with playing the agreed-upon PONE. However, if at any moment they play the wrong action, there is no constraint on what strategy they will switch to. This setting is equivalent to the case considered by Loftin and Oliehoek [10] in their impossibility result. The members of can employ grim-trigger strategies that forever punish the other agent, triggered by a mistake at any point. Even if we eliminate grim-trigger strategies, the impossibility result has proven that there still exists strategies the members of can play once triggered, and make the other agent suffer regret arbitrarily close to with payoffs in Since a single mistake during the online interaction can lead to partner playing strategies that yield linear regret, the outsider must learn to imitate at least one member of perfectly from the dataset. Therefore the offline problem in this setting reduces to imitation learning, in particular the no-interaction case from Rajaraman et al. [11].
For each agent, the authentication protocol is equivalent to a history-dependent policy that they commit to playing in the first time-steps. The lower-bound on the expected sub-optimality of the imitation learning from Rajaraman et al. [11] is based on the fact that the imitator cannot do better than uniformly random in unseen states. In the case of , states correspond to histories up to length Since every -step history can be uniquely embedding a type, an unseen history means a high probability of making a mistake if paired with the corresponding type. Therefore, to avoid linear altruistic regret, the AI must observe at least samples, where is the set of all possible -step histories.
Theorem 3.4.
Let be the number of unique samples of -step histories in the dataset. There exists a class of agents with a -step social authentication protocol such that to bound the probability of failing to authenticate, we need samples. Then for growing , the sample complexity lower bound is
Proof. Consider the coordination protocol example mentioned above. Let be missing from the dataset. When the AI is paired with the corresponding partner type, the probability of correctly authenticating is and thus authentication fails with probability Assuming we face each type uniformly randomly, if we have unique samples, the probability of facing an unobserved history is since . Then the probability of failing is In order to bound this by we need samples. Since -steps need to embed each type uniquely, grows with the size of the type space. For large , the bound is dominated by thus we have as grows.
An immediate conclusion that follows from theorem 3.4 is that for the case of compatibility without consistency, this sample complexity is for bounding the probability of suffering linear regret. This is due to the fact that failing to authenticate can now lead to linear regret, since the partner can switch to arbitrary strategies.
3.4 Lower bound for socially intelligent populations
Theorem 3.5.
Let denote the number of histories with unique first -steps in dataset generated by the members of a socially intelligent class . There exists a where with probability
Proof: Let be a socially intelligent class of agents following a coordination protocol akin to the one described in section 2.3. The probability follows from the proof of theorem 3.4 as the probability of failing to authenticate. If the authentication fails, the partner switches to an arbitrary Hannan-consistent strategy. As stated in section 3.2, a consistent partner strategy may never communicate the partner’s type. Without knowing the partner’s type, the agent’s worst-case average altruistic regret can be , since it cannot compute its true regret without the partner’s type (see definition 3.1). Let there be two partner types or If the agent mistakenly assumes , its behaviour attempts to minimize . Meanwhile, the play of the partner will be a no-regret algorithm with respect to the external regret Having no other constraints in the type space, there is nothing stop** us from constructing a such that a strategy minimizing ends up maximizing Imagine the ideal case of where plays the fixed best action in hindsight throughout Then the altruistic regret observed by is Let for all Then the altruistic regret is which is in the worst-case.
4 Upper bound for socially intelligent populations
A key idea behind this work is that against a socially intelligent target population, rather than trying to imitate a member of the population perfectly throughout the entire episode, the AI only needs to imitate them long enough to learn about its partner’s private type. Once it has this information, the AI can leverage the fact that the partner’s strategy is consistent against any strategy, and try to “coerce” the human partner into playing a strategy that minimizes the altruistic regret. We will refer to such strategies as imitate-then-commit (IC) strategies, which use the previous observations to learn an imitation strategy to follow over the first steps of the interaction. In this section we provide an upper bound on the altruistic regret of a specific (IC) strategy, as a function of the number of episodes in , subject to the following assumptions:
Assumption 4.1.
For , and some , we have that
-
1.
is -consistent.
-
2.
is -compatible.
Imitation learning.
Under an imitate-then-commit strategy, the sample complexity is defined entirely by the number of episodes the AI needs to observe to learn a good -step imitation policy. Fortunately, imitation learning is a well-studied problem, and we can largely leverage existing complexity bounds. The one caveat is that in this setting we need bounds on the total variation distance between the distribution over the partial history under the population strategy , and that under the learned strategy. Given the dataset , we define the imitation strategy such that is the empirical distribution over agent ’s actions for each history-type pair occurring in , while is the uniform distribution over for . We then define the marginal strategy , which can be implemented by sampling a dataset , and then following the imitation strategy defined by for the next steps. We then have the following bound on the distribution of under the imitation strategy:
Lemma 4.2.
Let be the distribution over partial histories under the population strategy , and let be their distribution under . We have that
(9) |
where
Imitate-then-commit strategy.
For history , we let denote the empirical joint strategy played up to and including step . We show that, using , it is possible to construct a mixture over mixed strategies that, in expectation over , the partner’s payoff under their best response to will be at least as large as their payoff under . The corresponding IC strategy will operate as follows:
-
1.
Sample and compute the imitation strategy .
-
2.
Play for the first steps, and observe .
-
3.
Compute a suitable mixture from , and sample
-
4.
Sample actions from for the remaining steps
We then have the following upper bound on the altruistic regret achievable with an imitate-then-commit strategy:
Theorem 4.3.
Given that Assumption 4.1 holds for , there exists a data-dependent strategy such that when played by the AI as agent , the altruistic regret satisfies
(10) |
where and is defined as
(11) |
and where the expectation is taken over , , and .
Proof sketch:
By Lemma 4.2, we can learn an imitation strategy such that the corresponding distribution over and is close to that under in self-play. As is compatible, both agents’ payoffs under must be close to those under some PONE. Finally, we can construct a mixture for agent such that agent ’s payoffs under its (approximate) best-response are almost as large as those under (see Appendix B.2).
5 Related Work
Our work is closely related to the previous targeted learning model [1, 13, 14],which defines similar compatibility and consistency criteria. The notion of targeted optimality [15] include convergence to learning an approximately best response in a multi-agent model with high probability in a tractable number of steps against a population of memory-bounded adaptive agents. The main difference with our work is that targeted learning only requires consistency against a specific target class of partners, which generally would not include the agent itself, or other adaptive agents. We require socially intelligent agents to be consistent against all possible partner strategies. We also require that cooperation and consistent learning occur over a fixed time horizon , rather than asymptotically. These differences mean that a hypothetical “universally cooperative” agent might be able to leverage the consistency of its partner to achieve cooperation without a prearranged convention. Socially intelligent agents can modeled as individually rational learners [16] to achieve Pareto-efficient joint behavior. Our research builds on this work by considering a learning setting where the agent when paired with any member of the population will achieve at least the same utility with high probability as the Pareto-efficient approach.
The problem of training agents to be able to cooperate with previously unseen partners is sometimes referred to as ad hoc teamwork [17, 18] or zero-shot coordination [19], especially in the context of multiagent reinforcement learning. Many approaches in reinforcement learning train cooperative policies that are robust to possible strategies that a human or an AI agent can follow [20]. A lot of these methods build a “population” of partner strategies and maximizes the diversity of this population in order to train the AI’s policy against it [21, 22]. Other approaches assume that there is no prior coordination between the agents [19] to learn rational joint strategies while estimating the agents’ mutual uncertainty about one-another’s strategies [23]. Ad-hoc multiagent coordination can be helpful to learn cooperation among AI agents with the “other-play” algorithm [19] that finds such a strategy as a solution to the corresponding label free coordination problem [23]. A possible approach to solve these problems can be self-play [24] where the agent can optimize themselves by playing with past iterations of themselves in order to estimate the strategies of unseen partners. However, the "self-play" approach can learn cooperative strategies which can "over-fit" [25] to one another in the population of agents. A key goal of Ad hoc coordination (teamwork) and aligned research in zero-shot coordination work has been to avoid this type of overfitting [26]. Our problem domain is closely related to both ad hoc teamwork or zero-shot coordination, since we consider training an agent to cooperate with previously unseen partners, and assume no control over the partner. Even though population-based training approaches to ad hoc teamwork are common, they focus on fully cooperative environments such as Dec-POMDPs, where the main issue is creating a diverse enough population to train with [27]. We consider partners that are self-interested, and do not assume identical payoffs.
Finally, in the case of Hannan-consistent partners, our problem setting is closely related to strategizing against and learning to manipulate no-regret learners [28, 9]. This line of work studies whether an optimizer agent can achieve better payoff than CCE against no-regret learners by learning to enforce a Stackelberg equilibria on them. Their emphasis is on online learning and the optimizer’s payoff, while we focus on the offline setting and cooperation.
6 Conclusion
We provide formal guarantees for successful and reliable cooperation of AI agents with populations of socially intelligent rational agents. This is based on the assumptions that 1) agents in the population are individually rational, and 2) agents in the population when cooperating with another agent in the same group can achieve, at least the same utility that they would with respect to some Pareto efficient equilibrium strategy. We formalize the notion of consistency and cooperative compatibility of agents in two-player general-sum finitely-repeated bi-matrix games between the agents and the population with private type. Our theoretical guarantees are in the offline cooperation setting where the agent has to cooperate with unseen partners in the population to strategize against and manipulate no-regret policies for which we formalize the idea of altruistic regret. We prove that the assumptions on its own are insufficient to learn zero-shot cooperation with partners of the socially intelligent target population. We provide upper bounds on the sample complexity needed to learn a successful cooperation strategy along with lower bounds on when the multi-agent cooperation setting is needed with respect to the populations’ trajectories, the state space and the length of the learning episodes. The bounds in these settings of the agent actively querying the MDP without knowing the transition dynamics of the population or the agent observing the populations’ transition dynamics are much stronger than the bounds that can be derived by naively reducing the cooperation problem to one of reinforcement learning. These complexity analysis and formally proven bounds can be helpful to sustainably model the alignment problem of AI agents.
References
- Powers and Shoham [2004] Rob Powers and Yoav Shoham. New criteria and a new algorithm for learning in multi-agent systems. Advances in Neural Information Processing Systems, 17, 2004.
- Shoham and Leyton-Brown [2008] Yoav Shoham and Kevin Leyton-Brown. Multiagent systems: Algorithmic, game-theoretic, and logical foundations. Cambridge University Press, 2008.
- Hannan [1957] James Hannan. Approximation to Bayes risk in repeated play. Contributions to the Theory of Games, 3(2):97–140, 1957.
- Cesa-Bianchi and Lugosi [2006] Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press, 2006.
- Mas-Colell et al. [1995] Andreu Mas-Colell, Michael Dennis Whinston, Jerry R Green, et al. Microeconomic theory, volume 1. Oxford university press New York, 1995.
- Freund and Schapire [1999] Yoav Freund and Robert E Schapire. Adaptive game playing using multiplicative weights. Games and Economic Behavior, 29(1-2):79–103, 1999.
- Aumann [1964] Robert J . Aumann. 28. Mixed and Behavior Strategies in Infinite Extensive Games, pages 627–650. Princeton University Press, Princeton, 1964. ISBN 9781400882014. doi: doi:10.1515/9781400882014-029. URL https://doi.org/10.1515/9781400882014-029.
- Monnot and Piliouras [2017] Barnabé Monnot and Georgios Piliouras. Limits and limitations of no-regret learning in games. The Knowledge Engineering Review, 32:e21, 2017.
- Brown et al. [2024] William Brown, Jon Schneider, and Kiran Vodrahalli. Is learning in games good for the learners? Advances in Neural Information Processing Systems, 36, 2024.
- Loftin and Oliehoek [2022] Robert Loftin and Frans A Oliehoek. On the impossibility of learning to cooperate with adaptive partner strategies in repeated games. In International Conference on Machine Learning, pages 14197–14209. PMLR, 2022.
- Rajaraman et al. [2020] Nived Rajaraman, Lin Yang, Jiantao Jiao, and Kannan Ramchandran. Toward the fundamental limits of imitation learning. Advances in Neural Information Processing Systems, 33:2914–2924, 2020.
- Ciosek [2022] Kamil Ciosek. Imitation learning by reinforcement learning. In International Conference on Learning Representations, 2022.
- Powers and Shoham [2005] Rob Powers and Yoav Shoham. Learning against opponents with bounded memory. In The Nineteenth International Joint Conference on Artificial Intelligence, pages 817–822, 2005.
- Chakraborty and Stone [2010a] Doran Chakraborty and Peter Stone. Convergence, targeted optimality and safety in multiagent learning. In Proceedings of the Twenty-seventh International Conference on Machine Learning (ICML 2010), June 2010a. URL http://www.cs.utexas.edu/users/ai-lab?chakraborty:icml10.
- Chakraborty and Stone [2010b] Doran Chakraborty and Peter Stone. Convergence, targeted optimality, and safety in multiagent learning. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML’10, page 191–198, Madison, WI, USA, 2010b. Omnipress. ISBN 9781605589077.
- Loftin et al. [2023] Robert Loftin, Mustafa Mert Çelikok, and Frans A. Oliehoek. Towards a unifying model of rationality in multiagent systems, 2023.
- Stone et al. [2010] Peter Stone, Gal Kaminka, Sarit Kraus, and Jeffrey Rosenschein. Ad hoc autonomous agent teams: Collaboration without pre-coordination. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 24, pages 1504–1509, 2010.
- Mirsky et al. [2022] Reuth Mirsky, Ignacio Carlucho, Arrasy Rahman, Elliot Fosong, William Macke, Mohan Sridharan, Peter Stone, and Stefano V Albrecht. A survey of ad hoc teamwork research. In European conference on multi-agent systems, pages 275–293. Springer, 2022.
- Hu et al. [2020] Hengyuan Hu, Adam Lerer, Alex Peysakhovich, and Jakob Foerster. “other-play” for zero-shot coordination. In International Conference on Machine Learning, pages 4399–4410. PMLR, 2020.
- Carroll et al. [2019] Micah Carroll, Rohin Shah, Mark K Ho, Tom Griffiths, Sanjit Seshia, Pieter Abbeel, and Anca Dragan. On the utility of learning about humans for human-ai coordination. Advances in Neural Information Processing Systems, 32:5174–5185, 2019.
- Strouse et al. [2021a] DJ Strouse, Kevin McKee, Matt Botvinick, Edward Hughes, and Richard Everett. Collaborating with humans without human data. Advances in Neural Information Processing Systems, 34:14502–14515, 2021a.
- Cui et al. [2023] Brandon Cui, Andrei Lupu, Samuel Sokota, Hengyuan Hu, David J Wu, and Jakob Nicolaus Foerster. Adversarial diversity in hanabi. In The Eleventh International Conference on Learning Representations, 2023.
- Treutlein et al. [2021] Johannes Treutlein, Michael Dennis, Caspar Oesterheld, and Jakob Foerster. A new formalism, method and open issues for zero-shot coordination. In International Conference on Machine Learning, pages 10413–10423. PMLR, 2021.
- Zand et al. [2022] Jaleh Zand, Jack Parker-Holder, and Stephen J. Roberts. On-the-fly strategy adaptation for ad-hoc agent coordination. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems, AAMAS ’22, page 1771–1773, Richland, SC, 2022. International Foundation for Autonomous Agents and Multiagent Systems. ISBN 9781450392136.
- Strouse et al. [2021b] DJ Strouse, Kevin McKee, Matt Botvinick, Edward Hughes, and Richard Everett. Collaborating with humans without human data. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 14502–14515. Curran Associates, Inc., 2021b. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/797134c3e42371bb4979a462eb2f042a-Paper.pdf.
- Cui et al. [2021] Brandon Cui, Hengyuan Hu, Luis Pineda, and Jakob Foerster. K-level reasoning for zero-shot coordination in hanabi. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 8215–8228. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/4547dff5fd7604f18c8ee32cf3da41d7-Paper.pdf.
- Rahman et al. [2024] Muhammad Rahman, Jiaxun Cui, and Peter Stone. Minimum coverage sets for training robust ad hoc teamwork agents. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 17523–17530, 2024.
- Deng et al. [2019] Yuan Deng, Jon Schneider, and Balasubramanian Sivan. Strategizing against no-regret learners. Advances in neural information processing systems, 32, 2019.
- Hoeffding [1963] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963.
- von Stengel and Zamir [2004] Bernhard von Stengel and Shmuel Zamir. Leadership with commitment to mixed strategies. 2004.
Acknowledgments and Disclosure of Funding
This work has been supported by the Hybrid Intelligence Center, https://hybrid-intelligence-centre.nl, grant number 024.004.022.
Appendix A Proofs for Section 2
A.1 Proof of Lemma 2.4
Here the joint type will be implicit. For , we define as
(12) |
We can see that . We can then have that
(13) | ||||
(14) | ||||
(15) | ||||
(16) |
with probability for all simultaneously.
This follows from the fact that and the “maximal” Azuma-Hoeffding inequality [29]. The second equality follows from the fact that is a Nash equilibrium. The first bound of Lemma 2.4 follows from a union bound over the probability for both players, while the second bound combines this with Equation 3.
A.2 Proof of Theorem 2.5
Theorem A.1 (2.6).
For any , let , and let . Then for , the is -socially intelligent.
Proof. By the definition of , will only deviate when playing with itself if at some point one player incurs an expected external regret of at least , and by Lemma 2.4 that will occur with probability at most . Therefore, is -compatible. We also have that the total expected external regret of the MW agent is at most . This means that if switches at stage , then the maximum possible expected external regret incurred by will be less than . Since will always switch just before this point is reached, its total expected regret will be less than surely, and will be less than w.p. . As , we have that the is -socially intelligent.
Appendix B Proofs for Section 4
B.1 Proof of Lemma 4.2
We first apply Theorem 4.4 of [11], which states that, for episodic imitation learning over -step trajectories, for any expert policy we have
(17) |
where is the state space, with per-step rewards bounded in . We can model the interaction with as a -step episodic MDP/R with . Plugging in , , and gives us
(18) |
This bound holds simultaneously for all possible reward functions bounded in . If we restrict the reward function to be non-zero only for the terminal states , we have
(19) |
using the definition of the marginal strategy . Finally, applying Lemma 1 of [12] gives us
(20) |
the desired result. ∎
B.2 Proof of Theorem 4.3
First, let , defined as
(21) |
denote agent ’s payoff under the worst possible payoff for a PONE of the game parameterized by joint type . Let denote the event that
(22) |
Because is -compatible, we have that . For defined as
(23) |
Lemma 4.2 also gives us . We therefore have that
(24) | ||||
(25) | ||||
(26) |
We therefore need to lower-bound the term
(27) |
This will be the expected payoff given the strategy the AI commits to for the remaining steps. The idea now is that we can construct a mixture over strategies that the the AI can commit to for the remaining steps such that the partner’s payoff under their (approximate) best-response will be nearly as good as that under .
Let be agent 2’s expected payoff under . For any joint strategy , we can construct such that if the AI commits to strategies sampled from , the partner will have the same information about the AI’s probably actions as they would given their “recommended” action under . We build on the construction used by von Stengel and Zamir [30]. For any joint strategy , we let denote the marginal probability that the column player (agent 2) plays under . For all such that , we define as the conditional distribution over the row-player (agent 1’s) actions given that the column player plays , such that . We then define as the strategy that commits to each with probability .
We can show that, when the partner plays a best-response to , their payoff will be no worse than under itself. We first construct a response function such that when agent 2 responds to with , its expected payoff equals . Let , and partition into such that, for each , we have for all . For each , we then define the strategy such that
(28) |
for each , with for . (Note that if corresponds to some uncorrelated strategy , then and .) Finally, for , we define as the partition containing , and define such that . We leave undefined for where . Now let be the common conditional strategy for all , and let . We then have that
(29) | ||||
(30) | ||||
(31) | ||||
(32) | ||||
(33) | ||||
(34) |
where we have used the fact that and are independent given that . Next, we have that for any best-response function , we have
(35) |
Therefore, so long as the partner plays a best-response to the AIs chosen strategy, the will achieve at least the same payoff (in expectation) as they would under the strategy from which was computed. Note however that will be (approximately) consistent over the full steps, not just the last . Define and , and let be agent 1’s marginal strategy under . With probability , will play an -best-response to the mixture , with .
Let be the event that is -consistent over steps. We then have that
(36) | ||||
(37) |
Finally, dividing by and subtracting from , we get
(38) |
the desired result.
∎