Simple Algorithm
Reinforcement Learning · Fixed Point · 28 min

The Complexity of Equilibria

The PPAD-hardness of Nash equilibria, and correlated equilibria as the tractable alternative.

Every finite game has a Nash equilibrium, yet nobody knows how to find one efficiently, and complexity theory explains why: the problem is complete for PPAD, a class of search problems whose solutions are guaranteed by a parity argument. This lesson explains what PPAD is, what the hardness results do and do not say, why correlated equilibria are easy by contrast, and what all of this means for multi-agent RL, where even coarse correlated equilibria become intractable once you insist on stationary policies.

What you’ll learn

  • Explain why NP-hardness is the wrong notion for total search problems such as Nash, define PPAD through END-OF-THE-LINE, and sketch why Nash lies in PPAD.
  • State the hardness results for exact and approximate Nash equilibria precisely, and prove that small-support approximate equilibria exist (Lipton, Markakis & Mehta).
  • Write correlated equilibrium as a linear program, solve it for the welfare-maximizing equilibrium of chicken, and contrast it with the NP-hardness of optimizing over Nash equilibria.
  • State the complexity of stationary equilibria in Markov games and the sample complexity of learning (coarse) correlated equilibria, and draw the implications for multi-agent RL.

Why not NP-hard? Total search problems and PPAD

