 Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination


  Kunal Jha 1 Wilka Carvalho 2 Yancheng Liang 1 Simon S. Du 1 Max Kleiman-Weiner * 1 Natasha Jaques * 1


                         Abstract                                    1999; Kleiman-Weiner et al., 2016; Shum* et al., 2019; Wu*
      Zero-shot coordination (ZSC), the ability to adapt             et al., 2021). This ability to effectively represent collective
      to a new partner in a cooperative task, is a criti-            tasks allows cooperation to transfer across both partners and
      cal component of human-compatible AI. While                    environments. For instance, after mastering a family recipe
      prior work has focused on training agents to co-               with their parents, a novice chef can easily cook the same
      operate on a single task, these specialized mod-               dish (and much more) at home with their spouse. These
      els do not generalize to new tasks, even if they               cognitive mechanisms may be important for building AI
      are highly similar. Here, we study how rein-                   that coordinates in novel scenarios. However, current rein-
      forcement learning on a distribution of environ-               forcement learning (RL) methods have yet to address this
      ments with a single partner enables learning                   challenge (Wang et al., 2024). Cooperation across partners
      general cooperative skills that support ZSC with               on a single problem has been studied, but agents that can
      many new partners on many new problems.                        zero-shot coordinate (ZSC) with new partners in unfamiliar
      We introduce two Jax-based, procedural genera-                 environments will unlock flexible, human-compatible AI
      tors that create billions of solvable coordination             agents in a range of applications: household robots, adaptive
      challenges. We develop a new paradigm called                   educational assistants, or autonomous vehicles (Ma et al.,
      Cross-Environment Cooperation (CEC), and                       2023; Stone et al., 2010b; Atchley et al., 2024; Dinneweth
      show that it outperforms competitive baselines                 et al., 2022; Ribeiro et al., 2021).
      quantitatively and qualitatively when collaborat-              Prior work on ZSC has mainly focused on the challenge of
      ing with real people. Our findings suggest that                adapting to novel partners, including novel human partners.
      learning to collaborate across many unique scenar-             Typical RL approaches use methods like population-based
      ios encourages agents to develop general norms,                training (PBT) and variations on self-play (SP), approaches
      which prove effective for collaboration with dif-              which helped algorithms such as AlphaStar achieve superhu-
      ferent partners. Together, our results suggest a               man performance in zero-sum games (Vinyals et al., 2019).
      new route toward designing generalist coopera-                 These approaches work by leveraging “partner diversity,”
      tive agents capable of interacting with humans                 during training time. They simulate diverse training part-
      without requiring human data. Code for environ-                ners with the idea that these varied experiences will be
      ment, training, and testing scripts and more can               sufficient for agents to generalize to human partners (Yan
      be found at https://kjha02.github.io/                          et al., 2023; Carroll et al., 2020; Strouse et al., 2018; Sarkar
      publication/cross-env-coop.                                    et al., 2023). Although agents trained under this paradigm
                                                                     often do adapt to new partners, this adaptation is limited
                                                                     to the single environment they are trained on. PBT, as it is
1. Introduction                                                      often deployed (and similar approaches), fails to generalize
                                                                     when faced with even a slight variation of the same problem.
Humans excel at ad-hoc cooperation, readily adapting to
                                                                     Thus, current PBT-based approaches must be retrained every
new partners and environments by attending jointly to rel-
                                                                     time there is a slight variation in the environment or task.
evant objects, reasoning about shared intentions, and play-
                                                                     This is not a recipe which can scale well to the real world
ing their role within an implicit collective plan (Tomasello,
                                                                     (Yan et al., 2023). If agents can only successfully cooperate
  *
    Equal contribution 1 Department of Computer Science, Uni-        with others on the specific environment they were trained
versity of Washington, Seattle, WA 2 Kempner Institute for the       on, such as a household robot which can only interact with
Study of Natural and Artificial Intelligence, Harvard Univer-        people in one bedroom rather than the entire house, they
sity, Cambridge, Massachusetts. Correspondence to: Kunal Jha         lack a more general notion of cooperation — the ability to
<kjha@uw.edu>.
                                                                     flexibly interact in a broad range of scenarios with many
Proceedings of the 42 nd International Conference on Machine         people.
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                    In this work, we investigate the following question: how can

                                                                 1
                          Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination



                                                                       r


                                                                                                                ✅                ✅

                                                                                                                ❌                ✅

                                                                                                                ❌                ✅



Figure 1. Overview of learning general coordination through Cross-environment Cooperation (CEC). By training agents in self-play
on a large distribution of environments, we find that agents develop the ability to coordinate with novel partners and novel problems,
contrasting with prior work which suggests self-play is insufficient for learning general norms for cooperation.


we train AI agents capable of zero-shot collaboration with            ronmental exposure translate well to human-AI interactions.
novel partners in novel tasks? To investigate this, we focus
                                                                      The main contributions of this work are:
on two main sources of variation during training: partner
diversity and environment diversity. While PBT methods                  1. Cross-Environment Cooperation: A paradigm for
focus on partner diversity to encourage agents to adapt to                 ZSC that replaces partner diversity with environment
different strategies on a single-task, we hypothesize that                 diversity. Via procedural environment generation, we
training across diverse environments will instead foster a                 eliminate the need for partner populations while train-
richer understanding of the task structure itself, enabling                ing a single policy to cooperate across diverse tasks.
agents to generalize to novel partners and settings.                    2. Algorithmic infrastructure: (1) Fast Jax-based proce-
To systematically test our hypothesis and isolate the impact               dural generation for Overcooked (1.16 × 1017 layouts,
of environment variation compared to partner variation, we                 10M steps/min); (2) A toy benchmark isolating envi-
present a new paradigm, Cross-environment Cooperation                      ronmental vs. partner diversity, demonstrating CEC’s
(CEC), in which agents are trained via self-play (with a                   partner and environment generalization over PBT.
single partner) to cooperate across a wide variety of proce-            3. We find that environment diversity outperforms part-
durally generated tasks. To evaluate CEC, we first test on                 ner diversity in cross-play performance. Through
both a toy environment to illustrate key principles, and then              analyzing generalization to different agents in cross-
scale up to the human-AI coordination benchmark, Over-                     play, and via Empirical Game-Theoretic analysis, we
cooked. Overcooked is a 2-player, cooperative 2D cooking                   show CEC outperforms PBT and other baselines.
game where an AI agent collaborates with an AI or human
                                                                        4. Human-AI cooperation insights: Human studies re-
partner to prepare a recipe (Carroll et al., 2020; Wu* et al.,
                                                                           veal CEC outperforms PBT in cooperation score and
2021; Strouse et al., 2022; Zhao et al., 2022; Sarkar et al.,
                                                                           state-of-the-art methods in qualitative evaluations by
2023). We design a procedurally generated Overcooked en-
                                                                           participants, demonstrating its success in realistic co-
vironment implemented in Jax, enabling high performance
                                                                           operative scenarios.
and efficient training speeds of up to 10 million steps per
minute on a single GPU. Unlike previous work, which stud-
ies at most five handcrafted Overcooked levels (Carroll et al.,       2. Related Work
2020; Strouse et al., 2018; Zhao et al., 2021; Myers et al.,
                                                                      Building agents that can coordinate with novel people
2025), our generator creates up to 1.16 × 1017 diverse and
                                                                      quickly has the potential for broad impacts across robotics
solvable kitchen configurations.
                                                                      (Breazeal et al., 2005; Sheridan, 2016), digital assistants
Our experiments intriguingly reveal that by training on di-           (Guo et al., 2024; Poddar et al., 2024; Ying et al., 2024), and
verse environments, agents learn to consistently improve              other scientific domains (Ghazimirsaeid et al., 2023; Roche
generalization to new partners (see Figure 1). We conduct             et al., 2008; Castelfranchi, 2001).
extensive simulated and human experiments to evaluate the
                                                                      Self-Play (SP) has been highly successful in zero-sum
performance of CEC agents against state-of-the-art (SOTA)
                                                                      games because there is only a single mixed strategy equi-
baselines. Our human study reveals that CEC agents out-
                                                                      librium (Xia et al., 2018; Silver et al., 2017; Vinyals et al.,
perform PBT on performance and outperform all methods
                                                                      2019; Zhou et al., 2020). However, when applied to co-
on subjective measures of cooperation, suggesting that the
                                                                      operative games self-play often converges to a brittle and
generalized cooperative skills learned through diverse envi-
                                                                      inflexible policy that struggles with unfamiliar partners that

                                                                  2
                             Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

      Initial State       Goal States     Randomized Initial States          can be suboptimal, and that regret-based sampling enables
                                                                             agents to efficiently learn to compete in novel scenarios with
                                                                             novel partners (Samvelyan et al., 2023a; 2024). McKee et al.
                                                                             (2022) find environment diversity improves agents’ ability
                                                                             to collaborate on novel levels in the ZSC setting, but they do
                                                                             not demonstrate the benefits of this approach with ad-hoc
                                                                             partners such as humans, the effects of combining partner
                  a. Fixed Task           b. Procedural Generation           with environment diversity, the relative benefits of environ-
                                                                             ment diversity compared to partner diversity, or a deeper
Figure 2. The Dual Destination Problem. In the fixed task (a),               qualitative understanding of the effect of environment diver-
players start in opposite squares and must enter different green             sity on learned cooperation strategies. Related to our work,
squares from each other to receive a reward. In the procedurally             Ruhdorfer et al. (2024) study unsupervised environment
generated variation (b), the initial positions of the green goal cells       design (UED) in the context of Overcooked. However, their
and agents are randomized.
                                                                             work does not prevent the generation of impossible coor-
                                                                             dination challenges (Dennis et al., 2021; Mediratta et al.,
play in novel ways (Strouse et al., 2022; Ma et al., 2023). In-              2023; Li et al., 2023) and their results reveal poor general-
tuitively, when training in self-play in a zero-sum game, the                ization performance to new partners on held-out levels. In
training procedure provides a continuous curriculum of di-                   contrast, we show training across many coordination tasks
verse experience as the model is continuously rewarded for                   with the same partner still can improve generalization to
exploiting their opponent. In cooperative games with multi-                  novel partners.
ple equilibria, the situation is reversed. Once an equilibrium
is found, neither player has an incentive to unilaterally ex-                3. Technical Preliminaries
plore other equilibria. Thus, diverse experiences are not
generated through self-play in this context.                                 A two-player cooperative Markov Game is defined as a
                                                                             tuple ⟨S, A, T, R, H⟩, where S are states, A are actions
Population-based training (PBT) has been explored as a                       (shared by both agents), T is the deterministic function
way to combat the shortcomings of self-play in coopera-                      T : S × A × A → S, rewards are R : S × A × A → R,
tive games. PBT trains a cooperator agent to learn a best                    and the game horizon is H. Both the transition and re-
response to a diverse pool of partners and thus experience                   ward functions are assumed to be unknown. We investigate
multiple equilibria of the game (Vinyals et al., 2019). PBT-                 the problem of training a cooperator policy πC which can
based methods generally outperform self-play in zero-shot                    achieve high reward when paired with many different part-
Human-AI coordination. In Overcooked, previous works                         ner policies πp ∼ P, where P represents a distribution of
(Carroll et al., 2020; Strouse et al., 2022; Zhao et al., 2022;              possible partners, analogous to the distribution of humans
Sarkar et al., 2023) induced partner diversity at training                   an agent might need to assist. We assume that cooperation
time through variations in neural network initializations or                 also takes place across many different environments. Here
auxiliary loss functions. While PBT allows agents to train                   we define each environment, or cooperation task, as drawn
against different strategies for a single task, it is compu-                 from a set of possible tasks m ∼ M. The task m defines the
tationally expensive since each task requires first training                 initial state distribution, p(s0 |m), but tasks share transition
a sizable population of agents. In contrast, our approach                    dynamics T and reward function R. Each different task m
systematically varies the environment instead of the partner                 is analogous to a new environment layout that may signif-
distribution, eliminating the need to train multiple policies.               icantly alter the space of effective coordination strategies
Procedural Environment Generation. Recent work has                           that will lead to high reward. We define the score obtained
demonstrated that procedurally generated environments can                    in the cooperative game obtained by summing the joint per-
improve the generalization of reinforcement learning (RL)                    timestep rewards when the cooperator πC plays partner πp
methods in single and multi-agent settings (Cobbe et al.,                    in task m as:
2020; 2019; Fontaine et al., 2021; Carion et al., 2019; Chen                                                          H
                                                                                                                     hX                     i
et al., 2023; Samvelyan et al., 2023b). These studies show                      S(πp , πC , m) = E s0 ∼m,s∼T               R(st , apt , aC
                                                                                                                                         t )
that exposure to a large and diverse set of samples enhances                                        ap ∼πp ,aC ∼πC   t=0
generalization (Cobbe et al., 2020). However, they typically
evaluate agents with the same team seen during training,                     Cross-Play (XP) Evaluation: The objective of cross-play
which doesn’t address the core challenge of zero-shot co-                    (XP) evaluation is to test how well a cooperator policy πC
ordination (ZSC). There has been work in the zero-sum                        performs when paired with a novel partner policy πp in an
setting showing environment diversity and partner diversity                  environment m, i.e. evaluate S(πp , πC , m). In line with
are not completely orthogonal axes and prioritizing either                   prior work (Strouse et al., 2022; Zhao et al., 2021; Yan

                                                                         3
                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

et al., 2023), we simulate novel partners for XP evaluation                                                              100 Procedurally
                                                                                                            Fixed Task   Generated Tasks




                                                                                   Normalized XP Reward
by training multiple agents using the same algorithm with
different initial random seeds. Doing so results in different                                         0.8
network initializations and exploration patterns, causing
agents to learn arbitrarily different, yet successful, ways to                                        0.4
coordinate on a problem (Carroll et al., 2020). Collaborating
with novel initializations of the same learning algorithm is                                          0.0 IPPO FCP CEC IPPO FCP CEC
referred to as the Zero-shot Coordination (ZSC) setting (Hu                                                  Algorithm    Algorithm
et al., 2020). We evaluate all agents in ZSC, but also study
cooperation in settings where agents must collaborate with             Figure 3. Evaluation of IPPO and FCP baselines on the Fixed and
novel partners that trained with different learning algorithms,        Procedurally generated versions of the Dual Destination problem
                                                                       (error bars show the standard error of the mean). CEC generalizes
also referred to as “Ad-hoc Teamplay” (Stone et al., 2010a).
                                                                       better in both cases (p < 0.001 for t-tests comparing CEC to both
Population-based training (PBT): (e.g. (Strouse et al.,                FCP and IPPO).
2022; Zhao et al., 2021; Liang et al., 2024)) aim to con-
struct a diverse set of simulated partner policies P =
{π1 , π2 , . . . , πn } to simulate various human behaviors, but       blue) begin on the opposing sides of a grid without any
focus training on a single task m. Thus, they optimize:                walls. They are both given a +3 reward for moving to
              J(πC ) = Eπi ∼P [S(πi , πC , m)]              (1)        opposing green grid cells. In the basic setup, these grid
                                                                       cells are equidistant from each other and the agents’ original
