Approximating Nash Equilibria in Normal-Form Games via Stochastic Optimization

Ian Gemp, Luke Marris, Georgios Piliouras

Introduction

Finding a Nash Equilibrium (NE)—a state where no player can benefit by unilaterally changing their strategy—is a cornerstone of game theory. However, computing an NE is notoriously difficult. Mathematically, it is "PPAD-complete," meaning even approximating an NE is computationally intractable for large games. Researchers from DeepMind have developed a novel loss function for finding Nash Equilibria that is compatible with unbiased stochastic optimization. By treating equilibrium computation as a non-convex optimization problem, they enable the use of powerful tools like Stochastic Gradient Descent (SGD) to solve games that were previously too large to handle.

The Bottleneck in Game Theory

The primary bottleneck in solving large games is the "payoff tensor." In a normal-form game with $n$ players and $m$ actions, the description of the game grows exponentially ($m^n$). Most existing solvers require reading this entire tensor into memory or performing exact "best-response" calculations, which is impossible for complex systems.

While machine learning has thrived by using "subsampling" (stochastic gradients) to handle massive datasets, game theory has historically lacked a loss function that allows for unbiased Monte Carlo estimation. Existing metrics like "Exploitability" involve a max operator, which introduces bias the moment you start sampling.

A Novel Stochastic Loss Function

To bridge this gap, the authors introduce a new loss function, $L^\tau(x)$, based on the projected-gradient norm.

  1. The Tangent Space Trick: Instead of calculating a player's "best response" (which is non-linear and biased when sampled), the authors look at the gradient of a player's utility. They project this gradient onto the tangent space of the probability simplex. Crucially, this projection is a linear operation, allowing the expectation operator to move inside the projection and enabling unbiased sampling.
  2. Unbiased Squared Estimator: To estimate the squared norm of an expectation ($E[Y]^2$) without bias, they employ a "two-sample trick." By taking two independent samples of the game's payoffs, they compute an unbiased estimate of the squared projected gradient.
  3. Entropy Regularization: To ensure the math holds up even when players choose "pure" strategies (on the boundary of the simplex), they add a Shannon entropy bonus to the utilities. This transforms the problem into finding a Quantal Response Equilibrium (QRE), smoothing the landscape and ensuring all strategies have a non-zero probability.
Correlation between Exploitability and Projected Gradient Norm

With an unbiased stochastic loss in hand, standard optimization algorithms like Stochastic Gradient Descent (SGD) and $\mathcal{X}$-armed bandit algorithms can be deployed to minimize the loss directly.

Key Insights and Results

The authors evaluated their approach on several hallmark game theory benchmarks, including the Modified Shapley’s Game, GAMUT D7, Blotto Games, and an artificial 7-player game.

  • Game Theory as ML Optimization: The paper argues that we should treat game theory like deep learning. Even if the problem is NP-hard in the worst case, heuristics like SGD can be "unreasonably effective" at finding good enough solutions in practice.
  • Scaling to Large Games: On a 4-player Blotto game, traditional solvers in the hallmark Gambit library failed to return any equilibrium within an hour. In contrast, the proposed stochastic methods found approximate equilibria efficiently.
  • SGD Performance: Vanilla SGD was shown to be competitive with, and sometimes superior to, state-of-the-art methods like Follow-the-Regularized-Leader (FTRL) and Regret Matching, especially in high-dimensional strategy spaces.
  • Convexity in Polymatrix Games: The authors discovered that for "polymatrix games" (where players interact via pairwise games) with interior equilibria, the proposed loss function is actually convex. This means these specific, complex games can be solved in deterministic polynomial time.

Limitations and Future Work

While promising, treating game theory as a non-convex optimization problem comes with familiar machine learning challenges.

  • Saddle Points: Like deep learning, this non-convex loss landscape can have saddle points. In the Blotto experiments, SGD's progress slowed down significantly when encountering these regions.
  • Temperature Sensitivity: The approximation of the true Nash Equilibrium depends heavily on the entropy temperature $\tau$. As $\tau \to 0$, the approximation gets better, but the gradients can "blow up," making optimization harder and altering the loss landscape significantly.
Loss landscape of a Chicken Game at various temperature values
  • Expansion to Extensive-Form Games: The current work focuses on "normal-form" (one-shot) games. Extending this unbiased stochastic loss to "extensive-form" (multi-step) games with imperfect information remains a major direction for future research.

Summary updated

BibTeX
@inproceedings{gemp2024approximating,
  author = {Ian Gemp and Luke Marris and Georgios Piliouras},
  title = {{Approximating Nash Equilibria in Normal-Form Games via Stochastic Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=cc8h3I3V4E},
}
Figure