Prisoner’s Dilemma
Definition
Prisoner's Dilemma (PD)
A symmetric two-player game in which each player chooses Cooperate (C) or Defect (D), with row-player payoffs (both cooperate), (I cooperate, partner defects), (I defect, partner cooperates) and (both defect), satisfying
The names: Reward for mutual cooperation, Sucker’s payoff, Temptation to defect, Punishment for mutual defection.
Intuition
Self-interest destroys cooperation
Whatever my partner does, I do better by defecting: against a cooperator I get instead of , against a defector instead of . My partner reasons the same way. So we both defect and get each, although we both prefer . Each player’s reasoning is individually sound; the collective result is bad. That gap between individual rationality and collective welfare is what makes it a dilemma of cooperation.
Two motives push towards defection:
- Greed: , defecting pays more when the partner cooperates.
- Fear: , defecting pays more when the partner defects.
The PD has both, which makes D a dominant strategy. Its problem is one of incentives: even an agent certain its partner will cooperate is tempted to defect. Compare the Stag Hunt, which has fear but no greed, and where the problem is trust.
Two pricing bots
partner C partner D C 3, 3 0, 5 D 5, 0 1, 1 Two autonomous agents owned by different companies (pricing bots in one market, scheduling agents sharing a cluster) each maximise their owner’s payoff. Game theory predicts (D,D), with payoff 1 each, where (C,C) would have given 3 each.
Mathematical Formulation
Against a partner who cooperates with probability (or, in a population, a fraction of cooperators):
where:
- : expected payoff of cooperating
- : expected payoff of defecting
- by greed, and by fear
Both terms are negative, so for every : defection always earns more. In the Replicator Dynamics this means the fraction of cooperators falls from any starting point. (all cooperate) is a rest point but unstable, since a single defector earns more and spreads; (all defect) is the stable rest point and corresponds to the Nash equilibrium (D,D).
Key Properties / Variants
- Donation game form (AGAI L02): , , , with (cooperating costs and gives the partner ).
- Unique Nash equilibrium (D,D), in dominant strategies. See Nash Equilibrium.
- (D,D) is the only outcome that is not Pareto optimal; (C,C) is the social optimum. See Pareto Optimality.
- One-shot versus repeated. Played once, defection is the rational choice. Played repeatedly with memory, reciprocal strategies such as Tit-for-Tat and Win-Stay Lose-Shift can make cooperation pay, and Axelrod’s 1980 tournament was won by Tit-for-Tat. See Repeated Game.
- Extra condition for repeated play (background beyond the course material): many definitions also require , so that taking turns exploiting each other pays less than steady mutual cooperation.
- Populations. Without memory or reciprocity, adaptive populations (imitation, simple reinforcement learning) drift to all-defect, matching the rational prediction.
- Why it matters for AI agents. Self-interested agents deployed by different owners can end up in PD-like situations: competing bots, negotiating LLM agents, shared resources.
Connections
- Solution concepts: Nash Equilibrium, Pareto Optimality
- Contrast: Stag Hunt (fear without greed; coordination problem)
- Escapes from the dilemma: Repeated Game (memory, reciprocity)
- Population view: Replicator Dynamics
- Setting: Multi-Agent System, Rational Agent