For example, Fictitious Co-Play (FCP) is a popular PBT-                starting position, as illustrated in Figure 2(a). The agents
based method, where a single cooperator agent tries to learn           receive a −1 step cost and can move up, down, left, right,
a best-response policy to a population of self-play agents             or stay in place. The state is fully observable.
at different points of their learning progress (Strouse et al.,        We hypothesize that self-play (SP) agents will have poor
2022).                                                                 cross-play (XP) performance in this game, because they
                                                                       will pick a convention (red agent goes up, blue goes down)
4. Cross-Environment Cooperation Improves                              that will not generalize to different SP agents which found
   Partner Generalization                                              a different convention. PBT methods like FCP may learn
                                                                       a more general strategy, such as “go up if someone goes
The core hypothesis in our work is that enhancing the diver-           down, and down if they go up.” However, these policies
sity of training tasks will improve agents’ ability to gener-          are still brittle: if the goal location is shifted by even a few
alize to both new tasks, and new cooperation partners. Our             squares or the agents begin in a novel state, the FCP-trained
approach, Cross-Environment Cooperation (CEC), trains                  agent will not have experience training in this environment,
a cooperator policy, πC , by sampling diverse tasks from a             and thus, we hypothesize that it will fail.
broad distribution of tasks, m ∼ M. To isolate the effect
of task diversity from partner diversity, we use self-play to          To test whether cross-environment training can ameliorate
train the CEC cooperator policy. The objective of CEC is               these shortcomings, we train a CEC model on the Dual
thus defined as:                                                       Destination game by randomizing the agent starting and
                                                                       goal positions at the beginning of a new episode. We show
            J(πC ) = Emi ∼M [S(πC , πC , mi )]              (2)        examples of potential initial states in Figure 2(b). We ensure
                                                                       that the train task used for the other methods (‘Fixed Task’)
By sampling diverse tasks, CEC encourages the cooperator               is held out from the CEC train distribution. We then use
policy to generalize its behavior to handle a variety of coop-         IPPO, a SOTA multi-agent SP algorithm (de Witt et al.,
erative scenarios. Unlike PBT, which requires maintaining              2020), to train agents to optimize the CEC objective in Eq.
a large pool of partner policies, CEC simplifies the training          2. The CEC model was trained without a population of other
process because it only requires training a single policy. We          agents or any additional auxiliary losses.
investigate whether using CEC to optimize Eq. 2 can ac-
                                                                       AI-AI ZSC Evaluation. We compare the ZSC performance
tually provide ZSC performance gains over using PBT to
                                                                       between SP (IPPO), FCP, and CEC in the Dual Destina-
optimize Eq. 1.
                                                                       tion tasks shown in Figure 2, and include the task used to