Finding a Nash equilibrium is a search problem whose answer always exists (Nash's theorem) and can be checked quickly: given a candidate profile, compare each player's payoff with its best pure deviation. For two players with rational payoffs an equilibrium even has rational probabilities of polynomial bit length, because it solves a linear system on its supports. (With three or more players equilibria can be irrational, so one asks for an ε\varepsilon-approximate equilibrium with ε\varepsilon given as input.) Such problems form the class TFNP, total function NP.

NP-hardness is the wrong yardstick here. Megiddo and Papadimitriou (1991) observed that if a total search problem like Nash were NP-hard, then NP = coNP. Suppose a reduction maps each formula φ\varphi to a game GφG_\varphi such that any equilibrium of GφG_\varphi reveals whether φ\varphi is satisfiable. Then for an unsatisfiable φ\varphi, an equilibrium of GφG_\varphi, which always exists and is easy to check, would be a short certificate of unsatisfiability, putting coNP inside NP. The right question is which kind of existence argument the problem needs.

Nash belongs to PPAD because its existence proofs are path-following arguments in disguise. For two players, the Lemke–Howson algorithm (1964) starts from an artificial "equilibrium" at the origin, relaxes one best-response condition, and pivots along a path of almost-equilibria that cannot branch or return, so it must end at a genuine equilibrium: an END-OF-THE-LINE instance. Savani and von Stengel (2006) built games on which every Lemke–Howson path is exponentially long. For more players, Sperner's lemma and Brouwer's fixed-point theorem, also PPAD problems, play the same role.

PPAD-completeness is taken as strong evidence against a polynomial-time algorithm: Nash becomes exactly as hard as finding approximate Brouwer fixed points, which need exponentially many queries in the black-box model (Hirsch, Papadimitriou & Vavasis, 1989), and PPAD-hardness also follows from cryptographic assumptions (Bitansky, Paneth & Rosen, 2015). It is not a proof that P ≠ PPAD, which would imply P ≠ NP.

Check your understanding

Why do complexity theorists not expect Nash to be NP-hard?

  1. Because Nash is in P: Lemke–Howson runs in polynomial time
  2. Because NP-hardness applies only to problems with real-valued answers
  3. Because equilibria are always unique, unlike satisfying assignments
  4. Because a reduction from SAT would turn an equilibrium, which always exists and is easy to verify, into a short certificate that a formula is unsatisfiable, implying NP = coNP
Show the answer

D. Because a reduction from SAT would turn an equilibrium, which always exists and is easy to verify, into a short certificate that a formula is unsatisfiable, implying NP = coNP

Totality is the obstacle. A problem whose solutions always exist and are efficiently checkable cannot be NP-hard under the usual reductions unless NP = coNP (Megiddo & Papadimitriou, 1991). PPAD captures the specific reason solutions exist: a parity argument on a path.

Hardness of Nash, exact and approximate

The quasi-polynomial algorithm rests on a structural fact with a short probabilistic proof: some approximate equilibrium has small support, so brute-force search over small supports suffices.

DerivationProof by sampling
  1. Pr⁡[∣(Ay^)i−(Ay⋆)i∣≥ε2]≤2e−kε2/2\Pr\Big[\big|(A\hat{\mathbf y})_i-(A\mathbf y^\star)_i\big|\ge\tfrac\varepsilon2\Big]\le2e^{-k\varepsilon^2/2}

    Fix a Nash equilibrium (x⋆,y⋆)(\mathbf x^\star,\mathbf y^\star) and let v1=max⁡i(Ay⋆)iv_1=\max_i(A\mathbf y^\star)_i; every row in the support of x⋆\mathbf x^\star earns exactly v1v_1. Draw kk rows i.i.d. from x⋆\mathbf x^\star and kk columns i.i.d. from y⋆\mathbf y^\star, and let x^,y^\hat{\mathbf x},\hat{\mathbf y} be their empirical distributions. For each row ii, (Ay^)i(A\hat{\mathbf y})_i is an average of kk independent [0,1][0,1] variables with mean (Ay⋆)i(A\mathbf y^\star)_i, so Hoeffding's inequality gives

  2. 4n e−kε2/2<1⟺k>2ln⁡(4n)ε24n\,e^{-k\varepsilon^2/2}<1\quad\Longleftrightarrow\quad k>\frac{2\ln(4n)}{\varepsilon^2}

    The same bound holds for each column payoff (x^⊤B)j(\hat{\mathbf x}^\top B)_j. A union bound over the 2n2n events shows that with positive probability all rows and columns are estimated within ε/2\varepsilon/2, as soon as

  3. max⁡i(Ay^)i ≤ v1+ε2 ≤ x^⊤Ay^+ε\max_i(A\hat{\mathbf y})_i\ \le\ v_1+\tfrac\varepsilon2\ \le\ \hat{\mathbf x}^\top A\hat{\mathbf y}+\varepsilon

    On that event, x^\hat{\mathbf x} is supported on rows that earn v1v_1 against y⋆\mathbf y^\star, so x^⊤Ay^≥v1−ε/2\hat{\mathbf x}^\top A\hat{\mathbf y}\ge v_1-\varepsilon/2, while no row earns more than v1+ε/2v_1+\varepsilon/2 against y^\hat{\mathbf y}. Hence no row deviation gains more than ε\varepsilon; the column player's argument is symmetric:

  4. So an ε\varepsilon-equilibrium with kk-uniform strategies exists. There are at most nkn^k multisets per player, and each candidate pair is checked in polynomial time, which gives the nO(log⁡n/ε2)n^{O(\log n/\varepsilon^2)} algorithm. Note what the proof does not give: a way to find the right supports without trying them all. ■\blacksquare

Predict before you look

By the bound k>2ln⁡(4n)/ε2k>2\ln(4n)/\varepsilon^2, how many times larger must the support size kk be (approximately) when the number of actions grows from n=1,000n=1{,}000 to n=1,000,000n=1{,}000{,}000, with ε\varepsilon fixed?

Show the answer

1.8

The bound scales with ln⁡(4n)\ln(4n): ln⁡(4×106)≈15.2\ln(4\times10^6)\approx15.2 against ln⁡(4000)≈8.3\ln(4000)\approx8.3, a factor of about 1.8, although nn grew a thousandfold. The support grows only logarithmically; it is the 1/ε21/\varepsilon^2 factor and the exhaustive search over supports that make the algorithm slow.

Correlated equilibria are easy

A correlated equilibrium is a distribution σ\sigma over joint actions satisfying linear inequalities, one for each player ii and pair of actions ai≠ai′a_i\ne a_i': ∑a−iσ(ai,a−i)[ui(ai,a−i)−ui(ai′,a−i)]≥0\sum_{\mathbf a_{-i}}\sigma(a_i,\mathbf a_{-i})\big[u_i(a_i,\mathbf a_{-i})-u_i(a_i',\mathbf a_{-i})\big]\ge0. Finding one is therefore a linear program with ∏i∣Ai∣\prod_i\abs{\mathcal A_i} variables and ∑i∣Ai∣(∣Ai∣−1)\sum_i\abs{\mathcal A_i}(\abs{\mathcal A_i}-1) incentive constraints, solvable in time polynomial in the size of the game table, and any linear objective, such as total welfare, can be optimized at the same cost. Coarse correlated equilibria are an even smaller LP.

