Mean Field Multi-Agent Reinforcement Learning

Yaodong Yang, Rui Luo, Minne Li, Ming Zhou, Weinan Zhang, Jun Wang

Introduction

Scaling Multi-Agent Reinforcement Learning (MARL) to large populations is a significant challenge in artificial intelligence. Standard approaches face the "curse of dimensionality," where the joint action space grows exponentially with the number of agents ($D^N$ for $N$ agents with $D$ actions). This complexity makes finding Nash equilibria computationally intractable and introduces significant non-stationarity, as the simultaneous exploration of many agents creates a noisy learning signal. This paper introduces Mean Field MARL, a framework that simplifies complex many-body interactions into a two-body problem where each agent reacts to the "average" effect of its neighbors.

Methodology: From Many-Body to Two-Body

To address these challenges, the authors draw inspiration from Mean Field Theory in physics. The framework simplifies complex many-body interactions by approximating the effect of a population on a single agent as a single interaction with the "average" neighbor.

The Mean Field approximation reduces the complexity of interactions by focusing on a central agent and the mean action of its local neighborhood.

The core of the approach involves:

  1. Q-Function Factorization: Decomposing the global Q-function into a sum of pairwise local interactions.
  2. Mean Field Approximation: Using a Taylor expansion to show that these pairwise interactions can be represented by a single interaction between an agent and the mean action ($\bar{a}$) of its neighbors.
  3. Algorithms:
    • MF-Q (Mean Field Q-learning): An off-policy method using a Boltzmann policy to iteratively find best responses to the mean field.
  4. MF-AC (Mean Field Actor-Critic): An on-policy version designed for larger or continuous action spaces, where the actor learns the policy and the critic evaluates it based on the mean field.

Experimental Setup

The authors evaluated Mean Field MARL across three distinct scenarios:

  • Gaussian Squeeze: A resource allocation task where up to 1,000 agents must coordinate actions to reach a specific aggregate sum without overshooting it.
  • Ising Model: A classic statistical mechanics model representing ferromagnetism on a grid. Agents (spins) try to align with neighbors to minimize energy.
  • Battle Game: A large-scale combat scenario from the MAgent platform where two armies of 64 agents each fight in a grid world.

Key Results and Discussion

The primary advantage of Mean Field MARL is its remarkable scalability. In the Gaussian Squeeze task, traditional baselines like Independent Learners (IL) and Frequency Maximum Q-learning (FMQ) failed completely as the population grew to 500 and 1,000 agents. In contrast, MF-Q and MF-AC maintained near-perfect performance regardless of population size.

Performance comparison across different population sizes (N=100, 500, 1000) shows that Mean Field methods maintain high performance while baselines collapse at scale.

Beyond performance, the mean field approach provides a natural smoothing effect. Averaging the actions of neighbors acts as a filter, smoothing out the "jitter" caused by individual agents' exploration and providing a more stable learning signal. The framework also demonstrated physical relevance by solving the Ising model without prior knowledge of the energy function, correctly identifying phase transition points (the Curie temperature).

Conclusion and Future Work

Mean Field MARL offers a powerful paradigm for scaling reinforcement learning to massive multi-agent systems. By reducing the many-body problem to a two-body approximation, it achieves computational efficiency and stability. While the current framework assumes a degree of agent homogeneity, future research will focus on relaxing these assumptions and exploring performance in environments with highly dynamic neighborhood structures.

Summary updated

BibTeX
@inproceedings{yang2018mean,
  author = {Yaodong Yang and Rui Luo and Minne Li and Ming Zhou and Weinan Zhang and Jun Wang},
  title = {{Mean Field Multi-Agent Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure