Skip to main content

Retained Benefit

GitHub code
Retained Benefit is the most abstract evolved-cooperation case study on this site. Rather than centering one specific mechanism such as patch altruism, local Prisoner's Dilemma response rules, or cooperative hunting, it evaluates a more general question: when does cooperation spread when the decisive variable is how much of the value created by cooperation is routed back toward cooperators or their copies rather than being lost through evolutionary leakage to unrelated or weakly coupled recipients?

Conceptual Focus​

Many cooperation models embed the central evolutionary problem inside a particular mechanism family.

  • altruism models embed it in local public-good production
  • reciprocity models embed it in repeated-game memory
  • hunting models embed it in ecological synergy

This model removes most of that mechanism-specific structure. It asks whether cooperation can increase when:

  • cooperation creates value
  • cooperation also carries a private cost
  • some of that value is shared broadly
  • some of it is retained by related or same-rule local recipients

So the central question becomes: how much retained feedback is enough?

Model Structure​

This is a spatial lattice model with selection on an inherited continuous cooperation trait, not a model of learning, planning, or bargaining.

Each occupied cell carries:

  • one cooperation trait h∈[0,1]h \in [0, 1]
  • one inherited lineage label

The lineage label is not intended as a full kinship model. It serves as an abstract stand-in for copies of the same inherited rule or for locally clustered descendants of the same lineage.

The Core Rule​

At each step, agent ii with cooperation trait hih_i produces gross cooperative output:

Bi=b⋅hiB_i = b \cdot h_i

That output is split into retained and open components:

Biretained=r⋅Bi,Biopen=(1−r)⋅BiB_i^{\text{retained}} = r \cdot B_i, \qquad B_i^{\text{open}} = (1-r) \cdot B_i

Here BiretainedB_i^{\text{retained}} is the retained amount produced by site ii before routing, not the accumulated retained benefit that site ii eventually receives.

The producer also pays a private cost:

Ci=c⋅hiC_i = c \cdot h_i

Fitness is then computed as:

Wi=w0+received_openi+received_retainedi−CiW_i = w_0 + \text{received\_open}_i + \text{received\_retained}_i - C_i

Variable definitions:

  • hih_i is agent ii's cooperation trait
  • BiB_i is the total cooperative value produced by agent ii
  • rr is the retained-benefit fraction
  • bb is the cooperation-benefit scale
  • CiC_i is the private cooperation cost paid by agent ii
  • cc is the cooperation-cost scale
  • WiW_i is the resulting fitness used in local replacement
  • w0w_0 is fixed baseline fitness, added each step as a background term that dampens selection intensity
  • received_openi\text{received\_open}_i is the open benefit received by agent ii from its neighborhood
  • received_retainedi\text{received\_retained}_i is the accumulated retained benefit received by agent ii from same-lineage producers in its neighborhood, not the producer-side term BiretainedB_i^{\text{retained}}

The open component is shared across the full local neighborhood. The retained component is shared only across same-lineage recipients in that local neighborhood and contributes to each recipient site's accumulated retained benefit received_retainedi\text{received\_retained}_i.

Why The Fixed Baseline Matters​

The baseline term w0w_0 does not change from step to step. It is added to every candidate parent's fitness before local parent selection, so it dampens the strength of selection rather than changing the ordering of candidates.

Suppose five local candidate parents have cooperation-related payoff terms δ=received_open+received_retained−C=[0.30, 0.10, 0.05, 0.05, 0.00]\delta = \text{received\_open} + \text{received\_retained} - C = [0.30,\, 0.10,\, 0.05,\, 0.05,\, 0.00].

  • Without a baseline, parent-choice weights are [0.30, 0.10, 0.05, 0.05, 0.00][0.30,\, 0.10,\, 0.05,\, 0.05,\, 0.00], so the probabilities are [0.60, 0.20, 0.10, 0.10, 0.00][0.60,\, 0.20,\, 0.10,\, 0.10,\, 0.00].
  • With w0=1.0w_0 = 1.0, the weights become [1.30, 1.10, 1.05, 1.05, 1.00][1.30,\, 1.10,\, 1.05,\, 1.05,\, 1.00], so the probabilities are about [0.236, 0.200, 0.191, 0.191, 0.182][0.236,\, 0.200,\, 0.191,\, 0.191,\, 0.182].
  • The ranking stays the same, but selection becomes much less extreme.

