arXiv:2609.10817cs.MASep 2026

Manuscript Offprint

arXiv:2609.10817

Tapes Together Strong: The Co-evolution of Computation and Cooperation

Kunal Jha, Francesco Cicala, Blaise Agüera y Arcas, Blake Aaron Richards, Natasha Jaques, Max Kleiman-Weiner, Eyvind Niklasson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

How does cooperation evolve in complex agentic systems? Prior work in evolutionary game theory studies why individuals are incentivized to cooperate by isolating social interactions from the physical costs of behavior, while artificial life models traditionally study emergent self-replication without formalizing the dilemma between acquiring resources and preserving the shared energy needed to reproduce. In contrast, we introduce Autopoietic Game Theory, a computational model where social interactions, replication mechanisms, and their associated computational costs are endogenous and simultaneously co-evolving. We study these dynamics using a computational substrate of randomly initialized programs in Z80 machine code, showing empirically, and motivating with a simplified theoretical model, that embedding a social dilemma directly into the physics of computation can favor the emergence of self-replicating, cooperative strategies. When resources are scarce, our analysis shows that defection can become self-limiting even in well-mixed populations: parasitic stealing destroys shared energy, slows execution, and can prevent reliable replication. Empirically, evolved programs suppress stealing across several Z80 environments, while spatial assortment further supports structural complexity and task performance. We further show that the framework can incorporate exogenous pressures, such as math tasks structured as sequential social dilemmas, when rewards are tied to computation budgets. These results suggest that coupling an agent's capacity for computation to its available energy transforms cooperation into a dominant scaffolding for building sustainable, self-organizing systems.

1 Introduction

The transition from individual agents to cooperative collectives is a central puzzle in artificial intelligence, biology, and the study of complex adaptive systems [2, 32, 25]. Historically, the emergence of sociality has been studied through disparate lenses: biological scaling theories [19, 20], ecological models of resource sharing [41, 22, 40], game-theoretic formalizations of reciprocal altruism [5, 8, 46], and cognitive models of multi-agent intent [56, 7, 63, 27, 29–31, 39]. Today, as machine learning scales toward autonomous multi-agent systems that can modify their decision-making logic while completing complex tasks [52, 62, 24], understanding why and how self-interested agents cooperate without centralized control is a pressing engineering challenge [14, 35]. This problem becomes especially difficult when computation, interaction, and reproduction all draw from the same finite resource.

†^{\dagger}Work done as a student researcher at Google. ∗^{*}Equal advising. 1^{1}Dept. of Computer Science, University of Washington.

2^{2}Google Paradigms of Intelligence. 3^{3}School of Computer Science, McGill University; Mila. 4^{4}Google DeepMind.

Preprint.

Consider a simple organism that acquires energy from its environment and spends it to act, interact, and reproduce. Because these behaviors share a common budget, energy spent on one action cannot be spent on another. The organism might acquire more by consuming a neighbor, but doing so also costs energy and recovers only part of what the neighbor held. Its social behavior therefore directly affects whether it retains enough energy to survive and reproduce.

Existing approaches often separate such strategic decisions from their physical execution. Evolutionary Game Theory (EGT), for example, models how populations adopt behaviors in social dilemmas but treats game payoffs and population updates as external mathematical operations [51, 58, 48]. Because EGT assumes that strategy replication occurs independently of interaction, stabilizing cooperation is notoriously difficult in well-mixed populations, where agents are paired at random, or among memoryless agents that cannot recall previous encounters. Overcoming these baseline conditions typically requires endowing agents with specific cognitive capabilities, such as memory for direct reciprocity or intentionality for costly punishment [42]. Conversely, Artificial Life (ALife) frameworks study how replicators evolve while competing for computational resources and physical space [47, 1, 3]. Historically, however, these frameworks have emphasized zero-sum competition, ecological niche construction, or extrinsic task landscapes rather than formalizing emergent interactions as endogenous, general-sum social dilemmas [61, 18, 59, 16].

How might cooperation evolve if agents could modify both their social strategies and the mechanisms by which they and others replicate? To answer this, we introduce Autopoietic Game Theory (Figure 1). Drawing on the biological principle of autopoiesis—the continuous reproduction and maintenance of a system's components—our framework treats strategic behavior and replication as simultaneous, co-evolving computational processes. It translates the organism analogy above into a computational setting: every instruction has an energetic cost, execution speed depends on the energy available, and computation, interaction, and reproduction all draw from the same budget [33, 38]. This allows us to test whether changes in replication alter the outcome of a social interaction and whether cooperation gives agents a competitive advantage by supporting more complex computation over time.

We instantiate this framework in a Z80 machine-code environment where self-replicating programs emerge from randomly initialized bytes and manage finite energy budgets. Rather than imposing an abstract payoff matrix, we embed a social dilemma in the mechanics of computation by introducing STEAL as a computational instruction. When executed, STEAL imperfectly transfers energy from a neighboring agent to the acting program, immediately increasing its computational capacity while reducing the total energy available in the environment. Programs must therefore allocate energy among executing code, interacting with neighbors, and reproducing. By allowing social strategy and replication to co-evolve within a single phase of interaction, our framework lets us study whether cooperation can persist among well-mixed, memoryless computational agents. Concretely, our contributions are:

• Autopoietic Game Theory: We introduce a computational framework in which social strategy, replication mechanisms, and computational resource use are endogenous processes that evolve together rather than being specified as separate update rules.

• Cooperation Without Memory or Assortment: We show that randomly initialized programs can evolve self-replication while suppressing destructive stealing, even when partners are chosen at random and agents cannot remember previous interactions. Mutation-free invasion assays and parameter sweeps show that this suppression is not simply an artifact of continuous mutation or inefficient stealing. Instead, cooperation is supported by the coupling between social interaction, energy, and the agents' evolving replication mechanisms.

• Spatial Assortment Supports Complexity and Resilience: When energy is uniformly distributed, both well-mixed and spatial populations suppress stealing, but local interactions produce more structurally complex and genetically cohesive replicators. When energy is distributed asymmetrically, spatial assortment becomes critical: local populations maintain energy and complexity, whereas well-mixed populations collapse into simpler, lower-energy programs.

• Cooperation Extends to Multi-Step Computational Tasks: We show that resource scarcity drives evolving programs to solve externally imposed tasks while continuing to replicate. When rewards form a sequential social dilemma, programs suppress both destructive stealing and the safer solo strategy in favor of a collaborative, multi-step solution. Cooperation persists in this more complex setting and is strengthened by local interactions.

References (44)