Improving Global Parameter-sharing in Physically Heterogeneous Multi-agent Reinforcement Learning with Unified Action Space

Xiaoyang Yu, Youfang Lin, Shuo Wang, Kai Lv, Sheng HanarXiv 2024 · DOI

Abstract

Global Parameter-sharing (GPS) is a common technique in Multi-agent Reinforcement Learning (MARL) to improve training efficiency. However, in physically heterogeneous environments where agents possess different capabilities, standard GPS often leads to sub-optimal performance due to a "representation gap" in action semantics. This paper proposes a Unified Action Space (UAS) and a Cross-Group Inverse (CGI) loss to bridge this gap. By mapping diverse agent actions into a common semantic framework and employing an auxiliary predictive task, the resulting algorithms—U-QMIX and U-MAPPO—demonstrate significant performance gains on complex StarCraft II benchmarks.

Introduction

In many cooperative MARL tasks, agents are physically heterogeneous, meaning they possess different hardware, constraints, and action sets. For instance, in a combat scenario, some units may focus on offensive maneuvers while others provide support or healing.

Standard approaches to this problem typically fall into two categories: Global Parameter-sharing (GPS), where all agents share a single neural network, and Independent Parameters, where each agent type has its own network. While GPS is computationally efficient, it often fails to distinguish between different action semantics—the specific influence an action has on the environment. This leads to a "homophily trap" where the shared network struggles to optimize conflicting roles simultaneously.

The Unified Action Space (UAS)

To address the semantic mismatch in GPS, the authors introduce the Unified Action Space (UAS). Instead of maintaining separate action indices for different agent types, UAS defines a "master" action space that encompasses the union of all possible actions across the team: Self-oriented ($A_s$), Ally-oriented ($A_a$), and Enemy-oriented ($A_e$).

The Unified Action Space (UAS) allows physically different agents to share a common action representation by using available-action-masks (AM).

As shown in the figure above, every agent utilizes the same shared network to output a policy over this unified space. To ensure physical constraints are respected, available-action-masks (AM) are applied to filter out impossible actions for specific agents (e.g., masking "Heal" for an attacker). This allows the network to learn a global semantic understanding of actions while preserving individual agent identities.

Cross-Group Inverse (CGI) Loss and Architecture

Beyond the action space, the authors propose the Cross-Group Inverse (CGI) loss to foster tacit coordination. This auxiliary task requires an agent to use its internal hidden state to predict the actions of teammates in different groups. This "learning by predicting" mechanism encourages the shared representation to capture the underlying dynamics of the entire team.

The U-MAPPO architecture integrates the Unified Action Space and CGI loss into a policy-based framework.

The architecture (illustrated above for U-MAPPO) utilizes MLPs and GRUs to process observations ($O_m, O_n$). The shared policy $\pi_{uni}$ operates on the unified space, which is then masked to produce the actual policy $\pi_{act}$. The CGI loss is calculated by comparing predicted teammate actions against their actual behavior, providing a training signal that enhances mutual understanding without the need for explicit communication.

Experimental Evaluation

The proposed methods were evaluated on the StarCraft Multi-Agent Challenge (SMAC) using asymmetric heterogeneous maps. These maps, such as 12m4m_30m (12 Marines and 4 Medivacs), present significant coordination challenges.

Key findings include:

  • Performance Dominance: On the "Ex-Hard" 12m4m_30m map, U-MAPPO achieved a ~41% win rate, whereas standard MAPPO and other state-of-the-art baselines like HAPPO failed to learn effective policies (0% win rate).
  • Faster Convergence: Both U-QMIX and U-MAPPO demonstrated faster convergence and higher final win rates compared to vanilla versions, particularly as agent heterogeneity increased.
  • Ablation Studies: Removing either the UAS or the CGI loss resulted in a marked decrease in performance, validating that both the common "language" of actions and the predictive training signal are essential for success.

Conclusion

By introducing the Unified Action Space and Cross-Group Inverse loss, this research provides a robust framework for applying global parameter-sharing to heterogeneous multi-agent systems. These innovations allow agents to share knowledge efficiently while maintaining the specialized behaviors necessary for complex team coordination. Future work may extend these concepts to behavioral heterogeneity and larger-scale agent swarms.

Summary updated

BibTeX
@misc{yu2024improving,
  author = {Xiaoyang Yu and Youfang Lin and Shuo Wang and Kai Lv and Sheng Han},
  title = {{Improving Global Parameter-sharing in Physically Heterogeneous Multi-agent Reinforcement Learning with Unified Action Space}},
  year = {2024},
  eprint = {2408.07395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07395},
}
Figure