Abstract
Learning policies for Ad Hoc Teamwork (AHT) is challenging. Most standard methods choose a specific distribution over training partners, which is assumed to mirror the distribution over partners after deployment. Moreover, they offer limited guarantees over worst-case performance. To tackle the issue, we propose using a worst-case prior distribution by adapting ideas from minimax-Bayes analysis to AHT. We thereby explicitly account for our uncertainty about the partners at test time. Extensive experiments, including evaluations on coordination tasks from the Melting Pot suite, show our method's superior robustness compared to self-play, fictitious play, and best response learning w.r.t. policy populations. This highlights the importance of selecting an appropriate training distribution over teammates to achieve robustness in AHT.
Introduction
In Multi-Agent Reinforcement Learning (MARL), agents are typically trained in "closed-loop" environments where they learn to cooperate with specific versions of themselves or a fixed set of known partners. However, real-world deployment often requires Ad Hoc Teamwork (AHT)—the ability to coordinate effectively with previously unknown teammates.
A significant limitation of current AHT methods is the assumption that the distribution of partners encountered during training will match the distribution seen at test time. When this assumption fails, agents often exhibit poor robustness, failing to adapt to unexpected or "edge-case" behaviors. This research addresses this gap by framing AHT through the lens of Minimax-Bayes analysis, training agents to be resilient against the most challenging teammate distributions.
Methodology
The core of this approach is to treat the selection of training partners as a game between the learning agent and "Nature." While the agent seeks to maximize its utility, Nature acts as an adversary, selecting the worst-case distribution of teammates to challenge the agent's current policy.
Optimization Objectives
The researchers propose two primary objectives for training robust agents:
- Maximin Utility (MU): The agent maximizes the minimum expected reward across all possible teammate scenarios within a given population. This objective focuses on a "floor" for performance.
- Minimax Regret (MR): The agent minimizes its maximum "regret"—the difference between its actual performance and the performance it could have achieved if it had known the teammate's identity in advance. MR is particularly useful because it prevents Nature from focusing on "impossible" scenarios where no agent could succeed, as the regret in such cases remains low.
Algorithmic Implementation
To solve these objectives, the authors employ a Gradient Descent-Ascent (GDA) algorithm. The agent learns a coordination policy using standard Reinforcement Learning (Proximal Policy Optimization), while a simultaneous process updates the "prior" (the distribution over the training population). This adversarial update ensures the agent is constantly challenged by the scenarios where it currently performs most poorly.
Experimental Setup
The framework was evaluated across two distinct environments:
- Repeated Prisoner’s Dilemma (RPD): Used to validate theoretical convergence in a controlled, fully observable setting.
- Collaborative Cooking (Overcooked): A complex task from the Melting Pot suite requiring high-dimensional coordination. Agents must cooperate to prepare and deliver soup in various kitchen layouts.
The training population ($B^{train}$) consisted of 10 diverse policies with varying degrees of prosociality and risk aversion. Evaluation was conducted on a held-out test population ($B^{test}$) and official Melting Pot benchmark scenarios to measure zero-shot generalization.
Key Results and Insights
Superior Robustness
The Minimax-Bayes approach, specifically the Maximin Utility (MU) variant, demonstrated significantly higher robustness than standard baselines such as Self-Play, Fictitious Play, and Population Best-Response (PBR). In the Collaborative Cooking task, the MU agent achieved a worst-case utility ($U^-$) of 224.9 on Melting Pot scenarios, more than doubling the 106.3 achieved by the best standard baseline (PBR).
Zero-Shot Generalization
Agents trained under the minimax framework generalized better to entirely unseen partners. By preparing for the "worst" distribution during training, the agents developed more flexible coordination strategies that were not overfitted to specific partner quirks.
Implicit Curriculum Learning
Interestingly, the adversarial selection of partners acted as an automatic curriculum. Nature initially selects simpler scenarios the agent has yet to master, gradually shifting toward more complex or degenerate behaviors as the agent's proficiency increases. This dynamic actually accelerated the learning process compared to training on a static uniform distribution.
Discussion and Limitations
While the Minimax-Bayes approach offers clear advantages in robustness, it introduces computational challenges. Calculating "regret" requires knowing the optimal best-response for every scenario, which is computationally expensive in deep RL environments. Furthermore, the method's effectiveness is bounded by the diversity of the initial partner population; if the pool lacks variety, the minimax approach cannot identify truly difficult edge cases.
Conclusion
This work demonstrates that achieving robustness in ad hoc teamwork requires moving beyond average-case performance. By explicitly accounting for uncertainty through a minimax-Bayes framework, agents can be trained to handle a wider variety of teammate behaviors, ensuring more reliable performance in unpredictable real-world environments.
Summary updated