Skip to main content

COMRAD: Cooperative multi-agent reinforcement learning from pixels.

Docs   Project page

PyPI Python 3.11 | 3.12 MIT license

COMRAD agents playing

COMRAD is a benchmark of 13 first-person cooperative scenarios built on ViZDoom. Each one isolates a coordination skill: committing to a joint plan, synchronising in time, sharing a commons, swapping roles, or communicating without words. Agents see only their own first-person view.

Scenarios

"Cooperation is the thorough conviction that nobody can get there unless everybody gets there." - Virginia Burden


Stag Hunt Arena

2–4 players

Rhythm Sync

2 players

Foraging Commons

2–4 players

Co-op Puzzle

2 players

Platform Chain

2 players

Armory Siege

2–8 players

Co-op Health Gathering

2–8 players

Lava Pit

2 players

Smart / Dumb Enemies

2–4 players

Stealth Labyrinth

2 players

Ammo Carrier

2 players

Lava Maze

2 players

Install

pip install comrad-bench

Requires Python 3.11 or 3.12 on Linux or macOS. The ViZDoom engine comes with the vizdoom wheel.

Quickstart

COMRAD scenarios are standard PettingZoo and Gymnasium environments, so you can train them with any MARL library.

import comrad

env = comrad.parallel_env("stag_hunt_arena")
observations, infos = env.reset(seed=42)

while env.agents:
    actions = {agent: env.action_space(agent).sample() for agent in env.agents}
    observations, rewards, terminations, truncations, infos = env.step(actions)

print("score:", {agent: info.get("true_objective") for agent, info in infos.items()})
env.close()

Gymnasium, with per-agent lists:

import gymnasium as gym
import comrad  # registers comrad/<scenario>-v0

env = gym.make("comrad/stag_hunt_arena-v0", num_agents=2)
observations, infos = env.reset(seed=42)

See the quickstart and API reference for options such as num_agents, shared_reward and render_mode.

Baselines

Baseline results

The heatmap shows seven MARL algorithms on every scenario. More results →

Train with the bundled algorithms

The package includes a modified Sample Factory with IPPO, MAPPO, HAPPO, IDQN, VDN, QMIX and QPLEX:

python -m comrad.train --env=stag_hunt_arena --algo=MAPPO --train_for_env_steps=10000000

See the per-algorithm commands and how to reproduce the paper.

Documentation

https://ttomilin.github.io/COMRAD/: scenarios, API, integrations, training, and contributing.

https://lmbored.github.io/comrad_site/: Project page. Visit for a playable demo, scoreboard, and paper overview.

Citation

@misc{comrad,
  title  = {COMRAD: A Benchmark for Embodied Multi-Agent Reinforcement Learning},
  author = {Anonymized Authors},
  year   = {2026},
  url    = {https://github.com/TTomilin/COMRAD}
}

License and acknowledgements

COMRAD is released under the MIT license. It builds on ViZDoom and Sample Factory. HAPPO follows HARL, IDQN/VDN/QMIX follow PyMARL, and QPLEX follows the official implementation. Experiments were tracked with Weights & Biases and run on the TU/e Supercomputing Center. We thank everyone who contributed to this work.

Metadata

Release files for comrad-bench 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comrad-bench 1.1.1
File Size Uploaded Provenance Actions
comrad_bench-1.1.1.tar.gz 16.0 MB With provenance Details for comrad_bench-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for comrad-bench 1.1.1
File Interpreter ABI Platform Actions
comrad_bench-1.1.1-py3-none-any.whl Python 3 none any Details for comrad_bench-1.1.1-py3-none-any.whl

Total release size: 32.1 MB

Release files / comrad_bench-1.1.1.tar.gz

Download URL comrad_bench-1.1.1.tar.gz
Size 16.0 MB
Tags Source
SHA-256 checksum
How to use checksums
59243e0b936198776a2e13200df56de95e53e9c7ae8391ee9796e6142133ff44
BLAKE2b-256 checksum
How to use checksums
7c5006798bfc44bae38bdb1970872184b8781c2b96c37ed0baea9fdd5dd35b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / comrad_bench-1.1.1-py3-none-any.whl

Download URL comrad_bench-1.1.1-py3-none-any.whl
Size 16.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f5fb771a12da437e75e7945e3cbcc91ab6755e24932e47e41ec53b3f31d64473
BLAKE2b-256 checksum
How to use checksums
e550e7483f96e528e234a628396e88397d08eb92906459f21037dab89dc11df1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for comrad-bench 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for comrad_bench-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page