On the Approximation of Cooperative Heterogeneous Multi-Agent Reinforcement Learning (MARL) using Mean Field Control (MFC)

Washim Uddin Mondal, Mridul Agarwal, Vaneet Aggarwal, Satish V. Ukkusuri

TL;DR

Cooperative multi-agent reinforcement learning (MARL) with huge populations is notoriously intractable, but standard Mean Field Control (MFC) typically assumes all agents are identical. This paper extends MFC to heterogeneous populations divided into $K$ homogeneous classes, establishing rigorous finite-agent approximation error bounds across three interaction regimes. The authors also design a Natural Policy Gradient (NPG) algorithm that solves the $K$-class MFC problem with global convergence guarantees and $\mathcal{O}(e^{-3})$ sample complexity.

What Problem Does This Paper Address?

In cooperative MARL, finding an optimal joint policy is hindered by the curse of dimensionality: the joint state and action spaces grow exponentially with population size $N_{\text{pop}}$.

To scale up, practitioners often turn to Mean Field Control (MFC). MFC approximates an infinite population of interacting agents by tracking a single "representative" agent reacting to the population's empirical distribution. However, classical MFC assumes homogeneity—every agent shares the same dynamics and reward structure. In real applications (such as ride-hailing networks with diverse vehicle types, or smart grids with mixed load profiles), agents are heterogeneous.

Prior scalable MARL heuristics (like Independent Q-Learning or value factorization methods like QMIX) lack provable global convergence guarantees. Meanwhile, standard MFC cannot handle multi-type populations. This paper bridges the gap by formalizing $K$-class heterogeneous cooperative MARL and analyzing its convergence to a multi-class mean-field limit.

Methods

The authors structure the population into $K$ distinct classes where class $k \in [K]$ consists of $N_k$ identical, interchangeable agents ($N_{\text{pop}} = \sum_{k=1}^K N_k$).

  1. Three Interaction Models:
  2. Regime 1 (Joint Distributions): Transition dynamics and rewards depend on the joint empirical state-action distribution across all agents and classes in $\mathcal{P}(\mathcal{X} \times [K])$ and $\mathcal{P}(\mathcal{U} \times [K])$.
  3. Regime 2 (Per-Class Distributions): Dynamics depend on the tuple of class-specific distributions in $\mathcal{P}^K(\mathcal{X})$ and $\mathcal{P}^K(\mathcal{U})$.
  4. Regime 3 (Marginal/Aggregate Distributions): Dynamics depend solely on overall population marginals in $\mathcal{P}(\mathcal{X})$ and $\mathcal{P}(\mathcal{U})$.
  5. Theoretical Approximation Proofs:
  6. Instead of standard sub-Gaussian concentration inequalities (which often yield loose constant factors), the authors establish a dedicated inequality for bounded, independent random variables with constrained sums (Lemma 11).
  7. They introduce intermediate hybrid stochastic systems ($X$ and $Y$) to decouple finite-agent stochastic fluctuations from continuous mean-field evolution recursively across time steps.
  8. Natural Policy Gradient (NPG) for $K$-Class MFC:
  9. They reformulate the $K$-class MFC as a single-agent Markov Decision Process tracking $K$ representative agents.
  10. Crucially, conditioned on the system state, the representative agents' actions remain independent.
  11. By leveraging this structure, they develop an NPG algorithm with an unbiased advantage estimator (using randomized geometric horizon rollouts) to optimize parameterized stationary policies.

Datasets

Not discussed in the paper. The work is purely theoretical and focuses on mathematical proofs, non-asymptotic error bounds, and sample-complexity guarantees.

