N-Agent Ad Hoc Teamwork

Caroline Wang, Arrasy Rahman, Ishan Durugkar, Elad Liebman, Peter Stone
4/16/2024
cs.AI

No official code found. Best implementation: carolinewang01/naht (29 stars, MIT, last commit 2025-10-02). 1 more below.

Abstract

Current approaches to learning cooperative multi-agent behaviors assume relatively restrictive settings. In standard fully cooperative multi-agent reinforcement learning, the learning algorithm controls $\textit{all}$ agents in the scenario, while in ad hoc teamwork, the learning algorithm usually assumes control over only a $\textit{single}$ agent in the scenario. However, many cooperative settings in the real world are much less restrictive. For example, in an autonomous driving scenario, a company might train its cars with the same learning algorithm, yet once on the road, these cars must cooperate with cars from another company. Towards expanding the class of scenarios that cooperative learning methods may optimally address, we introduce $N$-agent ad hoc teamwork (NAHT), where a set of autonomous agents must interact and cooperate with dynamically varying numbers and types of teammates. This paper formalizes the problem, and proposes the Policy Optimization with Agent Modelling (POAM) algorithm. POAM is a policy gradient, multi-agent reinforcement learning approach to the NAHT problem, that enables adaptation to diverse teammate behaviors by learning representations of teammate behaviors. Empirical evaluation on tasks from the multi-agent particle environment and StarCraft II shows that POAM improves cooperative task returns compared to baseline approaches, and enables out-of-distribution generalization to unseen teammates.

View on arXivView PDF

Code Implementations(2)

carolinewang01/nahtCommunity100%
MIT

Code repository for "N-agent Ad Hoc Teamwork" paper (Wang et al., Neurips 2024).

298Shell, PythonOct 4, 20241 years agoMIT
Apache-2.0

This is the code release for the paper, "Shapley Machine: A Game-Theoretic Framework for N-Agent Ad Hoc Teamwork".

11Shell, PythonMay 20, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2024nagent,
  title  = {N-Agent Ad Hoc Teamwork},
  author = {Caroline Wang and Arrasy Rahman and Ishan Durugkar and Elad Liebman and Peter Stone},
  year   = {2024},
  eprint = {2404.10740},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.10740v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.10740.svg)](https://codeofpaper.com/paper/2404.10740)

Discussion