The Prisoner's Dilemma and the Shadow of the Future

An adaptation of Robert Sapolsky's 2024 lecture on the evolution of behavior. How Cold War strategists and zoologists ended up studying the exact same game, and why knowing when a relationship ends changes everything.

July 24, 20262 min read7 / 10

Deciding when to cooperate and when to cheat turns out to be a math problem, and it was solved decades ago, not by biologists, but by Cold War war-strategists.

The Analyst Who Leaked the Playbook

Long before zoologists got involved, military strategists were using a field called game theory to work out the best strategy in situations where both sides could cooperate or betray each other, including questions as extreme as when to launch nuclear weapons. One of these strategists was Daniel Ellsberg, who worked inside the Pentagon in the 1960s and helped develop what was called the Masada strategy: making an enemy believe you are willing to destroy everything, including yourself, rather than surrender, so that they never dare attack in the first place.

Ellsberg later became famous for a completely different reason: he leaked the Pentagon Papers, secret documents showing the government had misled the public about the Vietnam War, a leak that helped bring down a presidency. When the story broke, it also exposed just how much serious mathematical thought the military had already put into exactly one simple game: the Prisoner's Dilemma.

The Game Behind the Question

The setup is simple. Two people are arrested together, questioned separately, and each has to decide whether to stay loyal to the other or betray them for a lighter sentence. There are four possible outcomes.

  • Both stay loyal: both get a medium sentence.
  • Both betray: both get a longer sentence than if they had cooperated.
  • You betray, they stay loyal: you walk free, they get the worst possible outcome.
  • You stay loyal, they betray: you get the worst possible outcome, called the "sucker's payoff."

If you only ever play this game once, with no future encounter possible, the math is brutal: betraying is always the safer choice, because staying loyal risks the worst outcome for no guaranteed benefit. The same logic holds even if you know you will play exactly two, three, or any fixed number of rounds, because you can always work backward from the last round, where betrayal is obviously correct, and that logic unravels every round before it.

Why Knowing the Ending Ruins Everything

Cooperation only becomes worth trying once there is real uncertainty about how many rounds are left, what game theorists call "the shadow of the future." As long as you might meet this person again, and you don't know how many more times, betraying them stops being an automatic safe bet, because they might end up ahead of you over the long run.

Cooperation is not something that appears because individuals become kinder. It appears the moment the future becomes uncertain enough that betrayal stops being obviously safe. That single insight set up the next question: once uncertainty makes cooperation possible, what is the actual best way to play?

Further Reading

The Prisoner's Dilemma and the Shadow of the Future | Durgesh Rai