So the model turns one high-level claim into a direct test:

cooperation rises when enough of its return is protected from leakage

Self-Return: Weak Or Strong Altruism​

The local neighborhood includes the producer's own site, and the producer always counts among its own same-lineage recipients. So part of what a cooperator produces comes straight back to it: a 1/5 share of the open benefit in the von Neumann neighborhood, plus a share of the retained benefit that grows as fewer neighbours belong to its lineage. At the frozen replay's settings (b=0.30b = 0.30, c=0.10c = 0.10, r=0.35r = 0.35) that self-return ranges from about 0.06⋅hi0.06 \cdot h_i, when all five sites share its lineage, to about 0.144⋅hi0.144 \cdot h_i, when it is the only one. Against a cost of 0.10⋅hi0.10 \cdot h_i, and counting only its own contribution, a cooperator surrounded by its own lineage pays a net direct cost (strong altruism), while a lone cooperator among other lineages gains directly (weak altruism). Which side of that line a cooperator is on therefore changes with local lineage structure. The site's Interaction Kernel and kin-selection pages show why this matters: in those models, helping spread in arms with no net direct cost and failed in arms where it had a real one.

Simulation Step​

One full synchronous retained-benefit update runs as follows. All sites update simultaneously.

Retained Benefit Simulation Step
One synchronous grid update from step t to step t + 1 under retained-benefit routing.
1

Start from the current grid state

Each cell stores one cooperation trait h∈[0,1]h \in [0, 1] and one inherited lineage label.

↓
2

Compute cooperative output and private cost

Bi=b⋅hi,Ci=c⋅hiB_i = b \cdot h_i, \qquad C_i = c \cdot h_i

↓
3

Split output into retained and open components

Biretained=r⋅Bi,Biopen=(1−r)⋅BiB_i^{\text{retained}} = r \cdot B_i, \qquad B_i^{\text{open}} = (1-r) \cdot B_i

↓
4

Route and accumulate received benefit

Open benefit is shared across the full local neighborhood; retained benefit is routed only to same-lineage recipients. Each site accumulates received_openi\text{received\_open}_i from all neighbors and received_retainedi\text{received\_retained}_i from same-lineage neighbors only.

↓
5

Compute site fitness

Wi=w0+received_openi+received_retainedi−CiW_i = w_0 + \text{received\_open}_i + \text{received\_retained}_i - C_i

Baseline fitness w0w_0 dampens selection intensity.

↓
6

Local replacement lottery — inherit trait and lineage, apply mutation

One parent is sampled from the local neighborhood with probability proportional to WjW_j. The offspring inherits hh (with small Gaussian mutation, clipped to [0,1][0,1]) and the parent's lineage label. Same-lineage clusters grow when local cooperators outcompete their neighbors.

Display 1: One synchronous retained-benefit update from step t to step t + 1.

Turnover is implemented as a local replacement lottery rather than as explicit death, birth, and movement.

Frozen Replay Configuration​

The browser replay below is a specific seeded run from the frozen website-demo configuration, not a schematic animation. It uses:

  • a 72 × 72 toroidal lattice
  • a von Neumann local neighborhood
  • 250 simulation steps sampled every 5 steps
  • baseline fitness 1.0
  • cooperation benefit 0.30
  • cooperation cost 0.10
  • retained-benefit fraction 0.35
  • mutation rate 0.02
  • mutation standard deviation 0.05
  • 24 initial lineage labels in 6 × 6 local blocks
  • random seed 0

In the viewer:

  • cooperation view colors low h as pale beige, mid h as light blue, and high h as burgundy-red
  • lineage view switches to lineage colors so local clustering becomes visible

Interactive Replay​

The browser replay below is based on sampled frames from that same frozen configuration.

The canonical implementation and export logic live in the EvolvedCooperation repository:

Evolved Cooperation

Retained Benefit

Sampled browser replay of the abstract Retained Benefit model. Toggle between the continuous cooperation field and the inherited lineage structure that channels retained benefit.

Replay

World State

0 / 0

Step 0

Loading replay bundle.

Selection Metrics

Mean cooperation, assortment, and dominant-lineage share

How To Read The Replay​

The replay is easiest to read as the interaction of three evolving quantities.

1. Mean cooperation​

This shows whether the inherited cooperation trait is rising or falling in the population as a whole.

2. Local assortment​

