betaFeedback

WorksPhysics and Astronomy

Multi-Agent Learning of Reactive Strategies in Iterated Games

Abstract

Learning agents, whether humans or algorithms, adapt to one another rather than to a fixed environment. Selfish learning need not produce a good outcome for the group, especially when learners face a social dilemma. The iterated prisoner's dilemma (IPD) is the classical example, but it is usually studied in populations of agents who imitate successful strategies. Here, we instead study selfish gradient ascent learners on the two-dimensional space of reactive strategies. A reactive strategy is described by two continuous traits: reciprocity, the chance of cooperating after the co-player cooperates, and forgiveness, the chance of cooperating after the co-player defects. Each learner updates its strategy in the direction that most rapidly improves its payoff against all other learners, by an amount governed by its learning rate. We show that heterogeneity in learning rates can qualitatively change the long-term outcome: a population with uniform learning rates converges to always-defect (ALLD), whereas a population with variable learning rates approaches generous-tit-for-tat (GTFT), which produces nearly optimal collective payoffs. In simulations, every population passes through a transient state of minimal forgiveness, in which the distribution of reciprocity determines the outcome. Variable learning rates promote cooperation because slow learners preserve high reciprocity until the population reaches this state. We prove sufficient conditions on the distribution of reciprocity for convergence to ALLD or to tit-for-tat (TFT). Variable learning rates also allow cooperation to recover from perturbation, which is provably impossible under uniform learning. These results suggest that purely selfish and myopic learning can produce persistent cooperation provided the population has intrinsic variability in learning rates.

Introduction

Cooperation is costly to the individual who provides it, and yet it underlies social life at every scale of biological organization. In a single encounter between self-interested players, the prisoner’s dilemma admits only one Nash equilibrium, mutual defection, and cooperation cannot persist in a well-mixed population. Repeated interaction changes this. When the same players meet many times, each can condition its behavior on the history of play, so that the prospect of future reward or retaliation, the “shadow of the future,” makes reciprocity possible [1, 2]. Reciprocal strategies such as tit-for-tat and generous tit-for-tat reward cooperation and forgive or punish defection, and they can stabilize cooperation that would be unstable in a one-shot game [3, 4, 5]. The iterated prisoner’s dilemma (IPD) is the canonical framework for studying how reciprocity allows cooperation among self-interested individuals to arise and persist [2, 6].

The same repeated structure that makes reciprocity possible also makes the IPD strategically rich. A strategy may condition each move on the entire history of play, so the space of possible strategies is enormous. The Folk Theorem of repeated game theory makes the size of the resulting equilibrium set precise: once the horizon is long enough, nearly any individually rational payoff can be supported at a Nash equilibrium, and the set of equilibria expands as the game lengthens [7, 8, 9].

This multiplicity is what makes cooperation possible, but it also leaves the outcome undetermined, since equilibrium analysis alone cannot say which of the many equilibria a population will reach. A strategy space of this size is a challenge for any learning rule, and for this reason the IPD has become a natural testbed for multi-agent learning [10, 11]. At the same time, the learning rules studied in this setting may capture something about how humans and other organisms adjust their behavior, not only how artificial agents might be designed.

Two research traditions address strategic change in this game. Evolutionary game theory models populations whose strategies spread by selection or imitation, whereas the theory of learning in games models individuals who adjust their own strategies in response to payoffs [12]. Here we study a population of selfish learners who update reactive IPD strategies by gradient ascent on their payoffs against the population as a whole. We show that a single, naturalistic form of individual variation, namely heterogeneity in learning rates, can determine whether such a population converges to unconditional defection or to stable and nearly socially optimal cooperation.

Evolutionary game theory provides a natural point of comparison for our study [13]. In that framework, strategies change by payoff-biased imitation or differential reproduction rather than by gradient ascent [14, 15], and the aim is not to design effective algorithms for multi-agent problems but to model how strategies spread and are inherited among humans or other organisms. The IPD, in particular, is used to model the evolution of altruistic behavior. Much of this research considers a discrete set of strategies, most notably evolutionary versions of Axelrod’s tournament [2], but several studies treat continuous strategy spaces. Nowak & Sigmund [4] studied the space of reactive memory-one strategies, in which a player’s policy depends on the co-player’s previous move. In their simulations of payoff-biased imitation, populations usually evolve toward unconditional defection; occasionally, the reciprocal strategy tit-for-tat permits the rise of the more forgiving strategy generous tit-for-tat, which resists invasion by defectors. Imhof & Nowak [16] extended this analysis by adding mutation. They found the same role for tit-for-tat, but with mutation the population does not remain at generous tit-for-tat: it cycles between cooperative and uncooperative phases indefinitely.

We instead consider a gradient-ascent learning process in a population of agents engaged in pairwise iterated games. Each individual plays the rest of the population and updates its strategy locally, in the direction that most increases its payoff. Gradient ascent assumes that players have enough cognition to compute their gradient, but that they are myopic, making only local changes to their strategies. Gradient ascent therefore sits between two extremes: classical economic analysis, which assumes perfect rationality and immediate convergence to a Nash equilibrium, and evolutionary game theory, which assumes payoff-biased imitation with no cognition at all. Neither extreme predicts an outcome here. The Folk Theorem [9] guarantees a continuum of Nash equilibria for infinitely repeated games but gives no guidance as to which one is chosen, and payoff-biased imitation can cycle indefinitely without settling on any stable equilibrium [6, 16, 17].

Prior work on learning dynamics in repeated games falls into two broad categories: (i) theoretical analysis of convergence for RL or gradient dynamics, often in two-player, two-action games; and (ii) empirical studies evaluating a wider range of learning algorithms across broader classes of games. Empirical studies of this second kind are more relevant to us. Several empirical studies show that learning agents, including but not limited to those using gradient ascent, frequently fail to solve the social dilemma of the IPD, tending to reach a non-cooperative resolution [10, 11, 18, 19]. These studies, however, often do not examine the dynamics of larger strategy spaces, considering only the one-dimensional “probability of cooperating.” In this one-dimensional case, theoretical studies show that under certain gradient ascent algorithms the strategies of both players converge on “always defect,” the only Nash equilibrium, or else their average payoffs converge on the payoffs at that equilibrium [20, 21]. One study avoids the failure of gradient ascent in the IPD by allowing agents to include, with some weighting, not just their own payoff but also the average payoff of the group when calculating gradients [22]. In a larger strategy space, Foerster et al. [23] demonstrated the difficulty of reaching cooperation without foresight. Studies of learning in the IPD also rarely consider the dynamics of many agents updating their strategies simultaneously. McAvoy et al. [24] show that while two agents updating their strategies against one another by gradient ascent typically fail to achieve socially optimal cooperation, a large population of learners well-mixed in their interactions, who encounter any one individual rarely, can succeed. But in that model the interactions, and updates, are random and occur one at a time.

Like Imhof & Nowak, we study a large population on the space of reactive memory-one strategies, but our agents update by gradient ascent rather than imitation. As in the evolutionary game theory literature, our aim is not to design a more effective algorithm for multi-agent learning but to model how individuals adjust their strategies under a different set of assumptions. And in contrast to McAvoy et al. [24], where agents meet one at a time, we study learning that occurs simultaneously across the population, so that each agent’s update reflects the strategies of all others at once.

We are most interested in how individual variation in one parameter can affect population-level outcomes. There is reason to believe individual variation in microparameters might produce globally different outcomes, even though agents’ updating rules are otherwise identical. Barfuss & Meylahn [25] show that individual stochastic fluctuations among agents undergoing reinforcement learning on the space of memory-one strategies in the IPD increased overall cooperation levels. Meng et al. [26] show that heterogeneous networks, when coupled with heterogeneous strategy updating rates, are more conducive to cooperation. We endow our agents with minimal knowledge: each agent knows only which direction of strategic change most rapidly improves its payoff. Beyond that direction, each agent has a single intrinsic parameter, its learning rate, that governs how strongly it acts on that information. We show that variation in the learning rate across the population, with no other source of noise or foresight, produces a population of seemingly stable cooperation where otherwise there would not be.

Model

The iterated prisoner’s dilemma with reactive strategies

We consider a simplified iterated prisoner’s dilemma (IPD) where, in each round, a pair of agents simultaneously choose whether to cooperate, paying a cost cc to confer a benefit b>cb > c to the other agent, or to defect, paying no cost and conferring no benefit [2, 27, 28]. Strategies for the infinitely-repeated game can be arbitrarily complex, prescribing each round what action to take conditioned on the history of all prior rounds. We focus on a class of so-called “reactive,” memory-one strategies [3], which are parameterized by two probabilities, (p,q)∈[0,1]2(p, q) \in[0, 1]^2, that specify the chance a player will cooperate each round in response to the action taken by the co-player in the preceding round. The parameter pp is the probability a player cooperates given their opponent cooperated in the previous round, i.e. their reciprocity. The parameter qq is the probability a player cooperates given their opponent defected in the previous round, i.e. their forgiveness. The space of reactive strategies includes many well-known examples such as always cooperate (1,1)(1, 1), always defect (0,0)(0, 0), tit-for-tat (1,0)(1, 0), and generous tit-for-tat (1,1−δ)(1, 1 - \delta), which always reciprocates cooperation but forgives a defection with probability 1−δ1 - \delta [4].

To ensure that the infinitely repeated game has a unique stationary distribution, and that long-term payoffs to both players do not therefore depend on the first round of play, we restrict ourselves to a compact subset of reactive strategies (p,q)∈[ε,1−ε]2(p, q) \in[\varepsilon, 1 - \varepsilon]^2, for small 0<ε<1/20 < \varepsilon< 1/2. This strategy space can also be seen as reactive strategies in the context of a small rate of implementation error, ε\varepsilon. The long-run average payoff per round to a strategy x1=(p1,q1)x_1 = (p_1, q_1) playing against x2=(p2,q2)x_2 = (p_2, q_2) is then given by

π(x1,x2)=b(q1r2+q2)−c(q2r1+q1)1−r1r2\pi(x_1, x_2) = \frac{b(q_1r_2 + q_2) - c(q_2r_1 + q_1)}{1 - r_1r_2}

where r1=p1−q1r_1 = p_1 - q_1 and r2=p2−q2r_2 = p_2 - q_2 are the two players’ degrees of reciprocity, the amount by which each is more likely to cooperate after the co-player’s cooperation than after a defection. The degree of reciprocity measures how strongly a player conditions its behavior on the co-player’s last move, and it separates conditional from unconditional cooperation: tit-for-tat is maximally reciprocal, with r=1r = 1, whereas always-cooperate and always-defect share r=0r = 0, cooperating with the same probability whatever the co-player did.

Strategy evolution by gradient ascent in a population of players

We start by considering a well-mixed population of agents with fixed finite size, NN. In successive discrete learning steps, agents play all pairwise games (including self-play) and receive their average payoff across those games, and then they each simultaneously update their strategy in the direction of their local gradient. Considering at first the simple case of just two agents playing x1=(p1,q1)x_1 = (p_1, q_1) against x2=(p2,q2)x_2 = (p_2, q_2), the gradient of agent 1’s payoff with respect to its strategy, ∇x1π=(∂π/∂p1,∂π/∂q1)\nabla_{x_1}\pi= (\partial\pi/\partial p_1, \partial\pi/\partial q_1), has components

∂π∂p1=(br2−c)(q1r2+q2)(1−r1r2)2,(1)\frac{\partial\pi}{\partial p_1} = \frac{(br_2 - c)(q_1r_2 + q_2)}{(1 - r_1r_2)^2}, \tag*{(1)}
∂π∂q1=(br2−c)(1−q2−p1r2)(1−r1r2)2.(2)\frac{\partial\pi}{\partial q_1} = \frac{(br_2 - c)(1 - q_2 - p_1r_2)}{(1 - r_1r_2)^2}. \tag*{(2)}

Both components of this gradient share the factor br2−cbr_2 - c, which has a simple interpretation. Agent 1’s long-run payoff is π=bx2−cx1\pi= bx_2 - cx_1, where x1x_1 and x2x_2 are the long-run probabilities that agents 1 and 2 cooperate in a round. Agent 2 cooperates with probability q2q_2 after a defection and with a probability larger by its degree of reciprocity, r2r_2, after a cooperation, so that x2=q2+r2x1x_2 = q_2 + r_2x_1. Raising either of its cooperation probabilities, p1p_1 or q1q_1, raises agent 1’s long-run rate of cooperation, x1x_1, and it changes agent 2’s long-run rate of cooperation by r2r_2 times as much. Each unit of additional cooperation therefore costs agent 1 the amount cc and returns the benefit br2br_2. Agent 1’s payoff consequently increases in both of its strategy parameters when its co-player’s degree of reciprocity exceeds c/bc/b, and it decreases in both when the co-player’s degree of reciprocity is below c/bc/b. The threshold c/bc/b on an opponent’s degree of reciprocity recurs throughout our analysis.

In a large population, however, each agent is assumed to play pairwise IPD games against all others in the population (including self-play) and update their strategy in the direction of maximum increase to their average payoff across all these pairwise games. The average payoff of strategy xitx_i^t in the population at time tt is

