Containerized Distributed Value-Based Multi-Agent Reinforcement Learning

Siyang Wu, Tonghan Wang, Chenghao Li, Chongjie Zhang

Introduction

Multi-Agent Reinforcement Learning (MARL) faces significant scalability hurdles that prevent it from matching the success of single-agent distributed architectures. While frameworks like IMPALA or SEED RL have revolutionized single-agent training, MARL is constrained by three unique "walls": a Data Deluge where observation data grows quadratically with agent count, a Blocking Bottleneck in CPU-GPU communication, and an Exploration Nightmare caused by the exponential growth of joint action spaces.

CMARL (Containerized Multi-Agent Reinforcement Learning) addresses these issues by packing environments and local learners into modular "containers" and enforcing behavioral diversity. This approach has allowed it to become the first algorithm to solve the full 5v5 Google Research Football game while outperforming existing methods on StarCraft II by up to 18x.

The CMARL Framework

The core innovation of CMARL is its reimagined distributed pipeline centered around the "Container Unit." Instead of isolated actors, CMARL groups several environment instances, a local buffer, a local learner, and a Multi-queue Manager into a single container.

The CMARL architecture featuring containerized actors and learners with a centralized global learner.

This design offers several distinct advantages:

  • Asynchronous Management: The Multi-queue Manager gathers experience in the background, ensuring that actors never have to stop and wait for the buffer or learner to be ready.
  • Prioritized Global Learning: Containers perform local priority calculations. Only the most valuable trajectories (the top $\eta\%$) are transmitted to a Centralized Global Learner, which drastically reduces the computational tax of inter-process communication.
  • Behavioral Diversity: To tackle the exploration problem, CMARL incorporates a diversity objective using Mutual Information (via KL-divergence). This explicitly penalizes containers if their policies become too similar, forcing different containers to explore distinct regions of the massive joint action space.
  • Hybrid Architecture: Neural networks share shallow layers for general feature extraction but maintain unique deep layers in each container to allow for specialized local behaviors.

Experimental Setup

The framework was rigorously tested on two of the most demanding benchmarks in the field:

  1. Google Research Football (GRF): Specifically the full 5v5 game and several "academy" scenarios, which require long-term planning and complex coordination.
  2. StarCraft Multi-Agent Challenge (SMAC): 11 different scenarios ranging from "Easy" to "Super Hard" (e.g., 6h_vs_8z, corridor, MMM2).

Key Results and Performance

CMARL demonstrates a "Quality Over Quantity" philosophy, focusing global learning on high-priority transitions. This, combined with the diversity objective, leads to substantial performance gains across all tested environments.

Performance of CMARL compared to baselines across various SMAC scenarios, demonstrating significant speedups and higher win rates.

Key findings include:

  • Solving GRF 5v5: CMARL is the first algorithm to achieve a positive goal difference in the full 5v5 GRF game, a task previously considered a "grand challenge."
  • Massive Speedups: On "Super Hard" SMAC maps, CMARL reached high win rates in under 4 hours, whereas state-of-the-art baselines like RODE or CDS often required over 24 hours to reach comparable levels.
  • Scalability: Performance scales almost linearly with the number of actors in certain tasks. Compared to non-distributed versions of QMIX and QPLEX, CMARL achieves 4x to 18x better results.

Limitations and Future Work

While highly effective, CMARL is designed for high-performance clusters; its efficiency on consumer-grade hardware with limited CPU cores was not the primary focus. Additionally, the current implementation is value-based (built on QMIX). Future research could explore adapting this containerized approach to policy-gradient methods like MAPPO and further refining the hyperparameters for diversity scaling ($\beta$) and data transfer ($\eta$).

Summary updated

BibTeX
@misc{wu2021containerized,
  author = {Siyang Wu and Tonghan Wang and Chenghao Li and Chongjie Zhang},
  title = {{Containerized Distributed Value-Based Multi-Agent Reinforcement Learning}},
  year = {2021},
  eprint = {2110.08169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.08169},
}
Figure