MARL-BattleGrounds
The JAX-native Benchmark for Heterogeneous and Competitive Multi-agent Reinforcement Learning: built from scratch by researchers, for researchers.
Installation | Quick Start | Baselines | Guides | See Also | Citation
MARL-BattleGrounds (MARL-BGs) is an easy-to-use, JAX-native benchmark for heterogeneous and competitive team-vs-team multi-agent reinforcement learning (MARL). MARL environments tend to be fast and simple, like SMAX, or rich and costly, like Dota 2. MARL-BGs fills the missing middle, giving you rich team play with fast, cheap experiments on one GPU.
Two teams of up to five agents fight on 52 hand-designed maps. Each agent is a Mage, Warrior, Hunter, Rogue or Priest, classes inspired by World of Warcraft®.
- Bring any method. Use plain JAX
resetandstep, or start from six tuned baselines whose trained models load by name from Hugging Face. - Test it fairly. One call plays any mix of policies against each other. Eight endgame scenarios, each with a verified winning plan, test skills such as agent modeling and multi-step planning.
- Enter the leaderboard. Each season retrains every entry on the same GPU budget and adds it to a round-robin tournament on held-out test maps, which gives it an Elo. Can your method break into the Big Nine?
- Watch and play. Step through any game in the Replay Viewer, or play with or against your agents in the BattleClient.
Try it in your browser: the walkthrough covers the API, the speed, training a team and the trained Season 0 teams, and the analysis notebook rebuilds the paper's analysis of all 7,200 Season 0 games.
Installation
You do not need to install JAX first: each route installs the right JAX for your machine. An NVIDIA GPU is optional but recommended: without one, everything runs on the CPU, only slower.
To play the game on Linux, an Apple Silicon Mac or Windows with WSL2, one command installs everything and opens the BattleClient:
curl -L https://github.com/arm-2-lab/MARL-BattleGrounds/archive/refs/tags/v1.0.3.tar.gz | tar xz
cd MARL-BattleGrounds-1.0.3 && sh start.sh
In your own Python project (Python 3.12 to 3.14; 3.14 recommended):
pip install "marl-battlegrounds[all]" # CPU
pip install "marl-battlegrounds[all,cuda13]" # NVIDIA GPU, driver 580 or newer
With Docker or Podman, on any system (for an NVIDIA GPU, add --gpus all and use the 1.0.3-cuda12 tag):
docker run --rm -it -p 127.0.0.1:8765:8766 -p 127.0.0.1:8767:8768 -v "${PWD}:/work" ghcr.io/arm-2-lab/marl-battlegrounds:1.0.3
The install guide says which systems we tested each route on, and covers the GPU builds, Docker's limits, clusters and offline use.
Quick Start
make, reset and step use JaxMARL's call order (reset(key), step(key, state, actions)), and compile under jit, vmap and lax.scan.
import jax
import marl_battlegrounds as marl_bgs
env = marl_bgs.make("tdm", map_id=0, num_envs=4) # four games at once
key = jax.random.key(0)
observation, state = env.reset(key)
for _ in range(50):
key, act_key, step_key, reset_key = jax.random.split(key, 4)
actions = env.sample_actions(act_key, state) # legal random actions
observation, state, reward, done, info = env.step(step_key, state, actions)
observation, state = env.reset_done(reset_key, state) # restart finished games
On one RTX 5090 with 1,024 parallel 5v5 games, the simulator alone runs 50,416 game steps per second (random legal actions, compilation excluded), and recurrent MAPPO trains at 29,878 game steps per second in pure self-play.
Train
One command trains recurrent IPPO with the Season 0 learner settings (250 million game steps) against itself, its past copies and the three scripted opponents, and keeps its best checkpoint on the validation maps. What Training Costs gives the time and memory on one GPU.
python -m marl_battlegrounds.experiments.train method=ippo pool=scripted \
'validation_opponents=[tdm-alpha,tdm-beta,tdm-gamma]' output_dir=runs/my-ippo
Evaluate
import marl_battlegrounds as marl_bgs
results = marl_bgs.evaluate("random", "tdm-alpha", num_episodes=32, num_envs=32)
print(results.head_to_head()) # games, wins, draws, losses, point margin
Your method is always Team A, and paired games swap the spawn ends, so a map's
layout cannot favor either side. To analyze your own tournament, point the
analysis notebook at it with MARL_BGS_RESULTS.
Watch and Play
python -m marl_battlegrounds replay path/to/game.marlbg-replay.json
import marl_battlegrounds as marl_bgs
marl_bgs.battle_client(team_b="tdm-alpha") # play in your browser against a scripted team
Baselines
| Method | Name | Memory | Critic | Reference | Source |
|---|---|---|---|---|---|
| Recurrent MAPPO | mappo |
Recurrent | Centralized | Yu et al., 2022 | ppo.py |
| Feedforward MAPPO | ff_mappo |
None | Centralized | Yu et al., 2022 | ppo.py |
| Recurrent IPPO | ippo |
Recurrent | One per agent | de Witt et al., 2020 | ppo.py |
| Feedforward IPPO | ff_ippo |
None | One per agent | de Witt et al., 2020 | ppo.py |
| QMIX | qmix |
Recurrent | QMIX mixer | Rashid et al., 2018 | qmix.py |
| PQN-VDN | pqn_vdn |
Recurrent | Sum of agent values | Gallici et al., 2024; Sunehag et al., 2017 | pqn.py |
Every save of the six Season 0 models, from 0 to 250 million steps, loads by name from
Hugging Face, for example
marl_bgs.load_method("MARL-BattleGrounds/tdm-season-0-recurrent-ippo@final")
(Released Models).
Leaderboard
Season 1: submissions are open until 00:00 UK time on December 29, 2026, and its table is published at 00:00 UK time on January 1, 2027, on the leaderboard. Season 2 takes entries until 00:00 UK time on January 29, 2027, and its table is published on February 1, 2027; after that, there is one season a month.
Any method that runs as pure JAX may enter, not only MARL: learned, scripted, search-based, hybrid or built on a language model. We run your training script once on our RTX 5090: at most 255 million game steps and 8 hours. Every entry gets the same budget on the same machine, so the leaderboard rewards MARL methods that are efficient in both samples and compute. Your entry then plays the current Big Nine (at the start of Season 1, Season 0's six baselines and three scripted bots) on the test maps and is rated with draw-aware Elo. The table also shows what each entry cost to train and to play. Every entrant is released as a downloadable opponent.
python -m marl_battlegrounds entry new my-entry # a starter entry
python -m marl_battlegrounds entry check # checks it the way we will
python -m marl_battlegrounds entry submit # opens the GitHub issue form
The Tournament Rules say who may enter and set the limits. Enter the Leaderboard walks through the three commands.
Guides
| Guide | What It Covers | Website |
|---|---|---|
| Getting Started | Install, your first games, maps, rosters, what agents see | start |
| Game Rules | Classes, abilities, scoring, Red Zone, scenarios | game |
| Your Method | Plug in your own model or learner, with JAX's jit, vmap and scan | your-method |
| Training | The six learners, opponents, curriculum, rewards, checkpoints | training |
| Released Models | Load, play, train against or start from the six trained Season 0 models | models |
| Hydra Configs | Settings files, overrides, sweeps, studies and the experiment stages | configs |
| Evaluation | Fair games, validation and test maps, scenarios, saved results | evaluate |
| Metrics | What is measured and how to read it | metrics |
| Tournaments | Round robins, Elo ratings and tiers | round-robin |
| Tournament Rules | The leaderboard rulebook | leaderboard-rules |
| Replays | Save games and watch them in the analytical Replay Viewer | record |
| BattleClient | Play against or beside your own agents in the browser | battleclient |
| LLM Agents | Run a language model as a team | llm |
| Performance | Speed and memory, and how to measure them on your machine | performance |
| Method Sources | Where the built-in learners come from | method-sources |
| API Reference | Every public name on one page | api |
Reproduce the Paper
The paper's commands, frozen settings and result tables are in
scripts/paper_experiments/.
The Season 0 ladder and teamwork figures also rebuild in the
analysis notebook, with nothing to install.
See Also
JAX-native environments:
- JaxMARL: Multi-Agent RL Environments and Algorithms in JAX.
- JaxAHT: a benchmark for ad hoc teamwork (working with teammates never met in training) in JAX.
- Gymnax: classic RL environments in JAX.
- Jumanji: combinatorial and planning environments in JAX.
- Pgx: board games in JAX.
- Brax: physics simulation for robot learning in JAX.
- XLand-MiniGrid: open-ended grid worlds for meta-RL in JAX.
- Craftax: an open-ended survival game in JAX.
JAX-native algorithms:
- Mava: JAX implementations of popular MARL algorithms.
- PureJaxRL: JAX implementation of PPO, and demonstration of end-to-end JAX-based RL training.
Citation
If you use MARL-BattleGrounds in your work, please cite the paper:
@article{hawili2026marlbattlegrounds,
title = {{MARL-BattleGrounds}: A Novel {JAX}-native Benchmark for Heterogeneous and Competitive Multi-agent {RL}},
author = {Hawili, Ulixes Tariq and Ramamoorthy, Subramanian and Altmann, Yoann and Carlucho, Ignacio},
journal = {arXiv preprint arXiv:2610.14883},
month = oct,
year = {2026}
}
Contribute
Pull requests are welcome. Start with CONTRIBUTING.md, and open an issue for bugs, ideas, questions and leaderboard submissions.
License
Licensed under the Apache License, Version 2.0.
Metadata
Release files for marl-battlegrounds 1.0.3
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 |
|---|---|---|---|---|
| marl_battlegrounds-1.0.3.tar.gz | 4.5 MB | With provenance | Details for marl_battlegrounds-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marl_battlegrounds-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for marl_battlegrounds-1.0.3-py3-none-any.whl |
Total release size: 9.3 MB
Release files / marl_battlegrounds-1.0.3.tar.gz
| Download URL | marl_battlegrounds-1.0.3.tar.gz |
|---|---|
| Size | 4.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80b20e604a9608edd1b4b0f8c08ea99d44fc71248ee49e8cfc0d9503012aa6bd
|
|
BLAKE2b-256 checksum How to use checksums |
e035eaf31b62667635f6e2d236e14c54cef2609bc5c73470d5951bc7f89fd52f
|
| 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 Oct 26, 2026.
Transparency logRelease files / marl_battlegrounds-1.0.3-py3-none-any.whl
| Download URL | marl_battlegrounds-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3fa94705dd50bf75fa88d41bca5883fe010bb93b44e15f6b48dbf68daf12e7a
|
|
BLAKE2b-256 checksum How to use checksums |
06618cb43cd7b0501cebd15003be96d8ba1621ddd5e6b7a562c17fd7aea39078
|
| 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 Oct 26, 2026.
Transparency logSecurity for marl-battlegrounds 1.0.3
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.
Attestation for marl_battlegrounds-1.0.3.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 Oct 26, 2026.
Transparency logA 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.