Skip to main content
QUICK REVIEW

[Paper Review] Learning Reciprocity in Complex Sequential Social Dilemmas

Tom Eccles, Edward Hughes|arXiv (Cornell University)|Mar 19, 2019
Evolutionary Game Theory and CooperationSocial Sciences50 references22 citations
TL;DR

This paper proposes an online reinforcement learning algorithm that learns reciprocal behavior in complex sequential social dilemmas, using a learned 'niceness network' to assess others' social impact and an intrinsic motivation to match their cooperativeness. The method enables agents to induce pro-social outcomes even when learning alongside selfish agents, outperforming selfish baselines in both 2-player and 5-player Markov games.

ABSTRACT

Reciprocity is an important feature of human social interaction and underpins our cooperative nature. What is more, simple forms of reciprocity have proved remarkably resilient in matrix game social dilemmas. Most famously, the tit-for-tat strategy performs very well in tournaments of Prisoner's Dilemma. Unfortunately this strategy is not readily applicable to the real world, in which options to cooperate or defect are temporally and spatially extended. Here, we present a general online reinforcement learning algorithm that displays reciprocal behavior towards its co-players. We show that it can induce pro-social outcomes for the wider group when learning alongside selfish agents, both in a $2$-player Markov game, and in $5$-player intertemporal social dilemmas. We analyse the resulting policies to show that the reciprocating agents are strongly influenced by their co-players' behavior.

Motivation & Objective

  • To develop a scalable, online reinforcement learning approach to reciprocity that works in complex, temporally extended social dilemmas beyond simple matrix games.
  • To address limitations of existing planning-based reciprocity models, such as reliance on pre-trained policies, discrete strategy switching, and explicit reward observation.
  • To enable agents to learn to reciprocate in nuanced, continuous-action environments where cooperation and defection are not binary choices.
  • To demonstrate that reciprocal behavior can emerge organically through intrinsic motivation to match others' sociality, even without direct access to opponents' rewards.
  • To show that such reciprocating agents can induce cooperation in selfish co-players, improving group outcomes in multi-agent settings.

Proposed method

  • The method uses an A3C-based reinforcement learning framework with VTrace correction for training both innovator (selfish) and imitator (reciprocal) agents.
  • The imitator employs a learned 'niceness network' that estimates the effect of one agent’s actions on another’s future returns, serving as a continuous measure of social impact.
  • An intrinsic motivation drives the imitator to align its own behavior with the sociality level of its co-player, measured via the niceness network.
  • The niceness network is trained using a self-supervised objective based on the agent’s own return and the observed impact on others, enabling online assessment of cooperation.
  • The approach avoids hard-coded strategy switching and instead learns a continuous, adaptive response to others’ behavior, supporting scalability to complex environments.
  • Two variants are evaluated: one using hand-crafted features for sociality, and another using the learned niceness network, with the latter showing superior generalization.

Experimental results

Research questions

  • RQ1Can an online reinforcement learning agent learn to reciprocate in complex, sequential social dilemmas without pre-defined cooperation/defection policies?
  • RQ2How does a learned measure of social impact (via the niceness network) compare to hand-crafted features in enabling reciprocal behavior?
  • RQ3Can reciprocating agents induce pro-social behavior in selfish co-players in both 2-player and 5-player Markov games?
  • RQ4To what extent does intrinsic motivation to match others’ sociality improve group-level outcomes in intertemporal social dilemmas?
  • RQ5How does the proposed method scale compared to planning-based approaches like amTFT in environments with continuous actions and delayed rewards?

Key findings

  • In the 2-player Coins environment, the niceness network imitator achieved a cooperation rate of 0.994 ± 0.003, significantly outperforming the selfish baseline of 0.007 ± 0.001.
  • The niceness network accurately predicted pro-social actions, assigning lower Q-values to moves that brought the agent closer to the co-player’s coin, indicating recognition of social cost.
  • In the 5-player Cleanup environment, the imitator induced a shift toward pro-social behavior, with the innovator (leader) increasingly cleaning the river when paired with a reciprocating agent.
  • The method successfully learned reciprocal behavior in environments where cooperation is not binary, allowing for graded responses to others’ levels of cooperativeness.
  • The niceness network outperformed the metric-matching baseline and demonstrated robustness in complex, continuous-action settings where planning-based methods like amTFT struggle due to infeasible rollouts.
  • The approach generalizes beyond 2-player games and supports scalable, online learning of reciprocity without requiring explicit knowledge of others’ rewards or pre-trained policies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.