Key Insights and Ideas

  • Beyond Single-Class Aggregation: Unlike homogeneous MFC where population effects are compressed into a single mean field, $K$-class MFC must account for cross-class dependencies.
  • Sub-Gaussian Alternative Yields Tighter Bounds: By designing a custom concentration lemma tailored to simplex-constrained probabilities, the authors obtain sharper leading constants than existing homogeneous MFC bounds (e.g., Gu et al., 2020) while generalizing them to $K > 1$.
  • Mitigating Policy Space Blowup: In $K$-class MFC, the joint action space for representative agents is $\mathcal{U}^K$. However, because class policies operate conditionally independently given the class state and mean field, computing policy gradient updates avoids an exponential penalty in $K$.
  • The Price of Heterogeneity: When classes are balanced ($N_k = N_{\text{pop}}/K$), the approximation error scales as $\mathcal{O}(\sqrt{K / N_{\text{pop}}})$, showing explicitly how diversity ($K$) degrades mean-field fidelity unless population size grows proportionally.

Key Results

  • Finite-Agent Approximation Error ($e_j$):
  • Regime 1 (Joint): $$e_1 = \mathcal{O}\left( \frac{\sqrt{|\mathcal{X}|} + \sqrt{|\mathcal{U}|}}{N_{\text{pop}}} \sum_{k=1}^K \sqrt{N_k} \right)$$ For equal class sizes, this simplifies to $\mathcal{O}\left( (\sqrt{|\mathcal{X}|} + \sqrt{|\mathcal{U}|}) \sqrt{\frac{K}{N_{\text{pop}}}} \right)$.

  • Regime 2 (Per-Class): $$e_2 = \mathcal{O}\left( (\sqrt{|\mathcal{X}|} + \sqrt{|\mathcal{U}|}) \sum_{k=1}^K \frac{1}{\sqrt{N_k}} \right)$$ (Regime 1 is strictly tighter than Regime 2 because differences between joint distributions bound the individual class variations).

  • Regime 3 (Marginals): $$e_3 = \mathcal{O}\left( (\sqrt{|\mathcal{X}|} + \sqrt{|\mathcal{U}|}) \left[ \frac{A}{N_{\text{pop}}} \sum_{k=1}^K \sqrt{N_k} + \frac{B}{\sqrt{N_{\text{pop}}}} \right] \right)$$ This isolates an $\mathcal{O}(1/\sqrt{N_{\text{pop}}})$ single-class holistic term alongside a heterogeneous adjustment.

  • Global Convergence and Complexity:

  • The NPG algorithm converges to an $\mathcal{O}(e_j)$ neighborhood of the optimal MARL policy with sample complexity $\mathcal{O}(e_j^{-3})$ (up to a small function-approximation bias $\frac{\sqrt{\epsilon_{\text{bias}}}}{1-\gamma}$).
  • Sampling state-action trajectories in $K$-class MFC costs $\mathcal{O}(K)$ per step, yielding a computational speedup of $\mathcal{O}(N_{\text{pop}} / K)$ compared to simulating the full MARL system.

Limitations and Future Work

  • Strict Intra-Class Exchangeability: The framework assumes agents within each class are completely interchangeable and fully connected via mean-field interactions.
  • Local / Network Interactions: In physical domains (e.g., autonomous driving or ad-hoc sensor networks), agents interact primarily with spatial neighbors over fixed graph topologies where global exchangeability does not hold. The authors highlight developing localized mean-field approximations as the primary next step.
  • Sensitivity to Small Subpopulations: In Regime 2, if any single class size $N_k$ is very small, the bound $\sum_k \frac{1}{\sqrt{N_k}}$ degrades significantly.

Summary updated

BibTeX
@article{mondal2022approximation,
  author = {Washim Uddin Mondal and Mridul Agarwal and Vaneet Aggarwal and Satish V. Ukkusuri},
  title = {{On the Approximation of Cooperative Heterogeneous Multi-Agent Reinforcement Learning (MARL) using Mean Field Control (MFC)}},
  journal = {J. Mach. Learn. Res.},
  year = {2022},
  url = {https://openreview.net/forum?id=fF6MSaeFxu},
}
Figure