Game theory

Game theory is the mathematics of strategic decisions, modelling how rational players choose when each player's outcome depends on what the others do.

Game theory models strategic situations as games between players. Each player has a set of possible strategies and receives a payoff that depends on everyone's choices, not just their own. The 'game' can be chess, an auction, a price war, a negotiation or an arms race. In a zero-sum game one player's gain is exactly another's loss; in many real situations, players can all do better or all do worse together.

The field took shape with the 1944 book Theory of Games and Economic Behavior by John von Neumann and Oskar Morgenstern. In 1950 John Nash proved that every finite game has at least one equilibrium, provided players may randomise their choices: a set of strategies, one per player, in which nobody can do better by changing only their own choice. The Nash equilibrium became the field's central idea, and in 1994 Nash, John Harsanyi and Reinhard Selten shared the Nobel memorial prize in economics for their work in game theory.

The ideas run through modern AI. The generative adversarial network, introduced by Ian Goodfellow and colleagues in 2014, was framed as a two-player minimax game: a generator tries to produce convincing fakes while a discriminator tries to tell fakes from real data, and each improves by competing with the other. SHAP, a widely used method for explaining a model's prediction, published by Scott Lundberg and Su-In Lee in 2017, is built on Shapley values, a game theory method for dividing a payout fairly among the players who produced it; here the players are the input features.

Games themselves have been a proving ground. In two-player zero-sum games, AI systems usually aim to approximate a Nash equilibrium. That approach does not carry over neatly to games with three or more players. Pluribus, built by Facebook's AI lab and Carnegie Mellon University and described in Science on July 11, 2019, beat professional players at six-player no-limit Texas hold'em using a strategy built through self-play, which took eight days to compute at a market cost of about $144.

Game theory is becoming practical rather than academic as AI agents start to bid, negotiate and trade on people's behalf, because the outcome then depends on how many automated players interact. Its limits are worth remembering. It assumes players are rational and know the payoffs, which real people and AI systems often are not and do not, and an equilibrium is simply a stable outcome, not necessarily a good one.

Common questions

How is game theory used in AI?

It shapes how systems are trained, explained and tested. Generative adversarial networks pit two networks against each other in a game; SHAP explains predictions using Shapley values from game theory; and game-playing systems for poker and other contests compute strategies based on equilibrium ideas. It is also used to analyse how multiple AI agents might interact.

What is a Nash equilibrium?

It is a set of strategies, one for each player, in which no player can improve their outcome by changing only their own strategy while the others keep theirs. John Nash proved in 1950 that every finite game has at least one, provided players may randomise their choices. An equilibrium is stable but not always good for the players.

What is a zero-sum game?

A zero-sum game is one where any gain for one player is matched by an equal loss for another, so the total stays the same. Poker between players and chess are zero-sum. Trade and most business partnerships are not, because both sides can come out ahead.

How did AI beat professional poker players?

Pluribus, from Facebook's AI lab and Carnegie Mellon University, beat professionals at six-player no-limit Texas hold'em in 2019. It built a base strategy by playing against copies of itself and refined its play in real time during games. Multi-player poker was hard because standard equilibrium methods for two-player games do not transfer directly.

Finding more

Search for "game theory in machine learning", "multi-agent game theory AI" or "Shapley values explained" to see how the ideas are applied. Reliable sources include university course materials, the Stanford Encyclopedia of Philosophy, original papers on arXiv and peer-reviewed journals. Be wary of popular articles that present every competitive situation as a prisoner's dilemma, since real cases usually depend on details the simple models leave out.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.