GHQ: Grouped Hybrid Q Learning for Heterogeneous Cooperative Multi-agent Reinforcement Learning

Xiaoyang Yu, Youfang Lin, Xiangsen Wang, Sheng Han, Kai Lv · DOI

Introduction

In the field of Multi-Agent Reinforcement Learning (MARL), achieving effective coordination among diverse agents remains a significant challenge. This paper introduces GHQ (Grouped Hybrid Q-Learning), a framework designed to address the inherent difficulties of heterogeneity in cooperative tasks. While traditional algorithms often rely on parameter sharing to simplify training, this approach frequently fails when agents possess fundamentally different roles and capabilities. GHQ overcomes these limitations by grouping agents based on their functional roles and maximizing mutual information between these groups, leading to superior performance in complex, asymmetric scenarios.

The Problem: Local Transition Heterogeneity (LTH)

Most successful MARL algorithms, such as QMIX, utilize parameter sharing, where all agents share the same neural network weights. This is highly effective in homogeneous scenarios where agents are identical. However, real-world applications—and complex games like StarCraft II—are often heterogeneous.

Table 2: Comparison of unit attributes in StarCraft II, illustrating the significant differences in health, range, and role between attackers and support units.

As shown in the table above, a Medivac (a flying support unit) has vastly different health, speed, and functional roles compared to a Marine or Marauder (ground-based attackers). The authors formally define this gap as Local Transition Heterogeneity (LTH). LTH occurs when different agents, starting from the same state, cannot reach the same next state because their action spaces and transition functions are fundamentally distinct. When forced to share parameters, these agents often fail to specialize, resulting in sub-optimal team coordination.

The GHQ Framework

To solve the LTH problem, the authors propose three key innovations:

  1. Ideal Object Grouping (IOG): Agents are partitioned into groups based on their "Ideal Object"—the entities they primarily interact with. For instance, healers interact with allies, while attackers interact with enemies. Each group maintains its own set of neural network parameters, allowing for specialized role development.
  2. Grouped Individual-Global-Max (GIGM) Consistency: This mathematical generalization of the standard IGM principle ensures that if each group chooses an action to maximize its local Q-value, the resulting joint action is guaranteed to maximize the team's total Q-value.
  3. Inter-Group Mutual Information (IGMI) Loss: To prevent groups from operating in isolation, GHQ includes a loss term that maximizes the mutual information between the trajectories of different groups. This encourages long-term strategic coordination across the entire team.
  4. Hybrid Value Factorization: GHQ utilizes a mixing network to combine group-level Q-values. This hybrid approach treats group Q-functions as independent action-value functions, simplifying the learning objective compared to more complex hierarchical structures.

Experimental Setup and Benchmarks

The researchers evaluated GHQ using the StarCraft Multi-Agent Challenge (SMAC). They tested the algorithm on existing maps like MMM2 and introduced several new asymmetric benchmarks to specifically test heterogeneity.

Table 1: Classification of StarCraft II maps used in the study, highlighting the variety in symmetry, homogeneity, and difficulty levels.

As categorized in the map summary, the evaluation spanned a wide range of difficulties and homogeneity levels. The authors argued that standard SMAC maps were not "heterogeneous enough," leading them to design new maps with varying ratios of Marines and Medivacs against larger enemy forces to highlight the coordination required between healers and attackers.

Key Results and Insights

GHQ demonstrated significant improvements over state-of-the-art baselines:

  • Superior Win Rates: On challenging new maps like 8m3m_21m, GHQ achieved a 78% win rate, significantly outperforming QMIX (40%) and QPLEX (55%).
  • Faster Convergence: On the standard MMM2 map, GHQ reached a 100% win rate in approximately 1.5 million steps, outpacing most existing methods.
  • Qualitative Mastery: Heatmap analysis revealed that GHQ-trained Medivacs learned sophisticated "distraction" tactics—drawing enemy fire to protect Marines—whereas QMIX-trained Medivacs often failed to heal effectively or died prematurely.

Conclusion and Future Work

GHQ provides a rigorous mathematical and practical framework for handling heterogeneity in MARL. By balancing group-level specialization with inter-group coordination via mutual information, it enables agents to master complex, asymmetric roles. Currently, the grouping of agents (IOG) is pre-defined based on domain knowledge. Future research will focus on automated group discovery, allowing the algorithm to learn optimal agent groupings dynamically during training, and exploring the scalability of GHQ to massive-scale maps with hundreds of agents.

Summary updated

BibTeX
@inproceedings{yu2024ghq,
  author = {Xiaoyang Yu and Youfang Lin and Xiangsen Wang and Sheng Han and Kai Lv},
  title = {{GHQ: Grouped Hybrid Q Learning for Heterogeneous Cooperative Multi-agent Reinforcement Learning}},
  booktitle = {Complex Intell. Syst},
  year = {2024},
  url = {https://openreview.net/forum?id=Ops2PFeo8T},
}
Figure