DerivationThe best correlated equilibrium of chicken
  1. row:  pCC(6−7)+pCD(2−0)≥0,pDC(7−6)+pDD(0−2)≥0column:  pCC(6−7)+pDC(2−0)≥0,pCD(7−6)+pDD(0−2)≥0\begin{aligned}\text{row: }&\ p_{\mathrm{CC}}(6-7)+p_{\mathrm{CD}}(2-0)\ge0,\qquad p_{\mathrm{DC}}(7-6)+p_{\mathrm{DD}}(0-2)\ge0\\ \text{column: }&\ p_{\mathrm{CC}}(6-7)+p_{\mathrm{DC}}(2-0)\ge0,\qquad p_{\mathrm{CD}}(7-6)+p_{\mathrm{DD}}(0-2)\ge0\end{aligned}

    Use the payoffs (6,6), (2,7), (7,2), (0,0) and variables pCC,pCD,pDC,pDDp_{\mathrm{CC}},p_{\mathrm{CD}},p_{\mathrm{DC}},p_{\mathrm{DD}}. For the row driver, "told C, obey" compares swerving with daring against the column actions that accompany C; "told D, obey" likewise. The column driver's constraints are the mirror images:

  2. s≥12⟹σ⋆=(pCC,pCD,pDC,pDD)=(12,14,14,0),welfare 10.5s\ge\tfrac12\quad\Longrightarrow\quad\sigma^\star=\big(p_{\mathrm{CC}},p_{\mathrm{CD}},p_{\mathrm{DC}},p_{\mathrm{DD}}\big)=\big(\tfrac12,\tfrac14,\tfrac14,0\big),\qquad\text{welfare }10.5

    Maximize total welfare 12pCC+9pCD+9pDC12p_{\mathrm{CC}}+9p_{\mathrm{CD}}+9p_{\mathrm{DC}}. The crash cell only costs welfare and tightens constraints, so pDD=0p_{\mathrm{DD}}=0. With s=pCD+pDCs=p_{\mathrm{CD}}+p_{\mathrm{DC}} and pCC=1−sp_{\mathrm{CC}}=1-s, welfare is 12−3s12-3s, and the two binding constraints pCC≤2pCDp_{\mathrm{CC}}\le2p_{\mathrm{CD}} and pCC≤2pDCp_{\mathrm{CC}}\le2p_{\mathrm{DC}} give 1−s≤2min⁡(pCD,pDC)≤s1-s\le2\min(p_{\mathrm{CD}},p_{\mathrm{DC}})\le s:

  3. Each driver earns 5.25, more than with Aumann's ⅓–⅓–⅓ light (5), the mixed Nash equilibrium (143\tfrac{14}{3}) or either pure one (an average of 4.5). At the optimum a driver told to swerve is exactly indifferent: it faces C with probability ⅔ and D with ⅓, and both actions pay 143\tfrac{14}{3}.

The Nash counterparts of such questions are much harder. Deciding whether a two-player game has a Nash equilibrium giving a player at least a given payoff, or total welfare at least a given amount, or more than one equilibrium, is NP-hard (Gilboa & Zemel, 1989; Conitzer & Sandholm, 2008). Choosing a good equilibrium, the problem a designer of multi-agent systems actually faces, is harder than finding one.

