A Machine Learning Framework for Solving High-Dimensional Mean Field Game and Mean Field Control Problems

Lars Ruthotto, Stanley J. Osher, Wuchen Li, Levon Nurbekyan, Samy Wu FungarXiv 2019

Introduction

Mean Field Games (MFG) and Mean Field Control (MFC) provide powerful mathematical frameworks for modeling the collective behavior of large populations of interacting agents. These models find applications in diverse fields, including traffic flow optimization, financial market modeling, and swarm robotics. Traditionally, solving these problems requires finding solutions to a system of coupled partial differential equations (PDEs): a Hamilton-Jacobi-Bellman (HJB) equation for optimal agent strategy and a continuity equation for population density.

However, these traditional grid-based solvers suffer from the curse of dimensionality. As the number of state variables ($d$) increases, the computational cost grows exponentially ($N^d$), typically limiting practical applications to 3 or 4 dimensions. This paper introduces a mesh-free machine learning framework that bypasses this limitation, enabling the solution of MFG and MFC problems in up to 100 dimensions.

Methodology: A Mesh-Free Lagrangian Approach

The authors propose a "discretize-then-optimize" framework that shifts from an Eulerian (grid-based) perspective to a Lagrangian one. Instead of solving PDEs on a fixed spatial grid, the method follows the "characteristics"—the individual trajectories of agents. This approach offers several key advantages:

  1. Mesh-Free Computation: By following trajectories, the method avoids the exponential scaling of spatial grids.
  2. Neural Network Parameterization: The "potential" function, which dictates agent actions, is parameterized using a specialized Residual Network (ResNet). This allows the model to represent complex high-dimensional functions with extreme parameter efficiency.
  3. HJB Penalty: A novel loss function incorporates a penalty for HJB violation. While the Lagrangian paths naturally satisfy the continuity equation, this penalty ensures that the learned potential adheres to the optimality conditions required by the HJB equation.
  4. Efficient Density Tracking: To manage density changes without the $O(d^3)$ cost of computing determinants, the framework utilizes the Jacobi identity to evolve the log-determinant of the transformation along trajectories.
Lagrangian trajectories for the Optimal Transport benchmark, showing the transformation from an initial 8-cluster density to a single target density.

Experimental Validation

The framework was evaluated on two high-dimensional synthetic benchmarks:

  • Dynamical Optimal Transport (OT): Moving a Gaussian mixture of 8 clusters into a single target Gaussian distribution.
  • Crowd Motion: A complex scenario where agents must navigate from an initial distribution to a target while avoiding a high-cost central obstacle.

Both problems were tested across a range of dimensions, specifically $d \in \{2, 10, 50, 100\}$. In 2D, the results were validated against state-of-the-art Eulerian solvers to ensure accuracy.

Key Results and Scaling

The framework demonstrated remarkable scalability and efficiency. As shown in the performance data, the method successfully solved both the OT and Crowd Motion problems in 100 dimensions on a standard workstation—a task previously considered computationally impossible.

Performance metrics for Optimal Transport and Crowd Motion across dimensions up to 100D, demonstrating the framework's scalability.

Key Insights:

  • Dimensionality Breakthrough: Computational costs for many operations scale linearly with dimension $d$ rather than exponentially, allowing for 100D solutions.
  • Parameter Efficiency: In 2D tests, the neural network achieved accuracy comparable to traditional solvers using only 637 parameters, compared to over 3 million unknowns required by the grid-based approach.
  • Regularization via Physics: The HJB penalty proved essential for learning physically meaningful trajectories. Without it, the network failed to find the "straight" characteristics required for optimal transport.

Conclusion

By combining Lagrangian fluid dynamics with neural network function approximation, this framework provides a scalable path for solving high-dimensional control problems. While future work remains to establish formal convergence proofs and optimize architectures for specific physics (like the Laplacian of the potential), this research marks a significant step toward modeling complex, real-world multi-agent systems that were previously beyond reach.

Summary updated

BibTeX
@misc{ruthotto2019machine,
  author = {Lars Ruthotto and Stanley J. Osher and Wuchen Li and Levon Nurbekyan and Samy Wu Fung},
  title = {{A Machine Learning Framework for Solving High-Dimensional Mean Field Game and Mean Field Control Problems}},
  year = {2019},
  eprint = {1912.01825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.01825},
}
Figure