Evolving general cooperation with a Bayesian theory of mind
Open Access
- 16 June 2025
- journal article
- Published by National Academy of Sciences in Proceedings of the National Academy of Sciences
- Vol. 122 (25)
Abstract
Theories of the evolution of cooperation through reciprocity explain how unrelated self-interested individuals can accomplish more together than they can on their own. The most prominent theories of reciprocity, such as tit-for-tat or win-stay-lose-shift, are inflexible automata that lack a theory of mind—the human ability to infer the hidden mental states in others’ minds. Here, we develop a model of reciprocity with a theory of mind, the Bayesian Reciprocator. When making decisions, this model does not simply seek to maximize its own payoff. Instead, it also values the payoffs of others—but only to the extent it believes that those others are also cooperating in the same way. To compute its beliefs about others, the Bayesian Reciprocator uses a probabilistic and generative approach to infer the latent preferences, beliefs, and strategies of others through interaction and observation. We evaluate the Bayesian Reciprocator using a generator over games where every interaction is unique, as well as in classic environments such as the iterated prisoner’s dilemma. The Bayesian Reciprocator enables the emergence of both direct-reciprocity when games are repeated and indirect-reciprocity when interactions are one-shot but observable to others. In an evolutionary competition, the Bayesian Reciprocator outcompetes existing automata strategies and sustains cooperation across a larger range of environments and noise settings than prior approaches. This work quantifies the advantage of a theory of mind for cooperation in an evolutionary game theoretic framework and suggests avenues for building artificially intelligent agents with more human-like learning mechanisms that can cooperate across many environments.Keywords
Funding Information
- NSF STC (CCF-1231216)
- ONR (N00014-13-1-0333)
This publication has 92 references indexed in Scilit:
- The evolution of theory of mind on welfare tradeoff ratiosEvolution and Human Behavior, 2022
- Punishment is Organized around Principles of Communicative InferenceCognition, 2021
- When do we punish people who don’t?Cognition, 2019
- Theory of mind as inverse reinforcement learningCurrent Opinion in Behavioral Sciences, 2019
- Autonomous agents modelling other agents: A comprehensive survey and open problemsArtificial Intelligence, 2018
- Learning a commonsense moral theoryCognition, 2017
- Children’s understanding of the costs and rewards underlying rational actionCognition, 2015
- A theory of sequential reciprocityGames and Economic Behavior, 2004
- The Alternating Prisoner's DilemmaJournal of Theoretical Biology, 1994
- Model Checking vs. Theorem Proving: A Manifesto1991