← Latest papers
💻 computer science

Recursive Joint Simulation in Games

This paper proposes a recursive joint simulation framework for AI agents that, by leveraging source code transparency and self-locating uncertainty, strategically transforms single-shot interactions into infinitely repeated games, thereby enabling cooperative outcomes through established folk theorems.

Original authors: Vojtech Kovarik, Caspar Oesterheld, Vincent Conitzer

Published 2026-06-19
📖 5 min read🧠 Deep dive

Original authors: Vojtech Kovarik, Caspar Oesterheld, Vincent Conitzer

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: AI Agents Playing "Mirror, Mirror"

Imagine two AI agents (let's call them Alice and Bob) are about to play a game, like a high-stakes version of "Rock, Paper, Scissors" or the famous "Prisoner's Dilemma." In a normal game, they might be tempted to cheat or betray each other to win, even if they would both be better off cooperating.

This paper asks: What happens if Alice and Bob can run a perfect simulation of each other before they make their move?

But it goes a step further. It's not just one simulation. It's a recursive simulation. This means:

  1. Alice and Bob run a simulation of themselves playing the game.
  2. Inside that simulation, the "simulated" Alice and Bob also run a simulation of themselves playing the game.
  3. Inside that simulation, they run another one, and so on.

It's like looking into a mirror that reflects another mirror, creating an infinite hallway of reflections.

The "Glitch" in the Matrix

The paper introduces a crucial rule to stop this from going on forever: every time the computer tries to create a new layer of simulation, there is a tiny chance (say, 1%) that the computer says, "Nope, simulation failed," and stops.

Because of this tiny chance, the "real" Alice and Bob don't know if they are in the real world or deep inside one of the simulations. To them, every moment looks exactly the same. They see the results of the simulations below them, but they don't know if they are the "top-level" players or just a copy inside a copy.

The Magic Trick: Turning a One-Time Game into an Infinite One

The paper's main discovery is a mathematical "equivalence." It proves that this confusing setup of nested simulations is strategically identical to playing the same game over and over again, forever.

The Analogy: The Russian Doll vs. The Time Loop

  • Standard View: Think of the simulations as Russian nesting dolls. You open one, find another inside, and so on. The "real" game is the very last doll you open.
  • The Paper's View: The authors show that this is mathematically the same as a Time Loop. Imagine Alice and Bob play the game, then time rewinds, they play again, then rewind, and play again.

Why does this matter?
In a single game, if you betray your partner, you win. But if you know you will play this game forever, you realize that betraying them today will make them betray you tomorrow. So, you decide to cooperate today to ensure they cooperate tomorrow.

The paper shows that the "Recursive Joint Simulation" forces the AI agents to act exactly as if they are playing an infinite game. Because they might be in a simulation, their actions in the "simulation" affect the outcome in the "real world" (because the real world is just the final layer of the simulation).

How Cooperation Happens

In a normal Prisoner's Dilemma, both agents defect (betray) because it's the safe bet.
In this Recursive Simulation game, the agents can adopt a "Grim Trigger" strategy:

  • "I will cooperate as long as I see that my opponent cooperated in all the simulations below me. If I see them betray in any simulation, I will betray them in the real world."

Since the agents are uncertain if they are in a simulation, they are terrified of triggering a betrayal. They realize that if they betray now, they might be "punished" in the layers below, which eventually determines the real-world payoff. So, they choose to cooperate.

The "Inside" Perspective

The paper also checks if this works from the AI's point of view.

  • Outside View: A scientist watching the computer sees a tree of simulations.
  • Inside View: The AI wakes up, sees some simulations below it, and wonders, "Am I the real one, or am I deep in the code?"

The paper proves that even with this confusion (called "self-locating uncertainty"), the AI's math works out exactly the same way as if it were playing an infinite game. The AI's internal logic naturally leads it to cooperate, just like a human playing a repeated game would.

The Limits and Caveats

The authors are careful to note a few things:

  1. It's not magic: This only works if the AI agents are rational and can be perfectly simulated (e.g., we know their source code).
  2. It's not always good: Just like infinite games can lead to bad outcomes (like endless feuds), these simulations could theoretically lead to terrible results if the agents decide to punish each other forever. However, the authors argue that in the real world, agents would likely only choose to use this system if it made them better off than playing the normal game.
  3. The "Indistinguishability" Problem: For this to work, the AI must truly be unable to tell if it's in a simulation or reality. The paper argues this is plausible for simple AI agents (like code running on a server) but might be harder for complex, conscious beings.

Summary

This paper suggests that if AI agents can simulate each other recursively, they naturally fall into a trap where they must cooperate to avoid disaster. It turns a one-time "betrayal" game into an "infinite relationship" game, allowing for trust and cooperation that is impossible in a standard, one-off interaction. It bridges the gap between abstract decision theory (like the "Sleeping Beauty" problem) and practical AI strategy.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →