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

Elizaveta Tennant, Stephen Hailes, Mirco Musolesi · DOI

Introduction

As artificial intelligence systems are increasingly integrated into complex social environments, the challenge of "value alignment"—ensuring AI behavior remains consistent with human ethics—becomes paramount. Traditional approaches to this problem often rely on "top-down" methods, such as hard-coded constraints or explicit rules. However, these methods are frequently brittle and struggle to adapt to the nuanced, context-dependent nature of human morality.

This paper proposes a "bottom-up" alternative by investigating how embedding classic moral theories directly into the reward structures of Multi-Agent Reinforcement Learning (MARL) agents influences their behavior. By representing ethical frameworks as intrinsic reward functions, the researchers explore how agents motivated by a "conscience" navigate social dilemmas—scenarios where individual incentives conflict with the collective good.

Methodology

The study utilizes tabular Q-learning within a MARL framework to train agents in iterated dyadic (two-player) games. The core innovation lies in the design of Intrinsic Moral Reward Functions. Rather than solely pursuing extrinsic game points, agents are motivated by rewards derived from three primary ethical frameworks:

  • Utilitarianism: Agents receive rewards based on the sum of both players' payoffs, incentivizing the maximization of total social welfare.
  • Deontology (Duty-based): Agents are penalized for violating specific norms, such as "conditional cooperation" (e.g., a penalty is applied if the agent defects against a partner who previously cooperated).
  • Virtue Ethics: This framework is subdivided into three distinct motivations:
  • Virtue-equality: Agents seek to minimize the difference between payoffs using a Gini-style coefficient.
  • Virtue-kindness: Agents receive a fixed reward for the act of choosing to cooperate.
  • Virtue-mixed: A multi-objective approach that combines both equality and kindness signals.

These moral agents were evaluated against a standard Selfish agent, which operates purely to maximize its own extrinsic payoff.

Experimental Design

The researchers tested these agents across three classic game theory benchmarks, each representing a different type of social pressure:

  1. Iterated Prisoner’s Dilemma (IPD): A scenario driven by both greed (the incentive to exploit) and fear (the incentive to avoid being exploited).
  2. Iterated Volunteer’s Dilemma (IVD): A scenario driven primarily by greed, as there is no fear of a non-cooperative partner causing a total loss.
  3. Iterated Stag Hunt (ISH): A scenario driven by trust and fear, where there is no inherent greed incentive to defect, but mutual cooperation requires coordination.

Key Insights and Analysis

The "Naive Cooperator" Trap

The study found that Utilitarian, Deontological, and "Kindness-focused" agents almost universally converged to 100% cooperation. While this behavior maximizes social welfare in homogeneous groups, it creates a significant vulnerability. When paired against Selfish agents, these moral agents became "sitting ducks," allowing themselves to be exploited relentlessly without adjusting their strategy to protect their own interests.

Equality as a Defensive Mechanism

In contrast to other moral frameworks, the Virtue-equality agent demonstrated a unique defensive capability. Because these agents are motivated to minimize payoff disparity, they prefer mutual defection (which results in equal, albeit low, scores) over being exploited (which results in high inequality). In the Prisoner's Dilemma, this preference forced Selfish agents into mutual defection, effectively neutralizing the Selfish agent's ability to gain an advantage through exploitation.

The Convergence Gap and Multi-objective Challenges

The researchers noted that the defensive nature of equality-focused agents was partially a byproduct of learning speed. When training was extended from 10,000 to 50,000 iterations, these agents eventually discovered that full mutual cooperation is the most effective way to achieve perfect equality.

Furthermore, in "Virtue-mixed" agents, the "kindness" signal tended to dominate the "equality" signal. Unless equality was weighted extremely heavily (β > 0.8), the agent defaulted to naive cooperation, suggesting that simple additive rewards for "being good" may inadvertently increase an agent's exploitability.

Results Summary

  • Social Welfare: Utilitarian, Deontological, and Virtue-kindness agents achieved the highest collective returns when interacting with like-minded moral agents.
  • Selfish Dominance: In the IPD, Selfish agents achieved near-100% exploitation against Utilitarian and Deontological types. However, they were held to 0% exploitation by Virtue-equality agents.
  • Game Sensitivity: In the Stag Hunt, the lack of a greed incentive allowed even Selfish agents to cooperate 55-60% of the time when paired with moral agents, as trust was easier to establish than in the Prisoner's Dilemma.

Discussion and Future Directions

While this research provides a foundational look at bottom-up moral modeling, it highlights several areas for future exploration. The current reward functions are mathematical proxies and do not yet capture the full complexity of human ethical reasoning. Additionally, the study was limited to dyadic (1v1) interactions; moving to larger populations where agents can choose their partners might significantly alter the evolutionary success of different moral strategies.

Finally, the authors suggest that future models should incorporate "punitive" morality. While the current agents are prosocial, agents that feel a moral duty to punish defectors might be better equipped to foster cooperation while remaining resilient against exploitation. This framework serves as a stepping stone for modeling how moral AI might eventually interact with humans who possess their own diverse and evolving moral preferences.

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