Dual Destination Game. To gain intuition for the existing              train the SP and FCP methods (‘Fixed Task’), as well as
gap in the ability of multi-agent reinforcement learning               100 novel procedurally generated tasks. We first measure
methods to collaborate with partners they have not seen                how well models generalize cooperation to novel partners
during training (Lowe et al., 2017), we design a simple                (cross-play performance with novel partners). Second, we
gridworld environment as follows: two agents (red and                  measure how well they generalize to novel partners in novel

                                                                   4
                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

environments (XP performance with novel partners in novel
environments).
Figure 3 illustrates the pitfalls of training a naive cooperator
in self-play: even with just two options to choose from in
response to another’s actions, agents cannot adapt well at             Figure 4. Five original Overcooked layouts. Left to right: Asym-
test-time to a novel partner’s strategy and thus fail to coor-         metric Advantages, Coordination Ring, Counter Circuit, Cramped
dinate even on the tasks they’ve seen during training. FCP             Room, Forced Coordination.
does better by learning to adapt to strategies within a single
level by training against a diversity of partners. However,
Figure 3 shows that it fails to complete similar tasks with mi-
nor structural differences. In contrast, CEC agents perform
better with novel partners in the Dual Destination Game
on an evaluation layout it has never seen during training
                                                                       Figure 5. Sample from the billions of solvable, diverse Overcooked
(Figure 3). For context, an oracle agent that perfectly
                                                                       tasks created by our procedural environment generator.
responds to the two optimal strategies in Figure 2 would re-
quire 3 steps of receiving a -1 step cost to move to the target
location before receiving a (3 positive - 1 step cost) reward          objects are sampled. We ensure tasks remain solvable by
for 97 steps, equating to a 0.955 normalized reward. CEC               placing essential objects in reachable areas from the layouts
scored 0.931 normalized reward with a standard error of                in Figure 4 and detailed in A.1. We introduce additional
0.013, indicating it underperforms the oracle’s cross play             environment diversity by sampling additional goal locations,
performance by about 2.5%.Moreover, Figure 3 indicates                 plate piles, pots, and onion piles on unoccupied walls. The
that CEC models also generalize to 100 new initial state               grids are also rotated randomly to encourage better represen-
configurations and new partners using the same amount                  tation learning. For example, if an agent learned to complete
of compute as the vanilla single-task IPPO baseline. We                a task on a very wide layout, it should be able to do that
extended our analysis in the Appendix to include partially             same task if it is rotated vertically by performing a simple
observable and multi-task variations of the Dual Destination           mapping from the left/right actions to up/down, and vice
problem (Appendices A.2 and A.3, respectively). Our find-              versa.
ings consistently show that even with imperfect information
and task uncertainty, CEC agents outperform population-                Our procedural generator creates new coordination chal-
based and naive self-play methods in cooperating with                  lenges in Overcooked, shown in Figure 5. Moreover, Jax
novel partners on novel problems, mirroring the trends                 allows us to run the entire training and evaluation pipeline,
observed in the fully observable ZSC case.                             from the environment generation to the neural network up-
                                                                       dating of agents, at 10 million steps per minute on a single
These findings suggest that investing in training cooperative          GPU. We leverage this speed to train CEC agents, and all
agents on a large distribution of environments is potentially          other baselines, for 3 billion steps. By standardizing the
much more effective than training across a large distribution          training duration for all algorithms, we can directly compare
of partners, just as prior work has suggested this kind of pro-        whether it is better to invest compute in training on more
cedural generalization (or domain randomization) improves              environments or in methods like PBT.
generalization in the single-agent setting in robotics (Jakobi,
1997; Sadeghi & Levine, 2016; Tobin et al., 2017).
                                                                       5. Experiments
Procedurally Generated Overcooked. To test whether
these findings replicate in a more scaled-up scenario, we              From this point on, we will refer to agents trained to coop-
extend the Overcooked environment from the JaxMARL                     erate across multiple coordination challenges by optimizing
project to support a wider variety of levels (Rutherford et al.,       Eq. 2 as CEC, agents trained on a single task as ST, the
2023).                                                                 self-play performance of the agents as SP, and the cross-play
                                                                       performance of the agents as XP. Our primary focus is on
Previous work on Overcooked has focused on five layouts                the XP setting, which measures how well agents collaborate
that possess diverse coordination challenges (Carroll et al.,          with novel partners on tasks they have never seen before.
2020; Strouse et al., 2022; Zhao et al., 2021; Yan et al.,
2023). For our new environment, we uniformly sample                    When evaluating AI-AI and Human-AI coordination, we
the wall structure from each of these five layouts, then ran-          aim to answer the following research questions:
domly generate features like goals, plates, pots, and onions             1. Is increasing environment diversity more effective than
within the grid. Doing so structures the generation process                 increasing partner diversity for ZSC?
and introduces variable complexity depending on where the                2. Compared to ST methods, how well do CECs general-

                                                                   5
                                Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                                             100 Procedurally              has to generalize to new partners and environments. To-
                   5 Heldout Grids           Generated Grids
                                                                           wards mitigating the bias against our method and answering
        160
XP Reward


                                                                           Research Question 3, we study the effects of trading off
            80                                                             generalization for specialization in CEC models. After train-
                                                                           ing a single CEC agent on a distribution of environments
             0 IPPO E3T FCP CEC CEC-FT IPPO E3T FCP CEC CEC-FT             created by the procedural generator, we create five copies
                      Algorithm               Algorithm
                                                                           of the model, one corresponding to each of the original five
                                                                           layouts in Figure 4 which were held out during training. For
  Figure 6. Evaluation of baselines on (left) 5 original Overcooked
  layouts vs. (right) 100 procedurally generated held-out layouts          each copy of the CEC agent, we perform an additional 100
  (standard error bars). Single-task methods and PBT struggle in           million steps of training on a single layout with a reduced
  both settings, while CEC agents generalize effectively. Finetuning       learning rate, again in self-play using IPPO. We call this
  CEC on a single grid improves XP performance on original layouts         approach “CEC-Finetune (CEC-FT).”
  (outperforming FCP and IPPO; p < 0.01, t-test) but reduces
                                                                           Human Studies. Due to the expense of human evalua-
  generalization on novel layouts. CEC significantly surpasses all
  baselines in procedural generalization tasks (p < 0.0001, t-test).       tions, our Human-AI evaluations only looked at the two
                                                                           most challenging grids of the original five, Counter Circuit
                                                                           and Coordination Ring. We recruit 80 human participants
             ize cooperative strategies to novel environments?             for our study using Prolific, where 40 participants com-
                                                                           plete each layout. Our study follows a protocol approved
        3. How close can CEC come to state-of-the-art perfor-              by our university’s IRB. During the study, each user plays
           mance with novel humans for a single task it has never          multiple rounds of Overcooked with a partner via a web
           seen before through environment diversity alone?                interface, where in each round the partner is controlled
                                                                           by one of the models, in randomized order. We sample a
  Baselines. For single-task baselines, we train six seeds for             new model trained with a different random seed for each
  three different agents for each of the original five layouts in          of the game rounds. Subjects played with agents for 200
  Figure 4, one with vanilla IPPO (de Witt et al., 2020), one              timesteps and the entire experiment took approximately 30
  with FCP (Strouse et al., 2022), and one with Efficient End-             minutes. After each round, the user answered questions
  to-End Training (E3T) (Yan et al., 2023). E3T is the state-of-           about their subjective experience playing with the agent
  the-art algorithm for single-task ZSC in Overcooked. It is               using a Likert scale (Likert, 1932). This survey allows us to
  a SP method that achieves high XP performance by adding                  quantify the factors that most heavily influence overall per-
  randomness to one of the partner’s policies during training,             formance and users’ preferences for coordination partners.
  and training an auxiliary network which tries to predict                 All of our Human-AI experiments and surveys utilized the
  the actions of other agents in the world. We test CEC’s                  NiceWebRL Python package (https://github.com/
  cross-play performance with novel partners on each of the                wcarvalho/nicewebrl), which leverages Jax’s paral-
  single-tasks FCP and E3T were trained on.                                lelizability to efficiently crowd-source participant data on
  Evaluation Protocol. Following prior work (Zhao et al.,                  reinforcement learning environments.
  2021; Carroll et al., 2020; Yan et al., 2023; Strouse et al.,            6. Results
  2022), we first evaluate the ability of all models to generalize
  to new partners on the five original Overcooked Layouts                  Q1: Is increasing environment diversity more effective
  4. Note that we hold out those five layouts from the CEC                 than increasing partner diversity of ZSC? Figure 6
  generator, so that when we evaluate CEC on these layouts                 shows the XP performance of the baseline models aver-
  we are able to test generalization across both partners and              aged across the five original Overcooked layouts. Although
  tasks. Second, we introduce an additional evaluation setting             ST approaches are capable of adapting to partner strate-
  where we have the Overcooked procedural environment                      gies during training time, they fall short in XP compared
  generator create 100 coordination challenges that neither                to CEC models. Fine-tuning CEC agents on a single grid
  the ST baselines nor any of the CEC agents have seen during              layout resulted in a substantial improvement in cross-play
  training and assess how well the different approaches can                generalization performance. While it is unsurprising that
  generalize to both novel partners and novel environments.                training in the test environment helps performance, even
  We train six seeds for each type of agent. The architectural             without training in the test layout or using any strategies to
  details are included in A.7.                                             enhance partner diversity, CEC outperforms all baselines
                                                                           in terms of XP. The success of CEC and CEC-Finetune in
  Cross-Environment Cooperation as a Pre-training Step.
                                                                           XP indicates the benefits of both broad pre-training with
  Holding out the original five layouts from the CEC genera-
                                                                           task-specific adaptation. More importantly, we obtain evi-
  tor puts CEC at a disadvantage compared to ST baselines,
                                                                           dence to support an affirmative answer to research question
  which only have to generalize to novel partners, while CEC

                                                                       6
                            Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

1: increasing environment diversity can actually be more
effective at improving cross-partner generalization, than
training on a single environment with many partners.
One challenge with assessing coordination using the single-
task levels is that it does not control for the possibility that                                    a. 5 Original Tasks

all seeds just happen to play the same strategy (e.g., “always
rotate clockwise.”). This would result in high cross play
scores without the ability to generalize to novel partners.
Therefore, we compute cross-algorithm cooperation scores,
shown in Figures 21 and 22, to control for this possibility                                  b. 100 Procedurally Generated Tasks
and evaluate agents in the Ad-hoc Teamplay setting. Us-
ing this cross-algorithm performance matrix to represent a                 Figure 8. Empirical game-theoretic evaluation of cross-algorithm
meta-game, we conduct an empirical game-theoretic anal-                    play on the (a) five original and (b) 100 procedurally generated
ysis where players choose model types rather than actions.                 Overcooked tasks. Arrows show the gradient of the replicator
Essentially, players in the meta-game choose a model (like                 dynamic on the cross-algorithm meta-game. Vectors flow towards
CEC vs. FCP) in order to maximize cross-play score. This                   CEC and CEC-Finetune indicate they are likely equilibria.
can also be see as treating Figures 21 and 22 as a payoff
matrices, and analyzing the equilibria of these games. This
approach allows us to interpret how a simulated popula-                    reveals that FCP and E3T completely fail to generalize to
tion of agents would adopt different strategies over time,                 novel tasks, receiving 0 reward on any of the 100 test tasks.
revealing attractors, equilibria, and cyclic behaviors that                While both methods try to increase partner strategy coverage
may not be apparent from simple win rates or Elo ratings                   in self-play by adding entropy to the partner policy, they fail
(Wellman et al., 2024). Following the approach outlined in                 to generalize to similar, procedurally generated layouts due
(Tuyls et al., 2018; Serrino* et al., 2019), Figure 8 shows                to insufficient environment coverage. Without encountering
the gradient of the replicator dynamic in these meta-games                 the same task in diverse scenarios, agents learn low-level
as a way of assessing the dynamics and equilibrium of the                  sequences (e.g., ”move to the third cell from the left and in-
meta-game. For both the five original tasks and the 100                    teract”) rather than higher-level task structures (e.g., ”cook
procedurally generated tasks, the direction of the gradient                onions and deliver them”), hindering environment general-
is towards either CEC or CEC-Finetune. This shows that                     ization.
CEC trained models generalize robustly across different
algorithms.                                                                We also assess how well humans can collaborate with ST
                                                                           single-task agents playing a layout they have never seen
Q2: Compared to single-task methods, how well do                           during training. We call the IPPO and FCP versions of these
CECs generalize their cooperative strategies to novel                      agents IPPO− and FCP− respectively. Just as in simulation,
environments? Similar to the Toy environment, the eval-                    we find that models only optimized to cooperate on one
uation on the held-out Overcooked layouts created by the                   task cannot generalize to new tasks with ad-hoc partners
procedural environment generator, as depicted in Figure 6,                 (Figure 9), and are consistently rated the most frustrating to
                                                                           play with by humans (Figure 27). Taken together with the
                                                                           FCP cross-play performance, this provides strong evidence
                                                                           that ST methods cannot generalize at all to novel, similar
                                                                           cooperative settings whereas CEC agents can.
    Reward




         100                                                               Interestingly, Figure 6 shows CEC-Finetune did not perform
                                                                           as well as vanilla CEC on the novel procedurally generated
             0                                                             layouts. This highlights a tension between generality and
                 0    5     10 15 20 25                30                  specialization in agent training. While CEC fine-tuning
                     Training Progress (100M steps)                        demonstrates that pre-training on diverse problems provides
                 SP Training                XP Coord Ring                  a solid foundation for learning to collaborate on a specific
                 XP Asymm Advantages        XP Cramped Room                problem with new partners (Figure 6), it also results in a
                 XP Forced Coord            XP Counter Circuit
                                                                           loss of the ability to generalize to novel levels.
Figure 7. CEC SP Training Performance compared to XP Perfor-               In Appendix A.4, we explored whether combining partner
mance on 5 held-out levels. Despite the distribution sampling each         and environmental diversity enhances agents’ ZSC abilities.
layout predicate at uniform, CEC gets better at different layouts at       We trained E3T agents within the CEC framework and eval-
different rates as it consistently improves across all tasks.              uated their XP performance on unseen tasks with unfamiliar

                                                                       7
                                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                                                                                 FCP models, but fall short of E3T, which is the state-of-
Average Rating # Successes

                        2                                                        the-art method for single level ad-hoc single level ad-hoc
                                                                                 collaboration performance with humans. While reward is
                        0 IPPO                                                   an important metric to optimize, past work (Carroll et al.,
                                 FCP   IPPO     FCP     E3T   CEC   CEC-FT       2020) has shown that it can obfuscate frustrating behaviors,
                                                                                 such as forcing the human to adapt to the agent’s strat-
                        2                                                        egy, or completing the task effectively but independently,
                                                                                 while not truly cooperating with the human. Therefore we
                        0 IPPO   FCP   IPPO      FCP    E3T   CEC   CEC-FT       must also consider human subjective preferences as equally
                                              Algorithm                          important in assessing an agents’ human-AI cooperation
                                                                                 abilities. In Figure 9, we show that across 7 different met-
     Figure 9. (Top) Average success rates of algorithms cooperating             rics of human enjoyment, CEC consistently outperforms
     with ad-hoc human partners on Counter Circuit and Coordination
                                                                                 all baselines, with CEC-FT significantly surpassing E3T
     Ring, with standard error bars. CEC outperforms PBT methods and
                                                                                 (p < 0.01, t = 3.1233).
     approaches E3T’s performance, despite only training on diverse
     layouts. Using a 2-sided t-test, CEC significantly outperforms              So how is it that CEC obtains such high ratings, but less
     FCP (p < 0.001, t-test). (Bottom) Human ratings of algorithms’              than SOTA score in the tasks? A closer look at users’ quali-
     cooperative ability across 7 metrics, averaged over Counter Circuit         tative assessments of playing with the different models in
     and Coordination Ring evaluations, with standard error bars. CEC
                                                                                 Figures 27 gives us a partial explanation for why this may
     and CEC-Finetune are preferred partners despite lower rewards.
                                                                                 be the case. We see that CEC models were ranked highest
     CEC-Finetune significantly outperforms FCP (p < 0.01, t-test)
     and E3T (p < 0.01, t-test).                                                 by users in terms of their ability to adapt to the participant’s
                                                                                 behaviors, while also being the least frustrating to work with
                                                                                 and most consistent in their actions. Moreover, CEC was
      partners. As Figure 16 illustrates, introducing novel partners             rated most enjoyable to cooperate with and best in terms of
      while learning in a constantly changing environment did not                ability to coordinate. We synthesize the correlation between
      improve agents’ ZSC capabilities. This suggests further                    different users’ qualitative ratings to establish a hierarchy
      research is needed to determine how to best integrate these                of factors most relevant to human’s perception of effective
      two forms of diversity to realize their combined benefits.                 cooperation in Overcooked, and show our findings in Fig-
                                                                                 ure 10. We report a Cronbach’s alpha score of ≈ 0.874, and
      Last, we analyze XP performance at different points in the                 use this as a strong signal to validate using qualitative met-
      learning trajectory of CEC agents. Figure 7 shows the CEC
      SP training reward and the corresponding XP evaluation
      reward on each of the five layouts at the same point in
      training. We find that CEC XP performance improves at                          1.0 -
      different rates across layouts. This can partly be explained
      by the diversity in optimal coordination strategies across
      the original five layouts (Figure 4). In both Cramped Room
      and Coordination Ring, the spatial constraints lead agents
      to discover cooperative strategies more quickly. However,                      0.5 -
      for layouts such as Counter Circuit, where agents have
      many options for where to pass items along the middle
      border, whether to rotate around the middle wall clockwise
      or counter clockwise, etc., CEC’s XP performance improves
      slower but increases steadily. It could potentially be driven
                                                                                     0.0 -
      even higher with more training.

      Q3: How close can CEC come to state-of-the-art perfor-
      mance with novel humans for a single task it has never
      seen before through environment diversity alone? To
      answer this question, we analyzed how well CEC agents                      Figure 10. Heatmap depicting the Pearson’s Correlation Coeffi-
      can collaborate with new people on novel tasks under the                   cient between users’ qualitative rating of different AI collaborators
      Ad-hoc Teamplay setting. As Figure 9 demonstrates, when                    in Overcooked. By clustering based on correlation degree, we
      evaluated in terms of score in the cooperation task, on lev-               can categorize the factors most indicative of what makes a good
      els that ST methods have seen during training, CEC and                     collaborator. We report a Cronbach’s alpha score of ≈ 0.874
      CEC-finetune are able to collaborate better than IPPO and                                                   .

                                                                             8
                            Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                                                                          Acknowledgments
# Collisions
           50
           25                                                             We would like to thank the Cooperative AI Foundation, the
            0 IPPO   FCP   IPPO      FCP    E3T    CEC    CEC-FT
                                                                          Foresight Institute, the Amazon+UW Science Gift Hub, the
                                  Algorithm                               UW Tsukuba NVIDIA Amazon Cross-Pacific AI Initiative
                                                                          and the Sony Resarch Award Program for their generous
  Figure 11. Average number of collisions between humans and AI           support of our research. This work was additionally sup-
  partners on Counter Circuit and Coordination Ring, with standard        ported by NSF CCF 2212261, NSF IIS 2229881, the Alfred
  error bars shown. CEC achieves the lowest average collision rate.       P. Sloan Research Fellowship, and the Schmidt Sciences
                                                                          AI 2050 Fellowship. We are also grateful for this work
                                                                          being supported by a gift from the Chan Zuckerberg Ini-
                                                                          tiative Foundation to establish the Kempner Institute for
                                                                          the Study of Natural and Artificial Intelligence. Lastly, we
  rics, in addition to reward, as an indicator of CEC’s success           would like to express our gratitude to our colleagues at the
  compared to other baselines.                                            Social Reinforcement Lab and the Computational Minds
                                                                          and Machines Lab for inspiring conversations and insights
  We also note that CEC’s increased proclivity to adapt its               during the course of this project.
  behaviors to people can lead to lower rewards if participants
  are playing a suboptimal strategy. On the other hand, E3T,
  which has seen the environment during training it is eval-              Impact Statement
  uated on, is rated as less adaptive (see Figures 28 and 29),            This paper presents a novel approach to training agents to
  and instead may focus too much on optimizing score. In                  collaborate with people it has not seen before. As such, it
  playing with the agents, we observed that CEC is much                   has the ability to improve the lives of many applications
  better at avoiding collisions and getting out of the player’s           as household robotics, autonomous driving, or language
  way, even though this may lead to less reward. Figure 11                assistants. To provide evidence for the merits of our ap-
  quantifies the frequency of collisions between humans and               proach, we conducted studies with human participants. We
  different AI collaborators. The results indicate that, despite          made sure to follow all ethical practices described under the
  achieving lower rewards than the SOTA method E3T, CEC                   instructions of our university’s Institutional Review Board
  has fewer collisions with humans on average. This aligns                (IRB), including but not limited to compensating partici-
  with participants’ subjective assessments of model behavior             pants at minimum wage and receiving informed consent. As
  (Figure 27). We hypothesize that this collision-avoidance               a final point, while the work in this paper described how to
  behavior reflects a general norm learned by CEC, which                  build a general cooperative AI, it is not clear or well studied
  enhances performance across a wide range of cooperative                 if a similar approach could be used to create a machine
  tasks. This supports our hypothesis that cross-environment              capable of harming humans it has not seen before in a wide
  training helps agents learn more generalized cooperative                range of cases. Future works should try to establish whether
  strategies that work not only in a range of environments, but           this is the case and how to mitigate these potential risks.
  with a range of partners.
                                                                          References
  7. Discussion
                                                                          Nicegui — nicegui.io. https://nicegui.io. [Accessed 26-09-
  We introduce Cross-environment Cooperation, a novel ap-                   2024].
  proach to ZSC in multi-agent reinforcement learning. Cross-
  environment training helps agents learn more generalized                Atchley, P., Pannell, H., Wofford, K., Hopkins, M., and
  cooperative strategies that work not only in a range of envi-             Atchley, R. A. Human and AI collaboration in the
  ronments but with a range of partners. Although trained in                higher education environment: opportunities and con-
  self-play, they zero-shot coordinate with new partners and                cerns. Cognitive Research: Principles and Implica-
  in new environments never seen during training. We show                   tions, 9(1):20, April 2024. ISSN 2365-7464. doi:
  that CEC succeeds in cooperating with current state-of-the-               10.1186/s41235-024-00547-9. URL https://doi.
  art baselines and with human users. These results challenge               org/10.1186/s41235-024-00547-9.
  the prevailing wisdom that self-play is insufficient for ZSC
  and Ad-hoc Teamplay in cooperative games. Future work                   Bonnet, C., Luo, D., Byrne, D., Surana, S., Abramowitz, S.,
  will explore composing CEC with other training algorithms.                Duckworth, P., Coyette, V., Midgley, L. I., Tegegn, E.,
  For cooperative AI agents to work effectively with us in                  Kalloniatis, T., Mahjoub, O., Macfarlane, M., Smit, A. P.,
  our offices and homes, agents must rapidly adapt to a wide                Grinsztajn, N., Boige, R., Waters, C. N., Mimouni, M. A.,
  range of diverse environments and partners.                               Sob, U. A. M., de Kock, R., Singh, S., Furelos-Blanco, D.,

                                                                      9
                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

  Le, V., Pretorius, A., and Laterre, A. Jumanji: a diverse           Dennis, M., Jaques, N., Vinitsky, E., Bayen, A., Russell, S.,
  suite of scalable reinforcement learning environments in              Critch, A., and Levine, S. Emergent complexity and zero-
  jax, 2024. URL https://arxiv.org/abs/2306.                            shot transfer via unsupervised environment design, 2021.
  09884.                                                                URL https://arxiv.org/abs/2012.02096.
