Heterogeneity in Multi-Agent Reinforcement Learning

Tianyi Hu, Zhiqiang Pu, Yuan Wang, Tenghai Qiu, Min Chen, Xin Yu · DOI

Abstract

This paper introduces a formal mathematical framework for addressing heterogeneity in Multi-Agent Reinforcement Learning (MARL). By defining five distinct types of agent differences and proposing a "Heterogeneity Distance" metric based on representation learning, the authors develop HetDPS (Heterogeneity-based multi-agent Dynamic Parameter Sharing). This algorithm automatically groups similar agents to optimize learning efficiency and interpretability, outperforming traditional fixed parameter-sharing strategies.

Introduction: The Challenge of Heterogeneity

In Multi-Agent Reinforcement Learning (MARL), the prevailing assumption is often that agents are homogeneous—identical copies operating in a shared environment. However, real-world systems, such as drone fleets with diverse sensors or robotic teams with varying mechanical constraints, are inherently heterogeneous.

Overview of the framework for defining, quantifying, and utilizing heterogeneity in MARL.

The field has historically lacked a rigorous method to define and measure these differences. While "parameter sharing" is commonly used to accelerate training, it often fails when agents are significantly different. Conversely, avoiding parameter sharing altogether leads to high computational costs and ignores potential synergies. This research bridges the gap by quantifying agent differences to optimize collaborative learning.

Methodology

The proposed framework rests on three pillars: taxonomy, quantification, and utilization.

1. Taxonomy of Heterogeneity

The authors define five types of heterogeneity within the Partially Observable Markov Game (POMG) framework:

  • Observation: Variations in sensory input or field of view.
  • Response Transition: How the environment affects an agent's internal state.
  • Effect Transition: How an agent's actions impact the global environment.
  • Objective: Differences in individual reward functions.
  • Policy: Divergence in decision-making behaviors and learned roles.

2. Quantifying Heterogeneity Distance

To measure these differences, the authors employ Conditional Variational Autoencoders (CVAE). By mapping agent functions into a latent distribution, they calculate a "Heterogeneity Distance" using the Wasserstein metric. A comprehensive metric, Meta-Het, is also introduced to capture overall environmental interactions without requiring a perfect world model.

The three-stage pipeline for computing heterogeneity distance: sample collection, representation learning, and distance computation.

3. Utilization via HetDPS

The Heterogeneity-based multi-agent Dynamic Parameter Sharing (HetDPS) algorithm uses these distances to group agents dynamically. Using Affinity Propagation clustering, similar agents are assigned to the same parameter-sharing groups. Bipartite graph matching ensures smooth transitions as clusters evolve during training, preventing instability.

Evaluation and Results

The framework was evaluated on the Particle-based Multi-agent Spreading (PMS) environment and the StarCraft Multi-Agent Challenge (SMAC).

Key Findings

  • Performance: HetDPS achieved state-of-the-art results, outperforming both Full Parameter Sharing (FPS) and No Parameter Sharing (NPS) across various tasks.
  • Emergent Heterogeneity: Interestingly, even initially identical agents (e.g., Marines in SMAC) developed high policy heterogeneity as they specialized into roles like "tanks" or "kiters."
  • Efficiency: HetDPS maintained high training speeds (approx. 0.712x of the fastest baseline), proving significantly more efficient than other complex dynamic grouping methods like AdaPS or MADPS.
  • Interpretability: Distance matrices (heatmaps) accurately identified agent types, such as distinguishing between Stalkers and Zealots in SMAC, providing a "fingerprint" of agent behavior.

Discussion and Future Work

Heterogeneity is not merely physical; it is defined by how agents interact with their environment. By creating a behavioral "fingerprint" for each agent, HetDPS allows for automated, zero-tuning adaptability.

However, challenges remain. The $O(N^2)$ computational complexity may limit scaling to massive swarms of hundreds or thousands of agents. Future work could explore using these distance metrics for intrinsic rewards to encourage exploration or for optimizing communication protocols between distinct agent groups.

Summary updated

BibTeX
@misc{hu2025heterogeneity,
  author = {Tianyi Hu and Zhiqiang Pu and Yuan Wang and Tenghai Qiu and Min Chen and Xin Yu},
  title = {{Heterogeneity in Multi-Agent Reinforcement Learning}},
  year = {2025},
  eprint = {2512.22941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.22941},
}
Figure