Off-Team Learning

Brandon Cui, Hengyuan Hu, Andrei Lupu, Samuel Sokota, Jakob Nicolaus FoersterNeurIPS 2022

This NeurIPS 2022 paper, "Off-Team Learning," tackles a fundamental challenge in multi-agent reinforcement learning: how do we train agents to cooperate with partners they have never met before? By refining the state-of-the-art "Off-Belief Learning" (OBL) framework, the authors introduce two new methods that significantly improve an agent's ability to handle "strangers" and unexpected situations in the cooperative card game, Hanabi.

The Problem: Covariate Shift in Zero-Shot Coordination

In the world of Zero-Shot Coordination (ZSC), the goal is to create agents that can walk onto a team of strangers and play effectively without prior practice. The current gold standard for this is Off-Belief Learning (OBL). OBL works by forcing agents to ignore "secret handshakes" (arbitrary conventions) and instead focus on "grounded" information.

However, OBL has a distributional flaw. It trains its belief model—the part of the agent that guesses what cards other players have—on its own current style of play. But when it actually plays the game, it encounters a different distribution of moves from its partners. This is known as covariate shift. Imagine learning to drive only on empty, sunny streets and then being dropped into a rainy rush hour in Manhattan; your "beliefs" about how other cars behave would be dangerously wrong. This paper aims to fix that mismatch.

Methods: Training "Off-Team"

The authors propose two complementary techniques to broaden the agent's understanding of potential partner behaviors:

  1. Off-Team Belief Learning (OT-BL): Instead of training the belief model only on the agent's current self-play data, OT-BL uses a "belief-bootstrapping" operator. This allows the model to learn from trajectories generated by different policies ($\pi_b$). It essentially asks: "If a different kind of player were here, what would I believe about the hidden state?"
Diagram comparing standard belief learning with Off-Team Belief Learning (OT-BL), which incorporates a different policy to broaden the belief model's support.
  1. Off-Team Off-Belief Learning (OT-OBL): This extends the logic to the policy itself. It trains the agent's action-value function (the $Q$-function) by simulating "cross-play" during training. By weighting the learning process according to how a variety of potential partners might act, the agent learns a policy that is less brittle and more adaptable to different styles.

Experimental Setup

The primary benchmark used is Hanabi, a cooperative game of "blind" poker where you see everyone's cards except your own.

  • 2-life and 3-life Hanabi: The authors created a more difficult 2-life variant to exacerbate the covariate shift problem and test the limits of the belief models.
  • Proxy Partners: To evaluate how well the agents coordinate with strangers, they tested them against a rule-based bot ("Rank Bot") and an agent trained on human gameplay data ("Clone Bot") to act as a proxy for human-AI coordination.

Key Insights and Results

  • Closing the Belief Gap: The authors discovered that in standard OBL, the belief model often fails to produce "valid" samples (hands that are actually possible given the public information) when the game goes off-script. OT-BL, on the other hand, maintains over 99.5% validity, even in high-pressure scenarios.
Graph demonstrating that OT-BL maintains near 100% valid fictitious samples over time, whereas vanilla OBL suffers a significant drop due to covariate shift.
  • Broadening the Support: By training "off-team," the agents aren't just getting better at self-play; they are broadening the "support" of their policy. They learn to handle a wider variety of game states, which naturally makes them better partners for humans or other AI.
  • Higher Cross-Play (XP) Scores: In the 2-life Hanabi variant, OT-BL achieved a final XP score of 23.76, significantly outperforming vanilla OBL (23.05).
  • Reduced Coordination Gap: The authors used a metric called SXG (Self-play Cross-play Gap). A lower SXG means the agent plays almost as well with strangers as it does with itself. OT-BL's gap was 8–16x lower than vanilla OBL.
  • Better Human-Proxy Coordination: When paired with the "Clone Bot" (human proxy), OT-OBL improved scores from 16.19 to 16.64 without sacrificing its ability to play with other versions of itself.
  • Mitigating "Bombouts": In Hanabi, making three mistakes ends the game (a "bombout"). The paper shows that covariate shift is a leading cause of bombouts. OT-OBL significantly reduced the percentage of bombouts when paired with the Rank Bot, dropping the error rate from 23.49% to 19.97%.

Limitations and Future Work

While highly effective, the authors acknowledge that these methods are rough heuristic approximations rather than mathematically exact solutions to the ZSC problem, and they do not yet guarantee convergence to a perfect equilibrium. Furthermore, training across multiple distributions adds computational complexity to the already intensive OBL hierarchy.

While OT-BL and OT-OBL mitigate covariate shift, they don't eliminate it entirely—especially when the test-time partner is radically different from anything seen during training. Future work will explore how these "off-team" ideas could be applied to more complex, continuous-action environments beyond card games.

Summary updated

BibTeX
@inproceedings{cui2022off,
  author = {Brandon Cui and Hengyuan Hu and Andrei Lupu and Samuel Sokota and Jakob Nicolaus Foerster},
  title = {{Off-Team Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=uOdTKkg2FtP},
}
Figure