Breazeal, C., Kidd, C., Thomaz, A., Hoffman, G., and                  Dinneweth, J., Boubezoul, A., Mandiau, R., and Espié,
  Berlin, M. Effects of nonverbal communication on                      S. Multi-agent reinforcement learning for autonomous
  efficiency and robustness in human-robot teamwork.                    vehicles: a survey. Autonomous Intelligent Systems, 2(1):
  pp. 708 – 713, 09 2005. ISBN 0-7803-8912-3. doi:                      27, November 2022. ISSN 2730-616X. doi: 10.1007/
  10.1109/IROS.2005.1545011.                                            s43684-022-00045-z. URL https://doi.org/10.
                                                                        1007/s43684-022-00045-z.
Carion, N., Synnaeve, G., Lazaric, A., and Usunier, N. A
  structured prediction approach for generalization in coop-          Fontaine, M. C., Hsu, Y.-C., Zhang, Y., Tjanaka, B., and
  erative multi-agent reinforcement learning, 2019. URL                 Nikolaidis, S. On the importance of environments
  https://arxiv.org/abs/1910.08809.                                     in human-robot coordination, 2021. URL https://
Carroll, M., Shah, R., Ho, M. K., Griffiths, T. L., Seshia,             arxiv.org/abs/2106.10853.
  S. A., Abbeel, P., and Dragan, A. On the utility of learning        Ghazimirsaeid, S. S., Jonban, M. S., Mudiyanselage,
  about humans for human-ai coordination, 2020. URL                     M. W., Marzband, M., Martinez, J. L. R., and Abu-
  https://arxiv.org/abs/1910.05789.                                     sorrah, A. Multi-agent-based energy management of
