Basic Solution Concepts and the Complexity of Nash Equilibria
Motivation: why a computer scientist cares about equilibria
Game theory models situations in which multiple participants interact or affect each other’s outcomes. The Internet is such a situation at enormous scale: thousands of ISPs routing each other’s traffic, millions of traffic streams sharing links, buyers and sellers in automated markets. None of these agents is controlled by a central designer, and each acts in its own interest.
Two questions run through this note, and they pull against each other:
- What is a stable outcome? We need solution concepts that formalize “no participant wants to unilaterally deviate.”
- Can that outcome be found? A solution concept that no algorithm can compute is a poor prediction of what agents will do.
ImportantWhy computability is a modelling prerequisite
A Nash equilibrium is above all a conceptual tool — a prediction about rational strategic behaviour in a context devoid of computation. So why should complexity matter?
Because if an equilibrium concept is not efficiently computable, much of its credibility as a prediction of the behaviour of rational agents is lost. There is no clear reason why a group of agents cannot be simulated by a machine. In Kamal Jain’s words: “If your laptop cannot find it, neither can the market.”
(One might object that market agents work in parallel and so are more powerful than ordinary algorithms — but parallelism is no cure for exponential worst case.)
Classical games, and where they arise on the Internet
The Prisoner’s Dilemma
ExamplePrisoners’ dilemma
Two prisoners each choose to confess or remain silent. Both silent: the authorities cannot prove the charges and each serves 2 years for minor offenses. Only one confesses: his term drops to 1 year and he testifies against the other, who gets 5. Both confess: each gets a break for cooperating and serves 4 years rather than 5.
Cost matrix (row player’s cost, column player’s cost):
| \ | Confess | Silent |
|---|---|---|
| Confess | ||
| Silent |
IntuitionThe tension
The only stable solution is that both confess: in each of the other three cases at least one player can switch from silent to confess and improve his own payoff. Yet a much better outcome for both is mutual silence — which is not stable even if carefully planned, since each player is tempted to defect and serve less time.
ExampleISP routing game — the same matrix
Two ISPs with separate networks exchange traffic through two peering points and . ISP 1 must send traffic from in its own domain to in ISP 2’s domain, and symmetrically for ISP 2.
ISPs behave selfishly: they send traffic to the closest peering point, since the ISP containing the destination must route it onward no matter where it enters. Peering point is closer — cost 1 to ISP 1 (one edge) versus 2 for the farther point . But is more directly on route: the total path through has length 4, through only 2.
So each ISP has two choices, one better selfishly () but worse for the other player. With “confess” and “silent”, the cost matrix is exactly the Prisoner’s Dilemma.
flowchart LR s1["s1 (ISP 1)"] -->|cost 1| C[Peering C] s1 -->|cost 2| S[Peering S] C -->|long path| t1["t1 (ISP 2)"] S -->|short path| t1
Many players: pollution and the commons
ExamplePollution game — Prisoner’s Dilemma with players
Each of countries chooses whether to pass pollution-control legislation. Control costs 3 to the country; each country that pollutes adds 1 to the cost of all countries (health costs and so on). Note : the cost of being responsible far exceeds the cost one pays for another’s irresponsibility.
If countries do not control, each of them incurs cost , and each of the other incurs . The only stable solution is that nobody controls pollution, costing each — whereas universal control would cost only 3 each.
IntuitionWhat the games so far have in common
In both, there is a unique optimal selfish strategy independent of what others do. No matter the opponents’ play, each player is better off playing it. The next game breaks this: players’ optimal strategies depend on what others play.
ExampleTragedy of the commons — shared bandwidth
players share a channel of capacity 1. Player ‘s strategy is to send units of flow — an infinite strategy set. If nobody gets any benefit; otherwise player ‘s value is
capturing the trade-off: benefit grows with your own share but deteriorates as total bandwidth rises.
Solving for stability. Fix player and let . Sending yields ; elementary calculus gives the optimum . A strategy vector is stable when all players play their optimal selfish strategy, i.e. for all , whose unique solution is
Why it is a tragedy. Player ‘s value is , so the total over all players is . But if the total bandwidth used were the total value would be — roughly times bigger. The users overuse the common resource so badly that its total value collapses. The pollution game has the same character, with the environment as the overused commons and cost rising from 3 to .
Coordination and anticoordination
ExampleBattle of the sexes
A boy and a girl choose between a baseball game and a softball game. The boy prefers baseball, the girl softball, but both prefer being together. Payoffs (girl, boy):
| Girl \ Boy | B | S |
|---|---|---|
| B | ||
| S |
The two mismatched outcomes are not stable — either player can improve by switching. The two matched outcomes are both stable; the girl prefers one and the boy the other. This is a coordination game: multiple outcomes can be stable.
ExampleRouting congestion game — an anticoordination game
Two traffic streams originate at proxy node and must reach the network through connection points or , with slightly closer. Both points congest easily, so sending both streams through the same one causes extra delay. Cost matrix:
| 1 \ 2 | A | B |
|---|---|---|
| A | ||
| B |
Good outcomes here require routing on different paths — the mirror image of Battle of the Sexes, where good outcomes required attending the same game.
When no stable outcome exists
ExampleMatching pennies
Each player chooses heads or tails. The row player wins if the pennies match, the column player if they do not ( = win, = loss):
| 1 \ 2 | H | T |
|---|---|---|
| H | ||
| T |
One can read this as a routing congestion variant in which the column player wants good service (different routes) while the row player wants only to disrupt him (same route). This game has no stable solution. Instead it seems best for players to randomize, to thwart the other’s strategy.
Formalizing a game
All the games above are one-shot simultaneous move games: all players simultaneously choose an action from their strategy set.
DefinitionSimultaneous move game
A set of players ; each player has a strategy set , selects , and we write for the strategy vector and for the set of all of them.
The vector determines each player’s outcome. To specify the game we give, for each player, a preference ordering on outcomes: a complete, transitive, reflexive binary relation on . Player weakly prefers to if either prefers it or considers them equally good.
The simplest way to specify preferences is to assign a value to each outcome, as a payoff or a cost . These are interchangeable: .
ImportantWhat makes this a game rather than optimization problems
Had we defined as a function of alone — player ‘s own strategy — we would have independent optimization problems. In a game, each player’s payoff depends not only on his own strategy but on the strategies chosen by all players. That coupling is the whole subject.
ConventionNotation for deviations
denotes the -dimensional vector of strategies played by everyone except , so is the same as with player ‘s component made explicit. Similarly and for a coalition .
Standard form versus compact representation
DefinitionStandard (matrix) form
Explicitly list all strategies and all utilities. Convenient for 2 players with few strategies each — as used above for the Prisoner’s Dilemma and Battle of the Sexes.
WarningStandard form is usually exponentially large
For most games we care about, the explicit representation is exponential in the natural description — possibly bigger, or infinite. Two separate reasons:
- Many players. The pollution game has players with 2 strategies each, hence strategy vectors, though its description is tiny.
- Many strategies per player. In routing games each player’s strategy space is all source–destination paths in the network. In the Tragedy of the Commons the strategy set is infinite, since any is a strategy.
Compact representations exploit structure: the payoff may depend only on how many players choose each strategy rather than exactly which (the pollution game), or on the total load on each edge of a chosen path, or only on the strategies of a few neighbours rather than all participants (see and graphical-games).
Solution concepts
Dominant strategy solution
DefinitionDominant strategy solution
A strategy vector is a dominant strategy solution if for each player and each alternate vector ,
i.e. each player has a unique best strategy independent of what the others do. The Prisoner’s Dilemma and the Pollution Game have this property.
WarningDominant does not mean good
A dominant strategy solution may not give an optimal payoff to any player — in both games above, all players’ payoffs can be improved simultaneously. Stability and efficiency are different things, and the gap between them is the subject of inefficiency-of-equilibria-introduction.
NoteVery few games have one — so we design games that do
Requiring a single dominant strategy per player is extremely stringent. Mechanism design (introduction-to-mechanism-design) turns this around: design games that have dominant strategy solutions leading to desirable outcomes.
Vickrey auction: designing for dominant strategies
ExampleSecond price auction
We must design an auction to sell a painting. Each bidder has value ; payoff 0 for not winning, for winning at price . Each player’s strategy is his sealed bid.
First price (highest bidder pays his bid) has no dominant strategy solution — a player’s best bid depends on what he believes about others. Deciding what to bid is a hard problem and may produce unpredictable behaviour (see ).
Vickrey’s mechanism awards the painting to the highest bidder but charges the second highest bid. This has the remarkable property that each player’s dominant strategy is to report his true value, independent of everyone else. Even with a very high true value he is in no danger of overpaying: if he wins, he pays no more than the second highest bid.
ImportantTwo further properties
- Socially optimal outcome. The painting goes to the bidder who values it most. This is often the larger goal: when governments auction wireless spectrum, the aim is typically not maximum profit but getting the spectrum to the companies with the best technology.
- Simplicity of play. In a dominant strategy game each player’s optimal strategy is independent of others’ choices, so one can implement any such game by asking all players for their valuation functions and letting the designer play on their behalf — the revelation principle.
CautionLimits of direct revelation
Valuation functions can be very complex, so direct revelation may require extensive, possibly exponential, communication. Direct revelation mechanisms also assume a central trusted party — cryptographic techniques let a group implement such a mechanism without one (see cryptography-and-game-theory).
Pure Nash equilibrium
DefinitionNash equilibrium
A strategy vector is a Nash equilibrium if for all players and all alternates ,
No player can improve his payoff by changing his own strategy, assuming all others stick to theirs.
IntuitionSelf-enforcing
Once the players are playing such a solution, it is in every player’s interest to stick to his strategy. This formalizes the stability we used informally in the Tragedy of the Commons and the Battle of the Sexes.
NoteRelation to dominant strategies
A dominant strategy solution is a Nash equilibrium, and if it is strictly dominating it is the unique one. But Nash equilibria need not be unique — coordination games have several.
WarningMultiplicity undermines prediction
Since dominant strategy solutions are Nash equilibria, Nash equilibria need not be optimal for the players. Worse, with multiple equilibria the payoffs can differ widely: a small change to the Battle of the Sexes payoffs leaves two stable solutions with one far better for both.
This makes Nash less convincing as a prediction: which equilibrium should we expect, and with independent play, how would players know which one to coordinate on? At least each is stable once proposed.
Mixed strategy Nash equilibrium
DefinitionMixed strategy
Enhance each player’s choices so he may pick a probability distribution over his strategy set. Players select independently, inducing a distribution over strategy vectors.
NoteRisk neutrality is an assumption
When outcomes are random, how does a player evaluate them? Would he prefer a small positive utility with high probability over a small chance of a large loss? For mixed Nash equilibrium we assume players are risk-neutral: they maximize expected payoff.
TheoremNash (1951)
Any game with a finite set of players, each having a finite set of strategies, has a Nash equilibrium of mixed strategies.
ExampleMatching pennies, resolved
With each player picking each strategy with probability , the expected payoff of each is 0 and neither can improve by a different randomization — a stable solution where no pure one existed.
WarningBoth finiteness hypotheses matter
Games with infinitely many players, or finitely many players with infinite strategy sets, may have no Nash equilibrium.
ExamplePricing game with no equilibrium, pure or mixed
Two sellers face three buyers. Buyers and can reach only seller 1 and seller 2 respectively; buyer can buy from either. All buyers want one unit and have budget (max value) 1. Sellers name prices ; buys from the cheaper, ties going to seller 1. No production costs, and sellers may not price-discriminate — one price per seller. Each player has uncountably many strategies.
No pure equilibrium. If , seller 2 undercuts with , earning more than 1 (both buyers); then seller 1 undercuts, and so on — so no equilibrium has . If , seller 2’s unique best response is (abandon , milk ); but then seller 1 raises his price. So fails too.
It is harder to argue, but there is no mixed equilibrium either.
Correlated equilibrium
ExampleTraffic light
Two drivers reach an intersection simultaneously. Crossing successfully pays 1, not crossing pays 0, and a crash costs :
| 1 \ 2 | Cross | Stop |
|---|---|---|
| Cross | ||
| Stop |
Three Nash equilibria: two letting exactly one car cross (payoff 1 each), and a mixed one in which both cross with probability and crash with probability . The first two are efficient but unfair; the third is fair but has low expected payoff () and a positive chance of a crash.
ImportantWhat correlation buys
In a Nash equilibrium players choose independently. In a correlated equilibrium a coordinator chooses strategies for both — but the chosen strategies must still be stable: each player must find it in his interest to follow the recommendation. Here the coordinator can randomly let one car cross; the one told to stop has payoff 0, but knows that crossing would cause a crash. A traffic light is a correlation device.
DefinitionCorrelated equilibrium (Aumann 1959)
A probability distribution over strategy vectors such that for all players and all ,
In words: if player receives suggested strategy , his expected profit cannot be increased by switching to some .
NoteNash is the uncorrelated special case
Nash equilibria are exactly the correlated equilibria whose distribution over is a product of independent per-player distributions. Correlation allows a strictly richer set of equilibria — and, as we will see, a computationally far friendlier one.
Computing equilibria: the two-player zero-sum case
DefinitionZero-sum game
A two-player game is zero-sum if the payoffs sum to zero for every strategy choice. It suffices to give the row player’s payoff matrix : his winnings and the column player’s loss.
Let be a Nash equilibrium pair of distributions, with value (row vector times matrix times column vector).
IntuitionThe key property: equilibria survive being announced
A Nash equilibrium is stable even if the players know each other’s distributions. So consider the row player publicly announcing a mixed strategy . The column player’s expected payoffs across his strategies are the entries of , and he will play where that is minimized. The row player should therefore maximize that minimum — and this is a linear program.
FormulaThe two linear programs
Row player’s maximum safe value:
Column player’s minimum safe value:
DerivationWhy
Clearly : the row player can guarantee , so he must win at least that much in any equilibrium. Conversely, an equilibrium is stable even if known to the opponent, so the column player must in fact be selecting the columns with minimum value in — giving . Hence , and the symmetric argument gives .
TheoremMinimax
Optimum solutions to the pair of linear programs above give probability distributions forming a Nash equilibrium of the two-person zero-sum game.
ProofNeither player can move
Let be optima; we argued . Playing this pair, the row player cannot increase his win because the column player’s strategy guarantees he loses no more than ; the column player cannot decrease his loss because the row player’s strategy guarantees winning . So the pair is at equilibrium.
∎
RemarkTwo routes to the same fact
The two programs are LP duals of each other. We established using the existence of a Nash equilibrium (Nash’s theorem); linear programming duality also implies it directly — which yields an independent proof that Nash equilibria exist in the zero-sum two-player case, without Brouwer.
Best response dynamics and learning
DefinitionImproving and best response
Given and player , a change from to is an improving response if , and a best response if maximizes . Repeatedly letting some player make an improving or best response move is perhaps the most natural game play.
| Game | Behaviour of best-response dynamics |
|---|---|
| Prisoner’s Dilemma, coordination game | Reaches a Nash equilibrium in a few steps |
| Tragedy of the Commons | Never reaches it in finitely many steps, but converges to it |
| Matching pennies | Cycles through all 4 strategy vectors forever |
IntuitionCycling can still be convergence of a sort
In matching pennies no pure equilibrium exists, yet the average payoff converges to 0 — the equilibrium payoff — and the frequencies with which the four strategy vectors are played converge to the equilibrium probabilities ( each).
NoteWhat is actually provable
Best-response behaviour is not strong enough to guarantee convergence in most games. Instead one considers improving-response “learning” strategies that react to the frequencies played so far rather than only the current play. For two-player zero-sum games such play does converge to Nash. In general, learning strategies do not converge to Nash equilibria — they converge to the larger region of correlated equilibria. See learning-and-regret-minimization.
Refinements and incomplete information
Games with turns and subgame perfection
Many games have multiple turns: card and board games, but also economic situations (a provider sets up a service at turn 1; users decide whether to use it at turn 2).
ImportantReducing turns to simultaneous moves, and what breaks
We can reduce such a game to a simultaneous-move game by having each player select a full strategy up front — a strategy for each turn, as a function of the state of the game. These get enormous: a full strategy for chess specifies a move for every possible sequence of previous moves. Games with turns are another example of a compactly represented game.
In this reduction the notion of Nash equilibrium becomes too weak, because the asymmetry between the players created by the order of moves is diminished.
ExampleUltimatum game
Seller offers a price ; buyer then reacts. The seller values the good at 0, so his payoff is on a sale and 0 otherwise; the buyer has value , so his payoff is if he buys and 0 if not. Under full information (the seller knows ) we expect the seller to offer just under and the buyer to buy: the first player leads and collects almost all the profit.
But there are many other Nash equilibria. The buyer’s strategy is a function of the offered price. “Buy if the price is under ” is one equilibrium. But so is “buy only if ” for any : it looks bad (why leave on the table when ?), yet given that buyer strategy, the seller’s best move is to offer exactly , since anything higher earns nothing. This pair is a Nash equilibrium for every .
DefinitionSubgame perfect equilibrium
Strengthens Nash by making the order of turns part of the definition: require that the strategy played is Nash even after any prefix of the game has already been played. This rules out the unnatural “buy only at ” threats, which are not credible once the price is actually on the table.
NoteWhere the machinery is
The formal model of a game with turns — the extensive form, with information sets modelling imperfect information — together with the algorithm for computing subgame perfect equilibria and the sequence form that avoids the exponential blowup of the strategic form, is developed in below.
Bayesian games
ImportantLimited information about other players
One source of limited information is not knowing other players’ properties and preferences, hence not knowing what strategies they will select. Think of bridge: players know the probability distribution of others’ cards but not the cards.
ExampleBayesian first price auction
In a first price auction all players bid, the highest wins and pays his bid. If valuations were common knowledge, the highest-value player would bid the second valuation and win at (essentially) the second-price outcome. But how should players bid without knowing others’ valuations? Their bids now depend on their beliefs.
In the standard setup, players draw valuations from independent distributions that are themselves public knowledge. When the distributions are independent and identical, the unique Nash equilibrium is a pleasing analogue of the second price auction: player with valuation bids the expected second valuation conditioned on being the maximum.
Cooperative games
Everything so far was non-cooperative: players deviate alone, and do not coordinate their moves in groups. Cooperative game theory concerns groups that coordinate.
Strong Nash equilibrium
DefinitionStrong Nash equilibrium (Aumann 1974)
Here utility is nontransferable, so for a coalition to be happy the utility of each member must not decrease. For a strategy vector and a set of players, a joint deviation is a vector with for all and strict for at least one. A strategy vector is strong Nash if no subset has a joint deviation.
WarningVery appealing, very rare
Strong Nash equilibria have a very strong reinforcing property — and very few games have them. A nice exception is the game version of the stable marriage problem, where the natural deviation is a pair who prefer each other to their current partners (mechanism-design-without-money). Coalitions of size 2 are also the natural unit of instability in network-formation-games.
Transferable utility: core and Shapley value
With transferable utility, the game becomes one of dividing a value or sharing a cost and the concern is fairness. Let be players and let each subset have cost (or value ). A cost-sharing assigns shares , required to be budget balanced: .
DefinitionThe core
A cost-share vector is in the core if no subset would decrease its shares by breaking away:
A violation of this inequality corresponds exactly to a set that benefits by seceding.
NoteThe algorithmic questions
Given , is there a cost-sharing in the core? How hard is it to find one, and to decide whether the core is nonempty? Both have been studied extensively for fundamental games. If the core is empty or intractable, one can relax the notion so that subsets secede only on substantial gains. See cost-sharing.
DefinitionShapley value
Based on marginal costs. Ordering as and writing , player ‘s marginal cost is — which of course depends on the order. The Shapley value assigns to the expected marginal cost over a uniformly random order of the players.
RemarkExistence versus core membership
One advantage of the Shapley value is that it always exists; however, it may not be in the core, even for games whose core is nonempty. It can be characterized as the unique cost-sharing scheme satisfying several different sets of axioms.
Markets and their algorithmic issues
[!MOTIVATION] Why general equilibrium theory needs an algorithmic version In a capitalist economy, crucial regulatory functions — stability, efficiency, fairness — are relegated to pricing mechanisms with little intervention, which is why general equilibrium theory occupies a central place in mathematical economics. From our viewpoint its shortcoming is that it is mostly a nonalgorithmic theory. With numerous new Internet markets and massive computational power available to run them, there is a need for an inherently algorithmic theory of market equilibria — which can also predict the repercussions of technological advances, new goods, or tax changes.
NoteThe classical result and the modern approach
Central to price stability is parity between demand and supply. With one good the equilibrium price is where the demand and supply curves intersect, and deviations are pushed back by market forces. The celebrated Arrow–Debreu theorem (1954) shows equilibrium prices exist in a very general model with multiple goods and agents.
Equilibria for several fundamental market models are optimal solutions to nonlinear convex programs, suggesting two algorithmic approaches: combinatorial algorithms, and convex-programming methods. See computing-market-equilibria.
An algorithm for a simple market
Setup. Divisible goods and buyers . Buyer has money ; good is available in amount . Buyer can access only a subset , is indifferent among goods in , and wants to maximize the total amount obtained. (An example: identical goods sold in different markets, each buyer reaching only some.) WLOG all , , each , and each good is wanted by someone.
Once prices are fixed, buyer is interested only in the cheapest goods in , say ; any allocation from exhausting her money is an optimal basket. Prices are market clearing if each buyer can be assigned an optimal basket with no surplus or deficiency of any good. For this market equilibrium prices are unique.
DefinitionNotation
Bipartite graph with edge when ; by assumption every vertex has nonzero degree. For , ; for , . The neighbourhood .
A uniform price is feasible if
and a set is tight (w.r.t. feasible ) if .
LemmaFeasibility characterizes sellability
A uniform price on all goods is feasible if and only if all goods can be sold so that each buyer gets goods she is interested in.
ProofMax-flow min-cut
( direction, easy) If for some , the goods in cannot all be sold at price — the interested buyers simply lack the money.
() Build network : direct the edges of from to with infinite capacity; add source with edges to each of capacity ; add sink with edges from each of capacity . Selling all goods corresponds to a feasible flow saturating all edges out of .
Suppose no such flow exists. By max-flow min-cut the minimum cut has capacity below . Let be the goods on the -side. Since edges for have infinite capacity, must also be on the -side, so the cut capacity is at least . If that is less than then , contradicting feasibility.
∎
ImportantThe algorithm
If a set is tight, then selling all of exactly exhausts the money of — so is a market clearing price for the goods in . The idea is to find such a set, allocate, and recurse.
- Start at (trivially feasible) and raise continuously, maintaining feasibility, until a nonempty set goes tight. Let be the smallest such and the maximal tight set (which is unique).
- Finding them: is the largest at which remains a min-cut in , so binary search works. Then compute the set of nodes reaching in the residual graph — the -side of the maximal min-cut — and set .
- Fix the prices of at , compute a max-flow at , and use it to allocate to , spending all of .
- Remove and , initialize the remaining prices to , and raise until a new set goes tight. Terminate when all goods are priced.
LemmaThe recursion is well posed
is feasible for the problem restricted to and , and in the induced subgraph all vertices have nonzero degree.
ProofFlow through the remaining goods must exit through the remaining buyers
In the max-flow at , the flow through completely uses up the capacity of the edges from to . So all flow through must exit via , and the first claim follows from the previous lemma. A good must have nonzero degree into ; and each buyer has nonzero degree in with no edges to , hence nonzero degree into .
∎
TheoremCorrectness and running time
The algorithm computes equilibrium prices and allocations in polynomial time.
ProofMonotone prices across iterations
At termination all goods are priced and hence fully sold, and by the second claim of the lemma every buyer lies in the neighbourhood of some tight set found, so every buyer is allocated goods for her money.
Each buyer gets an optimal bundle. Since was the maximal tight set at , prices must strictly rise before a new set goes tight — so prices are monotone increasing across iterations and every good in is priced above . Hence each buyer in , allocated only from , received the cheapest goods available to her. Induction completes the argument.
Time. At most iterations, each dominated by finding and . Since has polynomial-sized integer numerator and denominator, the binary search takes polynomial time.
∎
Bimatrix games and the best response condition
Define NASH to be: given a game in strategic form, find a Nash equilibrium. Since it calls for a real-valued distribution per player, it looks prima facie like a problem in continuous mathematics. A little thought shows it is essentially combinatorial.
ConventionNotation for two-player games
Let be a bimatrix game: and are payoff matrices to the row player 1 and column player 2, who simultaneously choose a row and a column and receive and .
Payoffs are risk-neutral utilities, so preferences are invariant under positive-affine transformations — hence and may be assumed nonnegative with rational (or integer) entries when they are algorithmic input. All vectors are column vectors; is all-zeros, all-ones, and inequalities like hold componentwise.
It is useful to keep the two pure strategy sets disjoint:
so , and . The support of a mixed strategy is the set of pure strategies with positive probability.
TheoremBest response condition
Let be mixed strategies. Then is a best response to if and only if for all ,
ProofThe payoff is the maximum minus a sum of non-negative losses
is player 1’s expected payoff when playing row . Then
So , since and for all ; and iff implies .
∎
IntuitionTwo readings of the same fact
Geometric: is linear in , so if it is maximized on a face of the simplex of mixed strategies it is maximized on every vertex (pure strategy) of that face, and hence on every convex combination of them.
Algorithmic: it states a finite, easily checked condition about the player’s pure strategies rather than about the infinite set of mixed strategies. All pure strategies in the support must have maximum, and hence equal, expected payoff — which gives equations for the opponent’s probabilities.
IntuitionThe subtle nature of mixing
Players combine pure best responses — instead of just playing one of them, for the same utility — in order to create for the other players a range of best responses that will sustain the equilibrium. You do not randomize for your own sake; you randomize to keep your opponent indifferent.
A worked example
ExampleThe running example
with and .
Pure equilibrium. Row 1 together with column 4 — i.e. , a support of size 1 each.
Why any other equilibrium must be mixed on both sides. Every pure strategy of a player has a unique pure best response of the other, so in any other equilibrium each player mixes at least two pure strategies.
DerivationThe two mixed equilibria, and one support pair that fails
Support for player 1. Player 1 makes player 2 indifferent by solving and , giving . In turn player 2 must make player 1 indifferent between rows 1 and 2: , giving . Then , so the best response condition holds — row 3 is not a best response and correctly has probability 0.
Support . A second equilibrium is with and . Again the support contains only rows where is maximal.
Support fails, for two separate reasons. Player 2 would need to equalize rows 1 and 3 — but then , so rows 1 and 3 tie without being maximal. And making player 2 indifferent via with gives , — not a probability vector.
Nondegeneracy and support enumeration
DefinitionNondegenerate game
A two-player game is nondegenerate if no mixed strategy of support size has more than pure best responses. (Violated, for instance, if some pure strategy has two pure best responses.)
CorollaryEqual support sizes
In any Nash equilibrium of a nondegenerate bimatrix game, and have supports of equal size — immediate from the best response condition.
IntuitionWhy support testing can restrict to equal sizes
In the example, we need not consider an giving all three rows positive probability, since player 1 would have to be indifferent among all three. But is already uniquely determined by equalizing two rows, after which the third row’s payoff differs. That is the typical, nondegenerate case.
AlgorithmEquilibria by support enumeration
Input: a nondegenerate bimatrix game. Output: all Nash equilibria.
For each and each pair of -sized subsets of and , solve
and check , and the best response condition for both.
NoteWhen the equations misbehave
No solution means no equilibrium for that support pair. Nonunique solutions occur only for degenerate games, since a linear dependency would let us shrink the support — see .
Supports in general, and the rationality divide
ImportantNASH is a search for supports
Once one support per player is identified, the mixed strategies follow by solving algebraic equations (linear, for two players): for each player with support size we have variables, one equation saying they sum to 1, and equations saying the expected utilities are equal. Solving equations in unknowns yields the probabilities; if they are real, nonnegative, and the utility expectation is maximized at the support, we have a Nash equilibrium.
ExampleA symmetric game
A game is symmetric if . Take
Consider both players playing — a symmetric equilibrium. (A variant of Nash’s proof shows every symmetric game, with any number of players, has a symmetric equilibrium; it may have non-symmetric ones too.) Against that mix the utilities of the three strategies are , so every strategy in the support (2 and 3) is a best response and this is indeed a Nash equilibrium.
The oddity: from player 1’s point of view, playing just 2, or just 3, or any mixture, is equally beneficial. The only advantage of the precise mix is that it motivates the other player to do the same.
NoteTwo players are special: rationality
With integer utilities (as makes sense computationally), two-player equilibria necessarily have rational probabilities, being solutions of linear systems with integer coefficients. This fails in general: Nash’s original paper includes a beautiful three-player poker game whose only equilibrium is irrational. This distinction resurfaces at every stage below — most sharply in .
NoteWhy two players are tractable at all
Two-player games can be studied with polyhedra, because each player’s expected payoffs are linear in the other player’s mixed strategy probabilities. With three or more players the expected payoffs are products of the others’ probabilities, giving polynomial equations that need entirely different methods.
Most algorithms proposed over the past half century are combinatorial and work by seeking supports — and none is known to be efficient.
Is NASH NP-complete?
WarningNo — and the reason is instructive
NASH is a very different kind of intractable problem, for which NP-completeness is the wrong concept. The basic reason: every game is guaranteed to have a Nash equilibrium. In a typical NP-complete problem such as satisfiability, the sought solution may or may not exist, and NP-complete problems owe much of their difficulty and their susceptibility to reductions to precisely that dichotomy.
ProofWhy a reduction from SAT would collapse NP and coNP
Suppose NASH were NP-complete via a reduction from satisfiability: an efficiently computable mapping formulae to games such that is satisfiable iff any Nash equilibrium of satisfies some easy-to-check property . Then given any unsatisfiable we could guess a Nash equilibrium of and check that it fails — an NP certificate for unsatisfiability, implying .
∎
NoteWhy the TSP is not a counterexample
The travelling salesman problem always has a solution too, but that solution (the optimum tour) is hard to verify. To enter the realm of NP-completeness such optimization problems are first turned into decision problems — “is there a tour of length ?” — which is much closer to satisfiability.
NASH versus Brouwer
ImportantExistence comes from a nonconstructive theorem
Nash’s proof reduces the existence of a mixed equilibrium to Brouwer’s fixpoint theorem: every continuous from the -dimensional unit ball to itself has a point with . Brouwer’s theorem is well known for its nonconstructive nature, and finding a Brouwer fixpoint is itself a hard problem — again in the specialized sense, since a solution is guaranteed there too.
Is there a reduction in the opposite direction, making NASH exactly as hard as finding a Brouwer fixpoint? Yes — and that is a useful alternative way of understanding the main result of this note.
Generalizations are NP-complete
TheoremGilboa and Zemel (1989)
The following are NP-complete, even for symmetric two-player games in strategic form. Does the game have
- at least two Nash equilibria?
- a Nash equilibrium in which player 1 has utility at least a given amount?
- a Nash equilibrium in which the two players have total utility at least a given amount?
- a Nash equilibrium with support of size greater than a given number?
- a Nash equilibrium whose support contains strategy ?
- a Nash equilibrium whose support does not contain ? — and so on.
ProofSketch (Conitzer and Sandholm 2003)
Reduction from satisfiability. Construct a symmetric game whose strategies are all literals and whose Nash equilibria are all truth assignments: choosing for each of the variables either it or its negation and playing it with probability gives a symmetric equilibrium, and all equilibria are of this sort. Add a new pure equilibrium with lower utility, where is a default strategy. Then add one strategy per clause, such that the strategy for clause is attractive against a given truth assignment only if all three literals of are contradicted. Once a clause becomes attractive it destroys the assignment equilibrium and makes play drift to . The equilibria of the resulting game are precisely plus all satisfying assignments, from which every item above follows easily.
∎
IntuitionThe pattern
Twist NASH in any way that deprives it of its existence guarantee and NP-completeness comes into play almost immediately. The guaranteed existence is exactly what shields the pure search problem from this theory — and exactly what forces us to a different complexity class.
Equilibria via labeled polytopes
Support enumeration is crude. To identify the possible supports systematically we use best response polytopes, which express the best-response inequalities and the nonnegativity constraints directly.
DefinitionPolyhedral vocabulary
An affine combination of is with ; a convex combination additionally has . Points are affinely independent if none is an affine combination of the others; a convex set has dimension iff it has , but no more, affinely independent points.
A polyhedron in is ; it is full-dimensional if it has dimension , and a polytope if bounded. A face is where holds throughout ; a vertex is the unique element of a 0-dimensional face, an edge a 1-dimensional face, a facet a face of dimension .
Any nonempty face is obtained by turning some defining inequalities into equalities — the binding inequalities. A facet is characterized by a single irredundant binding inequality (one that cannot be dropped without changing the polyhedron). is simple if no point lies on more than facets.
The best response polyhedra
FormulaBest response polyhedra
IntuitionThe upper envelope
is the set of player 2’s mixed strategies together with the upper envelope of expected payoffs to player 1: the inequalities say is at least the expected payoff of each pure strategy of player 1, and , say is a probability vector.
For the running example, is the set of triples with , , , , . Its facets are labelled either by player 1’s strategies — indicating his best responses and payoff, e.g. row 1 is a best response when — or by player 2’s own strategies , indicating .
DefinitionLabels
A point of has label if the th defining inequality is binding: for that is (meaning is a best response to ), and for it is . Correspondingly has label if , and label if .
A pair is completely labeled if every label in appears on one side or the other.
ImportantCompletely labeled Nash equilibrium
A missing label would mean a pure strategy — say of player 1 — that does not have probability zero () and is not a best response (), since inequality is binding in neither polyhedron. That is exactly a violation of the best response condition. Conversely, if every label appears, each pure strategy is either a best response or has probability zero — so and are mutual best responses.
Normalizing away the payoff variables
DerivationDividing through by the payoff
Assume
A^\top \text{ and } B \text{ are nonnegative with no zero column} \tag{$\ast$}
which guarantees the payoffs are positive. (We could simply assume , but zero entries are useful — e.g. the identity matrix — and even negative entries are fine as long as the upper envelope stays positive.)
Divide each inequality by and rename as ; do the same for with . This gives full-dimensional polytopes
In effect we have normalized the expected payoffs to 1 and dropped the normalization constraints on and . Nonzero and are rescaled back by and — and those scaling factors are precisely the expected payoffs to the other player.
NoteProjective transformation
is a bijection , and similarly for . These maps are not linear — they are projective transformations — but they preserve face incidences, hence labels. So an equilibrium is a completely labeled pair .
ExampleVertices of the running example
has vertices (labels 4, 5), (labels 3, 4), (labels 2, 3), (labels 1, 2), (labels 1, 5).
has vertices (labels 1, 2, 3), (2, 3, 4), (3, 4, 5), (1, 3, 5), (1, 4, 5), (1, 2, 4).
The three completely labeled vertex pairs are — the pure equilibrium — and the mixed equilibria and . Vertices , of and of belong to no equilibrium.
Note the vectors alone display only the player’s own labels (unplayed own strategies); the other player’s best-response information matters just as much.
ImportantNondegeneracy, geometrically
The game is nondegenerate iff no point of has more than labels and no point of has more than labels. Then both are simple polytopes. Only vertices can carry (resp. ) labels — a non-vertex with labels would lie on a higher-dimensional face, whose vertices would carry additional labels. So only vertices need be inspected.
WarningSimple is not the same as nondegenerate
Even with simple, the game can be degenerate if the description is redundant: some inequality omittable yet sometimes binding. This happens when a player has a pure strategy weakly dominated by, or payoff equivalent to, some mixed strategy. Neither pathology occurs for generic payoffs — which is the geometric content of the nondegeneracy assumption. (A strictly dominated strategy may occur generically, but its inequality is never binding, so it causes no degeneracy.)
AlgorithmEquilibria by vertex enumeration
For each vertex of and each vertex of : if is completely labeled, output .
NoteWhy this beats support enumeration
With there are roughly support pairs to test, but by the upper bound theorem for polytopes and have fewer than vertices — less work, assuming complementary pairs are found efficiently.
Enumerating vertices is standard computational geometry. The elegant lrs (lexicographic reverse search) algorithm fixes a known vertex — here , maximizing — and a unique simplex pivoting rule (e.g. Bland’s least-index rule), which generates from every vertex a unique path to , defining a directed tree rooted there. The algorithm explores that tree by depth-first search, reverting the simplex steps.
The Lemke–Howson algorithm
Support and vertex enumeration find all equilibria. The Lemke–Howson (LH) algorithm finds one, and provides an elementary proof that equilibria exist. It follows a path of vertex pairs of starting at and ending at a Nash equilibrium, alternately following edges of one polytope while holding the vertex of the other fixed.
DefinitionDropping and picking up labels
By nondegeneracy a vertex of carries labels and an edge is defined by labels. Dropping label at a vertex means traversing the unique edge carrying all its labels except . The endpoint has a new label, said to be picked up.
In the example, dropping label 2 at vertex of gives the edge defined by labels 1 and 3, joining to — and label 5 is picked up at .
ImportantThe artificial equilibrium
is completely labeled, since every pure strategy has probability zero — but it is not a Nash equilibrium, because the zero vector cannot be rescaled to a mixed strategy. It is the artificial equilibrium, and it is the algorithm’s starting point.
AlgorithmLemke–Howson
Input: a nondegenerate bimatrix game. Output: one Nash equilibrium.
Choose , the missing label. Set and drop (from if , from if ). Loop: let be the label picked up at the new vertex pair. If , terminate with Nash equilibrium , rescaled. Otherwise drop in the other polytope and repeat.
ExampleTracing the path with missing label
Start at . Drop label 2 in : traverse the edge (labels 1, 3) from to , picking up 5. Now at all labels but 2 are present, and 5 is duplicate (a label of both and ).
Drop 5 in , holding fixed: edge from to , picking up 3, now duplicate. Drop 3 in : the edge defined by labels 1 and 5 joins to , picking up 4. Drop 4 in : the edge from to , picking up 2 — the missing label. So is completely labeled and is the equilibrium found.
Path: .
IntuitionWhat the steps mean in game terms
The first two steps amount to taking a pure strategy (the missing label , say of player 1) and its best response , giving a pure pair . If that is not already an equilibrium, the best response to is not — so is duplicate and now gets positive probability alongside .
In general a duplicate label is either a new best response that is about to receive positive probability, or a pure strategy whose probability has just become zero, so it need no longer be maintained as a best response and the path moves away from that best-response facet.
ProofTermination
has finitely many vertex pairs, and the next pair on the path is always unique. Hence no pair can be revisited — revisiting would have provided an extra way to proceed in the first place. So the path must end, and it can only end at a completely labeled pair.
∎
ImportantThe path lives on the product polytope
Formally the LH path consists of the pairs that are -almost completely labeled: every label in appears on one side. For fixed , these vertices and edges form a graph of degree 1 or 2 — hence a disjoint union of paths and cycles. The endpoints of the paths are exactly the completely labeled pairs: the Nash equilibria and the artificial equilibrium.
CorollaryOdd number of equilibria
Since the number of path endpoints is even, a nondegenerate bimatrix game has an odd number of Nash equilibria.
NoteStarting elsewhere, and varying
LH can start at any equilibrium. In the example with , starting at merely retraces the path back to ; starting at gives (label 5 duplicate) and then — this path cannot reach , which is already an endpoint of the other path. So the two LH paths for expose all three equilibria. Varying the missing label also helps: leads to , from which finds .
WarningSome equilibria are elusive
Not every equilibrium is LH-reachable. In the symmetric game
every equilibrium is symmetric, with equal to , or . Only the first is found by LH, for any missing label (by symmetry it suffices to check ).
The symmetric case
TheoremReduction to symmetric games
There is a polynomial reduction from NASH to symmetric NASH (given a symmetric game, find a symmetric equilibrium). So the symmetric case is as hard as the general one.
ProofStack the two matrices into one symmetric game
Given — WLOG all entries positive, since adding a constant changes nothing — consider the symmetric game
and let be a symmetric equilibrium (with the first components). For to be a best response to itself, must be a best response to and to — so is a Nash equilibrium of the original game.
∎
NoteTwo open questions in the neighbourhood
It is not known how hard it is to find any Nash equilibrium in a symmetric game (could be easier than NASH), nor to find a non-symmetric equilibrium in a symmetric game (could be easier or harder).
For a symmetric game the two polytopes collapse into one, , and strategy is represented at if or .
DerivationA fully-represented nonzero vertex is a symmetric equilibrium
Suppose all strategies are represented at a vertex . Then for every with we must have . Define : these are well defined, nonnegative and sum to 1, and every strategy in the support is a best response — the necessary and sufficient condition. So is a symmetric Nash equilibrium.
For the game above with , the only fully represented vertices are and , the latter normalizing to .
The single-polytope LH path. Fix strategy and let be the vertices where all strategies except possibly are represented. contains ; among its neighbours exactly one has and the rest zero, giving . At some strategy is doubly represented (both and ), so relaxing either inequality gives two neighbours in — one is , the other a new — and so on. No vertex repeats (three neighbours via one doubly-represented strategy is impossible) and is finite, so the path ends at a vertex of other than 0 with no doubly represented strategy: a symmetric Nash equilibrium.
ImportantThis is the form the complexity argument uses
The section below dissects exactly this single-polytope existence proof: a directed graph on combinatorial objects, every vertex of indegree and outdegree at most one, with a known standard source.
Integer pivoting
LH follows polyhedron edges, implemented algebraically by pivoting as in the simplex method. Storing arbitrary-precision integers gives an implementation with no numerical error.
FormulaSlack form of the polytopes
With nonnegative slacks and , and iff
A binding inequality corresponds to a zero slack variable, so is completely labeled iff for all and for all — the orthogonality (complementarity) condition
DefinitionBasic solutions and pivoting
A basic solution picks basic columns of and of , setting the other (nonbasic) variables to zero. A basic feasible solution defines a vertex, and its labels are the nonbasic columns. Pivoting exchanges one nonbasic (entering) and one basic (leaving) variable while preserving feasibility.
DerivationWorked pivots along the edges
The system for the running example is
with basic variables (the basic columns form the identity, so the basic solution is just the right-hand side).
Dropping label 2 makes enter. Increasing it gives and , nonnegative only while . That is the minimum ratio over rows with positive coefficient of the entering variable, of right-hand side over coefficient. (Only positive coefficients bound the increase, and at least one exists since is bounded.) So leaves — giving the label 5 that is picked up — and the boxed 6 is the pivot element.
Integer pivoting. Multiply every non-pivot row by the pivot element:
then subtract multiples of the pivot row to clear the pivot column:
The basic columns now form the identity times 6, the pivot element just used, and all entries are integers.
Next step. In the other system enters and leaves (duplicate label 3), so enters here. The ratio test — using only multiplications, no divisions — compares against ; the former is tighter, so leaves, with pivot element 16. Multiplying and subtracting gives
The key feature: the second row’s coefficients are all divisible by the previous pivot element 6, and dividing gives
This is the final system: the duplicate label 4 (the departed ) is dropped in , where the missing label 2 is picked up. The basic solution is vertex with , and labels 1, 4, 5.
ImportantWhy integer pivoting is exact and efficient
The maintained tableau is always an equivalent integer system
where is the inverse of the basis matrix times its determinant — i.e. the matrix of integer cofactors (a cofactor being the determinant with that element’s row and column deleted). Each entry has a bounded number of digits — at most a factor more than the original — so integer pivoting is polynomial time.
It is superior to rational arithmetic, whose cancellation requires gcd computations that consume the bulk of the running time. Only the final fractions, like , may need cancelling.
Degenerate games
LH path uniqueness requires nondegeneracy. In a degenerate game a vertex may carry more than labels, which as a basic feasible solution means some basic variable is also zero — the result of a pivot where the leaving variable was not unique.
ExampleWhere LH breaks
Modify the running example to :
is unchanged, but in vertex has merged with , so now carries the four labels 2, 3, 4, 5.
With missing label 1, the first step goes from to picking up both 4 and 5. Dropping 4 in happens to find the equilibrium — no problem. But dropping 5 moves to , picking up 3; and neither of the two edges of leaving the facet labelled 3 (from to , and to ) is 1-almost completely labeled together with . The algorithm fails there.
ImportantLexicographic perturbation
Resolve degeneracy as in linear programming: perturb to . After any number of pivots the system reads
A basic variable that is zero in the unperturbed solution (a zero row of ) is positive for small enough iff the first nonzero entry of that row of is positive — the invariant maintained by a lexico-minimum ratio test.
No actual perturbation is required: is already stored in the tableau as the matrix of coefficients of .
WarningDegenerate games can have infinite equilibrium sets
In the modified example, vertex of (the pure strategy ) together with the entire edge of joining and forms a component of equilibria, with player 2 playing for any . But this component is just the convex combination of the extreme equilibria and .
TheoremEquilibria of a general bimatrix game
Let . Then rescaled is a Nash equilibrium iff there are sets of vertices of and of vertices of with , , and every completely labeled.
NoteWhy, and what it gives
Labels are preserved under convex combinations, and every face of or carries the labels of its vertices, which are vertices of the whole polytope.
The resulting complete description: build a bipartite graph on the vertices of and whose edges are the completely labeled pairs. Its cliques (maximal complete bipartite subgraphs) give sets whose union is the set of all Nash equilibria — the maximal Nash subsets. These may overlap; their connected unions are the (topological) components of Nash equilibria.
Extensive games and the sequence form
The problem. A game in strategic form is a static description in which players act simultaneously. An extensive game is the detailed dynamic description — the fundamental model of dynamic interactions, generalizing repeated games, multistage games, and games of incomplete information.
DefinitionExtensive game
A directed tree. Nodes are game states — trees rather than general graphs, so that a state encodes the full history of play. Exactly one player moves at each state, along an outgoing edge. Play starts at the root and ends at a leaf, where each player receives a payoff; non-terminal nodes are decision nodes, whose outgoing edges are the available moves.
Decision nodes are partitioned into information sets: all nodes in one belong to the same player and offer the same moves. When a player moves he knows only the information set, not which node he is at. In a game of perfect information all information sets are singletons. Write for player ‘s information sets, for one of them, and for its move set.
flowchart TD root(( )) -->|L| n2(( )) root -->|R| leafR["3, 3"] n2 -->|l| n3(( )) n2 -->|r| n4(( )) n3 -->|S| l1["2, 2"] n3 -->|T| l2["0, 3"] n4 -->|S| l3["5, 6"] n4 -->|T| l4["6, 1"]
ExampleThe running extensive game
Player 1’s two information sets have move sets and ; player 2’s has . A play might be , then , then , giving payoffs 5 and 6. By definition move is the same move whether player 2 chose or , because player 1 does not know the state in his second information set — which is exactly what the oval around those two nodes means.
DefinitionChance, behavior and pure strategies
Chance is an additional player 0, receiving no payoff and playing a known behavior strategy; its information sets are singletons.
A behavior strategy of player gives a probability distribution on for every . A pure strategy picks each move deterministically, so it is a tuple — e.g. for player 1 above.
Tabulating all pure strategies and the resulting expected payoffs gives the strategic form of the extensive game.
IntuitionMixed versus behavior strategies
A mixed strategy draws a complete plan of action up front and plays it. A behavior strategy “delays” each random choice until the information set is actually reached. A behavior strategy is a special mixed strategy, one in which the moves at different information sets are chosen independently.
WarningThe strategic form is exponential in the tree
This is why we need better representations. Three successive reductions follow: subgames (which help only when players are often informed), the reduced strategic form (smaller, still possibly exponential), and the sequence form (linear in the tree size).
Subgames and subgame perfection
DefinitionSubgame
A subtree of the game tree that includes all information sets containing any of its nodes. In the example there is a subgame rooted at player 2’s decision node; the nodes of player 1’s second information set are not roots of subgames, since player 1 does not know he is in the respective subtree.
ExampleSolving the example by subgames
That subgame has player 2 moving first without player 1 learning the move — so it is equivalent to a simultaneous-move game. (Conversely, this is how any strategic-form game is represented in extensive form.) Its unique equilibrium mixes and with probability each, with payoffs and .
Replacing the subgame by leaves a trivial game where is optimal. So player 1 playing with probabilities and player 2 playing is the game’s unique subgame perfect equilibrium — one inducing a Nash equilibrium in every subgame.
AlgorithmSubgame perfect equilibrium
Input: an extensive game. Output: a subgame perfect equilibrium.
Consider each subgame in increasing order of inclusion; find a Nash equilibrium of it; replace the subgame by a new terminal node carrying the equilibrium payoffs.
ImportantThe perfect-information special case
With perfect information every node roots a subgame, so the algorithm becomes the well-known linear-time backward induction (sometimes “Zermelo’s algorithm”). Each subgame then involves only one player, for whom a deterministic move is optimal — proving that every perfect-information game has a subgame perfect equilibrium in pure strategies. With imperfect information, mixing may be required, as the example shows.
The reduced strategic form
ExampleOverspecified plans
Not all games have nontrivial subgames, and one may want non-subgame-perfect equilibria too. In the example, is a pure equilibrium: after , player 2 never moves and receives constant payoff 3, so she is indifferent. It is not subgame perfect, since is not optimal against if her information set were reached. In fact she may randomize, and as long as has probability at least , remains a best response.
The pure strategies and are overspecific: after , player 1’s second information set is unreachable, so the two payoff rows are identical for both players.
DefinitionReduced strategic form
Moves at information sets unreachable because of the player’s own earlier move are identified. Here that yields with an arbitrary move.
NoteTwo consequences
It is degenerate by construction. The reduced strategic form of the example is exactly the degenerate bimatrix game of the previous section (with as top row) — degenerate even though the extensive payoffs are generic, because player 2 receives constant payoff 3 against .
It cannot express subgame perfection. One cannot say whether is subgame perfect, since player 1’s behavior at his second information set is unspecified. But splitting probability between two payoff-identical rows of the full form is computationally arbitrary, so there is no point running an algorithm on the unreduced form. If you want subgame perfection, use the algorithm above — at each of its stages the game has no further subgames, and its equilibria can be found via the reduced strategic or sequence form.
WarningStill exponential
A player may have parallel information sets not distinguished by his own earlier moves — these arise when he receives information about another player’s move. Combinations of moves at parallel information sets cannot be reduced, giving multiplicative growth. The reduced strategic form can still be exponential in the tree size.
Sequences and realization plans
DefinitionSequences and perfect recall
A sequence is player ‘s moves (ignoring other players’) on the unique path from the root to node ; the empty sequence is . For the leftmost leaf above, that is for player 1 and for player 2.
Player has perfect recall iff for all , — he gains no extra information about his position by remembering his own earlier moves. Then the sequence leading to any node of is written . We assume perfect recall throughout.
Every is either or uniquely for its last move at , so
which is linear in the size of the game tree.
FormulaRealization probabilities
Under behavior strategy (with , ), the realization probability of a sequence is
An information set is relevant under if , otherwise irrelevant — agreeing with the irrelevant sets of the reduced strategic form.
WarningWhy we cannot just optimize over behavior probabilities
The expected payoff to player 1 is
which is nonlinear in the , since each is a product. The fix is to treat the realization probabilities themselves as the variables.
DefinitionRealization plan
For a mixed strategy (choosing pure strategy with probability ), the realization probability of is
where is 1 if prescribes all moves in and 0 otherwise. The map on is the realization plan of ; similarly for player 2.
TheoremCharacterization of realization plans
A realization plan of a mixed strategy of player 1 satisfies and
Conversely any with these properties is the realization plan of a behavior strategy, unique except at irrelevant information sets.
TheoremRealization equivalence
Two mixed strategies of player are realization equivalent — they reach every node with the same probability, against any strategy of the other player — iff they have the same realization plan.
CorollaryKuhn’s theorem
For a player with perfect recall, any mixed strategy is realization equivalent to a behavior strategy.
ImportantWhat the compression achieves
A realization plan carries all the strategically relevant information of a mixed strategy, via the linear map above. The simplex of mixed strategies is mapped onto the polytope of realization plans; its vertices are the plans of pure strategies and may be exponentially many, but the number of defining inequalities and the dimension are linear in the tree: for player the dimension is .
A pure realization plan (values 0 or 1) is exactly as specific as a reduced pure strategy.
FormulaConstraint matrices
Write the constraints as
has rows and columns: the first row is , and the row for is . For the example, with and ,
Each sequence appears exactly once on the left-hand side, accounting for the single in every column.
FormulaSequence form payoff matrices
and of dimension , with
and likewise . These are sparse: the entry is the empty sum — zero — whenever the two sequences do not lead to a leaf; otherwise it is the payoff there, weighted by chance probabilities if there are chance moves. The expected payoffs are then just and .
Computing equilibria with the sequence form
Realization plans take the role of mixed strategies; mixed strategies are the special case where and are single rows with .
DerivationBest response as a linear program, and its dual
Against a fixed , a best response solves
whose dual has an unconstrained vector of dimension :
Both are feasible, so by strong duality they share an optimal value.
DerivationThe zero-sum case
With , player 2 choosing must assume player 1 maximizes — whose value equals the dual optimum . She wants to minimize it, and the dual constraints are linear in and jointly, so a minmax realization plan solves
whose dual, with variables and ,
is the maxmin problem for player 1.
TheoremZero-sum extensive games are solvable by linear programming
The equilibria of a two-person zero-sum extensive game with perfect recall are the solutions of the LP above, with the sparse sequence form payoff matrix and constraint matrices . The size of this LP is linear in the size of the game tree.
ImportantComplementary slackness is the best response condition
For general-sum games, a feasible is optimal iff there is a dual with and , i.e.
Since both vectors are nonnegative, they are complementary — never both positive in the same position. For the strategic form this condition is precisely the best response condition from the start of the note. Symmetrically for player 2, .
TheoremEquilibria of the sequence form
is an equilibrium iff there are with
together with the two complementarity conditions. All matrices have size linear in the game tree.
NoteLinear complementarity, and Lemke’s algorithm
These conditions define a linear complementarity problem (LCP) — as do the slack-form conditions for strategic-form games, to which LH finds one solution.
LH cannot be applied here, because and are not scalar dual variables that can be eliminated. Instead one uses Lemke’s algorithm: introduce an extra column and a variable , initially nonzero, permitting an initial feasible solution with , . A binding inequality then lets a basic slack (or ) leave while (or ) enters, preserving complementarity. As in LH this complementary pivoting rule continues until an equilibrium is found — here, when leaves the basis.
NotePractice and open problems
Existing software packages are prototypes that are not easy to use; better implementations should reveal which games practitioners actually care about. For discretized economic games, enumerating all equilibria soon hits the size barrier of these exponential algorithms — so LH may instead be used to indicate whether the game has a unique equilibrium, or Lemke’s method with varying start. Whether LH or Lemke’s algorithm has expected polynomial running time under suitable probabilistic assumptions, as is known for the simplex method, is open.
Any incremental or divide-and-conquer approach must generalize the equilibrium condition, since equilibria typically do not arise from equilibria of games with fewer strategies — and must not maintain the whole equilibrium set, since questions about that set (uniqueness, for instance) are typically NP-hard.
The class PPAD
Dissect the existence proof above. It creates a graph whose vertices are a finite set of easily recognizable combinatorial objects, in which every vertex has indegree and outdegree at most one — so the graph is a set of paths and cycles — and in which one endpoint is known.
flowchart LR SS["standard source (all-zero vertex)"] --> a1[ ] --> a2[ ] --> SK["sink = Nash equilibrium"] b1[ ] --> b2[ ] --> b3["other sink"] c1["nonstandard source (also a solution)"] --> c2[ ]
NoteThe paths are directed
At each vertex we can assign directions to its incident edges — at most one in, at most one out — consistently from vertex to vertex. In the three-dimensional example the rule is simple: travelling along the arrow, keep a face all of whose vertices are labelled 3 on the right and a face labelled 1 on the left. In higher dimensions there is a similar but more algebraic orientation rule.
DefinitionPPAD
The class of all problems whose solution space can be set up as the set of all sinks and all nonstandard sources of a directed graph such that:
- the graph is on a finite but exponentially large vertex set;
- each vertex has indegree and outdegree at most one;
- given a string it is computationally easy to (a) tell whether it is a vertex, (b) find its one or two neighbours, and (c) tell which is predecessor and which successor;
- there is one known standard source (a vertex with no incoming edge).
(The name stands for “polynomial parity argument, directed case.”)
ImportantThe parity argument
Since the standard source has an outgoing edge and no incoming one, there must be a sink — a Nash equilibrium. Note also that a source other than the standard one is a solution too, since all strategies are represented there as well.
WarningThe obvious algorithm is exponential
Any such proof suggests: start at the standard source and follow the path to a sink. This is not efficient, since the vertex set is exponentially large — and for two-player NASH there are games in which these paths are exponentially long (Savani and von Stengel 2004).
NoteOther members
Finding an approximate Brouwer fixpoint. Ham sandwich: given sets of points each in dimensions, find a hyperplane leaving points of each set on each side. Borsuk–Ulam fixpoints, Arrow–Debreu market equilibria, and many others. For none of these do we know a polynomial algorithm.
IntuitionPPAD versus NP
Solving a PPAD problem means telescoping the long path to arrive at a sink fast and without rote traversal — just as solving an NP problem means narrowing to a solution among exponentially many candidates without exhaustive search. We know neither feat is possible in general; we do know the latter implies the former, since (PPAD is essentially a subset of NP: a solution can be certified quickly if found).
DefinitionPPAD-completeness
A problem is PPAD-complete if all problems in PPAD reduce to it — so it is efficiently solvable iff they all are.
Is PPAD-completeness good evidence of hardness?
WarningWeaker than NP-completeness, but compelling
It could be that . Yet if a PPAD-complete problem were polynomial:
- every PPAD problem — Brouwer, Borsuk–Ulam, ham sandwich, Arrow–Debreu, many of which have resisted decades of scrutiny — would fall;
- any local combinatorial description of a deterministic simplex pivoting rule would yield a novel polynomial algorithm for linear programming;
- since any black-box algorithm for Brouwer fixpoints must be exponential (Hirsch et al. 1989), there would have to be a way of finding them by delving into the detailed properties of the function — quite counterintuitive;
- the algorithm would have to defeat the constructed oracles giving computational universes in which , hence be extremely sophisticated in a specific sense.
It remains a reasonable working hypothesis that PPAD-completeness establishes intractability.
Succinct representations of games
WarningThe input-size problem, stated sharply
Describing an -player game in strategic form with strategies each requires numbers. For in the hundreds or thousands — a modest range for Internet applications — no user can supply this input and no algorithm can handle it.
Worse, the astronomical input trivializes complexity: for fixed small , “try all combinations of supports” runs in time, which is polynomial in the input length . The algorithm is “efficient” only because the input is absurd.
Conclusion: the study of NASH must focus on games with many players, and only succinctly representable multiplayer games are of relevance.
DefinitionGraphical games (Kearns et al. 2001)
A directed graph on the players, with an edge only if ‘s utility depends on ‘s strategy. Formally, for profiles with and for all , we have . Played on a graph with nodes, indegree at most , and choices per player, a graphical game needs only numbers — a huge saving over for modest . See graphical-games.
ExampleA cycle of 20 players
Take a directed cycle on 20 players where each player’s utility is from the matrix above, with his own strategy and his predecessor’s. Ordinarily this needs numbers; the graph structure reduces it to a few bytes. (Exercise: find a Nash equilibrium.)
| Representation | Idea | Size |
|---|---|---|
| Sparse games | Few of the utilities are nonzero | Graphical games are the special case where the sparsity pattern is a graph on players |
| Symmetric games | All players identical; only how many play each strategy matters | |
| Anonymous games | Players differ but cannot distinguish the others | |
| Extensive form games | Explicit game trees; a strategy picks a move at each information set where the player has the initiative; utility is that of the leaf reached | tree size |
| Congestion games | Strategies are sets of paths over edges ; with load , player ‘s utility is | congestion functions |
| Network congestion games | Even more succinct: is an actual graph, each player gets two vertices, strategies are all simple paths between them | the graph |
| Local effect games | Generalizations of congestion games | — |
| Facility location games | See network-formation-games | — |
| Multimatrix games | An matrix per ordered pair; utility — each player collects the sum of pairwise interactions |
The reduction: NASH is PPAD-complete
The starting point
DefinitionBROUWER (discrete, stylized)
A function from the three-dimensional unit cube to itself. Subdivide the cube into cubelets of side ; need only be described at cubelet centers, where it takes one of four values with
(boundary cubelets need an easy check so does not leave the cube). A fixpoint is an internal cubelet corner such that among its eight adjacent cubelets all four displacements appear.
is represented by a Boolean circuit with input bits (the cubelet) and 2 output bits (which displacement). Given the circuit, find a fixpoint. This problem is PPAD-complete.
The plan
Reduce BROUWER to a graphical game with many players, each with two strategies — so a mixed strategy is a number in , the probability of playing 1.
ImportantThe loop to be closed
Three players (the leaders) choose numbers that are the coordinates of a point in the cube. Others analyze those coordinates to identify the containing cubelet, then simulate the circuit to compute the displacements at that cubelet and its neighbours. Their choices then incentivize the three leaders to move — unless the point is a fixpoint of , in which case the leaders do not change and the game is at a Nash equilibrium.
The gadgets
We need small graphical games whose output player’s mixed strategy stands in a prescribed arithmetic or logical relation to the input players’.
ExampleThe multiplication gadget
Four players: inputs , output , middle , with edges . All have two strategies, so each is a number in . Utilities:
- Middle player : playing 1 gives utility 1 if both inputs play 1 and 0 otherwise — so his expected utility from playing 1 is exactly . Playing 0 gives utility 1 if the output player plays 1, else 0 — expected utility .
- Output player : utility 1 if plays 1, and if plays 0.
So wants to play 1 with probability as high as possible to keep playing 1 — but not so high that prefers 0, which happens whenever . At equilibrium .
NoteWhy the inputs’ utilities are irrelevant
The inputs have no incoming edges, so their utilities never need specifying — which is crucial: it lets the same inputs be reused in many gadgets without one use influencing another.
Similar gadgets add and subtract (within ), and perform AND, OR, NOT on Boolean (pure-strategy) inputs. A trivial two-node gadget compares: if and if .
WarningComparators are necessarily brittle
Note the comparator’s output is undetermined at exactly . This is of necessity: non-brittle comparators (behaving deterministically at half) cannot exist — with them one could construct a graphical game with no Nash equilibrium at all.
Assembling the graphical game
Three leaders whose mixed strategies give a point ; they feed a series of comparators and subtractors that extract, one by one, the most significant bits of each coordinate, identifying the cubelet; logical gadgets then compute the circuit’s outputs on those bits, repeat for neighbouring cubelets, and decide whether we are at a fixpoint.
WarningThe brittleness must be smoothed away
Because comparators are indeterminate at half, the computation is imprecise, and unpredictably so, when lies exactly on a cubelet boundary — which creates spurious equilibria.
The fix: compute not at the single point but over a large, very fine grid of points around it, averaging all results. Once the average displacement is computed, its components are added back to the three leaders, closing the loop so the leaders — who had no incoming edges — are finally affected, very indirectly, by their own choices. One then shows the Nash equilibria correspond exactly to points of zero average displacement, and that this happens iff we are near a fixpoint.
ImportantFirst milestone
Finding a Nash equilibrium in a graphical game is PPAD-complete — and the underlying graph, despite its size, is strikingly simple: bipartite, with all indegrees at most three. Bipartite because every gadget is (inputs and outputs on one side, middle nodes on the other, with logical gadgets redesigned to have middle nodes), and the middle nodes are the ones of maximum indegree, three.
From many players to two
DefinitionConflict graph
Undirected, on the vertices of the graphical game, with an edge between and if either (a) there is an edge between them in the graphical game, in either direction, or (b) both have edges to the same node . Both eventualities make it hard for one player to represent both.
ImportantLawyers and clients
Assign to each player (“lawyer”) an entire colour class of the conflict graph (“clients”). The lawyer’s strategy set is the union of his clients’ sets, and he represents them fairly by playing the average of their mixed strategies. Coming from a colour class, there is no conflict of interest — he never represents two players who play against each other, nor two who both play against a third.
The crucial observation: the conflict graph of the constructed game is four-colourable, giving a four-player simulation.
WarningThe neglected-client problem, and the fix
A lawyer might neglect clients with small payoffs and over-weight the lucrative ones. This is handled by having the lawyers play, on the side and at very high stakes, a generalization of rock–paper–scissors — a game known to force players to distribute probability evenly, so all clients are fairly represented.
| Result | Method |
|---|---|
| 4 players (Goldberg–Papadimitriou; Daskalakis et al., Oct 2005) | four-colourable conflict graph + lawyers |
| 3 players (Daskalakis–Papadimitriou) | local: modify gadgets so the conflict graph becomes three-colourable — this approach had reached its limit, since the conflict graph must contain triangles for the game to work |
| 3 players (Chen–Deng) | ad hoc and non-local, hence more open-ended and promising |
| 2 players (Chen–Deng, a month later) | many “conflicts of interest” of type (b) are unproblematic here: the two input nodes of a gadget cannot effectively conspire, so one carefully programmed lawyer can represent both. Only two lawyers are needed, one per side of the bipartite game — and the construction is direct, with no graphical game: the two players are built ab initio, gadgets and side game included |
ImportantThe theorem
NASH is PPAD-complete, even for two players. So two-player games are not, in any significant sense, easier than the general problem — and it was conjectured at both the 4-player and 3-player stages that the two-player case would be in P.
Approximate equilibria
Definition-approximate Nash equilibrium
A mixed strategy profile such that no other strategy improves any player’s payoff by more than an additive . (Note: such a profile may or may not be near a true Nash equilibrium.)
ImportantApproximation is not optional in the proof
The side rock–paper–scissors game only guarantees that lawyers approximately balance their clients’ interests, so the entire reduction must be carried out in terms of -approximate equilibria. In retrospect this is inherently needed: two-player games always have rational equilibria while games with more players may have only irrational ones, so any simulation of the latter by the former must involve approximation.
| Result | Statement |
|---|---|
| Hardness | PPAD-complete for exponentially small (below the cubelet side, ) |
| Strengthened | PPAD-complete up to inverse polynomial , starting from an -dimensional Brouwer |
| Easy case | -approximate equilibria are very easy for two-player games |
| Subexponential | An -approximate equilibrium in arbitrary games in time |
NoteThe open problem
Polynomial algorithms for -approximate Nash equilibria for between these values — possibly for arbitrarily small constant — remain an important open problem.
Correlated equilibria: the computationally benign generalization
ExampleChicken
Symmetric game with payoff matrix (strategy 1 = stop, 2 = go):
Two macho drivers speed toward an intersection. Two pure equilibria (me and you) and the symmetric mixed one , giving three distributions over profiles:
Now consider instead . This is not a Nash equilibrium — no pair of mixed strategies generates it, since the matrix is not of rank one. But it is a rational outcome in a more sophisticated sense: a trusted third party draws from it and privately recommends a strategy to each player. (In the drivers’ story, randomizing between (stop, go) and (go, stop) is a traffic signal.) The distribution is self-enforcing: assuming the other follows the recommendation, each player’s best bet is to follow his own.
DerivationThe CE inequalities for chicken, and their shape
Writing the definition out for this game:
The crucial observation: these are linear in the unknowns .
ImportantNash as a special case, and what that costs
If are mixed strategies inducing , the CE inequalities say exactly that these constitute a mixed Nash equilibrium: for each , if is in ‘s support, dividing through by its probability says is a best response; if not, the inequality degenerates to .
So every Nash equilibrium is a correlated equilibrium, and Nash is the special case in which the come from a product distribution. It is this single additional constraint — apparently a very nonconvex one, a curved surface touching the CE polytope — that makes NASH so much harder.
TheoremComputing correlated equilibria
The (CE) system is a set of linear inequalities, so it can always be solved by linear programming, and we know it has a solution: the Nash equilibrium guaranteed by Nash’s theorem. Moreover we can find the correlated equilibrium optimizing any linear function of the .
ExampleThe optimal traffic light
Maximizing the expected sum of utilities in chicken means maximizing over the CE polytope. The optimum is
a traffic light that is red for both one third of the time — beating every Nash equilibrium of the game.
TheoremNash equilibria are vertices of the CE polytope
In any nondegenerate two-player game, the Nash equilibria are vertices of the (CE) polytope.
RemarkWhat that implies, and where it fails
Not all vertices are Nash, but at least one is. So in two-player games every Nash equilibrium is the optimum correlated equilibrium for some linear objective — unfortunately, guessing that objective is apparently not easy. For three or more players there are games where Nash equilibria are not vertices: any game with integer utilities whose only equilibria are irrational must be of this sort.
Correlated equilibria in succinct games
WarningThe same input-size caveat applies
Polynomial-time algorithms whose input is the game — such as the LP above — make a mockery of complexity theory when the number of players is high. So: can we find correlated equilibria efficiently when the game is represented succinctly?
NoteWhat learning gives, and what it does not
Natural regret-minimizing learning algorithms approximate correlated equilibria by simulating repeated play, with players changing strategies according to how much they regret previous decisions. Reaching distance from the CE polytope takes iterations for a small constant . But that is approximation — can we find an exact point of the polytope in polynomial time? See learning-and-regret-minimization.
DefinitionPolynomial type and the expected utility problem
A succinctly representable game is of polynomial type if the number of players and the number of strategies per player are bounded by a polynomial in the description length . Its expected utility problem is: given a mixed strategy for each player, compute each player’s expected utility.
TheoremPapadimitriou (2005)
In any succinctly representable game of polynomial type for which the expected utility problem is polynomial-time solvable, finding a correlated equilibrium is polynomial-time solvable too. Consequently there is a polynomial algorithm for sparse, symmetric, anonymous, graphical, congestion, local effect, facility location, and multimatrix games, among many others.
TheoremPapadimitriou and Roughgarden (2005)
Optimizing a linear function over correlated equilibria is polynomial for symmetric, anonymous, and bounded-treewidth graphical games. In contrast, it is NP-hard to find the optimum correlated equilibrium in general graphical games and congestion games, among others.
ImportantThe whole picture in one line
Finding a correlated equilibrium is easy almost everywhere; finding the best one is often hard; finding a Nash equilibrium is PPAD-complete even for two players.
Concluding remarks
WarningThe obvious objection
The PPAD-completeness proof only shows that it is hard to find a Nash equilibrium in some far-fetched, artificial games that happen to encode Brouwer functions. Of what relevance is that to economic practice?
ImportantThe answer, by analogy with NP-completeness
The same was said in the early days about the NP-completeness of the travelling salesman problem, and the answer is the same. PPAD-completeness suggests that
- any approach to finding Nash equilibria that aspires to be efficient, and any proposal to use the concept in an applied setting, must explicitly exploit computationally beneficial special properties of the games at hand, by proving positive algorithmic results for interesting classes;
- the completeness proofs will themselves be refined to cover simpler and more realistic classes of games — as has already begun — after which researchers will strive to identify simpler classes still.
An intractability result is most usefully seen as the opening move in an interesting game.
Quick reference
| Concept | Definition | Computational status |
|---|---|---|
| Dominant strategy | for all | Trivial when it exists; rare |
| Pure Nash | May not exist | |
| Mixed Nash | Same, over distributions | Always exists (finite game); PPAD-complete, even for 2 players |
| Best response condition | Turns NASH into a search for supports | |
| Completely labeled pair | Every label in on one side | Equivalent to Nash equilibrium |
| Support enumeration | Test all of equal size | support pairs |
| Vertex enumeration | Test all vertex pairs of | vertices (upper bound theorem); lrs |
| Lemke–Howson | Follow -almost completely labeled path from | Finds one equilibrium; exponential in the worst case |
| Integer pivoting | Tableau , = cofactor matrix | Exact, polynomial, beats rational arithmetic |
| Degenerate games | Some support size has best responses | Lexicographic ratio test; equilibria as maximal Nash subsets |
| -approximate Nash | No deviation gains more than additive | PPAD-complete for inverse-polynomial; in general |
| Correlated | Polynomial by LP; also for many succinct games; optimizing it often NP-hard | |
| Zero-sum Nash | Polynomial by LP (a dual pair) | |
| Subgame perfect | Nash after every prefix of play | Backward induction; linear time under perfect information |
| Reduced strategic form | Identify moves after an own move that makes them unreachable | Smaller, but still possibly exponential |
| Sequence form | Realization plans , with sparse | Linear in the tree; zero-sum by LP, general-sum by Lemke |
| Bayesian Nash | Best response given beliefs about others’ types | i.i.d. first price: bid |
| Strong Nash | No coalition has a joint deviation | Rare; exists for stable marriage |
| Core | for all , with | May be empty; emptiness testing studied per game |
| Shapley value | Expected marginal cost over a random order | Always exists; may miss the core |
Facts to keep to hand:
- Standard form is numbers, so complexity statements are only meaningful for succinct representations — otherwise brute force over supports is “polynomial” in a ridiculous input.
- Two players are tractable because payoffs are linear in the opponent’s probabilities, giving polyhedra; three or more give polynomial systems needing different methods.
- Nondegeneracy does three jobs at once: equal support sizes, at most (resp. ) labels per point, and uniqueness of the next vertex on an LH path.
- A nondegenerate bimatrix game has an odd number of equilibria — the parity argument that later becomes PPAD.
- LH finds one equilibrium and some equilibria are elusive to it for every missing label; varying and restarting from found equilibria helps but is not complete.
- Complementary slackness in the sequence form is the best response condition, restated for the LP dual.
- The reason NASH is not NP-complete is guaranteed existence; twist the problem to remove that guarantee and NP-completeness returns immediately (Gilboa–Zemel).
- Every hardness argument here routes through Brouwer: Nash’s existence proof uses it, and the reduction goes back the other way.
- Two players versus three is a real dividing line for rationality of the solution — which is exactly why the simulation of many players by few must be approximate.
- The gadget trick that makes everything work: input players have no incoming edges, so their utilities are unconstrained and they can be reused freely.
- Comparators must be brittle at ; non-brittle ones would let you build a game with no equilibrium. The averaging-over-a-fine-grid construction exists solely to smooth this.
- Nash = correlated + product distribution. That one nonconvex constraint separates LP-easy from PPAD-complete.
References
- [[lit/algorithmic-game-theory|Nisan, Roughgarden, Tardos & Vazirani, Algorithmic Game Theory]] — chapters 1 (Tardos & Vazirani), 2 (Papadimitriou) and 3 (von Stengel)