Solving Continuous Mean Field Games: Deep Reinforcement Learning for Non-Stationary Dynamics

Lorenzo Magnino, Kai Shao, Zida Wu, Jiacheng Shen, Mathieu Lauriere

The Challenge of Scaling Multi-Agent Systems

In multi-agent reinforcement learning (MARL), the "curse of dimensionality" acts as a hard wall: as the number of agents grows, the complexity of their interactions explodes, making traditional methods computationally intractable. Mean Field Games (MFGs) offer a clever workaround. Instead of tracking every individual, MFGs model a single "representative agent" interacting with a collective population distribution—the "mean field."

However, most existing MFG solvers are restricted to simplified settings. They often assume discrete states and actions, or they rely on stationary (time-invariant) populations. Real-world scenarios, such as traffic flow optimization or financial market modeling, are inherently continuous and non-stationary, meaning the population distribution shifts over time. This paper bridges that critical gap, providing a scalable deep learning approach to find Nash Equilibria in complex, time-dependent systems.

Introducing DEDA-FP

To tackle these continuous, non-stationary environments, the authors propose Density-Enhanced Deep-Average Fictitious Play (DEDA-FP).

DEDA-FP Architecture

The framework is built on three core pillars:

  1. Fictitious Play (FP): A classic game-theory learning scheme where agents iteratively compute a "best response" to the average behavior of all other agents in previous rounds.
  2. Deep RL for Best Response: The algorithm uses state-of-the-art Deep RL (such as Soft Actor-Critic or PPO) to find the optimal policy against the current population distribution.
  3. Conditional Normalizing Flows (CNF): This is the framework's "secret sauce." To represent the non-stationary population distribution, the authors employ a CNF. Unlike empirical distributions (which are just a collection of discrete points), a CNF learns a smooth, time-conditioned mapping. This allows the agent to instantly sample new agent positions and calculate the exact density at any point in space and time—a critical feature for environments where rewards depend on local "crowdedness."

To ensure the "average policy" is represented accurately across iterations, DEDA-FP uses supervised learning to train a neural network that mimics the aggregate of all previous best-response policies.

Experimental Environments and Insights

The method was evaluated on three simulated environments of increasing complexity:

  • Beach Bar Problem: A continuous MFG where agents want to be near a central "bar" but must avoid congested areas.
  • Linear-Quadratic (LQ) Model: A standard mathematical benchmark with a known optimal solution, used to verify the algorithm's accuracy in continuous space.
  • 4-Rooms Exploration: A complex case study where 2,000 agents must navigate through narrow openings between rooms, testing the model's ability to handle obstacles and high-dimensional local density effects.

A key insight from these tests is that density matters. Many MFGs derive their complexity from local interactions, where an agent's reward depends heavily on immediate neighbors. By using Normalizing Flows, DEDA-FP can query the exact population density at any coordinate. Previous "sampling-only" methods struggled to do this without relying on noisy approximations like Gaussian convolution. Because Normalizing Flows are invertible and differentiable, they provide a highly efficient representation of the mean field.

Key Results

The hybrid learning approach of DEDA-FP—using DRL for optimization and Supervised Learning for policy averaging—proved highly effective:

  • 10x Speedup: In the complex 4-rooms exploration task, DEDA-FP was over 10 times faster at generating trajectories for rollouts compared to traditional benchmarking methods.
  • Superior Density Modeling: In both the "Beach Bar" and "4-Rooms" problems, DEDA-FP produced significantly smoother and more accurate population distributions.
  • Faster Convergence: The improved density modeling led to faster and more stable convergence to an approximate Nash Equilibrium.
Exploitability Convergence

Furthermore, the authors provide a formal error propagation analysis, proving that the algorithm converges to an approximate Nash Equilibrium even with the inherent errors introduced by deep learning approximations.

Limitations and Future Work

While DEDA-FP represents a major step forward for continuous MFGs, the authors note a few remaining hurdles. First, a complete theoretical understanding of training deep neural networks within the Fictitious Play loop remains an open challenge. Second, the field still relies on "approximate exploitability" to measure how close a solution is to a Nash Equilibrium, a metric that can be sensitive to environment complexity.

Finally, future work could extend this architecture to MFGs with "common noise"—macro-events that affect the entire population simultaneously, such as a sudden market crash—adding another layer of stochastic complexity to the multi-agent landscape.

Summary updated

BibTeX
@inproceedings{magnino2025solving,
  author = {Lorenzo Magnino and Kai Shao and Zida Wu and Jiacheng Shen and Mathieu Lauriere},
  title = {{Solving Continuous Mean Field Games: Deep Reinforcement Learning for Non-Stationary Dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Jw5TFF3HkH},
}
Figure