Deep Fictitious Play for Finding Markovian Nash Equilibrium in Multi-Agent Games

Jiequn Han, Ruimeng Hu

Abstract

We propose a deep neural network-based algorithm to identify the Markovian Nash equilibrium of general large $N$-player stochastic differential games. Following the idea of fictitious play, we recast the $N$-player game into $N$ decoupled decision problems (one for each player) and solve them iteratively. The individual decision problem is characterized by a semilinear Hamilton-Jacobi-Bellman equation, to solve which we employ the recently developed deep BSDE method. The resulted algorithm can solve large $N$-player games for which conventional numerical methods would suffer from the curse of dimensionality. Multiple numerical examples involving identical or heterogeneous agents, with risk-neutral or risk-sensitive objectives, are tested to validate the accuracy of the proposed algorithm in large group games. Even for a fifty-player game with the presence of common noise, the proposed algorithm still finds the approximate Nash equilibrium accurately, which, to our best knowledge, is difficult to achieve by other numerical algorithms.

Introduction

In multi-agent systems, the search for a Markovian Nash Equilibrium—a state where no player can improve their outcome by unilaterally changing their strategy—is a fundamental challenge. When these interactions are modeled as stochastic differential games in continuous time, the equilibrium is mathematically defined by a system of $N$-coupled Hamilton-Jacobi-Bellman (HJB) equations.

As the number of players ($N$) increases, the dimensionality of these equations grows exponentially, leading to the "curse of dimensionality." Traditional numerical methods, such as grid-based solvers, become computationally intractable once $N$ exceeds a small number. While Mean-Field Game (MFG) theory provides an alternative for infinite populations, it often fails to capture the dynamics of moderate-sized groups, struggles with player heterogeneity, and cannot easily incorporate "common noise" that affects all agents simultaneously. This paper introduces Deep Fictitious Play (DFP), a scalable framework designed to overcome these limitations.

Methodology

The DFP algorithm integrates two powerful concepts to solve high-dimensional stochastic games:

1. Fictitious Play for Decoupling

Fictitious play is an iterative learning process where, at each stage, every player assumes their opponents will continue using their strategies from the previous iteration. This assumption effectively "decouples" the $N$-player game into $N$ independent optimization problems. Instead of solving a massive coupled system, the algorithm solves $N$ parallelizable sub-problems, significantly reducing complexity and allowing for parallel execution across multiple GPUs.

2. Deep BSDE as a High-Dimensional Solver

To solve the individual HJB equations resulting from the decoupling, the authors employ the Deep Backward Stochastic Differential Equation (BSDE) method. This approach reformulates the partial differential equation (PDE) as a stochastic control problem. By using deep neural networks to approximate the gradient of the value function, the method can handle high-dimensional state spaces that are otherwise inaccessible to grid-based methods. For symmetric games, the authors further optimize the process by using a single neural network to represent all players, drastically lowering computational overhead.

Experimental Evaluation

The algorithm was tested across four distinct benchmarks common in financial mathematics and economics:

  • Inter-Bank Borrowing and Lending: A model of systemic risk where banks maintain reserve requirements through mutual lending.
  • Risk-Sensitive Games: Scenarios where players exhibit varying attitudes toward risk (e.g., risk-averse vs. risk-seeking).
  • General Linear-Quadratic (LQ) Games: A 10-player heterogeneous setup with 10-dimensional controls.
  • Nonlinear Drift Variants: A 50-player stress test involving nonlinear dynamics and common noise, where no analytical closed-form solution exists.

Key Results and Insights

The DFP algorithm demonstrated remarkable accuracy and scalability in the following areas:

  • High Precision: In benchmarks with known analytical solutions, the algorithm achieved Relative Squared Errors (RSE) between 0.1% and 4.6% for both value functions and optimal strategies.
  • Scalability to Large $N$: The method successfully identified the Nash equilibrium in a 50-player game featuring common noise and nonlinear dynamics. The authors note that this is a feat difficult to achieve with any other known numerical algorithm.
  • Handling Common Noise: Unlike many Mean-Field approximations, DFP naturally incorporates common noise because it solves the actual $N$-player game rather than an infinite-player limit.
  • Discovery of Non-Gaussian Distributions: In nonlinear cases, the algorithm correctly identified that bank reserve distributions become more concentrated (lower kurtosis) than a standard Gaussian distribution, matching the theoretical "push-back" effect of nonlinear drift.

Conclusion and Future Work

Deep Fictitious Play offers a robust path forward for solving large-scale multi-agent games that were previously computationally unreachable. While the empirical results are strong, the authors acknowledge that formal convergence proofs for the deep learning version of fictitious play remain an open area for research. Additionally, while the 50-player game was solved in 35 hours on a single GPU, further optimizations could reduce this cost. Future extensions may include games where players control their volatility (risk level) through second-order BSDE formulations.

Summary updated

Abstract

We propose a deep neural network-based algorithm to identify the Markovian Nash equilibrium of general large $N$-player stochastic differential games. Following the idea of fictitious play, we recast the $N$-player game into $N$ decoupled decision problems (one for each player) and solve them iteratively. The individual decision problem is characterized by a semilinear Hamilton-Jacobi-Bellman equation, to solve which we employ the recently developed deep BSDE method. The resulted algorithm can solve large $N$-player games for which conventional numerical methods would suffer from the curse of dimensionality. Multiple numerical examples involving identical or heterogeneous agents, with risk-neutral or risk-sensitive objectives, are tested to validate the accuracy of the proposed algorithm in large group games. Even for a fifty-player game with the presence of common noise, the proposed algorithm still finds the approximate Nash equilibrium accurately, which, to our best knowledge, is difficult to achieve by other numerical algorithms.
BibTeX
@inproceedings{han2020deep,
  author = {Jiequn Han and Ruimeng Hu},
  title = {{Deep Fictitious Play for Finding Markovian Nash Equilibrium in Multi-Agent Games}},
  booktitle = {MSML},
  year = {2020},
  url = {https://openreview.net/forum?id=NkkSVUbCT8g},
}
Figure