COMRAD: Cooperative multi-agent reinforcement learning from pixels.
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
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| comrad_bench-1.1.0.tar.gz | 14.6 MB | Without provenance | Details for comrad_bench-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| comrad_bench-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for comrad_bench-1.1.0-py3-none-any.whl |
Total release size: 29.3 MB
Release files / comrad_bench-1.1.0.tar.gz
| Download URL | comrad_bench-1.1.0.tar.gz |
|---|---|
| Size | 14.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b534309eadfed1343183c27474bc780209fb743c243127c37fafe090ac705e69
|
|
BLAKE2b-256 checksum How to use checksums |
871df5fa3f40b97cda7eb361da699cdc066a87608c8d1c8723c354870fa065a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / comrad_bench-1.1.0-py3-none-any.whl
| Download URL | comrad_bench-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf6278853880896636a344bb2427c299fb9bfd88513707d0b7bdbe0222ba96e5
|
|
BLAKE2b-256 checksum How to use checksums |
975aa1c255866044d06620be20535ffefc9cbc421ac1c6fd5f4299dc717dacda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for comrad-bench 1.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.