This shows how often agents are surrounded by same-lineage local recipients. When that value rises, retained benefit has a clearer channel back toward cooperators or their copies.

3. Dominant-lineage share​

This shows whether one lineage is spreading strongly enough to occupy a large share of the lattice. It is a rough indicator of successful local copying and spatial consolidation.

Together these variables let you separate:

  • trait change
  • local clustering
  • lineage expansion

instead of collapsing all three into one unexplained population curve.

What The Replay Shows​

In this one seeded run the change is modest. Over 250 steps, mean cooperation rose from 0.120 to 0.147, while its variance rose from about 0.002 to 0.008. Local assortment fell from 0.87, the initial 6 × 6 lineage blocks, to a low of about 0.54 at step 35, then recovered to 0.62 by the end, and the largest lineage grew from about 7% to about 18% of the lattice, with 23 of the 24 starting lineages still present.

Two cautions apply:

  • It is one seed.
  • On its own it has no neutral control. Mutation adds symmetric noise and the trait is then clamped to [0, 1], so clipping at the lower bound can raise the mean, especially while traits are concentrated near zero; the replay does not separate that effect from selection.

The pre-registered sweep below supplies the control: in neutral runs with no benefit and no cost, mean cooperation also drifted up, to 0.130 by step 250 (0.117–0.151 across seeds), so the replay's rise to 0.147 at step 250 is within neutral drift.

A Pre-Registered Sweep Of The Retained Fraction​

