Skip to main content

Model 3 - Extended

Model 3 (two_timescale_extended.py) adds three social mechanisms on top of Q-learning: reputation, partner choice (interaction refusal), and forgiveness after betrayal.

Key findings

  • Cooperation rate is lower than in Model 2 (0.38 vs 0.56) — not a failure, but a shift to conditional cooperation with active monitoring.
  • The rejection threshold evolves to be lenient (−0.69), meaning agents rarely exclude partners. But when they do, excluded agents lose further reputation, which compounds.
  • Forgiveness evolves high (0.76 in repeated play) — agents that recover quickly from betrayals maintain more cooperative relationships over time.
  • Reputation weight evolves modest (0.38) — public reputation is used as a weak prior for strangers; personal Q-history takes over once direct experience exists.
  • Initial Q-bias goes negative (−0.52) in repeated play — agents are calibrated suspicious of strangers, relying on reputation to shift that prior upward for well-reputed partners.

Learning during a lifetime

Agents still update partner-specific Q-values, but now also:

  • Reputation: after each interaction both agents update a publicly visible reputation score for their partner. Other agents read this score before meeting a stranger.
  • Partner choice: before accepting an interaction, an agent checks the partner's reputation against its evolved rejection_threshold. If the partner falls below it, the interaction is refused — the partner earns no payoff and loses further reputation.
  • Forgiveness: after a betrayal the Q-value for the defecting partner is penalised. Each subsequent round the penalty decays toward zero at a rate set by the evolved forgiveness_rate, allowing the relationship to recover.

Evolution between generations

Agents inherit Model 2 parameters plus three social parameters:

  • rejection_threshold
  • forgiveness_rate
  • reputation_weight

How the social parameters interact

  • Reputation alone has no teeth unless agents can act on it.
  • Partner choice gives reputation teeth: agents below the rejection threshold receive no benefit and lose further reputation.
  • Forgiveness prevents partner choice from leading to permanent exclusion. Agents who start cooperating again gradually recover their Q-value relationship with a betrayed partner.

Together they form a coherent social-cognitive system: assess strangers by reputation, exclude persistent defectors, repair relationships with those who reform.

Results summary

MetricOne-shotRepeated
Final cooperation rate0.4500.380
Final mean payoff4.100288.120
Final exploration rate0.7170.073
Final learning rate0.3530.514
Final discount factor0.3950.581
Final initial Q-bias1.222−0.519
Final rejection threshold−0.539−0.687
Final forgiveness rate0.5950.761
Final reputation weight0.5220.381
Final mean reputation0.0230.016
Display 1: Evolved parameter values and cooperation outcomes for Model 3 (Extended) under one-shot and repeated interaction.

One-shot interaction

Extended model one-shot cooperation
Display 1: Model 3 cooperation trajectory in one-shot interaction.
Extended model one-shot Q-learning parameters
Display 2: Model 3 evolved Q-learning parameters in one-shot interaction.
Extended model one-shot social parameters
Display 3: Model 3 evolved social parameters in one-shot interaction.

Repeated interaction

Extended model repeated cooperation
Display 4: Model 3 cooperation trajectory in repeated interaction.
Extended model repeated Q-learning parameters
Display 5: Model 3 evolved Q-learning parameters in repeated interaction.
Extended model repeated social parameters
Display 6: Model 3 evolved social parameters in repeated interaction.

Summary

Cooperation rate is lower than in the basic Q-learning model (0.38 vs 0.56). This is not a failure of the model — it is a meaningful result. The rejection threshold evolves to be quite lenient (−0.69), meaning agents rarely exclude partners. But when they do, excluded agents lose reputation, which compounds. The resulting equilibrium is conditional cooperation with active monitoring, not unconditional cooperation.

Forgiveness evolves to be high (0.76) in the repeated case. Agents that recover quickly from betrayals maintain more cooperative relationships over time. This matches the human pattern: we forgive persistent partners faster than strangers, because the long-term value of the relationship outweighs the cost of a single defection.

Reputation weight evolves to be modest (0.38). Agents use public reputation as a weak prior for unknowns, but rely more on personal Q-learning history once they have direct experience. This mirrors how humans use social proof: it matters most when we have no personal experience with someone.

Initial Q-bias goes negative (−0.52) in repeated play. Agents start slightly pessimistic about new partners, but rely on their evolved reputation_weight to shift that prior upward for well-reputed strangers. This is calibrated suspicion — not naive trust, not paranoid rejection.

The extended model sacrifices some payoff compared to basic Q-learning because partner rejection has a cost — rejected interactions yield zero for both parties. But it gains robustness: defectors are excluded before they can extract many benefits. The three mechanisms form a coherent social-cognitive system that mirrors how human cooperation scales beyond small trusted groups.