Group-Aware Coordination Graph for Multi-Agent Reinforcement Learning

Wei Duan, Jie Lu, Junyu Xuan

Abstract

Cooperative Multi-Agent Reinforcement Learning (MARL) necessitates seamless collaboration among agents, often represented by an underlying relation graph. Existing methods for learning this graph primarily focus on agent-pair relations, neglecting higher-order relationships. While several approaches attempt to extend cooperation modelling to encompass behaviour similarities within groups, they commonly fall short in concurrently learning the latent graph, thereby constraining the information exchange among partially observed agents. To overcome these limitations, we present a novel approach to infer the Group-Aware Coordination Graph (GACG), which is designed to capture both the cooperation between agent pairs based on current observations and group-level dependencies from behaviour patterns observed across trajectories. This graph is further used in graph convolution for information exchange between agents during decision-making. To further ensure behavioural consistency among agents within the same group, we introduce a group distance loss, which promotes group cohesion and encourages specialization between groups. Our evaluations, conducted on StarCraft II micromanagement tasks, demonstrate GACG's superior performance. An ablation study further provides experimental evidence of the effectiveness of each component of our method.

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), the ability of agents to coordinate effectively is paramount to achieving shared objectives. State-of-the-art frameworks often utilize Coordination Graphs (CGs) to model these interactions, where nodes represent individual agents and edges signify the necessity for coordination. However, traditional CG methods are largely limited to pairwise (agent-to-agent) relationships. This focus fails to account for higher-order dependencies prevalent in complex tactical scenarios, such as functional sub-teams (e.g., front-line tanks and back-line support units). Furthermore, existing methods often struggle with effective information exchange when agents operate under partial observability. To address these gaps, we propose the Group-Aware Coordination Graph (GACG) framework.

Methodology

The GACG framework introduces a holistic approach to modeling agent relationships by integrating group-level insights directly into the coordination graph inference process. The architecture is built upon four primary innovations:

1. Group-Aware Graph Inference

Unlike methods that predict static edge weights, GACG models the coordination graph as a multivariate Gaussian distribution. The mean ($\mu$) represents the predicted importance of pairwise interactions derived from current local observations. The covariance ($\Sigma$) is calculated from an "edge-group matrix," which captures dependencies between edges based on whether the involved agents belong to the same functional group. This probabilistic approach allows the model to account for uncertainty in agent relationships.

2. Behavior-Based Group Divider

To identify functional groups, the model analyzes agents' past trajectories over a window of $k$ time steps (optimally $k=10$). By examining behavior patterns over time rather than single-step snapshots, the Group Divider can identify roles—such as "kiting" or "tanking"—that are not immediately apparent from instantaneous state data.

3. Group Distance Loss ($L_g$)

A specialized loss function is introduced to ensure that the learned groups are behaviorally meaningful. The Group Distance Loss encourages intra-group cohesion (agents within a group acting similarly) and inter-group specialization (distinct groups developing unique roles), preventing the grouping mechanism from becoming a mere mathematical abstraction.

4. Graph Convolutional Communication

The sampled coordination graph facilitates message passing within a Graph Neural Network (GNN). This allows agents to share latent information with relevant teammates, mitigating the limitations of partial observability before final actions are selected.

Architecture of the GACG framework illustrating the flow from observations to the group-aware coordination graph.

While the theoretical complexity of computing the group matrix is $O(n^4)$, the framework leverages matrix-based operations that are highly efficient on modern GPUs, ensuring training times remain competitive with simpler models.

Experimental Setup

We evaluated GACG using the StarCraft II Micromanagement (SMAC) benchmark, a standard for high-complexity MARL research. Testing spanned six maps with varying difficulty and agent compositions:

  • Homogeneous Setups: 8m, 8m_vs_9m, 10m_vs_11m.
  • Heterogeneous Setups: 3s5z, 1c3s5z, MMM2 (involving Stalkers, Zealots, Marines, and Medivacs).

Results and Discussion

GACG consistently outperformed established baselines, including QMIX, DCG, and CASEC, across nearly all SMAC maps. The performance gains were most pronounced in "Hard" and "Very Hard" heterogeneous maps, such as 3s5z and MMM2, where complex group coordination is essential for victory.

Test win rate comparison on the 3s5z map, showing GACG's superior performance in heterogeneous scenarios.

Key findings from our evaluation include:

  • Faster Convergence: On the 10m_vs_11m map, GACG achieved high win rates significantly faster than other graph-based methods.
  • Optimal Grouping: Ablation studies indicated that a moderate number of groups (e.g., $m=2$ or $m=4$) yields better results than no grouping or treating every agent as an individual group. This confirms that "sub-teaming" is an effective strategy for complex tasks.
  • Loss Effectiveness: Removing the Group Distance Loss ($L_g$) resulted in a measurable performance decline, validating the necessity of explicitly incentivizing group cohesion and specialization.

Conclusion

The GACG framework advances MARL by successfully capturing higher-order group dependencies through behavior-based graph inference. By combining probabilistic edge sampling with a trajectory-based group divider, GACG enables agents to form specialized sub-teams that excel in complex environments. Future work will explore dynamic inference of the optimal number of groups and scaling the architecture for massive multi-agent systems involving hundreds of agents.

Summary updated

BibTeX
@inproceedings{duan2024group,
  author = {Wei Duan and Jie Lu and Junyu Xuan},
  title = {{Group-Aware Coordination Graph for Multi-Agent Reinforcement Learning}},
  booktitle = {Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=D4FWSoZ4wf},
}
Figure