With many players the game table itself is exponentially large, but for many succinct classes (graphical, polymatrix and congestion games, among others) a correlated equilibrium can still be computed in polynomial time by the "ellipsoid against hope" (Papadimitriou & Roughgarden, 2008; made exact by Jiang & Leyton-Brown, 2015), although maximizing welfare over correlated equilibria is NP-hard for several of these classes. Decentralized dynamics separate the concepts too: no-swap-regret learners reach approximate correlated equilibria in a number of rounds polynomial in the game's description, whereas any uncoupled dynamics, and any communication protocol, needs exponentially many rounds in the number of players to reach even an approximate Nash equilibrium in the worst case (Hart & Mansour, 2010; Babichenko & Rubinstein, 2017).

Markov games: stationarity makes even CCE hard

One way to see why stationarity costs so much: in a turn-based game only one player moves in each state, so a "correlated" recommendation in a state is just that player's mixed action, and correlation buys nothing. A stationary Markov CCE is then essentially a stationary Nash equilibrium, a fixed point that must be consistent across all states at once, and fixed points are what PPAD is about. Without stationarity the fixed point unravels: backward induction over time steps solves one CCE linear program per stage, each against the already computed continuation values.

Learning from samples follows the same pattern. Value-based methods over joint actions pay ∏iAi\prod_iA_i, the curse of multiagency. V-learning (Jin, Liu, Wang & Yu, 2021) and its refinements avoid it by running an adversarial bandit learner per player and state: Song, Mei and Bai (2022) learn an ε\varepsilon-CCE of an mm-player episodic general-sum Markov game in O~(H5Smax⁡iAi/ε2)\tilde O\big(H^5S\max_iA_i/\varepsilon^2\big) episodes and an ε\varepsilon-CE in O~(H6Smax⁡iAi2/ε2)\tilde O\big(H^6S\max_iA_i^2/\varepsilon^2\big), with no dependence on the joint action space, while learning Nash equilibria in general can require a number of samples exponential in the number of players. The learned CCE/CE policies are history-dependent, not Markov: the price of tractability.

ProblemStatus
Nash of a two-player zero-sum matrix or Markov gamePolynomial: linear programming, Shapley value iteration
Nash of a two-player general-sum matrix gamePPAD-complete; no FPTAS unless PPAD ⊆ P
ε\varepsilon-Nash, constant ε\varepsilon, two playersQuasi-polynomial nO(log⁡n/ε2)n^{O(\log n/\varepsilon^2)}; not polynomial under an exponential-time hypothesis for PPAD
Best (max-welfare) Nash equilibriumNP-hard
CE or CCE, and the best CE, of a normal-form gameLinear program, polynomial in the table size
Stationary Markov CCE (hence Nash) of a general-sum Markov gamePPAD-hard, even two-player turn-based
Non-stationary Markov CCE; learning CCE/CE from samplesPolynomial; sample complexity scales with max⁡iAi\max_iA_i, not ∏iAi\prod_iA_i
For two-player zero-sum games with imperfect information, the sequence-form linear program (Koller, Megiddo & von Stengel, 1996) is polynomial in the size of the game tree, which is the starting point of the poker lessons.

Key takeaways

  • Nash is a total search problem, so NP-hardness would imply NP = coNP; its true home is PPAD, defined by END-OF-THE-LINE, and path-following algorithms like Lemke–Howson can take exponentially long.
  • Nash is PPAD-complete for two players and has no FPTAS unless PPAD ⊆ P; for constant ε\varepsilon the nO(log⁡n/ε2)n^{O(\log n/\varepsilon^2)} small-support search is essentially optimal under an exponential-time hypothesis, and polynomial-time algorithms reach ε≈13\varepsilon\approx\tfrac13 (2026 work reports slightly better).
  • Correlated equilibria, and the best one, are a linear program; optimizing over Nash equilibria is NP-hard. In chicken the welfare-maximizing CE gives 10.5 against at most 283\tfrac{28}{3} for any mixed or 9 for any pure Nash equilibrium.
  • In Markov games even approximate stationary CCE are PPAD-hard, while non-stationary Markov CCE are polynomial and CCE/CE can be learned with samples scaling in max⁡iAi\max_iA_i: tractability is bought with non-stationarity or history dependence.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

