BenchMARL: Benchmarking Multi-Agent Reinforcement Learning

Matteo Bettini, Amanda Prorok, Vincent Moens

TL;DR

BenchMARL is a standardized, modular Multi-Agent Reinforcement Learning (MARL) library built directly on top of PyTorch and TorchRL. By decoupling algorithms, models, and environments while providing one-line configuration and statistically rigorous evaluation tools, it directly tackles the field's ongoing reproducibility crisis.

What Problem Does This Paper Address?

Multi-Agent Reinforcement Learning (MARL) is facing a widespread reproducibility crisis. Experimental codebases are heavily fragmented: popular libraries like PyMARL and EPyMARL are restricted to discrete action spaces and re-implement standard algorithms from scratch rather than building on robust baselines. Meanwhile, other generalist RL frameworks often lack support for modern, high-throughput workflows like GPU-vectorized simulation. Without unified tooling, consistent configuration pipelines, or standardized reporting protocols, comparing new MARL algorithms against existing methods fairly and reliably has become exceptionally difficult.

Methods

BenchMARL introduces an extensible framework for running, sharing, and benchmarking MARL algorithms:

  • TorchRL Backend: Rather than writing MARL algorithms from scratch, BenchMARL leverages TorchRL's maintained, highly optimized single-agent components (e.g., PPO, DDPG, SAC). Algorithms extend these baselines over an added agent dimension.
  • Vectorized Training and Simulation: High throughput is achieved using batched, vectorized simulations (e.g., VMAS) combined with PyTorch’s torch.vmap to vectorize operations over agent data and parameters on GPUs, minimizing CPU-GPU communication overhead.
  • Agent Grouping: To manage heterogeneous MARL scenarios, BenchMARL groups homogeneous agents together to leverage vectorized operations, while handling agents with unique observation/action spaces separately.
  • Supported Algorithms & Models: The library supports 9 distinct algorithms, including MAPPO, IPPO, MADDPG, IDDPG, QMIX, VDN, IQL, and novel continuous multi-agent adaptations of Soft Actor-Critic (MASAC and ISAC). Models include MLPs, CNNs, Graph Neural Networks (GNNs), and Deep Sets, which can be configured for decentralized execution or centralized critics.
  • Standardized Configuration and Reporting: Experiments are fully decoupled from code using Hydra YAML configs, enabling complex multi-run sweeps or SLURM HPC submissions via single-line commands. Evaluation integrates directly with marl-eval for statistically rigorous aggregation.

Datasets

BenchMARL evaluates algorithms on simulated multi-agent benchmarks:

  • VMAS: A 2D vectorized multi-agent physics simulator (27 available tasks). The paper directly benchmarks algorithms on three continuous robot control tasks: Navigation, Sampling, and Balance.
  • Additional Supported Environments: BenchMARL also natively supports tasks from SMACv2 (15 tasks), PettingZoo / MPE (8 tasks), SISL (2 tasks), and MeltingPot (49 tasks), spanning continuous/discrete action spaces and cooperative/competitive dynamics.

Key Insights and Ideas

  • Reusing single-agent baselines avoids reinvention: Most MARL algorithms are structural extensions of single-agent paradigms. Reusing battle-tested TorchRL primitives eliminates bugs, maintains execution speed, and reduces library maintenance overhead.
  • Centralized critics drive performance in continuous control: In the evaluated robot control tasks, centralized multi-agent actor-critic methods (MASAC, MADDPG, MAPPO) systematically outperformed independent variants by conditioning value functions on the global state rather than isolated local views.
  • Standardization requires configuration separation: Reproducibility failures often stem from undocumented hyperparameters embedded directly in training scripts. By strictly isolating configuration trees into YAML dataclasses, BenchMARL ensures benchmarks can be reconstructed exactly as published.

Key Results

  • Empirical Comparison across 9 Algorithms: Across the VMAS benchmark tasks (Navigation, Sampling, and Balance), multi-agent actor-critic methods achieved the highest overall normalized returns and sample efficiency.
  • Navigation: Nearly all algorithms solved the task, with top actor-critic methods reaching normalized returns near $1.0$ within $2 \times 10^6$ timesteps.
  • Sampling and Balance: MASAC, MADDPG, and MAPPO reached normalized inter-quartile mean (IQM) returns between $0.6$ and $0.7$, significantly outperforming independent and value-based alternatives.
  • Value-Based Approaches: Q-learning variants (QMIX, VDN, IQL) showed suboptimal performance across tasks (e.g., lower IQM and higher optimality gap), primarily because continuous control environments had to be discretized to accommodate them.

Limitations and Future Work

  • Initial Benchmark Scope: The initial experimental validation in this paper is restricted to three continuous tasks in VMAS across three seeds.
  • Discrete vs. Continuous Discrepancies: Value-based methods suffered due to action discretization on continuous domains; broader evaluation across inherently discrete environments (like SMACv2) is left for expanded benchmarking efforts.
  • Ongoing Hyperparameter Tuning: The authors note that releasing fine-tuned baseline configs and interactive benchmark reports for all supported environments (e.g., MeltingPot, SMACv2) is active, ongoing work.

Summary updated

BibTeX
@article{bettini2024benchmarl,
  author = {Matteo Bettini and Amanda Prorok and Vincent Moens},
  title = {{BenchMARL: Benchmarking Multi-Agent Reinforcement Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=F4cfaOJCWx},
}
Figure