PettingZoo: Gym for Multi-Agent Reinforcement Learning

J. K. Terry, Benjamin Black, Nathaniel Grammel, Mario Jayakumar, Ananth Hari +8 more
9/30/2020
511 citations
cs.LGcs.MAstat.ML
rl

Official code: Farama-Foundation/PettingZoo (3,552 stars, Python, MIT, last commit 2026-11-11).

Abstract

This paper introduces the PettingZoo library and the accompanying Agent Environment Cycle ("AEC") games model. PettingZoo is a library of diverse sets of multi-agent environments with a universal, elegant Python API.

Show full abstract

PettingZoo was developed with the goal of accelerating research in Multi-Agent Reinforcement Learning ("MARL"), by making work more interchangeable, accessible and reproducible akin to what OpenAI's Gym library did for single-agent reinforcement learning. PettingZoo's API, while inheriting many features of Gym, is unique amongst MARL APIs in that it's based around the novel AEC games model. We argue, in part through case studies on major problems in popular MARL environments, that the popular game models are poor conceptual models of games commonly used in MARL and accordingly can promote confusing bugs that are hard to detect, and that the AEC games model addresses these problems.

View on arXivView PDF

Code Implementations(1)

MIT

A standard API for multi-agent reinforcement learning environments, with popular reference environments and related utilities

3,552554Python, MakefileJan 20, 20202 weeks agoMIT
apigymnasiummulti-agent-reinforcement-learningmultiagent-reinforcement-learningreinforcement-learning

Similar Papers

Cite this paper

@article{terry2020pettingzoo,
  title  = {PettingZoo: Gym for Multi-Agent Reinforcement Learning},
  author = {J. K. Terry and Benjamin Black and Nathaniel Grammel and Mario Jayakumar and Ananth Hari and Ryan Sullivan and Luis Santos and Rodrigo Perez and Caroline Horsch and Clemens Dieffendahl and Niall L. Williams and Yashas Lokesh and Praveen Ravi},
  year   = {2020},
  eprint = {2009.14471},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.14471}
}

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/2009.14471.svg)](https://codeofpaper.com/paper/2009.14471)

Discussion