Πt(xit)=1N∑j=1Nπ(xit,xjt),\Pi^t(x_i^t) = \frac{1}{N}\sum_{j=1}^{N}\pi(x_i^t, x_j^t),

and so its gradient with respect to xitx_i^t becomes

∇xitΠt(xit)=1N∑j=1N∇xitπ(xit,xjt).\nabla_{x_i^t}\Pi^t(x_i^t) = \frac{1}{N}\sum_{j=1}^{N}\nabla_{x_i^t}\pi(x_i^t, x_j^t).

Note that we include self-play, though this does not meaningfully affect results.

In each discrete learning step, tt, each individual updates their strategy according to a single step of gradient ascent:

xit+1=Proj⁡[ε,1−ε]2(xit+η∇xiΠt(xit))x_i^{t+1}=\operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2}\left(x_i^t+\eta\nabla_{x_i}\Pi^t(x_i^t)\right)

where η\eta denotes the learning rate, which scales the magnitude of an agent’s strategic update. The operator Proj⁡[ε,1−ε]2\operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2} ensures that the resulting strategy still lies within [ε,1−ε]2[\varepsilon,1-\varepsilon]^2: this operator simply maps any strategy in R2\mathbb{R}^2 to the nearest point, by Euclidean norm, on the square [ε,1−ε]2[\varepsilon,1-\varepsilon]^2. In this case, this is equivalent to “clipping” each component to lie within [ε,1−ε][\varepsilon,1-\varepsilon].

Variation in rates of learning

Now assume that each agent ii has its own intrinsic learning rate ηi\eta_i that does not change over time, but may differ among agents. Each agent ii at time tt is described by an ordered triple: Xit=(pit,qit,ηi)X_i^t=(p_i^t,q_i^t,\eta_i), or Xit=(xit,ηi)X_i^t=(x_i^t,\eta_i), where xit=(pit,qit)x_i^t=(p_i^t,q_i^t) and ηi\eta_i is unchanging in time. After playing all pairwise games and receiving average payoffs, agents simultaneously update their strategies by gradient ascent, using possibly different learning rates:

xit+1=Proj⁡[ε,1−ε]2(xit+ηi∇xiΠt(xit))x_i^{t+1}=\operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2}\left(x_i^t+\eta_i\nabla_{x_i}\Pi^t(x_i^t)\right)

Two agents starting from the same strategy but differing in learning rate move different distances in a single update step (Figure 1, Variable Learning Rates), whereas agents sharing a learning rate move similar distances (Figure 1, Uniform Learning Rates), and agents who imitate copy one another’s strategies outright (Figure 1, Imitation), as in evolutionary game theory [6, 13, 15].

Figure 1. Agents starting from the same strategy move different distances when learning rates vary. Comparison of different forms of strategy updating on the (p,q)(p,q) strategy space. Imitation involves one strategy copying another, typically in a manner such that more successful strategies are imitated more often. By contrast, agents who update via gradient ascent take into account other agents’ strategies, but do not copy them; instead, they move in a direction which most rapidly improves their payoff. Having uniform learning rates means agents share a coefficient dictating how far along their gradients they move each step. Not all agents move the same distance, though agents at similar starting points should move similar distances. By contrast, with variable learning rates, each agent has their own coefficient which might differ from others, so agents starting from the same point with different learning rates move different distances.

We explore the discrete state and time process defined above, in which agents simultaneously perform gradient ascent updates, by direct simulation. The population is initialized with strategies drawn uniformly at random from [ε,1−ε]2[\varepsilon,1-\varepsilon]^2. The deterministic process is simulated using either uniform learning rates, i.e. ηi=ηj=ηˉ\eta_i=\eta_j=\bar{\eta} for all i,ji,j, or variable learning, where ηi\eta_i is drawn from Uniform⁡[ηˉ−a,ηˉ+a]\operatorname{Uniform}[\bar{\eta}-a,\bar{\eta}+a]. Unless otherwise noted, simulations use c/b=1/2c/b=1/2.

Evolution of strategic density for infinite-population limit

In the limit of large population size N→∞N\to\infty we track the population’s strategies not as individual agents, but as a generalized distribution (possibly a continuous density) Ft(x)F^t(x) over the strategy space [ε,1−ε]2[\varepsilon,1-\varepsilon]^2 at time tt. Each strategy xx then moves along the average, over the whole population, of its payoff gradients against the strategies it plays. Even though the population’s distribution may be continuous, we still consider discrete learning steps; taking a limit of small steps and rescaling time produces a continuous-time PDE, which we state in § 8.2 of the Supplemental Material. We also allow a distribution Gt(η)G^t(\eta) of learning rates, independent of xx at t=0t=0, and correlated with xx for t>0t>0, since an agent’s learning rate determines how far it moves at each step. This continuous process is the alternative “Eulerian” formulation of the individual-based “Lagrangian” formulation above.

To simulate this process, which admits continuous density functions, we approximate distributions with a fixed lattice over [ε,1−ε]2[\varepsilon,1-\varepsilon]^2, each lattice point with an associated frequency (akin to a “histogram approximation” of a continuous distribution). Then, when mass moves between points it is redistributed via bilinear interpolation. These are standard methods for numerical solutions to PDEs, adapted to a discrete-time process. Details on the formulation and implementation of this continuous “Eulerian” model can be found in Sec. S1 of the Supplemental Material.

Initialization

Global parameters b=1b=1, c=1/2c=1/2, ε=0.001\varepsilon=0.001, N=2500N=2500. Learning rates are either drawn ηi∼Uniform⁡[0.01,0.39]\eta_i\sim\operatorname{Uniform}[0.01,0.39] (variable learning rates) or set ηi=0.2\eta_i=0.2 (uniform). The simulation for a variable learning rates population was terminated after 25,000 steps, and for a uniform learning rates population after 15,000 steps. Different b/cb/c ratios and population sizes NN are explored in § 3 E.

Results

Individual differences in learning rates can qualitatively alter the course of strategic change in a population undergoing gradient ascent (Figure 2). When agents all share the same learning rate (ηi=η\eta_i=\eta for all ii), the population converges to unconditional defection, eventually leaving every agent with payoff near zero. Convergence to defection is the outcome one would expect of selfish gradient learners in a social dilemma. But when agents vary in their learning rates, the population instead converges to a generous tit-for-tat strategy (GTFT), which sustains a high rate of cooperation and nearly socially optimal payoffs (Figure S1 of the Supplemental Material).

Figure 2. The population converges to generous tit-for-tat when learning rates vary, and to unconditional defection when they are uniform. Trajectory plot of agents’ reciprocity pp (top) and forgiveness qq (bottom) values over all of their learning steps, for agents with uniform learning rates (left) and variable learning rates (right).

Figure S1. Populations with variable learning rates can recover socially optimal strategies. Payoffs for agents with uniform learning rates (left) and variable learning rates (right) over time. Values are evaluated from the same simulation as Figure 2 and Figure 3 of the main text.

To understand how variation in learning rates produces these divergent outcomes, we consider a population of agents with strategies xi=(pi,qi)x_i=(p_i,q_i) initially drawn independently and uniformly from the space of reactive strategies [ε,1−ε]2[\varepsilon,1-\varepsilon]^2. Individual learning rates ηi\eta_i are drawn from Uniform⁡[ηˉ−a,ηˉ+a]\operatorname{Uniform}[\bar{\eta}-a,\bar{\eta}+a], with a=0a=0 in the case of uniform learning, or a>0a>0 for variable rates. In both cases, the population evolves along a characteristic, though ultimately divergent, trajectory:

  • Collapse of forgiveness: From the initial uniform distribution on the strategy space, all agents rapidly move towards lower forgiveness qq values.

  • Transient unforgiving state: All agents reach minimum forgiveness q=εq=\varepsilon and changes are transiently restricted to updates to agents’ reciprocity parameters, pip_i.

  • Move to GTFT or ALLD: after a sufficient buildup of high reciprocity pp, the population moves towards TFT (1−ε,ε)(1-\varepsilon,\varepsilon) and then to GTFT (1−ε,1−c/b−ε)(1-\varepsilon,1-c/b-\varepsilon); or, after sufficient buildup of low reciprocity pp, the population converges on ALLD.

  • Stability of GTFT: The GTFT strategy (1−ε,1−c/b−ε)(1-\varepsilon,1-c/b-\varepsilon) is the only stationary distribution on the boundary p=1−εp=1-\varepsilon.

Snapshots of the characteristic trajectory in a population with variable learning rates show all four stages (Figure 3). Provided the variance of learning rates is sufficiently large (a large enough), such a population will evolve to eventual adoption of GTFT =(1−ε,1−c/b−ε)=(1-\varepsilon,1-c/b-\varepsilon).

Figure 3. A population with variable learning rates passes through four stages before settling at generous tit-for-tat. Agents’ locations on the strategy space [ε,1−ε]2[\varepsilon,1-\varepsilon]^2 at several learning steps (top, colored by learning rate η\eta) and streamline plots of the vector field corresponding to the gradient against the population at these steps (bottom). Collapse of forgiveness: early steps show stratification by learning rate; the slow learners with high reciprocity pp ultimately remain at high pp when forgiveness reaches its minimum, q=εq=\varepsilon. Transient unforgiving state: the approximate beginning of the stage in which all agents ii have qi=εq_i=\varepsilon and some distribution of reciprocity pip_i not entirely at ε\varepsilon. Move to GTFT: agents move through the interior to reach a distribution of GTFT-like strategies. Stability of GTFT: at the end of learning, the GTFT distribution is maintained.

We study this characteristic trajectory step by step, with a special focus on the transient unforgiving state and stability of GTFT. The long-term fate of the population is settled at these two stages, and they are also the most amenable to analysis, because their dynamics are mostly restricted to a single dimension. Although we primarily discuss the discrete finite-NN model, the qualitative results are replicated in a continuous version of the model in the limit N→∞N\to\infty (Figure S2 of the Supplemental Material). This indicates that the emergence of GTFT under variable learning rates does not depend on discretization.

Figure S2. The infinite-population model reproduces the same divergence of outcomes as the agent-based model. Distributions of pp (top) and qq (bottom) over time in the infinite-population model (§ 8), with uniform learning rates (left) and variable learning rates (right). The population is represented by 100 grids, one per learning rate, each of 50 × 50 points evenly spaced on [ε,1−ε]2[\varepsilon, 1-\varepsilon]^2; every grid carries total frequency 1/100. With variable learning rates, the grids’ rates are evenly spaced from η=0.01\eta= 0.01 to η=0.39\eta= 0.39; with uniform learning rates, all are η=0.2\eta= 0.2. Initially, every grid point has equal frequency. Nested shaded bands contain the central 99.9%, 80%, 60%, 40% and 20% of the frequency-weighted pp or qq values, darker toward the center; the black line is the mean.

