Understanding The Impact of Partner Choice on Cooperation and Social Norms by means of Multi-agent Reinforcement Learning.

Nicolas Anastassacos, Steve Hailes, Mirco Musolesi

TL;DR

This paper demonstrates that cooperation can emerge in a society of purely selfish reinforcement learning (RL) agents simply by allowing them to choose their partners. By introducing a "partner selection" phase before a repeated Prisoner’s Dilemma, agents naturally evolve a Tit-for-Tat strategy that punishes defectors and rewards cooperators, leading to a stable, prosocial society without needing to bake "altruism" into the reward functions.

What Problem Does This Paper Address?

In multi-agent reinforcement learning (MARL), agents are typically designed to be "selfish"—they maximize their own expected future rewards. When placed in social dilemmas (like the Prisoner’s Dilemma), where individual greed conflicts with collective benefit, these selfish agents almost always converge on mutual defection.

Previous research often "solved" this by modifying the agents themselves—giving them internal motivations for fairness or prosociality. The authors of this paper argue that we should instead look at environmental dynamics. They specifically tackle the role of partner selection: the ability to choose who to interact with. The goal is to see if the freedom to associate (and disassociate) can act as a catalyst for cooperation among agents who only care about their own bottom line.

Methods

The researchers set up a simulation where $N$ agents play a repeated Prisoner’s Dilemma. The process is split into two distinct phases per round:

  1. Selection Phase: Each agent views the most recent action of all other agents. They then use a selection policy ($\pi_s$) to choose one partner to play with. Crucially, agents cannot refuse to play if they are chosen.
  2. Interaction Phase: The pair plays a round of the Prisoner’s Dilemma. Each agent uses a dilemma policy ($\pi_d$) to decide whether to Cooperate (C) or Defect (D).

Key Technical Details: * Algorithm: Independent Q-learning. Each agent is treated as an autonomous learner with no knowledge of others' internal states. * State Space: The authors limited the "memory" of agents to just the previous action ($h=1$). This restricts the possible strategies to four classic types: Always Cooperate (ALL C), Always Defect (ALL D), Tit-for-Tat (TFT), and reverse Tit-for-Tat (revTFT). * Architecture: Each agent uses two neural networks (one for selection, one for the game) with a single hidden layer of 256 neurons. * Objective: Purely selfish. Agents receive rewards only from the game outcomes (e.g., 3 points for mutual cooperation, 4 for successful exploitation).

Datasets

The paper does not use external datasets. Instead, it utilizes a simulated environment based on the standard Prisoner’s Dilemma payoff matrix. The results are derived from 14 independent runs of the simulation to ensure statistical significance.

Key Insights and Ideas

  • The Four-Phase Evolution: The emergence of cooperation isn't immediate. It follows a distinct "evolutionary" path:
  • Phase 1: Agents are bad at selecting partners, so they treat every game as a one-off and learn to Always Defect.
  • Phase 2: Agents learn to identify cooperators and target them for Exploitation.
  • Phase 3: The "Aha!" moment. Agents learn to Retaliate. They realize that if they defect against a partner, they won't be selected in the future. This leads to the rise of Tit-for-Tat (TFT).
  • Phase 4: A Stable Society emerges where TFT dominates, effectively policing the environment and making cooperation the most viable long-term strategy.
  • TFT as a Social Regulator: Interestingly, the "Always Cooperate" (ALL C) agents often earn the highest individual rewards because they are never punished by TFT agents. However, a society of only ALL C agents is unstable because a single defector could ruin it. TFT agents act as the "immune system" of the society—they pay a small cost to punish defectors, which protects the overall cooperative norm.
  • The Goldilocks Zone of Exploration: The authors found that exploration rates ($\epsilon$) are critical. Too much exploration prevents agents from settling into cooperative norms; too little exploration prevents them from ever discovering that cooperation is better than the initial "always defect" state.

Key Results

  • Partner Selection vs. Random Matching: In simulations with random matching, agents converged to 100% defection. With partner selection, the society reached a state where ~90% of selected partners were those who had cooperated in their previous turn.
  • Convergence to Cooperation: After approximately 15,000 episodes, mutual cooperation became the dominant outcome.
  • Strategy Distribution: By the end of the simulation, TFT became the most common strategy, followed by ALL C. The "Always Defect" strategy was almost entirely phased out because defectors were simply never chosen to play, starving them of rewards.

Limitations and Future Work

  • Limited History: The study only looked at a history of one previous action ($h=1$). In real human societies, we track reputations over much longer periods.
  • Involuntary Participation: In this model, if you are chosen, you must play. The authors suggest that allowing agents to refuse an interaction might add another layer of social complexity.
  • Fixed Population: The number of agents was constant. Future work could explore how these dynamics change in growing or shrinking populations.
  • Complexity of Dilemmas: The Prisoner's Dilemma is a "clean" game. The authors suggest testing these dynamics in more complex "sequential social dilemmas" where the environment itself has state (like a shared resource pool that can be depleted).

Summary updated

BibTeX
@inproceedings{anastassacos2020understanding,
  author = {Nicolas Anastassacos and Steve Hailes and Mirco Musolesi},
  title = {{Understanding The Impact of Partner Choice on Cooperation and Social Norms by means of Multi-agent Reinforcement Learning.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6190},
}
Figure