Modeling Moral Choices in Social Dilemmas with Multi-Agent Reinforcement Learning

Elizaveta Tennant, Stephen Hailes, Mirco Musolesi

Abstract

This paper investigates the integration of classical philosophical moral frameworks—Utilitarianism, Deontology, and Virtue Ethics—into Reinforcement Learning (RL) agents. By defining these frameworks as intrinsic reward functions, the study examines how diverse ethical "programming" influences agent behavior in iterated social dilemmas. Results demonstrate that while moral agents achieve high cooperation among themselves, they remain vulnerable to exploitation by selfish actors. The findings highlight the complexities of designing ethical AI for heterogeneous social environments.

Introduction

As artificial intelligence increasingly operates within human social spheres, the need for agents that adhere to ethical norms becomes paramount. Traditional RL focuses on maximizing a single extrinsic reward, often leading to selfish or socially suboptimal behavior. While some research explores "prosocial" preferences, human morality is multifaceted and heterogeneous. This study addresses the gap by modeling agents with distinct moral foundations and observing their interactions in social dilemmas—scenarios where individual and collective interests conflict.

Methodology

The researchers employed tabular Q-learning to train agents. The primary innovation is the introduction of Intrinsic Moral Reward Functions ($R_{M, intr}$), which augment the standard game reward ($R_{M, extr}$).

Agent architecture incorporating intrinsic moral rewards alongside extrinsic game rewards.

Three major ethical branches were operationalized:

  • Utilitarianism: Rewards are based on the sum of the agent's and the opponent's payoffs, aiming to maximize total social welfare.
  • Deontology: Agents are penalized for violating the norm of reciprocity (e.g., defecting against a previously cooperating opponent).
  • Virtue Ethics: This was modeled through three lenses: Virtue-equality (minimizing payoff differences via Gini coefficients), Virtue-kindness (rewarding the act of cooperation), and Virtue-mixed (a combination of both).

These moral agents were evaluated against a Selfish baseline that maximizes only its own extrinsic payoff.

Experimental Setup

The agents were tested in three classic iterated social dilemmas:

  1. Iterated Prisoner’s Dilemma (IPD): Characterized by the temptation to exploit and the fear of being exploited.
  2. Iterated Volunteer’s Dilemma (IVD): Where mutual defection is the worst outcome, encouraging at least one player to "volunteer" (cooperate).
  3. Iterated Stag Hunt (ISH): A coordination game where mutual cooperation is the best outcome but requires trust.

Key Insights and Results

The interactions between different agent types revealed several emergent behaviors:

The "Nice" Convergence and Vulnerability

Utilitarian, Deontological, and Virtue-kindness agents showed high compatibility, consistently reaching 100% mutual cooperation when paired. However, these "nice" agents proved vulnerable to exploitation. In the Prisoner's Dilemma, Selfish agents exploited Utilitarian and Deontological counterparts 100% of the time, as these moral models lacked defensive or punitive mechanisms.

Heatmaps showing the frequency of different game outcomes (Mutual Cooperation, Mutual Defection, etc.) for various agent pairings in the Iterated Prisoner's Dilemma.

The Virtue-Equality Quirk

Surprisingly, the "Virtue-equality" agent was often less effective at promoting equality. Its focus on payoff ratios led to defensive loops and mutual defection, particularly against Selfish opponents, resulting in lower overall scores for both parties.

Impact of Game Structure

The environment significantly influenced behavior. In the Volunteer’s Dilemma and Stag Hunt, even Selfish agents exhibited higher rates of cooperation (up to 55%) because the cost of mutual defection was prohibitively high compared to the Prisoner's Dilemma.

Conclusion and Future Work

This research demonstrates that encoding philosophical frameworks as intrinsic rewards can foster cooperation but also introduces specific vulnerabilities. Future work should explore more complex deontological rules, incorporate reciprocity/punishment mechanisms to deter exploitation, and scale these interactions to larger populations in Multi-Agent RL (MARL) settings. Additionally, allowing agents to select their partners could reveal how moral clusters and social ostracism might emerge naturally.

Summary updated

BibTeX
@inproceedings{tennant2023modeling,
  author = {Elizaveta Tennant and Stephen Hailes and Mirco Musolesi},
  title = {{Modeling Moral Choices in Social Dilemmas with Multi-Agent Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/36},
}
Figure