What guarantees that an END-OF-THE-LINE instance has a solution?

  1. A parity argument: the path leaving the source 0n0^n cannot cycle and the graph is finite, so it ends at a sink, another unbalanced vertex
  2. Brouwer's fixed-point theorem applied to the circuits
  3. The circuits are required to be acyclic
  4. A counting argument: more than half of all vertices are sinks
Show the answer

A. A parity argument: the path leaving the source 0n0^n cannot cycle and the graph is finite, so it ends at a sink, another unbalanced vertex

Every vertex has in- and out-degree at most 1, so the graph is a union of paths and cycles. The path that starts at the source must end somewhere, and its endpoint is a valid answer. The path may be exponentially long, which is why existence is easy to prove and hard to exploit.

Question 2

In a two-player normal-form game given by its payoff tables, which task is known to be solvable in polynomial time?

  1. Finding any Nash equilibrium
  2. Finding a Nash equilibrium that maximizes total payoff
  3. Deciding whether some Nash equilibrium gives player 1 at least a given payoff
  4. Finding a correlated equilibrium that maximizes total payoff
Show the answer

D. Finding a correlated equilibrium that maximizes total payoff

Correlated equilibria are the solutions of a linear program, so optimizing any linear objective over them is an LP too. Finding any Nash equilibrium is PPAD-complete, and optimizing over Nash equilibria or deciding properties of them is NP-hard.

Question 3

In chicken with payoffs (6,6), (2,7), (7,2), (0,0), what total payoff does the welfare-maximizing correlated equilibrium give the two drivers together?

  1. 12
  2. 10.5
  3. 10
  4. 283≈9.33\tfrac{28}{3}\approx9.33
Show the answer

B. 10.5

The LP's optimum puts ½ on (C, C) and ¼ on each of (C, D) and (D, C), for 0.5⋅12+0.25⋅9+0.25⋅9=10.50.5\cdot12+0.25\cdot9+0.25\cdot9=10.5. More weight on (C, C) would break the constraint pCC≤2pCDp_{\mathrm{CC}}\le2p_{\mathrm{CD}}: a driver told to swerve would then prefer to dare.

Question 4

Daskalakis, Golowich and Zhang (2023) showed that which problem is PPAD-hard?

  1. Computing an approximate stationary Markov coarse correlated equilibrium of a general-sum stochastic game, even with two players and turn-based moves
  2. Computing a non-stationary Markov coarse correlated equilibrium
  3. Computing the value of a two-player zero-sum Markov game
  4. Computing a correlated equilibrium of a normal-form game
Show the answer

A. Computing an approximate stationary Markov coarse correlated equilibrium of a general-sum stochastic game, even with two players and turn-based moves

Stationarity is what makes the problem a fixed point across states; in turn-based games correlation adds nothing, so stationary CCE inherit the hardness of stationary Nash equilibria. Non-stationary Markov CCE are polynomial, zero-sum values follow from Shapley's contraction, and normal-form CE are a linear program.

Further reading

  • C. H. Papadimitriou, "On the complexity of the parity argument and other inefficient proofs of existence," Journal of Computer and System Sciences 48(3), 498–532 (1994).
  • C. Daskalakis, P. W. Goldberg & C. H. Papadimitriou, "The complexity of computing a Nash equilibrium," SIAM Journal on Computing 39(1), 195–259 (2009).
  • X. Chen, X. Deng & S.-H. Teng, "Settling the complexity of computing two-player Nash equilibria," Journal of the ACM 56(3) (2009).
  • A. Rubinstein, "Settling the complexity of computing approximate two-player Nash equilibria," FOCS (2016).
  • C. Daskalakis, N. Golowich & K. Zhang, "The complexity of Markov equilibrium in stochastic games," COLT (2023).