Towards Few-shot Coordination: Revisiting Ad-hoc Teamplay Challenge In the Game of Hanabi

Hadi Nekoei, Xutong Zhao, Janarthanan Rajendran, Miao Liu, Sarath Chandar

Abstract

Cooperative Multi-agent Reinforcement Learning (MARL) algorithms with Zero-Shot Coordination (ZSC) have gained significant attention in recent years. ZSC refers to the ability of agents to coordinate zero-shot (without additional interaction experience) with independently trained agents. While ZSC is crucial for cooperative MARL agents, it might not be possible for complex tasks and changing environments. Agents also need to adapt and improve their performance with minimal interaction with other agents. In this work, we show empirically that state-of-the-art ZSC algorithms have poor performance when paired with agents trained with different learning methods, and they require millions of interaction samples to adapt to these new partners. To investigate this issue, we formally defined a framework based on a popular cooperative multi-agent game called Hanabi to evaluate the adaptability of MARL methods. In particular, we created a diverse set of pre-trained agents and defined a new metric called adaptation regret that measures the agent's ability to efficiently adapt and improve its coordination performance when paired with some held-out pool of partners on top of its ZSC performance. After evaluating several SOTA algorithms using our framework, our experiments reveal that naive Independent Q-Learning (IQL) agents in most cases adapt as quickly as the SOTA ZSC algorithm Off-Belief Learning (OBL). This finding raises an interesting research question: How to design MARL algorithms with high ZSC performance and capability of fast adaptation to unseen partners. As a first step, we studied the role of different hyper-parameters and design choices on the adaptability of current MARL algorithms. Our experiments show that two categories of hyper-parameters controlling the training data diversity and optimization process have a significant impact on the adaptability of Hanabi agents.

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), the primary focus has recently been on Zero-Shot Coordination (ZSC)—the ability of an agent to coordinate effectively with a novel partner upon the very first encounter. However, ZSC represents an extremely high bar that may be unreachable in complex, real-world scenarios where conventions and strategies vary wildly.

This paper argues for a shift in focus toward Few-Shot Coordination (FSC). In an FSC setting, an agent is not expected to be perfect at "second zero." Instead, it must be a fast learner, capable of identifying a partner's unique style and adapting its own strategy within a limited number of interactions. By revisiting the ad-hoc teamplay challenge in the game of Hanabi, this research investigates whether current state-of-the-art (SOTA) coordination algorithms truly possess the social flexibility required for rapid adaptation.

Formalizing the Few-Shot Challenge

To rigorously evaluate adaptability, the authors introduce two key conceptual tools:

  1. Adaptation Regret: This novel metric measures the efficiency of the learning process. It calculates the difference between an agent's actual performance and the theoretical "best-response" performance over the duration of the adaptation phase. A lower regret indicates an agent that learns the partner's conventions more efficiently.
  2. Partner Diversity Metric ($D$): To ensure that agents are not simply memorizing a narrow set of behaviors, the authors propose a metric to quantify the diversity of a partner pool based on cross-play scores. This ensures that the "held-out" partners represent a wide variety of strategic conventions.

Methodology and Benchmarking

The study utilizes the Hanabi Learning Environment, a standard benchmark for multi-agent cooperation due to its emphasis on theory of mind and communication. The researchers generated a diverse evaluation pool of 16 pre-trained agent types featuring different architectures (e.g., LSTM vs. GRU) and training paradigms (Self-Play vs. ZSC-focused).

Using this pool, they benchmarked several prominent algorithms:

  • Independent Q-Learning (IQL): A naive baseline where agents learn independently.
  • Value Decomposition Networks (VDN): A standard cooperative MARL approach.
  • Off-Belief Learning (OBL): The current state-of-the-art for Zero-Shot Coordination.

Key Insights: The ZSC-Adaptability Gap

The experiments yielded several surprising results that challenge current assumptions in the field:

ZSC Performance Does Not Equal Adaptability

Algorithms designed specifically for ZSC, such as OBL, do not necessarily adapt faster to novel partners. In fact, the data shows that naive IQL agents often exhibit lower adaptation regret in the early stages of interaction. While OBL might eventually reach a higher final score, its initial "social learning curve" is often steeper and slower than simpler methods.

The "Million-Shot" Reality

While the goal is "few-shot" coordination, current MARL agents are effectively "million-shot." Even the most advanced models required millions of interaction samples to reach peak performance with a new partner. This highlights a massive gap between current AI capabilities and human-like social intelligence, where humans can often adjust to a new Hanabi partner in just a few rounds.

The Role of Hyperparameters

Adaptation speed is heavily influenced by classical RL design choices. The study found that hyperparameters controlling data diversity (such as the number of parallel threads) and the optimization process (such as replay buffer size) are critical. Interestingly, smaller replay buffers can sometimes improve initial adaptation by allowing the agent to quickly overwrite data from old, irrelevant partner interactions with more recent, relevant observations.

Conclusion and Future Directions

The findings suggest that the MARL community needs to look beyond static zero-shot performance. The failure of SOTA ZSC algorithms to adapt quickly indicates that these models may be learning rigid conventions rather than flexible social reasoning.

The authors suggest that future research should explore meta-learning or K-level reasoning to specifically optimize for the adaptation process itself. Moving forward, the challenge is to design agents that possess both high zero-shot competence and the agility to master new social conventions in truly "few" shots.

Summary updated

BibTeX
@inproceedings{nekoei2023towards,
  author = {Hadi Nekoei and Xutong Zhao and Janarthanan Rajendran and Miao Liu and Sarath Chandar},
  title = {{Towards Few-shot Coordination: Revisiting Ad-hoc Teamplay Challenge In the Game of Hanabi}},
  booktitle = {CoLLAs},
  year = {2023},
}
Figure