Similarity-based Cooperation

Caspar Oesterheld, Johannes Treutlein, Roger B. Grosse, Vincent Conitzer, Jakob N. Foerster · DOI

Introduction

In classical game theory, the one-shot Prisoner’s Dilemma presents a stark conflict between individual rationality and collective welfare. The unique Nash equilibrium is mutual defection, even though both players would be better off if they cooperated. While human cooperation is often sustained by repeated interactions, reputation, or social norms, autonomous AI agents operating in one-shot scenarios lack these mechanisms.

To address this, researchers previously proposed "program equilibrium," where agents share their full source code or neural network weights. By inspecting an opponent's internal logic, an agent can conditionally cooperate. However, this approach faces significant hurdles: it assumes unrealistic transparency, is computationally prohibitive for complex models like deep neural networks, and presents a daunting learning challenge due to the high dimensionality of the input space.

This paper explores a more practical alternative: similarity-based cooperation. We investigate whether agents can achieve stable cooperation by observing only a single scalar value representing their "similarity" to one another, rather than their entire internal state.

Diff Meta Games and Similarity Signals

The authors formalize this concept through diff meta games. In this framework, instead of full transparency, agents are provided with a "diff" value—a real number that quantifies the distance between their respective policies.

The architecture of a diff meta game, where a 'diff' function maps policy pairs to a similarity signal used by the agents.

This signal allows for the implementation of simple threshold strategies: an agent decides to cooperate if the observed difference is below a specific threshold $\theta$, and defects otherwise. Theoretically, the authors prove a "folk theorem" for these games, demonstrating that this minimal similarity signal is sufficient to support any cooperative outcome achievable under full transparency. Furthermore, in symmetric games, this approach leads to a unique, fair Pareto-optimal equilibrium, effectively resolving the common "equilibrium selection" problem.

Learning to Cooperate: The CCDR Curriculum

While theoretically sound, learning such strategies in complex environments is non-trivial. Standard reinforcement learning typically fails, as agents have no initial incentive to cooperate. To overcome this "bootstrapping" problem, the authors introduce a novel training curriculum: CCDR (Cooperate against Copies and Defect against Random).

The CCDR approach consists of two primary phases:

  1. Pretraining: Agents are trained to maximize utility in two controlled scenarios. They must learn to cooperate when playing against an exact clone of themselves and to defect when facing a random policy. This creates a "basin of attraction" for cooperative behavior.
  2. Alternating Best Response (ABR): Following pretraining, two independent agents refine their strategies through mutual interaction, allowing them to adapt to slight variations in their opponent's policy while maintaining the core cooperative logic.

Experimental Results on High-Dimensional Action Spaces

To test the robustness of similarity-based cooperation, the authors introduced the High-Dimensional Prisoner’s Dilemma (HDPD). Unlike traditional matrix games, HDPD involves continuous, high-dimensional action spaces where actions are represented as functions. This "computational thickness" necessitates the use of machine learning rather than exact mathematical solutions.

Experimental results showing (a) the distance of learned policies to cooperation/defection targets and (b) loss curves over time for various training runs.

The results highlight the efficacy of the proposed method. Without CCDR pretraining, agents converged to mutual defection in 100% of the test runs. In contrast, agents utilizing the CCDR curriculum successfully reached stable, partially cooperative equilibria in 26 out of 28 runs. These agents achieved an average utility of approximately -2.77, a substantial improvement over the mutual defection baseline of -5.257. Notably, the learned strategies proved robust to noise in the similarity signal, indicating that agents can maintain cooperation even when the "diff" value is imperfect.

Conclusion and Future Directions

This work demonstrates that full transparency is not a prerequisite for cooperation among autonomous agents. A single scalar representing similarity can serve as a powerful coordination signal. By reducing the information requirement, similarity-based cooperation offers a more realistic and computationally efficient path toward beneficial AI interactions.

Future research should address the "credible signal" problem—ensuring that the similarity score cannot be easily spoofed by adversarial agents. Additionally, exploring how agents might autonomously compute similarity through behavioral observation or shared architectural features remains a promising avenue for creating more organic cooperative systems.

Summary updated

BibTeX
@inproceedings{oesterheld2023similarity,
  author = {Caspar Oesterheld and Johannes Treutlein and Roger B. Grosse and Vincent Conitzer and Jakob N. Foerster},
  title = {{Similarity-based Cooperation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=BkpQNlDWtf},
}
Figure