Collapse of Forgiveness {#sec:Collapse of Forgiveness}

After initialization, faster learners move toward lower reciprocity pp and forgiveness qq, reaching the unforgiving boundary q=εq=\varepsilon while some slower learners retain high values of both coordinates (Figure 3, Collapse of forgiveness). An explicit calculation against a uniform initial distribution shows that, at the parameters used here, both gradient components are negative throughout the strategy space (see § 9.1 of the Supplemental Material). The initial decline in reciprocity pp therefore accompanies the decline in forgiveness qq even among strategies that later contribute to cooperation.

As the population changes, the gradients experienced by the remaining forgiving learners become nearly vertical in the simulations. A population concentrated at ALLD provides an exact reference case: its gradient is (−cε,−c(1−ε))(-c\varepsilon,-c(1-\varepsilon)) at every focal strategy, and a learner with rate η\eta loses less than ε(1+ηc)\varepsilon(1+\eta c) in reciprocity before reaching q=εq=\varepsilon (see § 9.2 of the Supplemental Material). Although this bound assumes a fixed ALLD population, it explains how descent in a strongly defecting environment can preserve reciprocity. Slower learners that begin with high pp can delay their descent until the gradient entails little further loss of pp, leaving the population with support at high reciprocity upon entry to the transient unforgiving state (Figure 3, Transient unforgiving state). With uniform learning rates, the simulated population instead enters this state with a lower maximum reciprocity (Figure S3 of the Supplemental Material, top row) and subsequently converges to ALLD (Figure 2, left).

Figure S3. The distribution of pp values upon reaching q=εq = \varepsilon has support on higher pp when agents have variable learning rates. Top row: histograms (left) and survival functions (right) of the pp values of agents on the first timestep where every agent has q=εq = \varepsilon. Uniform learning rates produce a distribution with a higher mean, but lower maximum. Bottom row: densities (left) and survival functions (right) of distributions that satisfy the conditions of Theorem 1 of the main text. ALLD distribution: atom with frequency 0.35 at ALLD, rest of population uniformly distributed from ε\varepsilon to approximately 0.72. TFT distribution: Beta(0.7870, 1) scaled onto [ε,1−ε][\varepsilon, 1 - \varepsilon].

Transient Unforgiving State

The transient unforgiving state, in which all agents ii lie along the unforgiving line qi=εq_i = \varepsilon, is reliably observed in both uniform and variable learning rate simulations. Empirical distributions of pp values upon entering the transient unforgiving state are shown in Figure S3 of the Supplemental Material, top row. Although the variable learning rate population has more agents playing the ALLD strategy, it also has support on higher values of pp, integral to ultimately stimulating cooperation.

The long-term fate of the population, either ALLD or GTFT, depends on the distribution of pp values (reciprocity) when the population first enters the transient unforgiving state. In fact, in simulations that enter the transient unforgiving state under variable learning rates, if we endow the agents with sufficiently low uniform learning rates from this point in time onward, the population still converges to GTFT. Conversely, starting from the transient unforgiving state in a simulation with uniform learning rates, and endowing agents with variable learning rates from that point onward, the population reliably ends up at ALLD. The distribution of pp values when reaching the transient unforgiving state is therefore the strongest determinant of the long-term outcome.

Because of these empirical results, we focus our analysis on the distribution of pp in a population when it first enters qi=εq_i = \varepsilon for all ii. We can determine which distributions over pp along the line qi=εq_i = \varepsilon converge to ALLD and which converge to TFT. When qi=εq_i = \varepsilon for all ii, the gradient in the pp direction with respect to (p1,ε)(p_1,\varepsilon) of its payoff against (p2,ε)(p_2,\varepsilon) is given by

gε(p1,p2)=ε(1+p2−ε)(b(p2−ε)−c)(1−(p1−ε)(p2−ε))2.g_{\varepsilon}(p_1,p_2)=\varepsilon\frac{(1+p_2-\varepsilon)\left(b(p_2-\varepsilon)-c\right)}{\left(1-(p_1-\varepsilon)(p_2-\varepsilon)\right)^2}.

We define the edge length L=1−2εL = 1 - 2\varepsilon, and let p=p1p = p_1 and s=r2=p2−ε∈[0,L]s = r_2 = p_2 - \varepsilon\in[0,L] denote the opponent’s reciprocity measured from the defecting end of the edge. Then the pp-component of the gradient of player 1 in a distribution defined by the probability measure μ\mu is given by

G(p)=ε∫0L(bs−c)(s+1)(1−(p−ε)s)2 dμs=εIμ(p).G(p)=\varepsilon\int_0^L\frac{(bs-c)(s+1)}{\left(1-(p-\varepsilon)s\right)^2}\,d\mu_s=\varepsilon I_\mu(p).

The gradient in pp along the unforgiving line is smaller than the gradient in qq by a factor of order ε\varepsilon, except near the boundary p=1−εp = 1 - \varepsilon, where the two are similar.

The numerator of the integrand, (bs−c)(s+1)(bs-c)(s+1), is increasing in ss, with a sign change at α=c/b\alpha= c/b: opponents more reciprocal than α\alpha contribute a positive term to the gradient, and opponents less reciprocal than α\alpha a negative term. This sign change is the threshold described in Sec. II B: raising one’s own cooperation pays only against an opponent whose degree of reciprocity exceeds c/bc/b. Define the sign-separated tail integrals

P(μ):=∫αL(bs−c)(s+1) dμs(s),P(\mu) := \int_{\alpha}^{L} (bs-c)(s+1)\,d\mu_s(s),
Q(μ):=∫0α(c−bs)(s+1) dμs(s),Q(\mu) := \int_{0}^{\alpha} (c-bs)(s+1)\,d\mu_s(s),

which collect these two contributions with the denominator at its value for p=εp=\varepsilon, so that εIμ(ε)=ε(P(μ)−Q(μ))\varepsilon I_\mu(\varepsilon)=\varepsilon(P(\mu)-Q(\mu)) is the gradient of an agent at ALLD, the least reciprocal strategy on the line. For the opposite fate we need every agent’s gradient bounded above. The denominator factor (1−(p−ε)s)−2(1-(p-\varepsilon)s)^{-2} is largest at p=1−εp=1-\varepsilon, where it equals (1−Ls)−2(1-Ls)^{-2}, so define

u(s):={(bs−c)(s+1),s<α,(bs−c)(s+1)(1−Ls)2,s≥α,u(s) := \begin{cases} (bs-c)(s+1), & s<\alpha,\\ \frac{(bs-c)(s+1)}{(1-Ls)^2}, & s\ge\alpha, \end{cases}
U(μ):=∫0Lu(s) dμs(s),U(\mu):=\int_{0}^{L}u(s)\,d\mu_s(s),

the integrand of Iμ(p)I_\mu(p) with the denominator replaced, opponent by opponent, by the value that makes that opponent’s contribution largest. The following theorem gives a sufficient condition for each fate, for arbitrary learning rates ηi>0\eta_i>0 and any step size.

Theorem 1. Let μ\mu be the distribution of reciprocity pp when all agents have q=εq=\varepsilon. If U(μ)<0U(\mu)<0, the population converges to ALLD in finitely many learning steps. If P(μ)>Q(μ)P(\mu)>Q(\mu) and the dynamics are restricted to q=εq=\varepsilon, the population converges to TFT in finitely many learning steps.

A proof of the theorem can be found in Sec. S3 of the Supplemental Material. The intuition for convergence to TFT is that an agent at ALLD, the least reciprocal strategy on the line, has gradient exactly ε(P(μ)−Q(μ))\varepsilon(P(\mu)-Q(\mu)), and that whenever this gradient is positive, every other agent’s gradient is positive as well, and at least as large. This follows from a Chebyshev-type inequality for similarly ordered functions [29]: the numerator (bs−c)(s+1)(bs-c)(s+1) and denominator factor (1−(p−ε)s)−2(1-(p-\varepsilon)s)^{-2} increase with the opponent’s degree of reciprocity ss. The denominator factor also increases faster for a more reciprocal focal agent, so a more reciprocal agent’s gradient weights the positive contributions of highly reciprocal opponents more heavily. If P(μ)>Q(μ)P(\mu)>Q(\mu), one learning step therefore moves every agent toward higher reciprocity; since (bs−c)(s+1)(bs-c)(s+1) is increasing in ss, this movement can only increase P−QP-Q, so the updated population satisfies the same inequality and the next step again moves every agent toward TFT. The condition for ALLD is preserved in the same way: U(μ)U(\mu) bounds every agent’s gradient from above, and because uu is increasing, movement toward lower reciprocity can only decrease UU.

However, only the ALLD half of the theorem describes the full two-dimensional dynamics. Under U(μ)<0U(\mu) < 0, the unforgiving line is invariant: a negative gradient in pp implies a negative gradient in qq, so the one-dimensional analysis is in fact a full description of the two-dimensional dynamics. Under P(μ)>Q(μ)P(\mu) > Q(\mu), though, the line is provably not invariant: to reach TFT, the agents will all eventually need s>c/bs > c/b, beyond which every agent’s gradient in qq will be positive, so that the population leaves the q=εq = \varepsilon line. Thus, this restriction is an idealization.

Theorem 1 resolves the fate of a wide range of distributions on q=εq = \varepsilon (Figure S4 of the Supplemental Material). Given the parameters of a truncated Beta distribution, for example, a simple calculation determines whether the population goes to ALLD or TFT, or whether the distribution satisfies neither criterion and its fate is left undecided. Neither initial distribution of agents in the transient unforgiving state, with uniform or variable learning rates, provably reaches ALLD or TFT (even under restricted dynamics) via Theorem 1. However, by step 1900, the uniform learning rate population has U<0U < 0, guaranteeing its eventual convergence to ALLD. The variable learning rates population evolves towards TFT and then departs the q=εq = \varepsilon axis before having P>QP > Q.

Figure S4. Theorem 1 can determine whether a wide range of distributions of pp on q=εq = \varepsilon will converge to ALLD or TFT. Left: distributions with a point mass at ALLD (p=εp = \varepsilon) and the rest of the population uniformly distributed from ε\varepsilon to pmax⁡p_{\max}. Right: Beta distributions, scaled onto the region [ε,1−ε][\varepsilon, 1 - \varepsilon]. Red denotes a parameter regime where the starting distribution converges to ALLD in finite steps; teal a parameter regime where the distribution converges to TFT in finite steps; gray where the outcome cannot be determined by Theorem 1 alone. The dashed line corresponds to P(μ)−Q(μ)=0P(\mu) - Q(\mu) = 0, and the solid black line to U(μ)=0U(\mu) = 0.

Evolution to GTFT

From the q=εq = \varepsilon axis, the populations that eventually move to GTFT require a sufficient buildup of TFT-like strategies with high reciprocity pp. However, unlike in our study of the transient unforgiving state, which restricted analysis to the q=εq = \varepsilon axis, in the simulations, agents take an indirect path from this axis through the interior of the square to the p=1−εp = 1 - \varepsilon axis (many distributions on which we loosely call “GTFT-like”). That the population leaves the q=εq = \varepsilon axis once all agents have p−ε>αp - \varepsilon> \alpha is established in § 10 of the Supplemental Material. We do not have a formal analysis of the movement in two dimensions with many agents, and so we provide a visual summary of the population’s movement instead. We anticipate that, in most situations, a “move to TFT” when restricted to the q=εq = \varepsilon axis, as in our analysis of the transient unforgiving state, would coincide with a move to GTFT if the agents were not restricted.

Before agents at ALLD move in the direction of TFT/GTFT, the agents at TFT start to move toward GTFT: some agents already occupy p=1−εp = 1 - \varepsilon with q>εq > \varepsilon before any agents have left ALLD. The direction in which agents at ALLD move changes over time: as more agents reach more cooperative strategies, gradient flows start to point toward higher qq values on the p=1−εp = 1 - \varepsilon line (Figure S5 of the Supplemental Material). Faster learners soon approach GTFT p=1−ε,q=1−c/b−εp = 1 - \varepsilon, q = 1 - c/b - \varepsilon, while slower learners remain outside on higher and lower qq values. The initial distribution of qq once all agents attain p=1−εp = 1 - \varepsilon at step 5800 has mean 0.41, median 0.40, with standard deviation 0.13.

Figure S5. Agents leave the unforgiving line in order of learning rate, and the slower they learn the higher the forgiveness they reach. Agents’ strategies (top, colored by learning rate η\eta) and streamline plots of the population gradient field (bottom) at four learning steps. Step 4500: agents occupy the unforgiving line q=εq = \varepsilon, with a buildup of high-reciprocity agents near TFT. Step 4600: agents at TFT move up the p=1−εp = 1 - \varepsilon boundary while faster learners arc through the interior. Steps 4650 and 4750: slower learners follow wider arcs toward higher qq on the p=1−εp = 1 - \varepsilon line, producing the initial GTFT-like distribution.

Stability of GTFT

GTFT is the only stationary distribution restricted to the boundary p=1−εp = 1 - \varepsilon (Theorem 2), and it persists under variable learning rates but not under uniform learning rates. GTFT is not locally stable against perturbations to the interior, however. A population displaced from GTFT in a direction that lowers its p−qp - q cannot return to GTFT under uniform learning rates (Theorem S2 of the Supplemental Material). For variable rates, however, perturbation from GTFT produces a slow transient followed by damped oscillations and a return to GTFT.

We begin by showing there is only one stationary distribution on the boundary p=1−εp = 1 - \varepsilon, namely GTFT, or (1−ε,1−c/b−ε)(1 - \varepsilon, 1 - c/b - \varepsilon). This is formalized in the following theorem.

Theorem 2. When ε>0\varepsilon> 0 and c/b<1−2εc/b < 1 - 2\varepsilon, the only distribution ρ(x)\rho(x) on the p=1−εp = 1 - \varepsilon axis such that ∇qΠ(x)=∫∇qπ(x,y) dρ(y)=0\nabla_q \Pi(x) = \int\nabla_q \pi(x,y)\,d\rho(y) = 0 for all x=(1−ε,q)x = (1 - \varepsilon,q) in the support of ρ\rho is a Dirac mass with frequency 1 at q=1−c/b−εq = 1 - c/b - \varepsilon.

A proof of this theorem can be found in § 11 of the Supplemental Material. The intuition is that each opponent contributes to an agent’s gradient in qq with a sign set by the opponent alone: positive if the opponent’s degree of reciprocity exceeds c/bc/b, and negative otherwise (Sec. II B). A less forgiving agent weights the positive contributions more heavily than a more forgiving agent does, so two agents at different values of qq cannot both have zero gradient. The only possibility is a population concentrated at the single value of qq where the degree of reciprocity equals c/bc/b, that is, at GTFT.

The Dirac mass at GTFT is a true fixed point of the full two-dimensional dynamics: for a population concentrated at this point, both components of the gradient vanish, including the gradient in the pp-direction. Both components vanish because GTFT has degree of reciprocity exactly c/bc/b, so that an opponent at GTFT makes a co-player’s payoff independent of the co-player’s strategy (Sec. II B).

The GTFT outcome is nearly socially optimal, as well. Consider another fixed point of the system, ALLD, where the uniform learning rate agents end up. Two ALLD agents playing one another will each have payoff near zero, (b−c)ε(b - c)\varepsilon, while two GTFT agents will each have payoff b(1−ε)−cb(1-\varepsilon)-c. Although two ALLC agents have slightly higher payoffs (b−c)(1−ε)(b-c)(1-\varepsilon), the difference is O(ε)O(\varepsilon). GTFT maximizes the payoff of the population subject to being invasion-proof against less cooperative strategies [3]. ALLC, on the other hand, is vulnerable to invasion or gradient ascent exploitation.

However, over the course of the agent-based simulations, the population remains in a slowly moving transient state along this line. All gradients in the qq-direction are positive for agents on the p=1−εp=1-\varepsilon line when they first reach it. In the limit of small ε\varepsilon, there is a threshold qGTFT=1−c/bq_{\mathrm{GTFT}}=1-c/b such that if the mean qq value of a population on p=1−εp=1-\varepsilon exceeds qGTFTq_{\mathrm{GTFT}}, then an agent at ALLC =(1−ε,1−ε)=(1-\varepsilon,1-\varepsilon) will have negative gradient in the pp-direction. The mechanism is that an agent facing forgiving opponents raises its payoff by lowering its own reciprocity. When the opponents an agent plays have forgiveness qq above 1−c/b1-c/b, that agent can defect and, with high probability, not be punished, and if it is punished the opponent’s high forgiveness restores cooperation quickly. Equivalently, opponents on the reciprocal boundary with forgiveness above 1−c/b−ε1-c/b-\varepsilon have degree of reciprocity below c/bc/b, the threshold identified in Sec. II B.

Indeed, in simulations, once the population approaches a mean qq value of 1−c/b1-c/b (here 1/21/2), multiple agents with high qq values then move toward lower pp (Figure 2). In response, most of the population lowers their qq values, reducing the payoff from exploitation. Most agents who departed the p=1−εp=1-\varepsilon axis return, except for one. There is a back and forth as this one agent becomes more or less exploitative as the rest of the population moves in response. This back and forth can be seen in Figure 2 “Variable Learning Rates.” As mean qq approaches 1−c/b1-c/b, the minimum value of reciprocity pp becomes less than 1−ε1-\varepsilon, immediately followed by a slight decrease in the mean forgiveness qq. The population eventually reaches a distribution where the majority of agents are near q=1−c/b−εq=1-c/b-\varepsilon, the stationary point. Given enough simulation time the population converges to GTFT. A long-term simulation of a reduced population sampled from the final state of our system suggests that the system is indeed slowly converging on GTFT (Figure S6 of the Supplemental Material).

Figure S6. Estimate of the variable learning rate population’s long-term trajectory predicts slow convergence to GTFT. Starting from the N=2500N = 2500 agent population at step 25000, we constructed a weighted sample of 125 agents. The sole agent with p<1−εp < 1 - \varepsilon was retained, and one agent was sampled uniformly from 124 nearly equal-sized strata of the remaining population, sorted by qq. Each representative of a stratum was given weight according to the proportion of agents within that stratum relative to the whole population. The agent with p<1−εp < 1 - \varepsilon retained weight 1/25001/2500 (without this weighting procedure, this agent’s weight would be 1/1251/125). Learning rates were multiplied by 100 for computational efficiency; this is not meant to simulate exactly what would happen in a timescale 100 times longer. The sampled population then underwent 101010^{10} updates. Left and center: individual pp and qq trajectories, with the initially aberrant agent colored in red, and population mean values in dashed black lines. Right: the magnitude of the gradient (before scaling by learning rates) for each agent.

Although GTFT is a stationary point, it is not locally stable. Perturbing even one agent from GTFT can destabilize the population. When slightly increasing the qq value of a population at GTFT, a population with uniform learning rates probably never returns to GTFT (see § 13 of the Supplemental Material). In simulations this population reaches the q=εq=\varepsilon axis (Figure S7 of the Supplemental Material), from which Theorem 1 guarantees convergence to ALLD, since its degree of reciprocity remains below c/bc/b.

Figure S7. Recovery trajectory from a small qq perturbation for a GTFT population with variable learning rates. All N=250N = 250 agents received a perturbation q↦q+10−6q \mapsto q + 10^{-6} from GTFT. This perturbation was tested with uniform learning rates ηi=0.2\eta_i = 0.2 (dashed line) and variable learning rates ηi∼Uniform⁡(0.01,0.39)\eta_i \sim\operatorname{Uniform}(0.01, 0.39) (colored lines). Note that the uniform learning population, when initialized from the same point, will thereafter share a location on the strategy space.

However, a population with variable learning rates, despite being locally destabilized, eventually recovers to GTFT through a transient. Similarly to the main experiment, the preservation of high pp values by relatively slow learners stimulates the population’s return to the p=1−εp=1-\varepsilon axis. This result is confirmed by perturbing random fractions of the population, with displacements having random magnitudes and directions (independent of other agents), over 500 simulations per learning rate regime: uniform learning rate populations never recover p=1−εp=1-\varepsilon for any agent, but variable learning rate populations always recover p=1−εp=1-\varepsilon for all agents (Figure S8 of the Supplemental Material).

Figure S8. Populations with variable learning rates can recover from shocks to a GTFT distribution, but those with uniform learning rates can’t. A fraction round⁡(xN)\operatorname{round}(xN), of N=250N = 250 agents, where x∼Uniform⁡(0.01,1.0)x \sim\operatorname{Uniform}(0.01, 1.0), are perturbed area-uniformly onto the half-disk of radius 0.010.01 around GTFT in the strategy space, with each displacement drawn independently. Each perturbation regime was tested with uniform learning rates ηi=0.2\eta_i = 0.2 or variable learning rates ηi∼Uniform⁡(0.01,0.39)\eta_i \sim\operatorname{Uniform}(0.01, 0.39). Results were collected over M=500M = 500 tested populations. The average cooperation (left), mean pp (middle), and mean qq (right) are shown for every one of MM populations.

Robustness to population size and benefit-to-cost ratio

The emergence of cooperation under variable learning rates is not particular to one population size or one payoff regime (Figure S9 of the Supplemental Material). We varied the benefit-to-cost ratio b/cb/c and the degree of heterogeneity in learning rates, and recorded the fraction of replicate populations that reached the cooperative GTFT outcome, for populations of size N=10N=10, 100, and 1000. Three patterns emerge. First, cooperation becomes more frequent as the benefit-to-cost ratio increases, consistent with the threshold role of c/bc/b in Theorem 1 and in the location of GTFT itself. Second, greater heterogeneity in learning rates shifts the boundary of cooperation toward smaller b/cb/c: populations with more variable learners can sustain cooperation in games where less variable populations cannot. The learning rates are distributed according to a symmetric Beta distribution with parameter α\alpha: ηi∼Beta⁡(α,α)\eta_i\sim\operatorname{Beta}(\alpha,\alpha), shifted and scaled onto the range [0.01,0.39][0.01,0.39]. As −log⁡α-\log\alpha increases, the distribution of learning rates increases in variance, going from a point mass at η=0.2\eta=0.2 to a uniform distribution on [0.01,0.39][0.01,0.39] to a two-point distribution with equal probability mass at 0.010.01 and 0.390.39. Although some b/cb/c ratios cannot sustain cooperation with any parameter α\alpha, some intermediate b/cb/c ratios can only sustain cooperation with sufficiently high learning rate variance. Third, the transition sharpens with population size. In small populations (N=10)(N=10) outcomes are mixed, with small-to-intermediate fractions of replicates reaching cooperation across much of the parameter range; in large populations (N=1000)(N=1000) the outcome is nearly deterministic, with a sharp boundary in the (b/c,heterogeneity)(b/c,\text{heterogeneity}) plane separating populations that reach ALLD from populations that reach GTFT. This is consistent with our analysis: the fate of the population is determined by the distribution of reciprocity on entering the transient unforgiving state, and in larger populations that distribution concentrates around its expectation, so replicate populations behave alike.

Figure S9. Cooperation is favored by a larger benefit-to-cost ratio, greater heterogeneity in learning rates, and larger populations. Each panel shows the percentage of 25 replicate populations ending in cooperation (color) as a function of the benefit-to-cost ratio b/cb/c (horizontal axis) and the heterogeneity of learning rates, −log⁡10α-\log_{10}\alpha (vertical axis), for populations of size N=10N=10 (left), N=100N=100 (center) and N=1000N=1000 (right). Learning rates are drawn from a symmetric Beta(α,α)(\alpha,\alpha) distribution scaled onto [0.01,0.39][0.01,0.39]. Its variance increases with −log⁡10α-\log_{10}\alpha: at −log⁡10α=−∞-\log_{10}\alpha=-\infty, every rate is 0.2; at 0, the rates are uniform on [0.01,0.39][0.01,0.39]; at +∞+\infty, half the agents have rate 0.01 and half 0.39. Initial strategies are drawn uniformly from [ε,1−ε][\varepsilon,1-\varepsilon], and the same 25 initial populations (and learning-rate quantiles) are used in every cell of a panel. Every 100 steps, a population is classified as cooperative if its mean pp exceeds 0.99 or its average cooperation exceeds 0.95, and as defecting if every agent has p<0.5p<0.5 or the fraction of agents at ALLD exceeds (b/c−1)/(b/c−1/2)(b/c-1)/(b/c-1/2); populations still unclassified after 50,000 steps count as cooperative if their average cooperation exceeds 0.5. The transition between defection and cooperation sharpens with NN.

Discussion

We have studied a population of selfish, myopic learners who update reactive IPD strategies by simultaneous gradient ascent on their payoffs against the whole population. The fate of such a population can hinge on a single naturalistic parameter: variation among individuals in their rates of learning. With uniform learning rates the population converges to unconditional defection, whereas with variable rates it converges to a stable distribution of generous tit-for-tat strategies and sustains nearly socially optimal payoffs. Along the way, every population passes through a transient unforgiving state in which forgiveness has collapsed and the distribution of reciprocity determines the long-term outcome. We proved criteria on this distribution that guarantee convergence to ALLD or to TFT (Theorem 1), and we proved that GTFT is the only stationary distribution on the reciprocal boundary of the strategy space (Theorem 2). These results are robust to population size and benefit-to-cost ratio, with the transition between defection and cooperation sharpening as the population size grows (Figure S9 of the Supplemental Material).

Our results identify a condition under which gradient ascent solves a social dilemma, and so they speak directly to the literature on optimization and multi-agent learning. Gradient methods are effective across a wide range of optimization and learning problems [20, 30], and yet strict gradient ascent typically fails on social dilemmas such as the IPD, where pairs of learners making selfish updates converge to mutual defection [10, 11, 18, 19]. Existing remedies modify the learner: agents may weight group payoffs in their gradients [22], anticipate the learning of their opponents [23], or adapt their learning rate to their performance [21]. We found a way to make gradient ascent succeed that requires no engineering at all: place the learners in a population and let their learning rates vary. The agents remain purely selfish and myopic; only the composition of the population changes.

Heterogeneity in learning rates is not the only way to avoid the large basin of attraction to ALLD. Randomness in the learning process can have a similar effect. In our simulations, a population with uniform learning rates also converges to a GTFT-like distribution under gradient ascent perturbed by small isotropic noise (Figure S10 of the Supplemental Material), although an isolated pair of noisy learners still converges to mutual defection (Figure S11 of the Supplemental Material). Noise of this kind could enter through the strategy update directly, or through agents estimating their gradient from a finite sample of opponents rather than the whole population. The value of variable learning rates is therefore not that they are the unique cause of cooperation, but that they are a more mechanistic and biologically realistic one. Variation in learning rates generates no new strategies and posits nothing beyond a fixed, intrinsic trait that differs across individuals, the kind of variation organisms are known to exhibit. Variation in learning rates therefore preserves the diversity already present in the population: slow learners with high reciprocity survive the collapse of forgiveness with their reciprocity intact, and they leave the population holding the high-reciprocity strategies that the later move to GTFT requires.

Figure S10. Noisy gradient ascent with uniform learning rates also produces a GTFT-like population. Individual agents’ pp (top, red) and qq (bottom, blue) values over learning steps, with low multivariate Gaussian noise (left; SD = 0.01) and high noise (right; SD = 0.05) added to each strategy update. The black line shows the mean and dashed lines contain 95% of agents within them. In both cases reciprocity pp rises to near 1 and forgiveness qq settles near the GTFT value, with a wider stationary spread under high noise.

Figure S11. An isolated pair of noisy gradient learners fails to cooperate. Average cooperation rate of 1000 independent pairs of agents over learning steps. In each pair, the two agents play only each other (no self-play), starting from strategies drawn uniformly from [ε,1−ε]2[\varepsilon, 1-\varepsilon]^2, and update by gradient ascent with learning rate η=0.02\eta= 0.02 plus isotropic Gaussian noise (SD = 0.001) added to each update. Each line is one pair, colored by its initial average cooperation rate; the black line shows the mean across pairs and dashed lines the 2.5% and 97.5% quantiles. By step 1240, 98.9% of pairs have fallen below 5% cooperation; the remaining 1.1%, with initial cooperation between 0.43 and 0.87, remain near full cooperation.

This contrast is sharpest against evolutionary game theory on a finite set of IPD strategies. When a population of ALLD, TFT, and ALLC strategies evolves by payoff-biased imitation with rare mutation, it never settles into cooperation. The population instead cycles indefinitely between cooperative and defecting phases: tit-for-tat permits the rise of generous players, then unconditional cooperators, who are then exploited by defectors, and the population collapses back toward ALLD before the cycle repeats [4, 6, 16, 17]. Stable, persistent cooperation is not an outcome of this dynamic. Learning in a population with variation in learning rates succeeds where this imitation dynamic fails. The two differ in mechanism, in that our agents compute a local payoff gradient over a continuous strategy space rather than copying successful neighbors from a finite menu. The feedback we observe near GTFT, where an occasional agent moves toward exploitation and the population’s forgiveness decreases in response, is a damped perturbation around this stable outcome, not a recurrence of the cooperative and defecting phases.

Closer to our setting, McAvoy et al. [24] showed that selfish gradient learners can reach social optima when updates occur through rare, random pairwise encounters in a large population. Their mechanism is different from ours: optimality there arises from the ephemerality of interactions, whereas our agents all update simultaneously against the entire population, and optimality arises from heterogeneity in learning rates. The two models nevertheless agree on a broader point, namely that the population context can reverse the dysfunction of selfish learning in pairs.

Several limitations suggest directions for future work. Our agents compute gradients of their payoff against the entire population; a more realistic learner would sample a subset of opponents, introducing stochasticity whose effect on whether the population reaches ALLD or GTFT is unknown. We restricted attention to reactive strategies; the full space of memory-one strategies doubles the dimension and includes strategies, such as extortionate ones, that may alter the transient unforgiving state. The continuous-time limit of our population dynamics is a nonlocal transport equation (§ 8.2 of the Supplemental Material), and a rigorous treatment of its well-posedness and long-term behavior, including mass accumulation on the boundary, remains open. Finally, our agents’ learning rates are fixed for life; learning rates that decay over time, as in stochastic approximation [20, 21], would likely stabilize the slow transient near GTFT into true convergence.

Our results also hint at broader implications for multi-agent learning. The distribution of learning rates (or other microscopic parameters) in a population might determine which collective outcomes become accessible, and which are resilient. Coordination problems, in particular, might benefit from this heterogeneity. Mismatches are costly, so fast learners might abandon optimal strategies, but slower learners could maintain them long enough for others to relearn them. Preserving strategic diversity through heterogeneity might lead to more optimal outcomes for multiple agents across a broad class of games and tasks.

Individuals differ in how quickly they learn, both across and within species, and that variation is well documented [31, 32, 33]. Variation in learning rates might also be thought of as a measure of one’s reactivity to a situation: how quickly and how much should they act upon information at their disposal? Should they change their entire strategy, or wait for more to play out? It is similarly naturalistic that this trait might vary in a population. Our results show that this mundane form of variation is sufficient to produce stable and nearly optimal cooperation in a population of entirely selfish learners, with no genetic predisposition to altruism, no foresight, and no randomness in their updates. Variable learning rates cannot create high reciprocity where none exists; what they do is preserve the strategic diversity a population starts with, long enough for reciprocity to produce cooperation. Diversity in how individuals learn, not only in what they do, may thus be an underappreciated resource for the emergence of cooperation.

Data availability

The code used to run the simulations, generate the figures, and perform the numerical checks in this article is openly available at https://github.com/james-wolfe/reactive-learning. The simulation data are archived on Zenodo [34].

Acknowledgments

We thank the members of the Plotkin lab for helpful discussions.

Supplemental Material for Multi-Agent Learning of Reactive Strategies in Iterated Games

James P. Wolfe; Joshua B. Plotkin

Infinite population limit

Formulation

Much like in the agent-based formulation, for any individual strategy x∈[ε,1−ε]2x \in[\varepsilon,1-\varepsilon]^2, its expected payoff at time tt is given by the payoff of xx against all other strategies in [ε,1−ε]2[\varepsilon,1-\varepsilon]^2, weighted by their relative frequency:

Πt(x)=∫π(x,y) dFt(y).\Pi^t(x)=\int\pi(x,y)\,\mathrm{d}F^t(y).

The gradient of strategy xx playing against the distribution Ft(y)F^t(y) is then

∇xΠt(x)=∫∇xπ(x,y) dFt(y).\nabla_x\Pi^t(x)=\int\nabla_x\pi(x,y)\,\mathrm{d}F^t(y).

From this gradient we construct an update rule for the population. First, denote the strategy space X=[ε,1−ε]2X=[\varepsilon,1-\varepsilon]^2 and let E⊂R+E\subset\mathbb{R}^{+} be the set of possible learning rates η\eta in the population. To track both strategies and learning rates at time tt, we bundle them into the joint distribution μt\mu^t over Ω=X×E\Omega=X\times E. The function Φt\Phi^t returns the location after one gradient ascent step of the point (x,η)(x,\eta), with

Φt(x,η)=(Proj⁡X(x+η∇xΠt(x)),η).\Phi^t(x,\eta)=\left(\operatorname{Proj}_X\left(x+\eta\nabla_x\Pi^t(x)\right),\eta\right).

The joint distribution update for the population is then given by the pushforward measure (a natural discrete-time analogue of a continuity equation)

μt+1=(Φt)#μt,\mu^{t+1}=(\Phi^t)_{\#}\mu^t,

i.e. for any Borel set A⊂ΩA\subset\Omega,

μt+1(A)=∬1Φt(x,η)∈A μt(dx,dη).\mu^{t+1}(A)=\iint\mathbf{1}_{\Phi^t(x,\eta)\in A}\,\mu^t(\mathrm{d}x,\mathrm{d}\eta).

This definition provides an exact but implicit description of the update rule. It says, in essence: take the measure of all points such that after gradient update, the point falls within AA. The total measure of all these points is the new measure of AA. Note that this definition allows for continuous probability densities, as well as the accumulation of point masses on the boundaries of XX. In general, the update rule cannot be simplified to a closed-form density solution, excepting special cases.

Continuous-time limit

The discrete-time pushforward above has a formal continuous-time limit. Introduce a step size h>0h>0, replace the update by Φht(x,η)=(Proj⁡X(x+hη∇xΠt(x)),η)\Phi_h^t(x,\eta)=\left(\operatorname{Proj}_X\left(x+h\eta\nabla_x\Pi^t(x)\right),\eta\right), and rescale time as τ=ht\tau=ht. As h→0h\to0, the sequence of pushforward updates converges formally to the nonlocal continuity (transport) equation

∂τμτ+∇x⋅(μτη v[μτ])=0,v[μ](x)=∇x∫Ωπ(x,y) μ(dy,dη′),\partial_\tau\mu_\tau+\nabla_x\cdot\left(\mu_\tau\eta\,v[\mu_\tau]\right)=0,\qquad v[\mu](x)=\nabla_x\int_\Omega\pi(x,y)\,\mu(\mathrm{d}y,\mathrm{d}\eta'),

on Ω=X×E\Omega=X\times E, with no-flux boundary conditions on ∂X\partial X inherited from the projection, which permit the accumulation of mass on the boundary. We conjecture that the behavior established in the discrete-time model persists in this limit: depending on the distribution of reciprocity at the entry to the transient unforgiving state, solutions converge either to a Dirac mass at ALLD or to the Dirac mass at GTFT, which are the analogues of Theorems 1 and 2 of the main text. A rigorous treatment of existence and uniqueness for this equation, with boundary mass accumulation, is left for future work.

Implementation

Since the distribution of learning rates is unchanging in time, we can handle the mass associated with each value of η\eta separately. Consider LL separate M×NM \times N-sized grids of equally spaced points on [ε,1−ε]2[\varepsilon,1-\varepsilon]^2, each grid ll corresponding to a different learning rate ηl\eta_l. Each point on grid ll has an associated frequency fl(pm,qn)f_l(p_m,q_n) such that ∑m,nfl(pm,qn)=1/L\sum_{m,n} f_l(p_m,q_n)=1/L. That way, each learning rate ηl\eta_l will always be associated with the same amount of mass.

The gradient of point x=(pi,qj)x=(p_i,q_j) need only have its notation adjusted: it is still given by the weighted average, across all grids, of the gradient of its payoff against the rest of the population,

∇xΠt(x)=∑l=1L∑n=1N∑m=1Mfl(pm,qn)∇xΠ(x,(pm,qn)).\nabla_x \Pi^t(x)=\sum_{l=1}^{L}\sum_{n=1}^{N}\sum_{m=1}^{M} f_l(p_m,q_n)\nabla_x\Pi(x,(p_m,q_n)).

The function Φkt\Phi_k^t will now send a point xx one step along its gradient with learning rate ηk\eta_k:

Φkt(x)=Proj⁡[ε,1−ε]2(x+ηk∇xΠt(x)).\Phi_k^t(x)=\operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2}\left(x+\eta_k\nabla_x\Pi^t(x)\right).

After one gradient step, the mass associated with point xx could be anywhere in [ε,1−ε]2[\varepsilon,1-\varepsilon]^2. To redistribute the mass back to the preset grid points, we implement a bilinear interpolation scheme, outlined below.

Let (p~i,q~j)=Φkt(pi,qj)(\widetilde{p}_i,\widetilde{q}_j)=\Phi_k^t(p_i,q_j) and

a=min⁡{max⁡{r:pr≤p~i},M−1},b=min⁡{max⁡{s:qs≤q~j},N−1}.a=\min\{\max\{r:p_r\leq\widetilde{p}_i\},M-1\},\quad b=\min\{\max\{s:q_s\leq\widetilde{q}_j\},N-1\}.

Then pap_a and qbq_b are the maximum valued grid points such that p~i≥pa\widetilde{p}_i\geq p_a and q~j≥qb\widetilde{q}_j\geq q_b, except, by construction, aa and bb cannot be the highest possible index (which might happen if (p~i,q~j)(\widetilde{p}_i,\widetilde{q}_j) was on the edge of the space). Now, consider the four points (pa,qb),(pa+1,qb),(pa,qb+1),(pa+1,qb+1)(p_a,q_b),(p_{a+1},q_b),(p_a,q_{b+1}),(p_{a+1},q_{b+1}). These form a square that either contains (p~i,q~j)(\widetilde{p}_i,\widetilde{q}_j) in its interior or on its boundary. Let

dp=p~i−papa+1−pa,dq=q~j−qbqb+1−qbd_p=\frac{\widetilde{p}_i-p_a}{p_{a+1}-p_a},\quad d_q=\frac{\widetilde{q}_j-q_b}{q_{b+1}-q_b}

denote the relative distances in each direction to the pp and qq coordinates of the square’s corners. If wr,s(p~i,q~j)w_{r,s}(\widetilde{p}_i,\widetilde{q}_j) is the fraction of the mass at (pm,qn)(p_m,q_n) that is allocated to the point (pr,qs)(p_r,q_s), then our mass distribution scheme is the following:

wa,b(p~i,q~j)=(1−dp)(1−dq),wa+1,b(p~i,q~j)=dp(1−dq),wa,b+1(p~i,q~j)=(1−dp)dq,wa+1,b+1(p~i,q~j)=dpdq,\begin{aligned} w_{a,b}(\widetilde{p}_i,\widetilde{q}_j)&=(1-d_p)(1-d_q),\\ w_{a+1,b}(\widetilde{p}_i,\widetilde{q}_j)&=d_p(1-d_q),\\ w_{a,b+1}(\widetilde{p}_i,\widetilde{q}_j)&=(1-d_p)d_q,\\ w_{a+1,b+1}(\widetilde{p}_i,\widetilde{q}_j)&=d_pd_q, \end{aligned}

and wr,s=0w_{r,s}=0 for all other r,sr,s. Note that this handles edge cases (like boundaries) well. (A geometric view of this interpolation scheme is that the fraction of mass that goes to one corner is equal to the area of the rectangle between the point in question and the opposite corner, divided by the area of each grid square.)

Finally, we write the updated frequency for the point (pm,qn)(p_m,q_n) on the kkth grid, which is given by a similar pushforward:

fkt+1(pm,qn)=∑i,jfkt(pi,qj)wm,n(Φkt(pi,qj)).f_k^{t+1}(p_m,q_n)=\sum_{i,j}f_k^t(p_i,q_j)w_{m,n}\left(\Phi_k^t(p_i,q_j)\right).

Gradients during the collapse of forgiveness

Variation in learning rates can preserve reciprocity by delaying slow learners’ descent toward the unforgiving line. Slow learners move little while the initial gradient points toward lower reciprocity and forgiveness, and can retain high reciprocity until their gradients become nearly vertical. Two reference populations clarify this timing mechanism: the uniform initial distribution and a population concentrated at ALLD.

The uniform initial distribution

Write X=[ε,1−ε]2X = [\varepsilon, 1-\varepsilon]^2 and L=1−2εL = 1 - 2\varepsilon. Under the uniform distribution on XX, the opponent’s degree of reciprocity r=p2−q2r = p_2 - q_2 has density (L−∣r∣)/L2(L - |r|)/L^2, and its mean forgiveness conditional on rr is (1−r)/2(1-r)/2. Averaging the pairwise gradient from Sec. II B of the main text therefore gives

Gp(p,q)=1L2∫−LL(br−c)[12+r(q−12)](1−(p−q)r)2(L−∣r∣) dr,G_p(p,q) = \frac{1}{L^2}\int_{-L}^{L}\frac{(br-c)\left[\frac{1}{2}+r\left(q-\frac{1}{2}\right)\right]}{\left(1-(p-q)r\right)^2}(L-|r|)\,\mathrm{d}r,
Gq(p,q)=1L2∫−LL(br−c)[12+r(12−p)](1−(p−q)r)2(L−∣r∣) dr.G_q(p,q) = \frac{1}{L^2}\int_{-L}^{L}\frac{(br-c)\left[\frac{1}{2}+r\left(\frac{1}{2}-p\right)\right]}{\left(1-(p-q)r\right)^2}(L-|r|)\,\mathrm{d}r.

These exact integrals admit closed forms. Along each segment with p−qp-q fixed, both components are linear in (p,q)(p,q), so their maxima occur at the segment’s endpoints. Their maxima over XX can therefore be found by numerical optimization along its edges.

At b=1b=1, c=1/2c=1/2, and ε=10−3\varepsilon=10^{-3}, the largest component is approximately −0.157536-0.157536, attained at TFT =(1−ε,ε)=(1-\varepsilon,\varepsilon). Both components are therefore negative throughout the square. Numerical optimization gives directions between 26.67∘26.67^\circ and 63.33∘63.33^\circ to the left of the downward vertical: initial learning entails substantial decreases in both reciprocity and forgiveness. These statements describe the unprojected gradient against the exactly uniform distribution; projection limits decreases at the boundary, and a finite sample has its own empirical gradient.

A population concentrated at ALLD

Against a population FDF_D concentrated at ALLD =(ε,ε)=(\varepsilon,\varepsilon), substituting r2=0r_2=0 and q2=εq_2=\varepsilon into the pairwise gradient gives

GFD(x)=(−cε,−c(1−ε))for every x∈X.(3)G_{F_D}(\mathbf{x}) = (-c\varepsilon,-c(1-\varepsilon)) \qquad\text{for every }\mathbf{x}\in X. \tag*{(3)}

This constant field points only arctan⁡(ε/(1−ε))≈0.057∘\arctan(\varepsilon/(1-\varepsilon))\approx0.057^\circ left of the downward vertical at ε=10−3\varepsilon=10^{-3}. Before projection, forgiveness therefore decreases 999 times as rapidly as reciprocity, independently of the learner’s strategy or learning rate. A learner with learning rate η\eta and initial forgiveness q0q_0 reaches q=εq=\varepsilon after k=⌈(q0−ε)/(ηc(1−ε))⌉k=\lceil(q_0-\varepsilon)/(\eta c(1-\varepsilon))\rceil learning steps, during which its reciprocity decreases by at most kηcε<ε(q0−ε)/(1−ε)+ηcε<ε(1+ηc)k\eta c\varepsilon< \varepsilon(q_0-\varepsilon)/(1-\varepsilon)+\eta c\varepsilon< \varepsilon(1+\eta c), the bound quoted in § 3 A of the main text.

These calculations support the timing mechanism observed in § 3 A of the main text. Slow learners retain high pp and qq during the initial diagonal descent, while faster learners accumulate near the unforgiving boundary. Their later descent occurs under nearly vertical gradients, allowing them to reach low forgiveness with high reciprocity still intact (Figure 3 of the main text, Collapse of forgiveness).

Proof of Theorem 1 of the main text: convergence in the transient unforgiving state

On the edge qi=εq_i=\varepsilon the population is described by the distribution of reciprocity values p∈[ε,1−ε]p\in[\varepsilon,1-\varepsilon], and each agent moves by the mean gradient G(p)=εIμ(p)G(p)=\varepsilon I_\mu(p). Write s=p−ε∈[0,L]s=p-\varepsilon\in[0,L] with L=1−2εL=1-2\varepsilon, let μs\mu_s denote the induced law of ss, and write ϕ(s)=(bs−c)(s+1)\phi(s)=(bs-c)(s+1) for the numerator of the integrand and h(p,s)=(1−(p−ε)s)−2h(p,s)=(1-(p-\varepsilon)s)^{-2} for the denominator factor, so that

Iμ(p)=∫0Lϕ(s)h(p,s) dμs,Iμ(ε)=P(μ)−Q(μ)=∫0Lϕ dμs.I_\mu(p)=\int_0^L\phi(s)h(p,s)\,\mathrm{d}\mu_s,\qquad I_\mu(\varepsilon)=P(\mu)-Q(\mu)=\int_0^L\phi\,\mathrm{d}\mu_s.

Agent ii, with learning rate ηi>0\eta_i>0, updates by pi↦Proj⁡[ε,1−ε](pi+ηiG(pi))p_i\mapsto\operatorname{Proj}_{[\varepsilon,1-\varepsilon]}(p_i+\eta_iG(p_i)). The argument has an invariance lemma (Step 0) plus three steps for each of the two fates, ALLD and TFT: a bound on Iμ(p)I_\mu(p) that holds for every pp at once, from below for TFT and from above for ALLD (Step 1); the observation that the bound is preserved when every agent moves in the same direction (Step 2); and the conversion of a uniform sign of the gradient into convergence in finitely many steps (Step 3). No assumption on the step sizes is needed, and the learning rates may differ across agents, because Step 2 uses only the direction in which each agent moves, not the preservation of the agents’ order.

Step 0: the qq-direction on the unforgiving line. On the line q=εq=\varepsilon, the gradient of agent ii’s payoff in the qq direction is

Gq(pi)=∫0L(bs−c)(1−ε−pis)h(pi,s) dμs(s),G_q(p_i)=\int_0^L (bs-c)(1-\varepsilon-p_i s)h(p_i,s)\,d\mu_s(s),

whose integrand differs from that of εIμ(pi)\varepsilon I_\mu(p_i) only in the positive factor 1−ε−pis≥ε1-\varepsilon-p_i s\ge\varepsilon. Writing ρi(s):=(1−ε−pis)/(ε(1+s))\rho_i(s):=(1-\varepsilon-p_i s)/(\varepsilon(1+s)), which is positive and strictly decreasing on [0,L][0,L] since ddsρi∝−ε(1+pi−ε)<0\frac{d}{ds}\rho_i\propto-\varepsilon(1+p_i-\varepsilon)<0, we have Gq(pi)=∫εϕ(s)h(pi,s)ρi(s) dμs(s)G_q(p_i)=\int\varepsilon\phi(s)h(p_i,s)\rho_i(s)\,d\mu_s(s). Because ϕ\phi and ρi−ρi(α)\rho_i-\rho_i(\alpha) are oppositely ordered, the integrand is bounded pointwise by εϕ(s)h(pi,s)ρi(α)\varepsilon\phi(s)h(p_i,s)\rho_i(\alpha), and integrating,

Gq(pi)≤ρi(α)G(pi),ρi(α)>0.(4)G_q(p_i)\le\rho_i(\alpha)G(p_i),\qquad\rho_i(\alpha)>0. \tag*{(4)}

Hence G(pi)<0G(p_i)<0 implies Gq(pi)<0G_q(p_i)<0: an agent whose reciprocity is falling is also lowering its forgiveness, and the projection holds it at q=εq=\varepsilon. Conversely, if s>αs>\alpha throughout the support of μs\mu_s, every factor in the integrand of GqG_q is positive and Gq(pi)>0G_q(p_i)>0 for every ii.

Step 1, TFT: a lower bound on every agent’s gradient. For every pp,

Iμ(p)≥h(p,α)(P(μ)−Q(μ)),h(p,α)=1(1−(p−ε)α)2≥1.(5)I_\mu(p)\ge h(p,\alpha)\bigl(P(\mu)-Q(\mu)\bigr),\qquad h(p,\alpha)=\frac{1}{(1-(p-\varepsilon)\alpha)^2}\ge1. \tag*{(5)}

To see this, write Iμ(p)−h(p,α)Iμ(ε)=∫0Lϕ(s)[h(p,s)−h(p,α)] dμs(s)I_\mu(p)-h(p,\alpha)I_\mu(\varepsilon)=\int_0^L\phi(s)\bigl[h(p,s)-h(p,\alpha)\bigr]\,d\mu_s(s). For fixed pp the factor h(p,s)h(p,s) is nondecreasing in ss, so h(p,s)−h(p,α)h(p,s)-h(p,\alpha) has the sign of s−αs-\alpha; and ϕ(s)\phi(s) has the sign of s−αs-\alpha as well. The integrand is therefore nonnegative, which gives (S3). (This is a Chebyshev-type inequality for similarly ordered functions [29].) In particular, if P(μ)>Q(μ)P(\mu)>Q(\mu) then Iμ(p)≥P(μ)−Q(μ)>0I_\mu(p)\ge P(\mu)-Q(\mu)>0 for every pp: whenever the gradient at ALLD, p=εp=\varepsilon, is positive, so is every agent’s.

Step 1, ALLD: an upper bound on every agent’s gradient. For the ALLD fate we need the opposite bound, an upper bound on Iμ(p)I_\mu(p) that holds for every pp. For fixed ss, h(p,s)h(p,s) increases from 11 at p=εp=\varepsilon to (1−Ls)−2(1-Ls)^{-2} at p=1−εp=1-\varepsilon. Where ϕ(s)<0\phi(s)<0, that is for s<αs<\alpha, the contribution ϕ(s)h(p,s)\phi(s)h(p,s) is largest at p=εp=\varepsilon; where ϕ(s)≥0\phi(s)\ge0 it is largest at p=1−εp=1-\varepsilon. Hence ϕ(s)h(p,s)≤u(s)\phi(s)h(p,s)\le u(s) for every pp and ss, with uu as defined in the main text, and integrating against μs\mu_s,

Iμ(p)≤U(μ)for every p.(6)I_\mu(p)\le U(\mu)\qquad\text{for every }p. \tag*{(6)}

Moreover uu is continuous and nondecreasing on [0,L][0,L]: on [0,α)[0,\alpha), u′(s)=2bs+(b−c)>0u'(s)=2bs+(b-c)>0; on [α,L][\alpha,L], uu is the product of the nonnegative increasing function ϕ\phi and the positive increasing function (1−Ls)−2(1-Ls)^{-2}; and both pieces vanish at s=αs=\alpha.

Step 2: each bound is preserved by one learning step. For TFT, suppose P(μ0)>Q(μ0)P(\mu_0)>Q(\mu_0) and set δ=P(μ0)−Q(μ0)\delta=P(\mu_0)-Q(\mu_0). By (S3) every agent has G(pi)≥εδ>0G(p_i)\ge\varepsilon\delta>0, so every agent moves weakly toward higher reciprocity, si′≥sis_i'\ge s_i, whatever its learning rate. Here the restriction to q=εq=\varepsilon is used: without it, si=pi−qis_i=p_i-q_i need not increase even though pip_i does. Since ϕ\phi is increasing on [0,L][0,L], with ϕ′(s)=2bs+(b−c)>0\phi'(s)=2bs+(b-c)>0,

P(μ1)−Q(μ1)=1N∑iϕ(si′)≥1N∑iϕ(si)=P(μ0)−Q(μ0)=δ,P(\mu_1)-Q(\mu_1)=\frac{1}{N}\sum_i\phi(s_i')\ge\frac{1}{N}\sum_i\phi(s_i)=P(\mu_0)-Q(\mu_0)=\delta,

and in the Eulerian model the same inequality holds with the sums replaced by integrals against μ0\mu_0. By induction P(μt)−Q(μt)≥δP(\mu_t)-Q(\mu_t)\ge\delta for every tt, hence Iμt(p)≥δI_{\mu_t}(p)\ge\delta for every agent at every step.

Suppose instead P(μ0)=−δ<0P(\mu_0)=-\delta<0. By (S4) every agent has G(pi)≤−εδ<0G(p_i)\le-\varepsilon\delta<0, and then by (S2), every agent also has Gq<0G_q<0, so the population remains on the line and μ1\mu_1 is again a distribution on [0,L][0,L]. Thus, the population moves weakly toward lower reciprocity, si′≤sis_i'\le s_i. Since uu is nondecreasing, U(μ1)=1N∑iu(si′)≤1N∑iu(si)=U(μ0)U(\mu_1)=\frac{1}{N}\sum_i u(s_i')\le\frac{1}{N}\sum_i u(s_i)=U(\mu_0), and by induction Iμt(p)≤−δI_{\mu_t}(p)\le-\delta for every agent at every step.

Step 3: convergence in finitely many steps. In the TFT case each agent gains at least ηiεδ\eta_i \varepsilon\delta in reciprocity per step until it reaches p=1−εp = 1 - \varepsilon, where the projection holds it, so every agent is at 1−ε1 - \varepsilon after at most ⌈L/(min⁡iηiεδ)⌉\lceil L/(\min_i \eta_i \varepsilon\delta)\rceil steps, the population at TFT (1−ε,ε)(1-\varepsilon,\varepsilon). In the ALLD case each agent loses at least ηiεδ\eta_i \varepsilon\delta per step until it reaches p=εp = \varepsilon, and the population is at ALLD (ε,ε)(\varepsilon,\varepsilon) after the same number of steps.

Finally, the TFT condition is exact for an argument that certifies a positive gradient at every point of the line: if P(μ)≤Q(μ)P(\mu) \le Q(\mu), then Iμ(ε)=P(μ)−Q(μ)≤0I_\mu(\varepsilon) = P(\mu) - Q(\mu) \le0, so an agent at ALLD, p=εp = \varepsilon, does not have a positive gradient. The ALLD condition is a sufficient condition only: U(μ)U(\mu) is an upper bound that in general no single agent attains, because the denominator factor is evaluated at p=εp = \varepsilon for opponents less reciprocal than α\alpha and at p=1−εp = 1 - \varepsilon for opponents more reciprocal than α\alpha.

Once every agent’s ss exceeds α\alpha, every agent’s gradient in qq is positive, meaning the population will leave the q=εq = \varepsilon line. This can be seen from the equation for Gq(pi)G_q(p_i) in Step 0. When P(μ)>Q(μ)P(\mu) > Q(\mu), every agent moves monotonically to L>αL > \alpha, implying that at some point before (with sufficiently small learning rate) reaching TFT, the entire population will have positive gradient in qq. The restriction that q=εq = \varepsilon is thus necessary; the population would assuredly leave the line without it.

Proof that GTFT is the only stationary distribution on the reciprocal line

The gradient along the reciprocal line

Fix p=1−εp = 1 - \varepsilon and consider a focal agent (p,q)(p,q) playing an opponent (p,y)(p,y), both on the reciprocal boundary. Their payoff is

π(q,y)=b(q(p−y)+y)−c(q+(p−q)y)1−(p−q)(p−y).\pi(q,y) = \frac{b(q(p-y)+y)-c(q+(p-q)y)}{1-(p-q)(p-y)}.

and differentiating with respect to the focal agent’s forgiveness qq gives

∂qπ(q,y)=ψ(y)(1−(p−q)(p−y))2,ψ(y)=(1−p)(1+p−y)(b(p−y)−c).(7)\partial_q \pi(q,y) = \frac{\psi(y)}{\left(1-(p-q)(p-y)\right)^2}, \qquad\psi(y) = (1-p)(1+p-y)(b(p-y)-c). \tag*{(7)}

The numerator ψ(y)\psi(y) depends only on the opponent’s forgiveness yy, and the focal agent’s own forgiveness qq enters only through the denominator, which is strictly positive. The sign of the pairwise gradient is therefore set entirely by the opponent. Against the population ρ\rho the mean gradient of an agent at qq is

H(q)=∫ψ(y) φ(q,y) dρ(y),φ(q,y)=1(1−(p−q)(p−y))2.H(q) = \int\psi(y)\,\varphi(q,y)\,\mathrm{d}\rho(y), \qquad\varphi(q,y) = \frac{1}{\left(1-(p-q)(p-y)\right)^2}.

Only the Dirac mass at GTFT is stationary

Theorem S1 (Theorem 2 of the main text, restated). Let ε>0\varepsilon> 0, b>c>0b > c > 0, and c/b<1−2εc/b < 1 - 2\varepsilon. Let ρ\rho be any Borel probability measure on the line p=1−εp = 1 - \varepsilon, atomic or continuous, such that H(q)=0H(q) = 0 for every qq in the support of ρ\rho. Then ρ\rho is the Dirac mass at q∗=1−c/b−εq^* = 1 - c/b - \varepsilon, i.e. at GTFT.

Proof. Write r(y)=p−y∈[0,1−2ε]r(y) = p-y \in[0,1-2\varepsilon] for the opponent’s degree of reciprocity, so that 1−(p−q)(p−y)=1−r(q)r(y)1-(p-q)(p-y)=1-r(q)r(y) with 0≤r(q)r(y)≤(1−2ε)2<10 \le r(q)r(y) \le(1-2\varepsilon)^2 < 1. On this range the kernel admits the uniformly convergent expansion

φ(q,y)=1(1−r(q)r(y))2=∑n=0∞(n+1)r(q)nr(y)n.\varphi(q,y) = \frac{1}{(1-r(q)r(y))^2} = \sum_{n=0}^{\infty}(n+1)r(q)^n r(y)^n.

Because HH vanishes at every point of the support of ρ\rho, the integral of H(q)ψ(q)H(q)\psi(q) against ρ\rho is zero. Substituting the expansion and exchanging the sum with the two integrals, which uniform convergence permits,

0=∬ψ(q)φ(q,y)ψ(y) dρ(q) dρ(y)=∑n=0∞(n+1)mn2,mn=∫r(y)nψ(y) dρ(y).0 = \iint\psi(q)\varphi(q,y)\psi(y)\,\mathrm{d}\rho(q)\,\mathrm{d}\rho(y) = \sum_{n=0}^{\infty}(n+1)m_n^2,\qquad m_n = \int r(y)^n\psi(y)\,\mathrm{d}\rho(y).

Every term of the sum is nonnegative, so mn=0m_n = 0 for all n≥0n \ge0. Since rr is a polynomial of degree one in yy, the functions rnr^n span the polynomials, so every polynomial moment of the finite signed measure ψ dρ\psi\,d\rho vanishes. Polynomials are uniformly dense in the continuous functions on the compact interval [ε,1−ε][\varepsilon,1-\varepsilon], so ψ dρ\psi\,d\rho integrates every continuous function to zero and is therefore the zero measure. Hence ψ(y)=0\psi(y)=0 for ρ\rho-almost every yy.

Finally, 1−p=ε>01-p=\varepsilon>0 and 1+p−y>01+p-y>0 for y∈[ε,1−ε]y\in[\varepsilon,1-\varepsilon], so the only zero of ψ\psi is b(p−y)=cb(p-y)=c, that is y=p−c/b=1−c/b−ε=q∗y=p-c/b=1-c/b-\varepsilon=q^*, which lies in [ε,1−ε][\varepsilon,1-\varepsilon] by the hypothesis c/b<1−2εc/b<1-2\varepsilon. A probability measure concentrated on a single point is the Dirac mass there.

There is a simple intuition for Theorem 2, based on the gradient alone. The sign of each pairwise gradient in the qq direction is set by the opponent: ψ(y)\psi(y) is positive when the opponent’s degree of reciprocity, r(y)r(y), exceeds c/bc/b, and negative when it falls below c/bc/b, the threshold described in Sec. II B. Two agents with different forgiveness weigh the same opponents differently, because the kernel ϕ(q,y)\phi(q,y) increases with r(y)r(y), and increases faster for a less forgiving focal agent. A less forgiving agent therefore weights the positive contributions of highly reciprocal opponents more heavily than a more forgiving agent does. If the more forgiving agent’s gradient vanishes, the less forgiving agent’s gradient is positive, unless every opponent contributes zero, that is, unless every agent is at q∗q^*. Hence no distribution supported at two or more values of qq satisfies the hypothesis of the theorem, and a distribution concentrated at a single value of qq satisfies it only if that value is a zero of ψ\psi, that is, only at GTFT. The proof above reaches the same conclusion by a different argument: it weights each agent’s gradient by the agent’s own numerator ψ(q)\psi(q) and averages over the population, which turns the vanishing of every gradient into the vanishing of a sum of squares.

Note that “stationary” is used loosely in Theorem 2: a distribution on p=1−εp=1-\varepsilon could be stationary under our projection system if all gradients are pointed perpendicular to the p=1−εp=1-\varepsilon line, i.e. purely in the pp-direction. Thus, we consider any distribution where the gradient in the qq-direction is zero. (In other words, this is without the necessary restriction that the gradient in the pp-direction be non-negative.)

The proof imposes no restriction on the support, so it covers a single agent, a finite population of NN agents, and a continuous density alike; the finite case is the one realized by the agent-based model. Two remarks follow from (S5) at no extra cost. First, the hypothesis c/b<1−2εc/b<1-2\varepsilon is sharp: if c/b>1−2εc/b>1-2\varepsilon then ψ<0\psi<0 throughout [ε,1−ε][\varepsilon,1-\varepsilon], every agent on the reciprocal line has a strictly negative gradient in the qq direction, and no stationary distribution exists there at all. Second, the case of a population entirely at ALLC requires no separate argument, since ψ(1−ε)=−cε≠0\psi(1-\varepsilon)=-c\varepsilon\ne0 and ALLC is therefore not a zero of ψ\psi.

The strategy (1−ε,q∗)(1-\varepsilon,q^*) satisfies p−q=c/bp-q=c/b exactly, and substituting r2=c/br_2=c/b into the payoff gives π(x1,(1−ε,q∗))=b(1−ε)−c\pi(\mathbf{x}_1,(1-\varepsilon,q^*))=b(1-\varepsilon)-c for every strategy x1\mathbf{x}_1: an opponent at GTFT fixes the payoff of every co-player, whatever that co-player does. Both components of the gradient against a population concentrated at GTFT therefore vanish identically, which is why the Dirac mass at GTFT is a fixed point of the full two-dimensional dynamics and not only of the motion along the line.

Long-term experiment (Fig. S6)

Directly evaluating the population gradient requires N2N^2 pairwise calculations at each learning step. Moreover, as the population approaches GTFT, the payoff gradients become small, so appreciable strategy changes require increasingly long timescales. To investigate the fate of the slow transient described in § 3 D of the main text, we investigated how a smaller population sampled from the full N=2500N=2500 population at the end of its simulation would evolve. Importantly, this experiment was intended to estimate the qualitative long-term behavior, rather than reproduce the trajectory of the original population exactly.

We initialized the reduced population from the N=2500N=2500 agent simulation at step 25000. At this point, all but one agent had p=1−εp=1-\varepsilon. We retained this agent with (p,q)≈(0.678762,0.999)(p,q)\approx(0.678762,0.999), as it is crucial to the population dynamics, and sampled 124 from those along the p=1−εp=1-\varepsilon boundary. To do this, we sorted the 2499 remaining agents by forgiveness qq and divided them into 124 contiguous groups: 105 with 20 agents, 19 with 21 agents. We selected one agent uniformly at random from each group, retaining its strategy and learning rate. This stratified sampling process ensures the qq distribution roughly resembles that of the full population.

Each sampled agent was assigned a fixed weight equal to the fraction of the original population that its stratum contained, i.e. a sampled agent from a group of size mm received weight m/2500m/2500. Importantly, this meant the agent with p<1−εp < 1-\varepsilon received weight 1/25001/2500. Without this weighting procedure, this agent would have twentyfold higher impact on the gradient of all agents, potentially impacting the population dynamics. Instead, this way, we can use a reduced population but still estimate the feedback dynamics between this agent and the 2499 others more precisely. The gradient for each agent is thus computed as

Git=∑j=1125wj∇xitπ(xit,xjt),∑j=1125wj=1.G_i^t = \sum_{j=1}^{125} w_j \nabla_{x_i^t} \pi(x_i^t,x_j^t), \qquad\sum_{j=1}^{125} w_j = 1.

To accelerate movement in the slow transient, we multiplied sampled learning rates by 100, but preserved their relative variation. We then performed 101010^{10} additional updates:

xit+1=Proj⁡[ε,1−ε]2(xit+100ηiGit).x_i^{t+1} = \operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2}\left(x_i^t + 100\eta_i G_i^t\right).

The calculation was implemented in compiled C using double-precision arithmetic. Reducing the population from 2500 to 125 agents alone decreases the pairwise computation by a factor of 400. We obtained a further reduction by expanding the interaction kernel in weighted population moments. Writing rj=pj−qjr_j = p_j - q_j, the pairwise gradients contain the factor (1−rirj)−2(1-r_i r_j)^{-2}. For interaction partners with degrees of reciprocity within an interval of midpoint aa and half-width hh, write rj=a+hsjr_j = a + h s_j, where ∣sj∣≤1|s_j| \le1. Then

1(1−rirj)2=1(1−ari)2∑k=0∞(k+1)(hri1−ari)ksjk.\frac{1}{(1-r_i r_j)^2} = \frac{1}{(1-a r_i)^2} \sum_{k=0}^{\infty} (k+1)\left(\frac{h r_i}{1-a r_i}\right)^k s_j^k.

This expansion allows weighted moments of the opponent population to be computed once and reused for every agent. With KK retained terms, the calculation requires order NKNK operations rather than N2N^2. At each update, the agent with the smallest rjr_j was evaluated directly, and excluded from the expansion interval, narrowing the range occupied by the remaining population.

The number of terms was chosen adaptively so that the absolute truncation error in each gradient component was bounded by 10−1410^{-14} before floating-point rounding. When too many terms were required, the calculation reverted to direct pairwise summation. Every learning step was still evaluated. The truncation tolerance controls the approximation of an individual gradient, not the accumulated error in the trajectory.

The reduced population moves progressively closer to GTFT, with the initially offset agent first increasing its reciprocity pp and then its forgiveness qq (Figure S6). After 101010^{10} updates, the agent is at (p,q)≈(0.998994,0.502090)(p,q) \approx(0.998994,0.502090), while the other agents have p=0.999p = 0.999, and qq values close to 0.499=1−c/b−ε0.499 = 1-c/b-\varepsilon. The magnitudes of the payoff gradients also decrease significantly. These observations are consistent with a slow approach to GTFT, although the population has not reached that point exactly.

No recovery to GTFT under uniform learning rates

We now consider a population with uniform learning rates in which every agent is displaced from GTFT to the same strategy. If the displacement lowers the degree of reciprocity below c/bc/b, the population cannot recover to GTFT, provided the learning rate satisfies the bound below. This conclusion follows from the full discrete update rule, including projection, and does not require the displacement to be infinitesimal.

Theorem S2 (No recovery under uniform learning rates). Let 0<ε<1/20 < \varepsilon< 1/2, b>c>0b > c > 0, and write α=c/b\alpha= c/b, with α<1−2ε\alpha< 1-2\varepsilon. Suppose all NN agents initially occupy the same strategy x0=(p0,q0)∈[ε,1−ε]2x^0 = (p^0,q^0) \in[\varepsilon,1-\varepsilon]^2, with

r0=p0−q0<α,r^0 = p^0-q^0 < \alpha,

and share a learning rate η>0\eta> 0 satisfying

ηb≤(1−α)2.\eta b \le(1-\alpha)^2.

Then all agents remain at a common strategy xt=(pt,qt)x^t = (p^t,q^t), with rt<αr^t < \alpha at every learning step. Both ptp^t and qtq^t are nonincreasing, and pt<1−εp^t < 1-\varepsilon for every t≥1t \ge1. In particular, the population cannot return to GTFT.

Proof. Agents with identical strategies and learning rates receive identical updates. Consequently, the population remains concentrated at a single strategy x=(p,q)x=(p,q), whose update is

xt+1=Proj⁡[ε,1−ε]2(xt+ηG(xt)),G(x)=∇x1π(x1,x2)∣x1=x2=x.x^{t+1}=\operatorname{Proj}_{[\varepsilon,1-\varepsilon]^2}\left(x^t+\eta G(x^t)\right),\qquad G(x)=\left.\nabla_{x_1}\pi(x_1,x_2)\right|_{x_1=x_2=x}.

Substituting r=p−qr=p-q into the pairwise gradient gives

Gp(x)=bq(r−α)(1−r)2(1+r),Gq(x)=b(1−p)(r−α)(1−r)2(1+r).G_p(x)=\frac{bq(r-\alpha)}{(1-r)^2(1+r)},\qquad G_q(x)=\frac{b(1-p)(r-\alpha)}{(1-r)^2(1+r)}.

Since q≥εq\ge\varepsilon, 1−p≥ε1-p\ge\varepsilon, and ∣r∣≤1−2ε|r|\le1-2\varepsilon, both components are strictly negative whenever r<αr<\alpha. Thus, as long as this inequality holds, neither coordinate increases under the projected update.

It remains to show that r<αr<\alpha is preserved. Let

p~=p+ηGp(x),q~=q+ηGq(x)\widetilde{p}=p+\eta G_p(x),\qquad\widetilde{q}=q+\eta G_q(x)

denote the coordinates before projection, and set r~=p~−q~\widetilde{r}=\widetilde{p}-\widetilde{q}. Subtracting the two gradient components yields

r~−α=(r−α)[1−ηb(1−p−q)(1−r)2(1+r)].\widetilde{r}-\alpha=(r-\alpha)\left[1-\frac{\eta b(1-p-q)}{(1-r)^2(1+r)}\right].

If 1−p−q≤01-p-q\le0, the bracket is at least one. Otherwise, 0<1−p−q<1+r0<1-p-q<1+r, and r<αr<\alpha implies

0<ηb(1−p−q)(1−r)2(1+r)<ηb(1−r)2≤ηb(1−α)2≤1.0<\frac{\eta b(1-p-q)}{(1-r)^2(1+r)}<\frac{\eta b}{(1-r)^2}\le\frac{\eta b}{(1-\alpha)^2}\le1.

The bracket is therefore strictly positive in either case, so r~<α\widetilde{r}<\alpha.

Projection also preserves the inequality. Neither coordinate can cross the upper boundary because both gradients are negative. If p~≤ε\widetilde{p}\le\varepsilon, projection gives pt+1=εp^{t+1}=\varepsilon and hence rt+1≤0<αr^{t+1}\le0<\alpha. Otherwise, projecting q~\widetilde{q} upward to ε\varepsilon, if necessary, can only decrease the degree of reciprocity. Thus rt+1<αr^{t+1}<\alpha, and induction establishes the claim at every step.

Finally, Gp<0G_p<0 whenever r<αr<\alpha, so reciprocity decreases strictly whenever p>εp>\varepsilon. If the population starts on p=1−εp=1-\varepsilon, it leaves that boundary at the first update. Since reciprocity never subsequently increases, the population cannot return to the reciprocal boundary or to GTFT.

There is a simple intuition for Theorem S2, based on the gradient alone. Both components of each pairwise gradient contain the factor br2−cbr^2-c: raising either cooperation probability increases an agent’s payoff only when its co-player’s degree of reciprocity exceeds c/bc/b (Sec. II B of the main text). In a population concentrated at a single strategy, every co-player has the agent’s own degree of reciprocity, rr, so when r<c/br<c/b both components of the gradient are negative, and every agent lowers both its reciprocity and its forgiveness. A return to GTFT would require reciprocity to increase, which the gradient permits only when rr exceeds c/bc/b. The degree of reciprocity can increase, because forgiveness may fall faster than reciprocity, but each learning step changes rr by an amount proportional to its distance from c/bc/b, and the bound ηb≤(1−α)2\eta b\le(1-\alpha)^2 ensures that no step changes rr by more than that distance. Hence rr remains below c/bc/b, and the population never returns to the reciprocal boundary. With variable learning rates, the premise of the theorem fails at the first learning step: agents with different learning rates move different distances, so the population no longer occupies a single strategy, and the slow learners retain high reciprocity (Figure S7).

For our parameters b=1b=1, c=1/2c=1/2, and η=0.2\eta=0.2, the learning-rate condition is satisfied because 0.2≤(1−1/2)2=0.250.2\le(1-1/2)^2=0.25. In particular, displacing every agent from GTFT to

(p0,q0)=(1−ε,1−c/b−ε+δ),0<δ≤c/b,(p^0,q^0)=(1-\varepsilon,1-c/b-\varepsilon+\delta),\qquad0<\delta\le c/b,

gives r0=c/b−δ<c/br^0=c/b-\delta<c/b, so Theorem S2 excludes recovery following any such common increase in forgiveness. The result applies to a population concentrated at one displaced strategy (as in Figure S7); it does not establish the same conclusion when different agents receive different displacements (as in Figure S8, though these displacements also do not always lower the degree of reciprocity).

Supplemental Figures

References

  1. [1]R. L. Trivers, The Evolution of Reciprocal Altruism, The Quarterly Review of Biology 46, 35 (1971).DOI
  2. [2]R. Axelrod and W. D. Hamilton, The Evolution of Cooperation, Science 211, 1390 (1981).
  3. [3]M. Nowak and K. Sigmund, The evolution of stochastic strategies in the Prisoner’s Dilemma, Acta Applicandae Mathematica 20, 247 (1990).DOI
  4. [4]M. A. Nowak and K. Sigmund, Tit for tat in heterogeneous populations, Nature 355, 250 (1992).
  5. [5]M. A. Nowak, Five Rules for the Evolution of Cooperation, Science 314, 1560 (2006).
  6. [6]M. A. Nowak, Evolutionary Dynamics: Exploring the Equations of Life (Harvard University Press, 2006).
  7. [7]J. W. Friedman, A Non-cooperative Equilibrium for Supergames, The Review of Economic Studies 38, 1 (1971).
  8. [8]J.-P. Benoit and V. Krishna, Finitely Repeated Games, Econometrica 53, 905 (1985).
  9. [9]D. Fudenberg and E. Maskin, The Folk Theorem in Repeated Games with Discounting or with Incomplete Information, Econometrica 54, 533 (1986).
  10. [10]T. W. Sandholm and R. H. Crites, Multiagent reinforcement learning in the Iterated Prisoner’s Dilemma, Biosystems 37, 147 (1996).
  11. [11]D. Bloembergen, K. Tuyls, D. Hennes, and M. Kaisers, Evolutionary Dynamics of Multi-Agent Learning: A Survey, Journal of Artificial Intelligence Research 53, 659 (2015).DOI
  12. [12]D. Fudenberg and D. K. Levine, The Theory of Learning in Games, edited by K. Binmore, Economic Learning and Social Evolution (MIT Press, Cambridge, MA, USA, 1998).
  13. [13]J. M. Smith, Evolution and the Theory of Games (Cambridge University Press, Cambridge, 1982).
  14. [14]P. D. Taylor and L. B. Jonker, Evolutionary stable strategies and game dynamics, Mathematical Biosciences 40, 145 (1978).DOI
  15. [15]J. Hofbauer and K. Sigmund, Evolutionary Games and Population Dynamics (Cambridge University Press, Cambridge, 1998).
  16. [16]L. A. Imhof and M. A. Nowak, Stochastic evolutionary dynamics of direct reciprocity, Proceedings of the Royal Society B: Biological Sciences 277, 463 (2010).DOI
  17. [17]L. A. Imhof, D. Fudenberg, and M. A. Nowak, Evolutionary cycles of cooperation and defection, Proceedings of the National Academy of Sciences 102, 10797 (2005).DOI
  18. [18]M. W. Macy and A. Flache, Learning dynamics in social dilemmas, Proceedings of the National Academy of Sciences 99, 7229 (2002).
  19. [19]K. Tuyls, P. J. T. Hoen, and B. Vanschoenwinkel, An Evolutionary Dynamical Analysis of Multi-Agent Learning in Iterated Games, Autonomous Agents and Multi-Agent Systems 12, 115 (2006).DOI
  20. [20]S. Singh, M. Kearns, and Y. Mansour, Nash convergence of gradient dynamics in general-sum games, in Proceedings of the Sixteenth Conference on Uncertainty in Artificial Intelligence, UAI’00 (Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 2000) pp. 541–548.
  21. [21]M. Bowling and M. Veloso, Multiagent learning using a variable learning rate, Artificial Intelligence 136, 215 (2002).DOI
  22. [22]C. Zhang, X. Li, J. Hao, S. Chen, K. Tuyls, W. Xue, and Z. Feng, SA-IGA: A multiagent reinforcement learning method towards socially optimal outcomes, Autonomous Agents and Multi-Agent Systems 33, 403 (2019).arxiv.org/abs/1803.03021
  23. [23]J. Foerster, R. Y. Chen, M. Al-Shedivat, S. Whiteson, P. Abbeel, and I. Mordatch, Learning with Opponent-Learning Awareness, in Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS ’18 (International Foundation for Autonomous Agents and Multiagent Systems, Richland, SC, 2018) pp. 122–130.arxiv.org/abs/1709.04326
  24. [24]A. McAvoy, Y. Mori, and J. B. Plotkin, Selfish optimization and collective learning in populations, Physica D: Nonlinear Phenomena 439, 133426 (2022).DOI
  25. [25]W. Barfuss and J. M. Meylahn, Intrinsic fluctuations of reinforcement learning promote cooperation, Scientific Reports 13, 1309 (2023).DOI
  26. [26]Y. Meng, S. P. Cornelius, Y.-Y. Liu, and A. Li, Dynamics of collective cooperation under personalised strategy updates, Nature Communications 15, 3125 (2024).DOI
  27. [27]K. Sigmund, The Calculus of Selfishness, Princeton Series in Theoretical and Computational Biology (Princeton University Press, Princeton, 2010).DOI
  28. [28]C. Hilbe, K. Chatterjee, and M. A. Nowak, Partners and rivals in direct reciprocity, Nature Human Behaviour 2, 469 (2018).DOI
  29. [29]A. Wagener, Chebyshev’s Algebraic Inequality and comparative statics under uncertainty, Mathematical Social Sciences 52, 217 (2006).DOI
  30. [30]M. Zinkevich, Online convex programming and generalized infinitesimal gradient ascent, in Proceedings of the Twentieth International Conference on International Conference on Machine Learning, ICML ’03 (AAAI Press, Washington, DC, USA, 2003) pp. 928–935.
  31. [31]A. Thornton and D. Lukas, Individual variation in cognitive performance: Developmental and evolutionary perspectives, Philosophical Transactions of the Royal Society B: Biological Sciences 367, 2773 (2012).DOI
  32. [32]A. Sih and M. Del Giudice, Linking behavioural syndromes and cognition: A behavioural ecology perspective, Philosophical Transactions of the Royal Society B: Biological Sciences 367, 2762 (2012).
  33. [33]M. J. Frank, A. A. Moustafa, H. M. Haughey, T. Curran, and K. E. Hutchison, Genetic triple dissociation reveals multiple roles for dopamine in reinforcement learning, Proceedings of the National Academy of Sciences 104, 16311 (2007).pubmed.ncbi.nlm.nih.gov/17913879
  34. [34]I. Wolfe and J. B. Plotkin, Simulation data for “Multi-Agent Learning of Reactive IPD Strategies”, 10.5281/zenodo.23044556 (2026).DOI

Paper details

vlnc:W_ay9gmu5d
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents