MaskMA: Towards Zero-Shot Multi-Agent Decision Making with Mask-Based Collaborative Learning

Jie Liu, Yinmin Zhang, Chuming Li, Zhiyuan You, Zhanhui Zhou, Chao Yang, Yaodong Yang, Yu Liu, Wanli Ouyang

Abstract

Building a single generalist agent with strong zero-shot capability has recently sparked significant advancements. However, extending this capability to multi-agent decision making scenarios presents challenges. Most current works struggle with zero-shot transfer, due to two challenges particular to the multi-agent settings: (a) a mismatch between centralized training and decentralized execution; and (b) difficulties in creating generalizable representations across diverse tasks due to varying agent numbers and action spaces. To overcome these challenges, we propose a Mask-Based collaborative learning framework for Multi-Agent decision making (MaskMA). Firstly, we randomly mask part of the units and collaboratively learn the policies of unmasked units to handle the mismatch. In addition, MaskMA integrates a generalizable action representation by dividing the action space into intrinsic actions solely related to the unit itself and interactive actions involving interactions with other units. This flexibility allows MaskMA to tackle tasks with varying agent numbers and thus different action spaces. Extensive experiments in SMAC reveal MaskMA, with a single model trained on 11 training maps, can achieve an impressive 77.8% average zero-shot win rate on 60 unseen test maps by decentralized execution, while also performing effectively on other types of downstream tasks.

Introduction

While generalist models have revolutionized fields like natural language processing and computer vision, creating a generalist agent for multi-agent decision-making (MADM) remains an open challenge. Most existing multi-agent reinforcement learning (MARL) models are "specialists," trained for specific environments with fixed agent counts. These models typically fail when transferred to new scenarios due to the discrepancy between centralized training and decentralized execution (CTDE) and the inability to handle varying action spaces.

Methodology

MaskMA (Mask-based collaborative learning for Multi-Agent decision making) addresses these hurdles through two primary innovations: the Mask-based Training Strategy (MTS) and Generalizable Action Representation (GAR).

Overview of the MaskMA framework, illustrating the training process, the core architecture featuring Generalizable Action Representation (GAR), and various testing scenarios including zero-shot transfer and ad hoc team play.

Mask-based Training Strategy (MTS)

MaskMA utilizes an encoder-only causal transformer. During training, the framework randomly masks units within the attention matrix. This forces the model to learn robust decision-making policies even when information about certain allies or enemies is absent. This strategy effectively bridges the gap between the full information available during training and the limited local observations encountered during decentralized execution.

Generalizable Action Representation (GAR)

To handle varying action spaces, MaskMA moves away from fixed-size output vectors. Instead, it categorizes actions into:

  • Intrinsic Actions: Self-related movements (e.g., stop, move).
  • Interactive Actions: Interactions with other entities (e.g., attack, heal).

GAR predicts interactive actions by processing the features of an "executor" unit paired with a "receiver" unit. By learning the underlying relationships between units rather than fixed indices, the model scales naturally to any number of agents.

Experimental Evaluation

The framework was evaluated using the StarCraft Multi-Agent Challenge (SMAC). The model was trained on a limited set of 11 maps using multi-task imitation learning from expert trajectories. Testing was conducted across 60 entirely unseen maps to evaluate zero-shot transfer capabilities.

Results and Discussion

MaskMA demonstrated significant dominance in zero-shot scenarios, achieving an average win rate of 77.8% across the 60 test maps. This represents a substantial improvement over the state-of-the-art MADT baseline, which achieved only 43.7%.

Comparison of win rates between MaskMA and the MADT baseline across 11 training maps and 60 unseen testing maps, demonstrating superior zero-shot generalization.

Key findings from the results include:

  • Consistency: MaskMA maintains high performance even as the number of entities increases beyond 20, where traditional models typically struggle.
  • Efficiency: The parallel processing nature of the architecture allowed for faster training, requiring only 31 hours on an A100 GPU compared to 70 hours for the baseline.
  • Emergent Robustness: The model exhibited strong performance in "ad hoc" scenarios, such as teammate malfunctions or the sudden addition of new allies, despite not being explicitly trained for these conditions.

Conclusion

MaskMA provides a scalable and robust framework for zero-shot multi-agent decision-making. By leveraging relational reasoning through GAR and structural robustness through MTS, it overcomes the traditional limitations of fixed-map specialists. Future work will explore the use of lower-quality data and the potential for cross-game generalization to further establish MaskMA as a foundation model for multi-agent systems.

Summary updated

BibTeX
@article{liu2024maskma,
  author = {Jie Liu and Yinmin Zhang and Chuming Li and Zhiyuan You and Zhanhui Zhou and Chao Yang and Yaodong Yang and Yu Liu and Wanli Ouyang},
  title = {{MaskMA: Towards Zero-Shot Multi-Agent Decision Making with Mask-Based Collaborative Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=Susy8EAff9},
}
Figure