Carvalho, w. Nicewebrl: a framework for comparing hu-                   multiple grid-connected green buildings. Journal of
  mans and ai across many domains, 2025. URL https:                    Building Engineering, 74:106866, 2023. ISSN 2352-
  //github.com/wcarvalho/nicewebrl.                                    7102. doi: https://doi.org/10.1016/j.jobe.2023.106866.
                                                                        URL        https://www.sciencedirect.com/
Castelfranchi, C.      The theory of social functions:                  science/article/pii/S2352710223010458.
  challenges for computational social science and
  multi-agent learning.        Cognitive Systems Re-                  Guo, T., Chen, X., Wang, Y., Chang, R., Pei, S., Chawla,
  search, 2(1):5–38, 2001. ISSN 1389-0417. doi:                         N. V., Wiest, O., and Zhang, X. Large language model
  https://doi.org/10.1016/S1389-0417(01)00013-4.                        based multi-agents: A survey of progress and chal-
  URL         https://www.sciencedirect.com/                            lenges, 2024. URL https://arxiv.org/abs/
  science/article/pii/S1389041701000134.                                2402.01680.

Chen, Y., Tang, C., Tian, R., Li, C., Li, J., Tomizuka, M.,           Henrich, J., Heine, S. J., and Norenzayan, A. The weirdest
  and Zhan, W. Quantifying agent interaction in multi-                  people in the world? Behavioral and Brain Sciences, 33
  agent reinforcement learning for cost-efficient generaliza-           (2–3):61–83, 2010. doi: 10.1017/S0140525X0999152X.
  tion, 2023. URL https://arxiv.org/abs/2310.
  07218.                                                              Hu, H., Lerer, A., Peysakhovich, A., and Foerster, J. “Other-
                                                                        play” for zero-shot coordination. In III, H. D. and Singh,
Cobbe, K., Klimov, O., Hesse, C., Kim, T., and Schulman,                A. (eds.), Proceedings of the 37th International Confer-
  J. Quantifying generalization in reinforcement learning.              ence on Machine Learning, volume 119 of Proceedings
  In Chaudhuri, K. and Salakhutdinov, R. (eds.), Proceed-               of Machine Learning Research, pp. 4399–4410. PMLR,
  ings of the 36th International Conference on Machine                 13–18 Jul 2020. URL https://proceedings.mlr.
  Learning, volume 97 of Proceedings of Machine Learn-                  press/v119/hu20a.html.
  ing Research, pp. 1282–1289. PMLR, 09–15 Jun 2019.
  URL https://proceedings.mlr.press/v97/                              Jakobi, N. Evolutionary robotics and the radical envelope-
  cobbe19a.html.                                                        of-noise hypothesis. Adaptive Behavior, 6(2):325–368,
                                                                        1997. doi: 10.1177/105971239700600205. URL https:
Cobbe, K., Hesse, C., Hilton, J., and Schulman, J. Lever-               //doi.org/10.1177/105971239700600205.
  aging procedural generation to benchmark reinforcement
  learning, 2020. URL https://arxiv.org/abs/                          Kleiman-Weiner, M., Ho, M. K., Austerweil, J. L.,
  1912.01588.                                                           Michael L, L., and Tenenbaum, J. B. Coordinate to co-
                                                                        operate or compete: abstract goals and joint intentions
de Witt, C. S., Gupta, T., Makoviichuk, D., Makoviychuk,                in social interaction. In Proceedings of the 38th Annual
  V., Torr, P. H. S., Sun, M., and Whiteson, S. Is in-                  Conference of the Cognitive Science Society, 2016.
  dependent learning all you need in the starcraft multi-
  agent challenge? CoRR, abs/2011.09533, 2020. URL                    Li, W., Varakantham, P., and Li, D. Generalization through
  https://arxiv.org/abs/2011.09533.                                     diversity: Improving unsupervised environment design.

                                                                 10
                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

  In Elkind, E. (ed.), Proceedings of the Thirty-Second In-            Myers, V., Ellis, E., Levine, S., Eysenbach, B., and Dra-
  ternational Joint Conference on Artificial Intelligence,              gan, A. Learning to assist humans without inferring
  IJCAI-23, pp. 5411–5419. International Joint Confer-                  rewards, 2025. URL https://arxiv.org/abs/
  ences on Artificial Intelligence Organization, 8 2023. doi:           2411.02623.
  10.24963/ijcai.2023/601. URL https://doi.org/
  10.24963/ijcai.2023/601. Main Track.                                 Nikulin, A., Kurenkov, V., Zisman, I., Agarkov, A., Sinii,
                                                                         V., and Kolesnikov, S. Xland-minigrid: Scalable meta-
Liang, Y., Chen, D., Gupta, A., Du, S. S., and Jaques,                   reinforcement learning environments in jax, 2024. URL
  N. Learning to cooperate with humans using generative                  https://arxiv.org/abs/2312.12044.
  agents. arXiv preprint arXiv:2411.13934, 2024.
                                                                       Poddar, S., Wan, Y., Ivison, H., Gupta, A., and Jaques,
Likert, R. A technique for the measurement of attitudes.                 N. Personalizing reinforcement learning from human
  Archives of Psychology, 140:1–55, 1932.                                feedback with variational preference learning, 2024. URL
                                                                         https://arxiv.org/abs/2408.10075.
Lowe, R., Wu, Y., Tamar, A., Harb, J., Abbeel, P., and Mor-
  datch, I. Multi-agent actor-critic for mixed cooperative-            Rabinowitz, N., Perbet, F., Song, F., Zhang, C., Eslami,
  competitive environments. CoRR, abs/1706.02275, 2017.                  S. A., and Botvinick, M. Machine theory of mind. In
  URL http://arxiv.org/abs/1706.02275.                                   International conference on machine learning, pp. 4218–
Lu, C., Beukman, M., Matthews, M., and Foerster, J.                      4227. PMLR, 2018.
  JaxLife: An Open-Ended Agentic Simulator, volume
                                                                       Ribeiro, T., Gonçalves, F., Garcia, I. S., Lopes, G., and
  ALIFE 2024: Proceedings of the 2024 Artificial Life
                                                                         Ribeiro, A. F. Charmie: A collaborative healthcare and
  Conference of Artificial Life Conference Proceed-
                                                                         home service and assistant robot for elderly care. Applied
  ings. July 2024. doi: 10.1162/isal a 00770. URL
                                                                         Sciences, 11(16):7248, 2021.
  https://doi.org/10.1162/isal_a_00770.
   eprint:         https://direct.mit.edu/isal/proceedings-
                                                                       Roche, B., Guégan, J.-F., and Bousquet, F. Multi-
  pdf/isal2024/36/47/2461075/isal a 00770.pdf.
                                                                         agent systems in epidemiology: a first step for com-
Ma, M., Liu, J., Sokota, S., Kleiman-Weiner, M., and Foer-               putational biology in the study of vector-borne dis-
 ster, J. N. Learning intuitive policies using action features.          ease transmission. BMC Bioinformatics, 9(1):435,
 In International Conference on Machine Learning, pp.                    October 2008. ISSN 1471-2105. doi: 10.1186/
 23358–23372. PMLR, 2023.                                               1471-2105-9-435. URL https://doi.org/10.
                                                                         1186/1471-2105-9-435.
Matthews, M., Beukman, M., Ellis, B., Samvelyan, M.,
 Jackson, M., Coward, S., and Foerster, J. Craftax: A                  Ruhdorfer, C., Bortoletto, M., Penzkofer, A., and Bulling,
 lightning-fast benchmark for open-ended reinforcement                   A. The overcooked generalisation challenge. 2024. URL
 learning, 2024. URL https://arxiv.org/abs/                              https://arxiv.org/abs/2406.17949.
 2402.16801.
                                                                       Rutherford, A., Ellis, B., Gallici, M., Cook, J., Lupu, A.,
McKee, K. R., Leibo, J. Z., Beattie, C., and Everett,                    Ingvarsson, G., Willi, T., Khan, A., de Witt, C. S., Souly,
 R. Quantifying the effects of environment and popu-                     A., Bandyopadhyay, S., Samvelyan, M., Jiang, M., Lange,
 lation diversity in multi-agent reinforcement learning.                 R. T., Whiteson, S., Lacerda, B., Hawes, N., Rocktaschel,
 Autonomous Agents and Multi-Agent Systems, 36(1):                       T., Lu, C., and Foerster, J. N. Jaxmarl: Multi-agent rl
 21, March 2022. ISSN 1573-7454. doi: 10.1007/                           environments in jax. arXiv preprint arXiv:2311.10090,
 s10458-022-09548-8. URL https://doi.org/10.                             2023.
 1007/s10458-022-09548-8.
                                                                       Sadeghi, F. and Levine, S. (cad)$ˆ2$rl: Real single-
