Minimum Coverage Sets for Training Robust Ad Hoc Teamwork Agents

Arrasy Rahman, Jiaxun Cui, Peter Stone · DOI

Abstract

Ad Hoc Teamwork (AHT) requires agents to coordinate effectively with unfamiliar partners. Traditional training methods rely on heuristic diversity metrics to generate training teammates, which often fail to cover the full range of necessary coordination strategies. We introduce L-BRDiv (Lagrangian Best Response Diversity), an algorithm that identifies the Minimum Coverage Set (MCS)—the smallest group of strategies required to respond optimally to any possible partner. By utilizing Lagrange multipliers to dynamically balance diversity and performance, L-BRDiv produces agents that are significantly more robust to unseen partners across various cooperative benchmarks, including Level-based Foraging and grid-world reaching tasks.

Introduction

In the field of Ad Hoc Teamwork (AHT), an autonomous agent must jump into a task and cooperate with a teammate it has never encountered before, such as a human or a different AI system. The primary challenge lies in the variety of "conventions" different partners might follow. For example, in a driving task, some agents might pass on the left while others pass on the right. To be truly robust, an AHT agent needs to have encountered a wide variety of these behaviors during its training phase.

Currently, researchers typically generate training teammates by maximizing specific "diversity metrics." However, these metrics are often based on heuristics—rules of thumb that do not always translate to improved performance. Poorly chosen metrics can lead to redundant teammates or "self-sabotaging" partners that play so poorly the agent learns nothing useful. This paper addresses the fundamental question: how can we systematically generate a set of teammates that forces an agent to learn every coordination skill it might actually need?

Methodology

The Minimum Coverage Set (MCS)

The authors propose shifting from heuristic diversity to the concept of Coverage Sets. They define the Minimum Coverage Set (MCS) as the smallest set of policies that contains a best-response to any possible teammate strategy within a given environment. Theoretically, if an agent can emulate every policy in the MCS, it is prepared to coordinate with any partner it might encounter.

Conceptual visualization of the Minimum Coverage Set (MCS) covering the space of teammate policies.

L-BRDiv: Lagrangian Best Response Diversity

To find this MCS, the authors developed L-BRDiv, a core algorithm that jointly trains a population of teammates and agent policies by solving a constrained optimization problem. Unlike previous state-of-the-art methods that rely on a fixed hyperparameter (often denoted as $\alpha$) to balance self-play and diversity, L-BRDiv uses Lagrange multipliers.

The L-BRDiv training architecture, utilizing Lagrange multipliers to optimize for best-response diversity through self-play and cross-play interactions.

These multipliers act as dynamic pressures during training. They start with high values to force policies to become distinct and satisfy coverage constraints, then decrease once the policies have successfully branched out into different parts of the strategy space. This approach ensures that for every teammate generated, there is a unique, high-performing best-response in the agent's repertoire. The teammates are trained using Multi-Agent PPO (MAPPO), while the final AHT agent is trained using RL$^2$, a meta-learning approach that allows for rapid adaptation based on rewards received during interaction.

Experimental Evaluation

The researchers evaluated L-BRDiv across four distinct two-player cooperative environments:

  1. Repeated Matrix Game: A 3x3 game designed to test if the algorithm can discover all distinct optimal coordination points.
  2. Cooperative Reaching: A grid world requiring agents to arrive at the same corner simultaneously.
  3. Weighted Cooperative Reaching: A variant where different corners provide different rewards, testing the ability to handle mismatched conventions.
  4. Level-based Foraging (LBF): A standard benchmark where agents coordinate to collect items.

To measure generalization, trained agents were tested against a set of 6 to 15 "unseen" heuristic-based teammates ($\Pi^{eval}$) that were not part of the training set.

Key Results and Discussion

L-BRDiv demonstrated superior robustness, significantly outperforming baselines in the Matrix Game, Weighted Cooperative Reaching, and LBF. In the complex LBF environment, L-BRDiv discovered 4 to 5 distinct members of the MCS, whereas baseline methods often plateaued after finding only two.

Beyond performance, the algorithm proved to be more efficient and "plug-and-play" because it eliminates the need for manual tuning of diversity weights. Analysis also showed that agents trained with L-BRDiv were more "decisive," identifying a partner's convention and committing to the correct best-response more quickly than those trained with standard diversity metrics.

Conclusion and Future Work

By moving away from heuristic "guessing" of diversity and toward the mathematically grounded target of Minimum Coverage Sets, L-BRDiv provides a more robust framework for Ad Hoc Teamwork. Future work will focus on scaling these concepts to environments with more than two agents, where strategy space complexity increases exponentially. Additionally, the authors aim to address "self-sabotage" in teammate generation and explore the application of coverage sets in competitive or general-sum games like Poker or Diplomacy.

Summary updated

BibTeX
@misc{rahman2023minimum,
  author = {Arrasy Rahman and Jiaxun Cui and Peter Stone},
  title = {{Minimum Coverage Sets for Training Robust Ad Hoc Teamwork Agents}},
  year = {2023},
  eprint = {2308.09595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.09595},
}
Figure