A Minimax Approach to Ad Hoc Teamwork

Victor Villin, Thomas Kleine Buening, Christos Dimitrakakis

Introduction

Ad Hoc Teamwork (AHT) represents a significant challenge in multi-agent systems: how can an autonomous agent effectively cooperate with unfamiliar teammates without the benefit of prior coordination or shared training? Traditional approaches in Multi-Agent Reinforcement Learning (MARL) often rely on "Population Play," where agents are trained to be a best response to a fixed or uniform distribution of partners. However, these methods frequently fail when encountering "distributional shift"—situations where a deployment-time teammate deviates from the training population's conventions.

This paper introduces a robust alternative: a minimax-Bayes approach to AHT. By treating the selection of teammates as an adversarial process, the authors develop policies that provide strong worst-case performance guarantees and enhanced robustness in complex coordination environments.

The Problem: Distributional Shift and Coordination

In many real-world scenarios, we cannot predict exactly who an agent's teammates will be. If an agent is trained solely to optimize for the "average" partner, it may develop brittle strategies that collapse when paired with a teammate who has slightly different habits. There are currently few theoretical or practical guarantees for how these agents perform in "worst-case" scenarios. This research addresses the need for agents that are explicitly robust to uncertainty about their partners' identities and strategies.

Methods: Minimax-Bayes Reinforcement Learning

The core of the proposed method is the adaptation of Minimax-Bayes Reinforcement Learning to the multi-agent setting. Instead of assuming a fixed prior over partners, the framework introduces an adversarial "Nature" player. This adversary chooses the most difficult distribution of partners for the current focal agent, forcing the agent to learn a policy that performs well even under duress.

The Minimax-Bayes training framework, illustrating the adversarial distribution of partners (β) chosen to challenge the focal agent.

Objective Functions

The paper explores two primary objectives for the focal agent:

  1. Maximin Utility (MU): This objective seeks to maximize the minimum expected utility across all possible partner distributions. It is a "safety-first" approach designed to avoid catastrophic failures.
  2. Minimax Regret (MR): This objective minimizes the maximum "regret"—the difference between the achieved utility and the utility an optimal agent could have achieved with that specific partner. MR is particularly useful because it prevents the agent from over-optimizing for "impossible" scenarios where no policy could succeed.
Decision tree comparisons between Maximin Utility (MU), Minimax Regret (MR), and the standard Population Best Response (PBR).

To optimize these objectives, the authors employ a Gradient Descent-Ascent (GDA) algorithm. While the focal agent performs gradient descent to improve its policy, a background process performs gradient ascent to update the partner distribution, creating an implicit curriculum of increasingly difficult coordination challenges.

Experimental Setup

The authors evaluated their approach on two distinct benchmarks:

  • Iterated Prisoner’s Dilemma (IPD): Used to validate theoretical convergence and the properties of MU and MR in a fully observable, classic game-theoretic environment.
  • Collaborative Cooking (Overcooked): A complex, partially observable task from the Melting Pot suite. Agents must coordinate in gridworld kitchen layouts (such as Circuit and Cramped) to prepare and deliver soup, requiring high-level navigation and division of labor.

Key Insights and Results

Adversarial Priors as Curriculum

One of the most surprising findings was that training against a "worst-case" distribution acts as an effective implicit curriculum. It forces the agent to encounter and master scenarios where it initially performs poorly, leading to smoother learning and better exploration than static training methods.

Superior Robustness

In the Collaborative Cooking tasks, the Maximin Utility (MU) approach demonstrated significantly higher robustness. In the worst-case utility tests, MU achieved a score of 225.3, vastly outperforming the 96.8 achieved by the standard Population Best Response (PBR) baseline.

Generalization to Unseen Partners

When tested on the "Melting Pot" benchmark—which includes scenarios and partners not seen during training—the MU and MR agents consistently outperformed established baselines like Fictitious Play and Self-Play. Specifically, MU achieved an average utility of 273.8, compared to scores of 102.3 for PP-OPRE and 78.6 for PP-VMPO.

Conclusion and Future Work

By shifting the focus from average-case optimization to minimax robustness, this work provides a path toward agents that can truly "plug and play" in unpredictable human-agent or multi-agent teams. While the computational cost of calculating Minimax Regret remains a challenge for high-dimensional tasks, the performance gains in complex environments like Overcooked suggest that adversarial training is a powerful tool for building reliable autonomous teammates. Future research will look into scaling these methods to even more diverse partner pools and exploring interactions with actively adaptive teammates.

Summary updated

BibTeX
@inproceedings{villin2025minimax,
  author = {Victor Villin and Thomas Kleine Buening and Christos Dimitrakakis},
  title = {{A Minimax Approach to Ad Hoc Teamwork}},
  booktitle = {AAMAS},
  year = {2025},
  url = {https://openreview.net/forum?id=VdX6G9xDoU},
}
Figure