Mediratta, I., Jiang, M., Parker-Holder, J., Dennis, M.,                 image flight without a single real image. CoRR,
 Vinitsky, E., and Rocktäschel, T. Stabilizing unsuper-                 abs/1611.04201, 2016. URL http://arxiv.org/
 vised environment design with a learned adversary. In                   abs/1611.04201.
 Chandar, S., Pascanu, R., Sedghi, H., and Precup, D.
 (eds.), Proceedings of The 2nd Conference on Lifelong                 Samvelyan, M., Khan, A., Dennis, M., Jiang, M., Parker-
 Learning Agents, volume 232 of Proceedings of Machine                   Holder, J., Foerster, J., Raileanu, R., and Rocktäschel, T.
 Learning Research, pp. 270–291. PMLR, 22–25 Aug                         Maestro: Open-ended environment design for multi-agent
 2023. URL https://proceedings.mlr.press/                                reinforcement learning. arXiv preprint arXiv:2303.03376,
 v232/mediratta23a.html.                                                 2023a.

                                                                  11
                        Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

Samvelyan, M., Khan, A., Dennis, M., Jiang, M., Parker-             Strouse, D., McKee, K. R., Botvinick, M., Hughes, E., and
  Holder, J., Foerster, J., Raileanu, R., and Rocktäschel,           Everett, R. Collaborating with humans without human
  T. Maestro: Open-ended environment design for multi-                data, 2022. URL https://arxiv.org/abs/2110.
  agent reinforcement learning, 2023b. URL https://                   08176.
  arxiv.org/abs/2303.03376.
                                                                    Tobin, J., Fong, R., Ray, A., Schneider, J., Zaremba, W., and
Samvelyan, M., Paglieri, D., Jiang, M., Parker-Holder,                Abbeel, P. Domain randomization for transferring deep
  J., and Rocktäschel, T. Multi-agent diagnostics for                neural networks from simulation to the real world, 2017.
  robustness via illuminated diversity. arXiv preprint                URL https://arxiv.org/abs/1703.06907.
  arXiv:2401.13460, 2024.
                                                                    Tomasello, M. The cultural origins of human cognition. The
Sarkar, B., Shih, A., and Sadigh, D. Diverse conventions for          cultural origins of human cognition. Harvard University
  human-ai collaboration, 2023. URL https://arxiv.                    Press, Cambridge, MA, US, 1999. ISBN 0-674-00070-6
  org/abs/2310.15414.                                                 (Hardcover). Pages: vi, 248.

Serrino*, J., Kleiman-Weiner*, M., Parkes, D. C., and               Tuyls, K., Pérolat, J., Lanctot, M., Leibo, J. Z., and Graepel,
  Tenenbaum, J. B. Finding friend and foe in multi-agent              T. A generalised method for empirical game theoretic
  games. In Advances in Neural Information Processing                 analysis. CoRR, abs/1803.06376, 2018. URL http:
  Systems, volume 32, 2019.                                           //arxiv.org/abs/1803.06376.

Sheridan, T. B. Human–robot interaction: Status and chal-           Vinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M.,
  lenges. Human Factors, 58(4):525–532, 2016. doi: 10.                Dudzik, A., Chung, J., Choi, D. H., Powell, R., Ewalds, T.,
  1177/0018720816644364. URL https://doi.org/                         Georgiev, P., Oh, J., Horgan, D., Kroiss, M., Danihelka, I.,
  10.1177/0018720816644364. PMID: 27098262.                           Huang, A., Sifre, L., Cai, T., Agapiou, J. P., Jaderberg, M.,
                                                                      Vezhnevets, A. S., Leblond, R., Pohlen, T., Dalibard, V.,
Shum*, M., Kleiman-Weiner*, M., Littman, M. L., and                   Budden, D., Sulsky, Y., Molloy, J., Paine, T. L., Gulcehre,
  Tenenbaum, J. B. Theory of minds: Understanding behav-              C., Wang, Z., Pfaff, T., Wu, Y., Ring, R., Yogatama,
  ior in groups through inverse planning. In Proceedings of           D., Wünsch, D., McKinney, K., Smith, O., Schaul, T.,
  the AAAI conference on artificial intelligence, volume 33,          Lillicrap, T., Kavukcuoglu, K., Hassabis, D., Apps, C.,
  pp. 6163–6170, 2019.                                                and Silver, D. Grandmaster level in StarCraft II using
                                                                      multi-agent reinforcement learning. Nature, 575(7782):
Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou,
                                                                      350–354, November 2019. ISSN 1476-4687. doi: 10.
   I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M.,
                                                                      1038/s41586-019-1724-z. URL https://doi.org/
   Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L.,
                                                                      10.1038/s41586-019-1724-z.
  van den Driessche, G., Graepel, T., and Hassabis, D.
   Mastering the game of Go without human knowledge.                Wang, J. X., Kurth-Nelson, Z., Kumaran, D., Tiru-
  Nature, 550(7676):354–359, October 2017. ISSN 1476-                mala, D., Soyer, H., Leibo, J. Z., Hassabis, D., and
  4687. doi: 10.1038/nature24270. URL https://doi.                   Botvinick, M. Prefrontal cortex as a meta-reinforcement
   org/10.1038/nature24270.                                          learning system. Nature Neuroscience, 21(6):860–
                                                                     868, June 2018. ISSN 1546-1726. doi: 10.1038/
Stone, P., Kaminka, G., Kraus, S., and Rosenschein, J. Ad            s41593-018-0147-8. URL https://doi.org/10.
  hoc autonomous agent teams: Collaboration without pre-             1038/s41593-018-0147-8.
  coordination. Proceedings of the AAAI Conference on
  Artificial Intelligence, 24(1):1504–1509, Jul. 2010a. doi:        Wang, X., Zhang, S., Zhang, W., Dong, W., Chen, J.,
  10.1609/aaai.v24i1.7529. URL https://ojs.aaai.                     Wen, Y., and Zhang, W. Quantifying zero-shot coor-
  org/index.php/AAAI/article/view/7529.                              dination capability with behavior preferring partners,
                                                                     2024. URL https://openreview.net/forum?
Stone, P., Kaminka, G. A., Kraus, S., and Rosenschein, J. S.         id=wTRpjTO3F7.
  Ad hoc autonomous agent teams: collaboration without
  pre-coordination. In Proceedings of the Twenty-Fourth             Wellman, M. P., Tuyls, K., and Greenwald, A. Empiri-
  AAAI Conference on Artificial Intelligence, AAAI’10, pp.           cal game-theoretic analysis: A survey. arXiv preprint
  1504–1509. AAAI Press, 2010b.                                      arXiv:2403.04018, 2024.

Strouse, D., Kleiman-Weiner, M., Tenenbaum, J., Botvinick,          Wu*, S. A., Wang*, R. E., Evans, J. A., Tenenbaum, J. B.,
   M., and Schwab, D. Learning to share and hide intentions          Parkes, D. C., and Kleiman-Weiner, M. Too many cooks:
   using information regularization. In Advances in Neural           Bayesian inference for coordinating multi-agent collabo-
   Information Processing Systems, volume 31, 2018.                  ration. Topics in Cognitive Science, 13(2):414–432, 2021.

                                                               12
                        Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

Xia, G.-S., Bai, X., Ding, J., Zhu, Z., Belongie, S., Luo, J.,
  Datcu, M., Pelillo, M., and Zhang, L. Dota: A large-scale
  dataset for object detection in aerial images. In 2018
  IEEE/CVF Conference on Computer Vision and Pattern
  Recognition, pp. 3974–3983, 2018. doi: 10.1109/CVPR.
  2018.00418.
Yan, X., Guo, J., Lou, X., Wang, J., Zhang, H., and
  Du, Y. An efficient end-to-end training approach for
  zero-shot human-AI coordination. In Thirty-seventh
  Conference on Neural Information Processing Systems,
  2023. URL https://openreview.net/forum?
  id=6ePsuwXUwf.

Ying, L., Jha, K., Aarya, S., Tenenbaum, J. B., Torralba,
  A., and Shu, T. Goma: Proactive embodied cooperative
  communication via goal-oriented mental alignment, 2024.
  URL https://arxiv.org/abs/2403.11075.
Zhao, R., Song, J., Hu, H., Gao, Y., Wu, Y., Sun,
  Z., and Wei, Y. Maximum entropy population based
  training for zero-shot human-ai coordination. CoRR,
  abs/2112.11701, 2021. URL https://arxiv.org/
  abs/2112.11701.
Zhao, R., Song, J., Yuan, Y., Haifeng, H., Gao, Y., Wu, Y.,
  Sun, Z., and Wei, Y. Maximum entropy population-based
  training for zero-shot human-ai coordination, 2022. URL
  https://arxiv.org/abs/2112.11701.
Zhou, Y., Li, J., and Zhu, J. Posterior sampling for multi-
  agent reinforcement learning: solving extensive games
  with imperfect information. In International Conference
  on Learning Representations, 2020. URL https://
  openreview.net/forum?id=Syg-ET4FPS.




                                                                 13
                           Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

           ❌     ❌                  ❌     ❌            ❌     ❌                           ❌              ❌      ❌     ❌      ❌
                                                                                 ❌
                       ❌



                                                                                         ❌              ❌      ❌
           ❌           ❌            ❌     ❌           ❌      ❌                    ❌                                  ❌      ❌

               Asymmetric               Coordination              Counter                 Cramped             Forced
               Advantages                  Ring                   Circuit                  Room             Coordination

Figure 12. Five original Overcooked layouts. The crosses on each of the layouts indicate “unreachable” locations. When sampling layouts
in the procedural generation process, we make sure to sample at least one of the plate piles, onion piles, pots, and goals on walls that are
reachable



A. Appendix
A.1. Procedurally Generated Overcooked
In this section, we provide additional details for how we create many solvable coordination challenges in Overcooked. We
first sample which of the five layouts we would like to use as a base predicate. Next, we remove all items and agents from
the layout so that we are left with just walls and free spaces. We begin by first sampling a set of plate piles (three white
circles in triangle shape in Figure 12), onion piles (three yellow circles in triangle shape in Figure 12), pots (Darker black
rectangle with lid embedded within a gray wall in Figure 12), and goals (green squares in Figure 12) to be on a wall not in
the regions marked with a red cross in Figure 12. We then sample an additional set of each of the aforementioned items on
any of the remaining walls that are not occupied by other objects.
Next, we sample initial agent locations. In the Coordination Ring, Counter Circuit, and Cramped Room layouts, we can
sample both of the agents in any of the available free spaces. However, in Asymmetric Advantages and Forced Coordination
this can be problematic since a divider prevents agents from moving between two halves of the grid. As such, if all
task-relevant items are sampled on inaccessible walls, the agents will not be able to complete the tasks. To avoid this issue,
for these layouts only we make sure to sample initial agent locations in free spaces on separate halves of the grid. That is,
the red agent’s initial location will be sampled on a free cell in the left half of the grid and the blue agent’s initial location
will be sampled on the right half of the grid, or vice versa.
By guaranteeing at least one set of items relevant to the task are reachable and accessible by at least one agent, we can
create a new, solvable coordination challenge. We randomly sample whether we will rotate the sampled grid 90 degrees
clockwise, and embed the resulting state in a larger 9x9x26 observation space by padding additional cells as just being
walls. After making this 9x9x26 grid, we compare it to held-out levels to see whether the goal positions, pot positions, plate
pile positions, and onion pile positions are the same. If they are, we resample a new grid. We provide pseudocode for our
approach in Algorithm 1.