To test the model's question directly, a sweep was pre-registered and then run (November 2026; details in the module's RESULTS.md). It varied the retained fraction rr from 0 to 1 in steps of 0.1 at three benefit-to-cost ratios (3, the replay's ratio, 5 and 8), with 10 seeds each and 1000 steps, against a neutral control with no benefit and no cost, which ended at 0.190. Each cell was compared with its seed-matched neutral runs by a one-sided paired test; rises and declines below are reported at p < 0.01. All four registered predictions were met:

  • at b/c=8b/c = 8, where helping pays the helper directly in every lineage mix, cooperation rose above neutral at every rr (0.64 at r=0r = 0, 0.96 at r=1r = 1);
  • at b/c=3b/c = 3 and r=0r = 0, where helping costs the helper in every lineage mix, it did not rise; it fell below neutral (0.090);
  • at b/c=3b/c = 3, full retention ended far above no retention (0.792, a difference of 0.70) and above neutral.

So at the replay's ratio, cooperation fell without retention and rose to about 0.8 with full retention. That is consistent with cooperation needing enough retained benefit here, though the design does not show that retention is necessary.

Where the rise starts was not a registered test, but it is informative. Every rr from 0.3 upward rose at b/c=3b/c = 3, from 0.1 at b/c=5b/c = 5, and from 0 at b/c=8b/c = 8. These onsets line up with the sign of a lone helper's own return from the table in Self-Return: cells declined where that return was clearly below the cost, stayed flat where it roughly equalled it, and rose where it exceeded it. Because the retained share always includes the producer's own site, the sweep does not separate benefit kept by relatives from the helper's own share, and this alignment is descriptive, not a demonstrated cause.

Against the site's definition of kin selection, which requires a real net cost to the helper, these results do not count as kin selection. Where cooperation rose, the onsets line up with the helper's own return covering its cost (weak altruism), and the design cannot show how much of the retained benefit reaches relatives rather than the helper itself. The model is also a full lattice with a replacement lottery, with no energy, food, free space or movement. In the stepwise table on that page it belongs with step 1, the weak-altruism warm-up.

Why This Belongs Under Evolved Cooperation​

This model belongs under evolved cooperation because:

  • the cooperation trait is inherited rather than learned
  • selection acts through differential local copying and reproduction-like replacement
  • mutation creates heritable variation
  • local structure changes which cooperation traits persist across generations

What changes here is not a policy inside a lifetime. What changes is the distribution of inherited cooperation levels across the population.

Within the site's evolved-cooperation set, Retained Benefit is the most abstract feedback-routing model.

Case studySelection logic
Cooperative HuntingA spatial ecological model in which predator cooperation evolves through hunting success, energetic cost, and inherited trait variation.
Spatial Prisoner's DilemmaA local-game ecology in which inherited same-vs-other Prisoner's Dilemma response rules spread through energy accumulation, local movement, and local reproduction.
Retained BenefitAn abstract lattice model in which a continuous cooperation trait spreads only when enough of the value created by cooperation is routed back toward cooperators or copies of the cooperative rule.
Display 2: How Retained Benefit fits among the site's evolved-cooperation case studies.

Why This Model Is Useful​

This model is useful because it makes one candidate near-law of cooperation unusually explicit:

there is no cooperation without feedback

In other words:

  • if cooperation creates value that is lost through evolutionary leakage to unrelated or weakly coupled recipients, cooperation is hard to sustain
  • if enough of that value is routed back toward cooperators or their copies, cooperation can spread

This model is built to test that claim in its most abstract form; the pre-registered sweep found cooperation falling without retention and rising with enough of it, and, in an exploratory and descriptive look, where the rise started lined up with whether a helper's own share covers its cost.

What "Feedback" Means Here​

On this page, feedback does not mean only a verbal response, praise, or a conscious social reaction. It means any causal return channel by which the consequences of cooperation flow back toward the cooperator, its partners, or copies of the cooperative rule rather than being lost through evolutionary leakage to unrelated or weakly coupled recipients.

Working definition. Here, feedback means any process that makes the benefits or downstream consequences of cooperation return non-randomly to cooperators, their partners, or their lineage, so that cooperation improves its own future persistence rather than being lost through evolutionary leakage to unrelated or weakly coupled recipients.

Here, weakly coupled recipients means recipients whose gain does not feed back strongly enough into the actor's inclusive fitness, lineage persistence, or recurrence of the cooperative rule, even if they are nearby or benefit in the short run.

That return can take several forms.

Material Feedback​

This is the most concrete form.

  • food, energy, money, territory, protection, or other usable resources flow back toward the cooperator
  • cooperation therefore changes the material conditions for survival, reproduction, or future action

In many biological and ecological models, this is the clearest channel because cooperative behavior changes who gets access to resources.

Immaterial Or Social Feedback​

The return does not have to be material in the narrow sense.

  • reputation can make later help or alliance more likely
  • trust can stabilize repeated cooperation
  • punishment, shame, obligation, or status can redirect future behavior
  • partner choice can reward cooperators with better future interaction opportunities

These are immaterial in the sense that they are not food or money, but they still matter if they systematically alter who benefits, who gets chosen, and who is excluded.

Informational Or Learning Feedback​

Feedback can also operate through information.

  • agents observe outcomes
  • agents remember who cooperated or defected
  • agents update expectations, policies, or strategies
  • rewards and penalties reshape future behavior within a lifetime

This is the central sense of feedback in learned-cooperation models: behavior changes because experience changes later decisions.

Ecological Or Structural Feedback​

Sometimes the return channel is embedded in the structure of interaction rather than in an explicit transfer.

  • spatial clustering makes cooperators more likely to encounter cooperators again
  • local assortment routes benefits back toward similar or related others
  • repeated interaction creates future consequences for present behavior
  • institutions or network structure can reduce leakage to defectors

This kind of feedback often determines whether a cooperative act keeps helping the same social neighborhood or is simply absorbed by outsiders.

Fitness Feedback​

In evolved-cooperation models, this is the deepest level of accounting.

  • cooperation changes survival
  • cooperation changes reproductive success
  • cooperation changes inclusive fitness or lineage persistence
  • those changes alter which inherited traits become more common over generations

So material and immaterial returns matter evolutionarily only if they eventually affect fitness.

Feedback In This Model​

In Retained Benefit, the relevant feedback is a fitness-relevant routing rule.

  • cooperation produces value
  • some of that value is shared openly
  • some of it is retained and routed only toward same-lineage recipients in the local neighborhood
  • that retained return contributes to received_retainedi\text{received\_retained}_i
  • received_retainedi\text{received\_retained}_i raises fitness WiW_i
  • higher fitness makes that lineage more likely to persist and spread

So the model uses a material-like local payoff channel, but the real question is evolutionary: does the routing of cooperative value create enough feedback into fitness to let cooperation survive selection?

That is why the slogan on this page is intentionally broad. The claim is not that cooperation requires one special substance called feedback. The claim is that cooperation requires some channel, material, immaterial, informational, structural, or fitness-relevant, through which the consequences of cooperation come back toward cooperators or their copies.

That claim is more abstract than the special-case logic of altruism, reciprocity, or hunting. Retained Benefit is therefore the site's most direct current model for asking what the minimal conditions of cooperation might look like in general.

References​