Recursive Joint Simulation in Games

Vojtech Kovarík, Caspar Oesterheld, Vincent Conitzer · DOI

Abstract

In classical game theory, one-shot interactions often result in socially sub-optimal outcomes, as seen in the Prisoner’s Dilemma. This paper introduces Recursive Joint Simulation (RJS), a mechanism where AI agents with mutual source code access run nested simulations of their interaction. We prove that RJS is strategically equivalent to an infinitely repeated game with exponential discounting. This equivalence allows agents to leverage the Folk Theorem to achieve cooperative outcomes in one-shot scenarios, provided the simulation probability is sufficiently high.

Introduction

One-shot games present a fundamental challenge for rational agents: without the threat of future retaliation, the dominant strategy is often to defect, even when mutual cooperation is objectively better. While humans rely on reputation or repeated encounters to foster trust, AI agents offer a unique technical advantage: transparency. Because an AI is defined by its source code, agents can potentially simulate one another to predict behavior. However, simple mutual simulation leads to infinite recursion. This work explores a formal structure for these simulations that breaks the loop and enables stable cooperation.

The Recursive Joint Simulation Mechanism

The authors propose a structured interaction called Recursive Joint Simulation (RJS). In this setup, before taking an action in the physical world, agents are provided with a simulation of their interaction. Crucially, the agents within that simulation are also equipped with a simulation device, creating a nested, "Inception-style" chain of recursive reasoning.

To prevent infinite loops, the mechanism includes a stochastic "Stop" condition: there is a fixed probability $(1-p)$ that the simulation device fails to run. In such cases, the agents must act immediately without the benefit of a simulation. Agents observe the outcomes of all simulations at deeper levels before making their own choice at the current level.

The logical flow of Recursive Joint Simulation, illustrating the transition between simulation, observation, and the final action.

Strategic Equivalence and the Folk Theorem

The core theoretical contribution of this paper is the proof that this recursive structure is mathematically identical to an infinitely repeated game. The probability $p$ of the simulation continuing acts exactly like the discount factor in standard repeated game theory. Just as a human player might value future payoffs less than immediate ones, these AI agents effectively "discount" the importance of deeper levels of simulation.

The recursive simulation tree for a one-shot game, showing how the probability p creates a structure equivalent to a repeated game with payoffs.

By establishing this equivalence, the researchers can apply the Folk Theorem. This theorem states that in repeated games, any feasible payoff that is better for all players than their "punishment" level can be sustained as a Nash Equilibrium. In the context of RJS, AI agents can adopt "Grim Trigger" strategies—cooperating as long as the simulation shows the opponent is also cooperating—to enforce mutual benefit in a single real-world encounter.

Key Results

  • Theorem 1: Formally proves that a one-shot game augmented with RJS is strategically equivalent to an infinitely repeated game with exponential discounting.
  • Cooperation in One-Shot Games: The authors demonstrate that mutual cooperation in a one-shot Prisoner's Dilemma becomes a stable Nash Equilibrium under RJS, provided the simulation probability $p$ is sufficiently high.
  • Robustness to Voluntariness: The cooperation holds even if agents must voluntarily consent to be simulated. Refusing to participate in the simulation can be treated as a signal of intent to defect, triggering a reciprocal defection from the opponent.

Limitations and Future Directions

While theoretically robust, RJS faces several practical hurdles. First is the Indistinguishability Assumption: the mechanism fails if an agent can distinguish between reality and simulation (e.g., by accessing a non-simulated hardware random number generator). Second, the Computational Cost of running nested simulations is high; a limited simulation budget would turn the interaction into a finitely repeated game, where cooperation often collapses due to backward induction.

Future research may look toward cryptographic multi-party computation (MPC) to implement these simulations without a trusted third party, ensuring that agents can jointly compute the simulation results without revealing their internal states prematurely.

Summary updated

BibTeX
@misc{kovarik2024recursive,
  author = {Vojtech Kovarík and Caspar Oesterheld and Vincent Conitzer},
  title = {{Recursive Joint Simulation in Games}},
  year = {2024},
  eprint = {2402.08128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.08128},
}
Figure