A.2. CEC in Partially Observable Environments
We modified the Dual Destination problem to give agents a 3x3 visibility window instead of the fully observable 5x5 window
from the results in Figure 3. Then, we trained CEC, FCP, and IPPO using the same architectures as in the fully observable
setting and 300 million steps of training. The challenge of breaking handshakes when learning multi-agent policies is even
more pronounced in the partially observable case, as agents may form arbitrary conventions to handle high uncertainty about
the state of the world. From our results in Figure 13, we find the same conclusions in the partially observable setting
as we did in the fully observable results described in the paper: CEC has high cross-play performance in ZSC with
other agents on novel environments (0.74), outperforming population based methods (0.61) and naive self-play (0.03).

A.3. CEC in Multi-task Environments
We explored whether CEC would be beneficial for cross-partner and cross-environment generalization when there are
multiple solutions to a task. The intuition here is that with multiple possible optimal responses a team of agents could
have for collaboration, PBT or self-play methods with sufficient exploration might be able to form robust, object-oriented

                                                                    14
                        Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

Algorithm 1 Solvable Overcooked Coordination Challenge Generation
  Input: Layout set L = {Coordination Ring, . . ., Forced Coordination}, Held-out set of evaluation levels Gh
  Sample Lbase ∼ U(L) {Discrete uniform distribution}
  Initialize grid G ← LoadWalls(Lbase )
  G ← G \ {objects ∪ agents}
  Phase 1: Mandatory Object Placement
  for ∀ot ∈ O = {PlatePile, OnionPile, Pot, Goal} do
     Let V = {w ∈ Gwalls | w ∈ / Rred }
     G ← G ∪ {ot (rand(V ))}
  end for
  Phase 2: Supplemental Object Placement
  for ∀ot ∈ O do
     Vremaining = {w ∈ V | w ∈/ G}
     G ← G ∪ {ot (rand(Vremaining ))}
  end for
  Agent Positioning
  if Lbase ∈ {Asymmetric Advantages, Forced Coordination} then
     pos1 ∼ U({c ∈ FreeSpacesleft })
     pos2 ∼ U({c ∈ FreeSpacesright })
  else
     pos1 ∼ U(FreeSpaces)
     pos2 ∼ U(FreeSpaces \ {pos1 })
  end if
  Post-Processing
  if u ∼ U([0, 1]) > 0.5 then
     G ← Rotate(G, 90◦ )
  end if
  G ← Pad(G, walls, 9 × 9)
  if G ∈/ Gh then
     Return Valid configuration challenge G
  else
     Repeat generation process
  end if


representations without the need for CEC.
To test this, we extended the Dual Destination environment to have two possible valid solutions to reward agents (Figure 14.)
Now, agents are rewarded if they are on opposite green or opposite pink squares. As shown in Figure 15, in the multi-task
variant both valid squares remain equidistant from the agents so that there are now 4 strategies which could be rewarded.
For the procedural generator, just as in the original Dual Destination problem we randomly shuffle agent and goal locations
so that they all lie on unique grid cells. We show even in the multi-task setting, CEC agents (0.404) outperform PBT
methods (0.251) and naive self-play (0.083) when collaborating with novel partners on tasks PBT and naive self-play
method swerve trained on. Just as in the single-task setting, PBT (0.005) and naive self-play (0.004) cannot generalize
to novel partners on novel environments, whereas CEC can (0.446), albeit with a slight performance reduction from
the single-task setting in Figure 3 of our paper (CEC=0.931 and 0.966 on fixed and procedurally generated single-task
problems respectively). This finding illustrates that additional work is needed to understand the impacts of task complexity
and procedural environment generation.

A.4. Combining Partner and Environment Diversity
We tested the impact of combining partner diversity with environment diversity by training E3T agents under the CEC
paradigm. We set the partner policy randomness to 0.5, consistent with human experiments and E3T’s original design.
Results in the ZSC setting in simulation (Figure 16) show CEC-E3T performs worse than other models on Overcooked’s five
original layouts (CEC=130.51, CEC-E3T=28.21) but outperforms CEC-Finetune on 100 held-out grids (CEC-FT=41.73,

                                                            15
                         Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination




                                                                        Figure 13. In the partially observable setting, CEC ZSC performance
                                                                        on the Dual Destination problem replicates findings from the fully
                                                                        observable case, suggesting it has promise for other games with
                                                                        imperfect information and the need for dynamic conventions, such as
                                                                        Hanabi.




Figure 14. Overview of the Multi-Task Dual Destination problem.          Figure 15. Even in this multi-task setting, CEC outperforms
Agents are rewarded for going to either opposite pink squares or         population-based methods when tasked with collaborating with
opposite green squares.                                                  novel partners on novel problems. Just as in the single-task setting,
                                                                         naive self-play and PBT methods fail to achieve substantial re-
                                                                         wards on environments they have not seen during training, whereas
                                                                         CEC can.


CEC-E3T=58.13). The learning curves (Figures 17 and 18) from a checkpoint 2 billions steps into training reveal that noisy
partners introduced additional training noise, which, combined with dynamic environments, likely requires larger networks
and longer training times for convergence compared to vanilla CEC.

A.5. Necessity of Recurrent Networks for CEC
We include recurrent networks with CEC to enable a basic meta-learning algorithm (Wang et al., 2018; Rabinowitz et al.,
2018). We tested whether it is possible for CEC to retain reasonable performance without using recurrent policies. In
Overcooked and the Dual Destination problem, agents without recurrence failed to converge or adapt effectively. As shown
in the learning curves for the Dual Destination problem, CEC with LSTMs successfully converged (Figure 19), while the
non-recurrent version couldn’t even achieve positive rewards (Figure 20).

A.6. NiceWebRL for Jax-based Human Experiments
Reinforcement Learning has experienced accelerated progress recently due to the adoption of Jax-based environments that
enable tackling single-agent (Bonnet et al., 2024; Nikulin et al., 2024; Matthews et al., 2024) and multi-agent (Rutherford
et al., 2023; Lu et al., 2024) problems at millions of steps per second on academic-scale compute. From. To that effect, an
open question within the fields of cognitive and computer science is how can these advances in environment design help us
progress our understanding of individual and collective agency in humans and machines. For our human experiments we

                                                                   16
                             Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                                                                                                100 Procedurally
                               5 Heldout Grids                                                  Generated Grids
        160
XP Reward




            80

             0 IPPO    E3T       FCP CEC CEC-FTCEC-E3T                       IPPO       E3T        FCP CEC CEC-FTCEC-E3T
                                  Algorithm                                                         Algorithm
  Figure 16. CEC with E3T exhibits lower cross play performance in the ZSC setting than any other method on the original 5 Overcooked
  layouts, but exhibits better generality to the 100 held out procedurally generated layouts than CEC fine-tuned on one of the original 5




  Figure 17. CEC on its own is able to achieve very high rewards         Figure 18. Combining CEC with a partner diversity method (E3T)
  during training across novel environments                              leads to a training curve which achieves half of the reward as CEC
                                                                         on its own in the same amount of training time




  used NiceWebRL (Carvalho, 2025), a unified tool for evaluating single-Human, Human-AI, and Human-Human performance
  in turn-based or simultaneous-action games.
  NiceWebRL is built on top of the NiceGUI nic Python package, and leverages server-side environment parallelization
  to make a seamless client-side study experience for any single or multi-agent game based in Jax. It precompiles the
  environment reset and step functions, as well as the code to render the state as a pixel-based image. To ensure minimal
  latency, NiceWebRL then simulates future possible states and stores an image representing each possible future-world
  client-side. Then, when the active Human actually takes an action in the game, it renders the corresponding state and
  simulates forward in time during the few milliseconds before the human can select another action.
  Not only does NiceWebRL provide an intuitive way to load in environments and AI models to conduct human experiments
  on, it also gives researchers an accessible method for collecting and saving participant data thanks to NiceGUI’s large variety
  of survey options. Moreover, it provides a seamless way to deploy experiments on the web from a laptop: even running
  Human-AI experiments with complex models on a laptop with a few cpu cores, we were able to host several simultaneous
  user studies across the globe with low latency. The authors of the package originally included just single-agent support, and
  we extended that package to evaluate human-AI and human-human gameplay.

                                                                    17
                          Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination




Figure 19. In 300 million timesteps, CEC with an LSTM con-            Figure 20. In 300 million timesteps, CEC without an LSTM cannot
verged to the maximum reward on the Dual Destination problem.         achieve a positive reward on the Dual Destination problem.


A.7. Agent Training Details
A.7.1. N ETWORK A RCHITECTURE
For all IPPO, FCP, and CEC agents, we use the architecture in Table 1 consisting of three main components: an observation
encoder, a recurrent core, and separate actor-critic heads.

         Component                 Layer      Details                      √
                                   Conv1      2×2 kernel, 64 filters, orth(√2), ReLU activation
                                   Conv2      2×2 kernel, 32 filters, orth( 2), ReLU
                                                                                  √     activation
         Observation Encoder
                                   FC1        Fully-connected, 512 units, orth(√2), ReLU activation
                                   FC2        Fully-connected, 512 units, orth( 2), ReLU activation
         Recurrent Core            LSTM       Feature size: 256, state resets at episode boundaries
                                   FC1        Fully-connected, 256 units, orth(2), ReLU activation
                                   FC2        Fully-connected, 192 units, orth(2), ReLU activation
         Actor Head                FC3        Fully-connected, 128 units, orth(2), ReLU activation
                                   FC4        Fully-connected, 64 units, orth(2) [Overcooked only], ReLU activation
                                   Output     Fully-connected, [6 for Overcooked, 5 for Dual Destination Problem]
                                              units (logits for discrete actions), orth(0.01)
                                   FC1        Fully-connected, 512 units, orth(2), ReLU activation
                                   FC2        Fully-connected, 256 units, orth(2), ReLU activation
         Critic Head               FC3        Fully-connected, 192 units, orth(2) [Overcooked only], ReLU activation
                                   FC4        Fully-connected, 128 units, orth(2) [Overcooked only], ReLU activation
                                   Output     Fully-connected, 1 unit (value prediction), orth(1.0)

