Direct Reciprocity: Definition and Progress
Definition
Direct reciprocity is helping the individual who helped you: the help comes back from the same partner in later encounters (Trivers 1971; Axelrod and Hamilton 1981; Nowak 2006). A result counts as direct reciprocity on this ladder only if all three of these hold:
- A real cost. Each act of help costs the donor something it does not get back in that act. In the later, ecological rungs the cost is energy the donor could have used itself; a gift that costs nothing (surplus food, food that would spoil) is a by-product, not reciprocity.
- Return through the same partner's own experience. A donor helps or refuses according to what this recipient previously did to this donor. It must not depend on third-party information (that would be indirect reciprocity), on relatedness (kin selection) or on clustering in space (network reciprocity).
- Against a control that removes the personal history. The registered test compares a test arm with a shuffled-memory arm: wherever a reciprocal strategy would read its record of the partner in front of it, it reads instead its own record of a random other partner it has met. The individual's own experience is kept; only the link between a record and the current partner is cut.
The ladder's main criterion is maintenance: from a common start (about 95% reciprocators and 5% defectors), cooperation must hold against defectors to the end of the run. This follows Nowak's rule for direct reciprocity, which is a stability condition. Maintenance over a finite horizon shows only that, not general resistance to invasion; spread from rare is a separate, side question.
Endpoints and pass rule. At the end of the run: share of acts that help at least 0.60, reciprocal strategies (TFT, GTFT, WSLS) at least 0.50, defectors (ALLD) at most 0.25. A rung is met if the test arm meets all three in at least 80 of 100 runs and the shuffled-memory control in at most 20 of 100.
The goal. A PredPreyGrass-style world with grass, prey and predators on a grid, with energy, births that need energy, starvation and movement, so that population size follows food. Predators hunt alone and share catches with remembered partners. Joint hunting is left out on purpose: a shared hunt is a mutual benefit (the Cooperative Hunting model) and would mix a second mechanism into the test.
Rules (as on the other two ladders): one ingredient per rung; a theory screen (a calculation, no simulation) before any code; each rung pre-registered, reviewed and agreed before it is run; fresh seeds per rung; at most two attempts per rung, and a hard stop after that.
Where It Stands
| Rung | Ingredient added | Result | Achieved |
|---|---|---|---|
| 0 | Base: the async well-mixed Moran model (200 individuals, partners kept with probability 0.9 per step, pair-specific memory; TFT, GTFT, WSLS, ALLC, ALLD), reproduced without new code | 100/100, identical to the recorded runs; not yet direct reciprocity by the definition, because there is no control | ✓ (baseline) |
| 1 | The shuffled-memory control (the model itself unchanged) | 100/100 against 0/100 shuffled; the first rung that meets the definition | ✓ |
| 2 | Donation-game payoffs: helping costs 0.5 and gives the partner 1.5 | 100/100 against 0/100 | ✓ |
| 3 | One-way acts taken in turn, as when a catch is shared: within a pair the two alternate as donor (6 turns per step) | 100/100 against 0/100 | ✓ |
| 4 | Failed help: an intended gift fails with probability 0.05 and looks like a refusal | 100/100 against 0/100. The forgiving strategy (GTFT) became dominant in the test arm (88.7% on average at the end) | ✓ |
| 5 | Mutation among the five strategies (0.01 per offspring), so unconditional cooperators (ALLC) and defectors keep arriving | 100/100 against 0/100. ALLC reached at least 15% in 20 test runs; in one of them defectors rose to 53%, but reciprocators pushed them back to 6% by the end | ✓ |
| 6a | Larger population: 2,000 instead of 200, with the same horizon of 25 population turnovers (50,000 steps) | 100/100 against 0/100. Runs agreed more closely than at 200; ALLC never reached 15%, and defectors never exceeded 6.2% in any test run | ✓ |
| 6b | Bounded memory: each individual remembers at most its 5 most recently met partners and forgets the oldest | 100/100 against 0/100. The same as with full memory to within half a percentage point, as the screen predicted | ✓ |
| 7a | An energy store: each step's gift balance plus a fixed income is added to a store that leaks 1% per step, and who reproduces depends on the store (about the last 100 steps) instead of the current step's payoff | 100/100 against 0/100. Fewer defectors and more GTFT in the test arm than in rung 6b (defectors 0.4%, GTFT 83.6%), as the screen predicted | ✓ |
| 7b | Births that need energy: a birth costs the parent the newborn's starting store (100), and individuals that cannot pay are not drawn as parents | 100/100 against 0/100. The test arm was unchanged (cooperation 83.2%); in the control defectors rose to 98.7%. A population starting with only unconditional sharers ended with 98.8% defectors | ✓ |
| 8a | Food from the environment: a fixed total of food arrives each step at random individuals, replacing the fixed income | 100/100 against 0/100. The test arm was unchanged (cooperation 83.1%); in the control defectors ended at 91.3% (98.7% in rung 7b). In a population starting with only unconditional sharers defectors took over in every run, but in 4 runs reciprocators later came back | ✓ |
| 8b | Lumpy food: the same food arrives as catches of 20 units, each to a random individual (a catch is 20 steps of average food, a birth 5 catches) | 100/100 against 0/100. The test arm was unchanged (cooperation 83.1%); in the control TFT held 16.6% and defectors ended at 82.5%. In the arm starting with only unconditional sharers, 2 runs met the endpoints after a late comeback of reciprocators (4 in rung 8a) | ✓ |
| 9a | Starvation: an individual whose store falls below 25 (a quarter of a newborn's) dies and is replaced by a birth; a parent must keep at least 25 after paying for a birth | 100/100 against 0/100. Starvation practically never reached the test arm (at most 3 deaths in a run); in the control it was about a quarter of all deaths. In the arm starting with only unconditional sharers, 42 runs met the endpoints (2 in rung 8b). A follow-up on the same seeds: 0 without starvation or the higher bar, 4 with the higher bar alone | ✓ |
| 9b+ | Planned: gifts that move energy one to one; population size following food; a grid with movement and local births; grass; prey; the full predator-prey-grass ecology | Not built | – |
What has been shown. In this model, cooperation was maintained against defectors when each record was matched to the partner in front of it; when the same records were read against a random other partner, cooperation collapsed. Because the shuffle also changes how long a record persists, this is a broad test of personal history with a partner, not an isolation of partner identity alone. In the shuffled runs, defectors ended at 57% or more in every run of rungs 1 to 9a. The contrast held as the setting moved one step at a time towards food sharing: donation payoffs, one-way acts taken in turn, gifts that fail, strategies that mutate, a larger population, a memory of only a few partners, reproduction from an energy store, births that cost energy, food that arrives at random, food that arrives in large catches, and death by starvation.
The Control (Rung 1)
The original Moran result (reciprocators keep a majority against defectors in 100 of 100 runs) had never been compared with a control that removes the personal history. Rung 1 adds that control and nothing else.
| Arm (100 runs each) | Runs meeting endpoints | Share of acts that help | Defectors (ALLD) |
|---|---|---|---|
| Test: records read for the current partner | 100/100 | 1.000 | 0.000 |
| Shuffled memory: records read for a random other partner | 0/100 | 0.000 | 0.993 |
| Reported: no partner persistence (a new partner every step) | 100/100 | 0.997 | 0.002 |
Failed Help and Forgiveness (Rung 4)
When a gift can fail and the partner cannot tell a failure from a refusal, the strict reciprocal strategies get into trouble. A theory screen (note) identified why failed help is especially damaging to them: after one failure, two TFT players answer refusal with refusal and lock into mutual defection, and two WSLS players fall into a pattern with much defection when they move in turn. GTFT, which sometimes gives despite a refusal, recovers. The screen predicted GTFT rising from 36% to 85%.
| Arm (100 runs each) | Runs meeting endpoints | Share of acts that help | TFT | GTFT | WSLS | ALLD |
|---|---|---|---|---|---|---|
| Test | 100/100 | 0.830 | 0.038 | 0.887 | 0.074 | 0.000 |
| Shuffled memory | 0/100 | 0.002 | 0.047 | 0.000 | 0.000 | 0.953 |
| Screen prediction for the test arm | – | 0.83 | 0.053 | 0.850 | 0.097 | 0.000 |
As registered, rung 4 is met: the test arm kept cooperation by shifting towards the forgiving strategy, as the screen predicted. Whether cooperation would hold without GTFT available was not tested.
Mutation and Unconditional Cooperators (Rung 5)
With mutation, unconditional cooperators (ALLC) keep arriving. They do not retaliate, so if they become common they can feed defectors. At the theory screen's probe mix (note), a single defector earned more than the population average once ALLC exceeded about 14%. This is a threshold for that mix only, not a general one. In the screen, which has no chance fluctuations, ALLC settled at 3-5%. The mutation rate was set to 0.01 per offspring instead of the plan's 0.001 after the screen showed that 0.001 brings only about five mutants per run; this change was recorded before the run.
| Arm (100 runs each) | Runs meeting endpoints | Share of acts that help | ALLC | ALLD | Runs where ALLC reached 15% |
|---|---|---|---|---|---|
| Test | 100/100 | 0.813 | 0.038 | 0.007 | 20 |
| Shuffled memory | 0/100 | 0.012 | 0.003 | 0.919 | 0 |
| Reported: no partner persistence | 99/100 | 0.832 | 0.038 | 0.015 | 16 |
As registered, rung 5 is met. Drift of unconditional cooperators was a real risk: ALLC reached at least 15% in a fifth of the test runs. In one of them defectors then rose to 53% before the reciprocators pushed them back to 6% by the end. Without partner persistence, one run failed this way (ALLC 27%, then defectors 39% at the end). In the shuffled control ALLC never rose above 4%, because there giving is not rewarded.
A Larger Population (Rung 6a)
Rung 6a ran rung 5 unchanged with ten times as many individuals (2,000), for the same 25 population turnovers. A theory screen predicted that the test arm would barely change and that the control would collapse more slowly. As registered, rung 6a is met: 100/100 test runs against 0/100 shuffled. The test arm matched the screen within two percentage points in every strategy share (cooperation 81.6%, GTFT 70.7%, defectors 0.6%), and the runs varied much less than at 200 (lowest cooperation 79% against 66%). ALLC never reached 15% in any run (highest 9.5%), where at 200 it had done so in a fifth of the test runs. This is consistent with smaller chance fluctuations in a larger population, but the step also gives each individual ten times as many interactions per lifetime, so it does not isolate drift. In the control defectors ended at 78% on average against 92% at 200, consistent with the screen's direction.
Bounded Memory (Rung 6b)
Rung 6b kept rung 6a's population of 2,000 but gave each individual a memory of at most 5 partners: when a new partner would exceed that, the one met least recently is forgotten, and a partner not in memory is treated as if both had cooperated. The control now redirects each read to one of the other partners still in memory (or, in the 0.5% of reads where there is none, treats the partner as if both had cooperated). A theory screen predicted no change: the record of a continuing partner is always kept, and newly formed pairs rarely involve a remembered former partner (about 5% with full memory, about 0.7% with 5 partners remembered), too few to matter. As registered, rung 6b is met: 100/100 test runs against 0/100 shuffled. All three arms matched the screen within half a percentage point in every strategy share (test: cooperation 81.4%, GTFT 70.3%, defectors 0.6%; control: defectors 72.7%). This is consistent with reciprocity resting on the history with the current partner within an ongoing partnership rather than on a long record of everyone met. It does not show that the current partner's record alone suffices, since up to four former partners are still remembered. Each individual now keeps its own records, which the energy-based rungs that follow will need.
An Energy Store (Rung 7a)
Until rung 6b, who reproduced depended only on the payoff of the current step. Rung 7a gives each individual an energy store: every step it gains a fixed income of 1 plus its gift balance (−0.5 for each gift it gives, +1.5 for each gift it receives) and loses 1% of what it holds. The chance of reproducing now depends on the store, which in effect averages income over about the last 100 steps, about ten partnerships. A newborn starts with the store of an individual whose gift balance has been zero (except an unmutated offspring that replaces its own parent, which counts as the same individual and keeps the store); births do not yet cost the parent anything. A theory screen predicted that the store would help reciprocators slightly: selection on a single step favours types whose income varies a lot from step to step, and averaging over many steps takes that advantage away. As registered, rung 7a is met: 100/100 test runs against 0/100 shuffled. In the test arm defectors ended at 0.4% (0.6% in rung 6b), GTFT at 83.6% (70.3%) and cooperation at 83.3% (81.4%); in the control, defectors rose to 77.1% (72.7%). Every strategy share was within one percentage point of the screen. Averaged over recent steps, defectors earned about 2.2 against 3.2 to 3.4 for the reciprocators. The run does not test the screen's explanation directly, and energy does not yet decide survival or pay for births.
Births That Need Energy (Rung 7b)
Rung 7b makes a birth cost energy. The parent pays the newborn's starting store (100, the store of an individual whose gift balance has been zero), and only individuals whose store covers that cost can be drawn as parent (if nobody could pay, the parent would be drawn from everyone at no cost; that never happened). Besides the test arm, the control and the arm without lasting partners, the run had an arm starting with only unconditional sharers (ALLC), to see whether unconditional sharing is maintained against defectors that arise by mutation, and it counted the energy each strategy gives and receives; the ladder asks for both from rung 7a on. A theory screen predicted that the test arm would be unchanged, since reciprocators sit far above the cost line, and that the control and the unconditional arm would collapse further. As registered, rung 7b is met: 100/100 test runs against 0/100 shuffled. The test arm matched the screen to within one percentage point (cooperation 83.2%, GTFT 83.3%, defectors 0.4%); reciprocators were almost never barred from reproducing, while defectors, who give nothing and received 1.19 energy per individual per step against 3.73 for GTFT, reproduced at about a third of the average rate. In the control the direction was predicted but not the size: defectors ended at 98.7% (screen 80%) and TFT at 0.5% (screen 19%). There defectors and TFT both hovered just below the cost line, so whether an individual could reproduce depended on fluctuations and on how recently it had paid for a birth, which the screen leaves out. The unconditional arm lost its sharing in every run (98.8% defectors at the end). Gifts still create energy (each gift costs the giver 0.5 and gives the receiver 1.5), food does not yet come from the environment, and energy does not yet decide survival.
Food From the Environment (Rung 8a)
Rung 8a replaces the fixed income of 1 per step with food from the environment. Each step 2,000 food units, one per individual on average, are dealt out one by one to random individuals, so an individual's food varies from step to step (variance about 1) while the average stays the same. Everything else is rung 7b. A theory screen predicted that the test arm would be practically unchanged, and that the control and the unconditional arm would move back towards rung 7a's control, by an amount it did not predict. Rung 7b's cost line sat exactly at the store an individual settles at when it gives and receives nothing, so after one gift given or one birth paid for, it stayed just below the line until it next received a gift; with random food the store no longer settles exactly at the line, which the screen expected to help TFT in the control. As registered, rung 8a is met: 100/100 test runs against 0/100 shuffled. The test arm was within one percentage point of rung 7b (cooperation 83.1%, GTFT 82.9%, defectors 0.4%), and every strategy received the same food on average. In the control, TFT held 7.9% instead of 0.5% and defectors ended at 91.3% instead of 98.7%; TFT and defectors were now barred from reproducing about equally often (58% and 54% of the time late in the run, against 75% and 46% in rung 7b). This fits the screen's explanation, but the run does not prove it. In the arm starting with only unconditional sharers, defectors took over in every run (peaking at 95% to 99%), and in 86 runs they still held more than half at the end. In 4 runs, though, reciprocators came back late in the run and ended at 86-97%, meeting the endpoints. This was not predicted and not registered. Food is still spread evenly over individuals and time (rare large catches come next), gifts still create energy, and energy does not yet decide survival.
Lumpy Food (Rung 8b)
Rung 8b keeps rung 8a's total of 2,000 food units per step but deals it out as 100 catches of 20 units, each to a random individual. The scale is taken roughly from the predator-prey-grass model, where a catch covers about 21 steps of a predator's upkeep and a birth needs about 4 catches; here a catch is 20 steps of average food and a birth (100) is 5 catches. An individual's food per step now has variance about 20 instead of 1, with the same average. Everything else is rung 8a. A theory screen predicted that the test arm would be practically unchanged and that the control would fail again, with its giving strategies loosened a little; it made no prediction for the arm starting with only unconditional sharers. As registered, rung 8b is met: 100/100 test runs against 0/100 shuffled. In the test arm and the arm without lasting partners, final shares moved by less than one percentage point and birth rates by at most 1% from rung 8a (cooperation 83.1%, GTFT 83.1%, defectors 0.4%). The run also recorded the stores of giver and receiver at every gift: in the test arm both averaged about 330, more than three times the cost of a birth, and only 0.02% of gifts went to an individual below that cost. In the control, TFT held 16.6% (7.9% in rung 8a) and defectors ended at 82.5% (91.3%); the screen matched how often each strategy was barred from reproducing late in the run, but not the birth rates of GTFT and WSLS. In the unconditional arm, defectors again took over in every run; in 17 runs reciprocators, mostly TFT, later climbed back above 20%, in 8 above 50%, and 2 runs met the endpoints (4 in rung 8a). These counts do not show that lumpy food changes how often reciprocators come back. Gifts still create energy and energy does not yet decide survival, so the variance of the catches cannot yet make a gift worth more to a hungry receiver; that needs starvation (rung 9a) and gifts that only move energy (rung 9b).
Starvation (Rung 9a)
Rung 9a adds death by starvation to rung 8b. After each step's food, gifts and upkeep, every individual whose store is below 25 dies, and each is replaced at once by a birth from a parent drawn as usual, so the population stays at 2,000. The line is deliberately mild: a newborn starts at 100 and, with no food and no gifts, would last 138 steps. The line from the predator-prey-grass model (about 45 steps without food) was too strict here: in a population of fixed size whose food only just covers upkeep, an individual that neither gives nor receives settles at a store of about 100 with a spread of about 32, so a line at 50 or above made populations of defectors starve almost completely every step. A birth now also requires the parent to keep at least 25 after paying 100, so that a birth alone never pushes a parent below the line. Because that raised bar is itself a change, two extra arms have the bar but no starvation. As registered, rung 9a is met: 100/100 test runs against 0/100 shuffled. In the test arm starvation practically never happened (at most 3 deaths in a run of 50,000 steps), givers and receivers had stores of about 330 at gifts, and the results matched the arm with only the raised bar to within 0.3 percentage points (cooperation 83.2%, GTFT 83.1%, defectors 0.4%). In the control, starvation made up about a quarter of all deaths; an unconditional cooperator starved about 33 times as often per individual as a defector, while TFT, GTFT and WSLS starved about as often as defectors. Compared with the paired arm that only had the raised bar, starvation reduced the few remaining givers in the control further, but did not change the split between defectors and TFT; the shift from rung 8b came with the raised bar. In the arm starting with only unconditional sharers, defectors again took over in every run, but unconditional sharers fell below 10% sooner (many of them starved), defectors peaked earlier (around step 12,000 instead of 22,000), and reciprocators came back in more runs: they ended above 50% in 57 runs (8 in rung 8b), and 42 runs met the endpoints (2 in rung 8b). That arm had no partner with only the raised bar and used other seeds than rung 8b, so a follow-up (exploratory, since it was planned after this result was seen) reran it on the same 100 seeds without starvation. With neither starvation nor the raised bar (rung 8b's model) 0 runs met the endpoints, with the raised bar alone 4 (not a significant difference), and with both 42: of the seeds that failed with the raised bar alone, 39 met the endpoints once starvation was added, and one seed went the other way. Without starvation, with or without the raised bar, unconditional sharers fell below 10% and defectors peaked at the same steps as in rung 8b (around 13,000 and 22,000); the earlier timing appeared only with starvation. Starvation here means the deaths together with the replacement births they bring, and the follow-up does not separate these or identify a mechanism for the more frequent recovery of reciprocators. Gifts still create energy and are not tied to the receiver's state, so this run does not test whether sharing helps a hungry receiver survive at the giver's expense; that is rung 9b.
What Is Not Shown Yet
- Spread from rare. Every rung starts from a reciprocal majority. Whether reciprocators can take over from a small foothold is a separate side rung, not yet run. Rung 8a's unconditional arm gave a first hint: in 4 of 100 runs reciprocators came back after defectors had reached about 95% (2 of 100 in rung 8b; in rung 9a, with starvation and a raised birth bar, 42 of 100 met the endpoints, against 4 of 100 on the same seeds with the raised bar alone), but that arm was not designed or registered to test spread.
- Ecology. Rungs 0 to 9a are a fixed, well-mixed population with imposed payoffs; food arrives at random, in catches since rung 8b, but evenly on average, and since rung 9a individuals can starve. Gifts that only move energy, a population size that follows food, space and movement are all still to come, and each may break the result.
- Clean partner identity. The shuffled control cuts the link between a record and the partner, but also how long a record persists. It is a broad test of personal history, not of partner identity alone.
Full pre-registrations, results and reviews: ladder README and RESULTS.
References
- Axelrod, R., & Hamilton, W. D. (1981). The evolution of cooperation. Science, 211(4489), 1390-1396.
- Nowak, M. A. (2006). Five rules for the evolution of cooperation. Science, 314(5805), 1560-1563.
- Nowak, M. A., & Sigmund, K. (1994). The alternating Prisoner's Dilemma. Journal of Theoretical Biology, 168(2), 219-226.
- Trivers, R. L. (1971). The evolution of reciprocal altruism. The Quarterly Review of Biology, 46(1), 35-57.