Model Free Reinforcement Learning Algorithm for Stationary Mean field Equilibrium for Multiple Types of Agents

Arnob Ghosh, Vaneet AggarwalarXiv 2020

Abstract

This paper addresses the computational challenges of multi-agent reinforcement learning (MARL) in large-scale systems with heterogeneous agents. By extending Mean Field Games (MFG) to include multiple agent types, the authors define the Multi-type Mean Field Equilibrium (MMFE). They propose a model-free Random Horizon Policy Gradient (RHPG) algorithm that converges to a stable equilibrium without prior knowledge of environment dynamics. Experimental results in a cyber-security simulation demonstrate the emergence of threshold-based strategies.

Introduction

In traditional Multi-Agent Reinforcement Learning (MARL), the state-action space grows exponentially with the number of agents, leading to the "curse of dimensionality." Mean Field Games (MFG) mitigate this by modeling an infinite population of identical agents where individuals interact with the aggregate distribution rather than specific peers. However, many real-world applications, such as cyber-security (defenders vs. attackers) or smart grids, involve agents with distinct roles and objectives.

This paper addresses the limitations of standard MFG models by introducing a framework for multiple agent types in a model-free setting. The goal is to find a stationary equilibrium where diverse groups of agents reach a stable state distribution and optimal policies simultaneously.

Methodology

The authors define the Multi-type Mean Field Equilibrium (MMFE) based on two core conditions:

  1. Policy Optimality: Each agent type’s policy must be optimal given the current state distributions of all other types.
  2. Population Consistency: The state distribution of the population must remain stationary when agents follow these optimal policies.

To solve for this equilibrium without requiring a model of the environment's physics (transition probabilities and rewards), the Random Horizon Policy Gradient (RHPG-MMFE) algorithm is introduced. A key innovation is the "Random Horizon" trick: instead of using fixed-length rollouts, the algorithm samples rollout lengths from a geometric distribution. This provides an unbiased estimate of the infinite-horizon discounted reward, bypassing the systematic bias found in finite-horizon approximations. The algorithm iteratively updates policies in an inner loop and population distributions in an outer loop until convergence.

Experimental Evaluation

The algorithm was evaluated using a Synthetic Cyber-Attack Model featuring 100 Defenders and 100 Attackers.

  • States: Defenders track discretized vulnerability levels, while attackers monitor power levels.
  • Dynamics: Defenders can take actions to secure nodes (resetting vulnerability), while attackers attempt breaches based on the defender population's mean state.

Results and Discussion

The theoretical analysis proves that a stationary MMFE exists under specific Lipschitz conditions, which ensure the environment is not too volatile for a stable fixed point.

In the cyber-attack simulation, the RL algorithm successfully converged to a stable equilibrium. A notable finding was the emergence of threshold behavior in agent policies. As shown in Figure 1, both defenders and attackers remained passive when the state was low (below 0.3). However, once the state crossed a critical threshold (approximately 0.5), the probability of taking action increased sharply toward certainty.

Threshold behavior of Defender and Attacker policies.

Despite starting from a uniform distribution, the policies for both types mirrored each other, reflecting the symmetric nature of the game. This demonstrates that the RHPG-MMFE algorithm can effectively capture complex interactions between heterogeneous groups.

Conclusion

While the proposed method provides a robust framework for multi-type MARL, challenges remain. The Monte-Carlo-based RHPG estimator can exhibit high variance, suggesting that future work should incorporate actor-critic methods or baseline subtractions to improve sample efficiency. Additionally, while the theory assumes infinite agents, real-world finite populations introduce an equilibrium error of approximately $O(1/N)$. Future research will also explore non-stationary environments where mean fields vary over time.

Summary updated

BibTeX
@misc{ghosh2020model,
  author = {Arnob Ghosh and Vaneet Aggarwal},
  title = {{Model Free Reinforcement Learning Algorithm for Stationary Mean field Equilibrium for Multiple Types of Agents}},
  year = {2020},
  eprint = {2012.15377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.15377},
}
Figure