Table 1. Agent Architecture for IPPO, FCP, and CEC agents. All layers use orthogonal weight initialization with layer-specific scaling
factors (orth(scale)) and zero bias initialization.


For E3T, we use the architecture described in (Yan et al., 2023), with the randomness parameter for the partner policy = 0.55

A.7.2. PPO PARAMETERS
We use the parameters in Table 2 for training all PPO agents:

A.8. Cross-Algorithm Analysis
Agents trained with each of the different algorithms in the single-task setting (IPPO, FCP, E3T) play each other and the two
CEC models on both the five original and 100 procedurally generated held-out Overcooked grids. We show the results in

                                                                 18
                        Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                     Parameter                  Value        Description
                     LR                         3 × 10−4     Initial learning rate for policy optimization
                     NUM STEPS                  256          Number of steps to collect per environment
                                                             before updating
                     TOTAL TIMESTEPS            3 × 109      Total number of environment steps for train-
                                                             ing
                     UPDATE EPOCHS              4            Number of epochs to update policy per col-
                                                             lected batch
                     NUM MINIBATCHES            2            Number of minibatches to split collected
                                                             data into
                     GAMMA                      0.99         Discount factor for future rewards
                     GAE LAMBDA                 0.95         Lambda parameter for Generalized Advan-
                                                             tage Estimation
                     CLIP EPS                   0.2          PPO clipping parameter for policy loss
                     ENT COEF                   0.005        Entropy coefficient for encouraging explo-
                                                             ration
                     VF COEF                    1.0          Value function loss coefficient
                     MAX GRAD NORM              0.5          Maximum gradient norm for gradient clip-
                                                             ping
                     ANNEAL LR                  True         Whether to use learning rate annealing

                                                 Table 2. PPO Hyperparameters


Figures 21 and 22. From these heatmaps, we see that CEC can collaborate with agents trained with different algorithms on
par with PBT methods, indicating that it is truly learning how to adapt rather than follow a single strategy (Question 1). We
use the values in Figures 21 and 22 as the payoff matrices for our Empirical Game Theory analyses in Figure 8.
We additionally include the AI-AI XP performance for agents across each of the original 5 layouts in Figure 23, which
shows that CEC or CEC-Finetune perform better than all other models in 4 out of 5 layouts and competitively with other
methods in the layout it did not do as well in.

A.9. Limitations
The learning curves in Figure 7 show that CEC has not yet converged from SP training or plateaued in terms of XP
performance on any level. Due to cost and time constraints, we were not able to train for longer than 3 billion steps per
model, leaving 2 open questions for future research: 1. What is upper-ceiling on XP performance for IPPO CEC agents,
and 2. How can we balance the bias towards adaptation introduced in CEC with greedier policies which maximize reward
beyond CEC-Finetune.
Moreover, our human experiments filtered for participants capable of fluently speaking English. This can bias our results, as
speaking English typically comes with its own set of cultural practices which impact participants’ abilities to play the game
and also their assessments of agents’ cooperative abilities (Henrich et al., 2010).

A.10. Qualitative Analysis of Learned Norms
In this section, we provide additional intuition for the success of CEC in comparison to single-task methods. We examine
Counter Circuit (see Figure 4), a layout with a large amount of strategy diversity. In Figures 24, 25, and 26, we compare the
frequency of different locations visited by IPPO and CEC agents in Counter Circuit. The prevalence of darker regions for
the IPPO agents indicates that they visit certain areas less frequently and tend to follow a fixed route when completing the
task. Such strategies can be brittle if people try moving in the opposite direction around the center block, potentially forcing
agents into unfamiliar locations where they lack experience acting. In contrast, CECs have a more uniform distribution over
the cells they visit. This does not inherently mean CECs are capable of better adaptation, as agents uniformly sampling
actions would theoretically also have uniform state coverage. However, we observe that the cells closest to both pots, both
onion piles, the plate pile, and the goal location receive the highest concentration of visitations by CEC agents. In contrast,
the IPPO agents seem to visit at most one pot. This leads us to infer that CEC agents have developed a richer representation

                                                              19
                                            Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

                                   Normalized Reward                                                                 Normalized Reward
                            0.51   0.29     0.77      0.47    0.49                                            0.00   0.00     0.00      0.13     0.03
        IPPO




                                                                                           IPPO
                                                                                                                                                           0.5
                                                                         0.7

                            0.29   0.43     0.41      0.38    0.33                                            0.00   0.00     0.00      0.18     0.06      0.4
        E3T




                                                                                           E3T
                                                                         0.6
  Algorithm




                                                                                     Algorithm
                                                                                                                                                           0.3
                            0.77   0.41     0.55      0.58    0.71                                            0.00   0.00     0.00      0.16     0.05
        FCP




                                                                                           FCP
                                                                         0.5
                                                                                                                                                           0.2
                            0.47   0.38     0.58      0.61    0.67                                            0.13   0.18     0.16      0.56     0.33
        CEC-Finetune CEC




                                                                                           CEC-Finetune CEC
                                                                         0.4
                                                                                                                                                           0.1
                            0.49   0.33     0.71      0.67    0.78                                            0.03   0.06     0.05      0.33     0.14
                                                                         0.3
                            IPPO   E3T       FCP      CEC CEC-Finetune                                        IPPO   E3T      FCP       CEC CEC-Finetune
                                          Algorithm                                                                         Algorithm

  Figure 21. Heatmap comparing different algorithms playing each                     Figure 22. Heatmap comparing different algorithms playing each
  other in the single-task setting, averaged across the original 5                   other on 100 held-out procedurally generated Overcooked layouts.
  layouts. Brighter yellow regions indicate better XP performance.                   Brighter yellow regions indicate better XP performance.




  of the different subtasks involved in cooking, and may be more capable of adapting to users’ actions if forced by the humans
  to play a different role within the collective plan (i.e. cook items in a different pot, pickup cooked items instead of pass
  onions, etc.).

  A.11. User Assessments of Partners from Human-AI Experiments
  At the end of every episode a participant plays with a different RL agent, we provide them with a survey to assess the agent
  they just played with. We ask 7 questions that participants respond to with a rating on the Likert scale (Likert, 1932). The
  questions, and corresponding participant ratings of different models, averaged across the two human-AI experiments we ran
  (Counter Circuit and Coordination Ring) are included in Figure 27.
  We also include the responses averaged across participants for each individual experiment in Figures 28 and 29.




                                                                                                                                                IPPO
          240                                                                                                                                   E3T
XP Reward




          160
                                                                                                                                                FCP
                                                                                                                                                CEC
                 80                                                                                                                             CEC-Finetune
                           0 Asymm Advantages          Forced Coord            Coord Ring                            Cramped Room              Counter Circuit
                                                                                 Layout
  Figure 23. Comparison of model performance across each of the original 5 Overcooked layouts, with standard error bars shown. CEC or
  CEC-Finetune achieve the highest mean reward in 4 out of 5 layouts.

                                                                                20
                                 Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination

             Visit Frequencies           1.0                Visit Frequencies                           Visit Frequencies
                                                                                      1.0                                            1.0

                                         0.8                                          0.8                                            0.8

                                         0.6                                                                                         0.6
                                                                                      0.6

                                         0.4
                                                                                                                                     0.4
                                                                                      0.4

                                                                                                                                     0.2
                                         0.2                                          0.2

                                                                                                                                     0.0
                                         0.0                                          0.0



 Figure 24. IPPO Seed on Counter Circuit                                                       Figure 26. CEC Seed on Counter Circuit
                                                   Figure 25. IPPO Seed on Counter Circuit
 which has converged upon an optimal                                                           which can coordinate with IPPO seeds
                                                   which has converged upon an optimal
 strategy of rotating clockwise and the                                                        from Figures 24 and 25. By focusing it’s
                                                   strategy of rotating counterclockwise and
 agent at the top doing more of the work.                                                      attention on task-relevant objects rather
                                                   the agent at the bottom doing more of
 Struggles playing with seed depicted in                                                       than arbitrary strategies, it’s able to effec-
                                                   the work. Struggles playing with seed de-
 Figure 25.                                                                                    tively cooperate with novel partners on
                                                   picted in Figure 24.
                                                                                               novel problems.


     4                                                                                                                           IPPO
                                                                                                                                 FCP
                                                                                                                                 IPPO
     3                                                                                                                           FCP
                                                                                                                                 E3T
Rating




     2                                                                                                                           CEC
                                                                                                                                 CEC-FT
     1

     0 Adaptive Consistent Human-like In My Way Frustrating Enjoyed Coordination
                                       Question
 Figure 27. Participant assessments of different models across 7 different metrics averaged across Counter Circuit and Coordination Ring.


 A.12. Human-AI Collaboration Success Per Layout
 We plot the success of different models playing with humans in our user study in Figures 30 and 31. We show the results of
 Counter Circuit and Coordination Ring respectively.




                                                                      21
                           Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination




     4

     3
                                                                 IPPO
Rating




                                                                 FCP
     2                                                           IPPO
                                                                 FCP
     1                                                           E3T
                                                                 CEC
                                                                 CEC-Finetune
     0 Adaptive            Consistent Human-like In My Way Frustrating                               Enjoyed Coordination
                                                  Question
          Figure 28. Participant assessments of different models across 7 different metrics for the experiment Counter Circuit.




     4
     3                                                           IPPO
Rating




                                                                 FCP
     2                                                           IPPO
                                                                 FCP
                                                                 E3T
     1                                                           CEC
                                                                 CEC-Finetune
     0 Adaptive            Consistent Human-like In My Way Frustrating                               Enjoyed Coordination
                                                  Question
         Figure 29. Participant assessments of different models across 7 different metrics for the experiment Coordination Ring.




                                                                   22
                               Cross-environment Cooperation Enables Zero-shot Multi-agent Coordination




                                                                                        3
                                                                           # Recipes Made
# Recipes Made




             2
                                                                                        2
             1
                                                                                        1
             0 IPPO   FCP   IPPO      FCP    E3T   CEC CEC-Finetune                     0 IPPO   FCP   IPPO      FCP    E3T   CEC CEC-Finetune
                                   Algorithm                                                                  Algorithm

  Figure 30. Success rates of different algorithms playing Counter           Figure 31. Success rates of different algorithms playing Coordina-
  Circuit with humans.                                                       tion Ring with humans.




                                                                      23
