The AI in the Mirror: LLM Self-Recognition in an Iterated Public Goods Game

Olivia Long, Carter Teplica
8/25/2025
cs.AI

No official code found. Best implementation: long-olivia/collective-defective (1 star, last commit 2025-08-27).

Abstract

As AI agents become increasingly capable of tool use and long-horizon tasks, they have begun to be deployed in settings where multiple agents can interact. However, whereas prior work has mostly focused on human-AI interactions, there is an increasing need to understand AI-AI interactions. In this paper, we adapt the iterated public goods game, a classic behavioral economics game, to analyze the behavior of four reasoning and non-reasoning models across two conditions: models are either told they are playing against "another AI agent" or told their opponents are themselves. We find that, across different settings, telling LLMs that they are playing against themselves significantly changes their tendency to cooperate. While our study is conducted in a toy environment, our results may provide insights into multi-agent settings where agents "unconsciously" discriminating against each other could inexplicably increase or decrease cooperation.

View on arXivView PDF

Code Implementations(1)

Repository for the paper "The AI in the Mirror: LLM Self-Recognition in an Iterated Public Goods Game."

10Shell, PythonJul 17, 20251 years ago

Similar Papers

Cite this paper

@article{long2025mirror,
  title  = {The AI in the Mirror: LLM Self-Recognition in an Iterated Public Goods Game},
  author = {Olivia Long and Carter Teplica},
  year   = {2025},
  eprint = {2508.18467},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.18467v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.18467.svg)](https://codeofpaper.com/paper/2508.18467)

Discussion