Heterogeneity in Multi-Agent Reinforcement Learning

Tianyi Hu, Zhiqiang Pu, Yuan Wang, Tenghai Qiu, Min Chen, Xin Yu · Submission to NeurIPS 2025 · Rejected

TL;DR

While multi-agent reinforcement learning (MARL) frequently encounters heterogeneous agents, the field lacks a unified mathematical foundation to define, measure, and exploit these differences. This paper establishes a formal taxonomy of five agent heterogeneity types grounded in Partially Observable Markov Games (POMGs), introduces a CVAE-based "heterogeneity distance" to quantify agent dissimilarity, and demonstrates its utility with HetDPS—an adaptive parameter-sharing algorithm that dynamically clusters and routes network parameters as agents learn.

What Problem Does This Paper Address?

In cooperative multi-agent systems, agents are rarely identical: aerial drones collaborate with ground rovers, or agents assume specialized roles to solve tasks. However, MARL research usually treats heterogeneity heuristically—either by strictly categorizing agents by static physical labels or by artificially enforcing behavioral diversity. Existing parameter-sharing techniques struggle to balance sample efficiency with specialization, often relying on rigid heuristics, fixed cluster counts, or brittle thresholds.

The authors address three fundamental questions:

  1. Definition: How can we mathematically formalize what makes two agents heterogeneous?
  2. Quantification: How can we measure the continuous degree of heterogeneity between agents using real interaction data?
  3. Utilization: How can quantified heterogeneity guide practical MARL techniques, such as parameter sharing?

Methods

The paper develops a complete pipeline from theoretical modeling to practical algorithms:

  • Taxonomy of Heterogeneity: Formulating MARL under a POMG framework, the authors classify agent differences by the underlying functions connecting agent-level components:
  • Observation heterogeneity ($\Omega^i$): Discrepancies in sensory inputs and observation functions.
  • Response transition heterogeneity ($T^i$): Differences in how global environmental transitions affect an agent's local state (environment-to-self).
  • Effect transition heterogeneity ($T^{-i}$): Differences in how an agent's actions and states influence the rest of the world (self-to-environment).
  • Objective heterogeneity ($r^i$): Variations in reward functions.
  • Policy heterogeneity ($\pi^i$): Behavioral divergences in decision-making policies.
  • Heterogeneity Distance & Representation Learning: The theoretical distance between agents $i$ and $j$ for core function $F$ is defined via the expectation over the variable space $X$: $$d^F_{ij} = \int_{x \in X} D[F_i(\cdot|x) \parallel F_j(\cdot|x)]\, p(x)\, dx$$ Using Wasserstein distance for $D$, $d_{ij}^F$ is proven to be a valid metric (satisfying symmetry, non-negativity, identity of indiscernibles, and triangle inequality). To compute this efficiently over high-dimensional trajectory distributions without analytical forms, the authors train Conditional Variational Autoencoders (CVAEs) to learn latent representations $p(z|x)$ in both model-based and model-free settings.

  • Meta-Transitions: To quantify comprehensive environmental heterogeneity using strictly local information, they introduce the meta-transition mapping $M_i: S_i \times A_i \to S_i \times \mathbb{R} \times \Omega_i$.

  • HetDPS (Heterogeneity-based Dynamic Parameter Sharing): Rather than using fixed parameter sharing (FPS) or completely independent networks (NPS), HetDPS computes the pairwise meta-transition heterogeneity distance matrix online, groups agents using Affinity Propagation (avoiding pre-set cluster counts), and dynamically splits or merges network parameters using Hungarian bipartite matching.
+--------------------------------------------------------+
| 1. Define Heterogeneity (Observation, Response, etc.)  |
+---------------------------+----------------------------+
                            |
                            v
+--------------------------------------------------------+
| 2. Quantify Heterogeneity (CVAE Latents + Wasserstein) |
+---------------------------+----------------------------+
                            |
                            v
+--------------------------------------------------------+
| 3. Utilize via HetDPS (Affinity Propagation + Net Ops) |
+--------------------------------------------------------+

Datasets

The authors evaluate their approach on both continuous-control and discrete-action benchmarks:

  • Custom Multi-Agent Particle Spread (Diagnostic Suite): 6 tailored versions isolating each heterogeneity type (observation shuffling, speed variations, attractive vs. repulsive physics, goal divergence, and hybrid settings).
  • Particle-Based Multi-Agent Spreading: Scaled benchmark tasks involving distinct color/formation roles: 15a_3c, 30a_3c, 15a_5c, and 30a_5c (up to 30 agents and 5 classes).
  • StarCraft Multi-Agent Challenge (SMAC): Evaluated across micromanagement battle scenarios: 3s5z, 3s5z_vs_3s6z, MMM, and MMM2.

Key Insights and Ideas

  • Policy Diversity is an Effect, Not the Cause: Under this framework, policy diversity naturally arises as agents adapt to underlying environmental heterogeneity (observation, transition, or reward discrepancies).
  • Task Difficulty Dictates Heterogeneity Expression: In simpler scenarios (e.g., SMAC MMM), agents often converge toward homogeneous policies despite physical differences to maximize sample efficiency. In harder coordination tasks (MMM2, 3s5z_vs_3s6z), agents preserve their specialized identities. Heterogeneity is therefore an emergent property of agent-environment coupling, not merely static unit types.
  • Representation Learning Bypasses Dimension Mismatches: Using CVAEs with padding allows direct dissimilarity measurements between agents with completely different observation or state dimensions (e.g., a 10D vs. a 20D state vector).

Key Results

  • Accurate Identification: The CVAE distance matrix matches ground-truth functional splits across all synthetic test variants (v1–v6) and successfully mirrors ground-truth agent color distributions in particle environments.
  • Task Performance: HetDPS matches or outperforms existing sharing approaches (NPS, FPS, SePS, AdaPS, and MADPS) across both particle spreading and complex SMAC maps.
  • Computational Overhead: Normalized to Full Parameter Sharing ($1.000\times$), HetDPS achieves an average training speed of $0.712\times$, substantially faster than alternative dynamic grouping baselines like AdaPS ($0.614\times$) and MADPS ($0.539\times$) while eliminating manual clustering hyperparameters.

Limitations and Future Work

  • Quadratic Scaling: Computing the complete pairwise distance matrix scales as $\mathcal{O}(|N|^2)$, which becomes computationally expensive for massive swarms ($|N| \gg 100$).
  • Vector Constraints: Practical CVAE encoders currently assume vector inputs; multimodal inputs (e.g., raw camera streams paired with discrete states) require specialized architectures.
  • Algorithmic Heterogeneity Excluded: The framework specifically formalizes environment- and policy-level differences, excluding algorithmic variations such as agent-specific discount factors, hardware compute asymmetries, or asymmetric communication channels.

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