Efficient Distributed Framework for Collaborative Multi-Agent Reinforcement Learning

Shuhan Qi, Shuhao Zhang, Xiaohan Hou, Jiajia Zhang, Xuan Wang, Jing XiaoarXiv 2022 · DOI

Abstract

Multi-Agent Reinforcement Learning (MARL) faces significant challenges in sample efficiency and training stability due to the high computational demands of complex simulators and the inherent "data hunger" of collaborative tasks. This paper introduces the Distributed Multi-agent Coupling Algorithmic Framework (DMCAF), a three-tier "Actor-Worker-Learner" architecture designed to decouple environment interaction from model training. By leveraging asynchronous pipelines and shared memory, DMCAF achieves up to a 7.6x increase in sample collection speed and superior convergence in challenging benchmarks like the StarCraft Multi-Agent Challenge (SMAC).

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in single-agent domains. However, transitioning to multi-agent systems introduces unique complexities. Agents must learn to cooperate under partial observability, requiring vast amounts of diverse experience. Existing distributed frameworks, often optimized for single-agent tasks, struggle with slow sample collection, policy lagging, and resource underutilization when applied to MARL.

The DMCAF Architecture

To address these bottlenecks, the authors propose DMCAF, which organizes the learning process into three distinct layers:

  1. Actors: These components interact directly with the environment. Their sole responsibility is to execute actions and collect trajectories.
  2. Workers: Positioned as an intermediate layer, Workers handle decision-making. They use the current policy to provide actions to the Actors but do not perform gradient calculations. They synchronize their local models from a Shared Memory Pool.
  3. Learners: The core training units. Learners pull data from a global experience replay pool, compute gradients, update the master model, and push these updates back to the Shared Memory.
The basic reinforcement learning loop between the target strategy and the environment.

This decoupling ensures that the GPU-intensive Learners are never idle while waiting for CPU-bound Actors to simulate environment steps. The use of shared memory minimizes communication overhead, while the asynchronous nature of the system promotes data diversity, reducing sample correlation.

Experimental Evaluation

The framework was rigorously tested on two benchmarks: the StarCraft Multi-Agent Challenge (SMAC) and the MaCA military simulation platform.

Visual representation of different SMAC scenarios used for evaluation, including 3m and 8m setups.

In SMAC, the authors evaluated scenarios of varying difficulty, such as 3m (3 Marines), 8m, and the asymmetric 5m_vs_6m. The MaCA platform was used to assess the framework's scalability across different hardware configurations.

Key Results and Insights

  • Efficiency Gains: DMCAF (implemented as AWL-Qmix) demonstrated a 6.6x to 7.6x speedup in sample collection compared to standard Qmix.
  • Enhanced Stability: The framework achieved higher win rates in complex scenarios like 5m_vs_6m, where baseline algorithms like CoMA often failed to converge effectively.
  • Scalability: Performance improved consistently as the number of distributed actors increased, validating the framework's ability to utilize additional hardware resources.
  • Hidden State Management: A critical finding was the necessity of explicitly managing hidden states (e.g., in GRU units) across environments to prevent the misuse of historical information, which is vital for maintaining performance in partially observable settings.

Conclusion

DMCAF provides a robust and efficient solution for scaling MARL training. By decoupling the primary components of the RL loop, it maximizes hardware utilization and accelerates the discovery of collaborative strategies. Future work will explore multi-agent-oriented priority experience replay to further refine the learning process and reduce the hardware barrier for researchers.

Summary updated

BibTeX
@misc{qi2022efficient,
  author = {Shuhan Qi and Shuhao Zhang and Xiaohan Hou and Jiajia Zhang and Xuan Wang and Jing Xiao},
  title = {{Efficient Distributed Framework for Collaborative Multi-Agent Reinforcement Learning}},
  year = {2022},
  eprint = {2205.05248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.05248},
}
Figure