An LLM-based Agent Simulation Approach to Study Moral Evolution

Ziheng Zhou, Huacong Tang, Mingjie Bi, Yipeng Kang, Wanying He, Fang Sun, Yizhou Sun, Ying Nian Wu, Demetri Terzopoulos, Fangwei Zhong · OpenReview

Abstract

The evolution of morality presents a puzzle: natural selection should favor self-interest, yet humans developed moral systems promoting altruism. We address this question by introducing a novel Large Language Model (LLM)-based agent simulation framework modeling prehistoric hunter-gatherer societies. This platform is designed to probe diverse questions in social evolution, from survival advantages to inter-group dynamics. To investigate moral evolution, we designed agents with varying moral dispositions based on the Expanding Circle Theory. We evaluated their evolutionary success across a series of simulations and analyzed their decision-making in specially designed moral dilemmas. These experiments reveal how an agent's moral framework, in combination with its cognitive constraints, directly shapes its behavior and determines its evolutionary outcome. Crucially, the emergent patterns echo seminal theories from related domains of social science, providing external validation for the simulations. This work establishes LLM-based simulation as a powerful new paradigm to complement traditional research in evolutionary biology and anthropology, opening new avenues for investigating the complexities of moral and social evolution.

Introduction

How did altruism survive natural selection? While evolutionary biology has long grappled with the "puzzle of morality," traditional research methods often fall short. Mathematical models like evolutionary game theory are frequently too abstract, stripping away the cognitive complexity of human decision-making. Conversely, anthropological studies provide rich qualitative data but lack the capacity for controlled, causal experiments over evolutionary timescales.

This paper introduces a novel simulation framework using Large Language Models (LLMs) to bridge this gap. By imbuing agents with "psychological realism"—including values, memory, and reasoning—the researchers demonstrate how environmental pressures and cognitive constraints, rather than just simple game-theoretic rules, dictate the survival of different moral dispositions.

Methodology: The SOCIAL-EVOL Framework

The researchers developed two primary components to facilitate their study:

  1. MORE (Agent Cognitive Architecture): A morality-driven, entity-oriented framework. Unlike previous models that record events in a simple log, MORE uses an entity-based memory system where agents form judgments and dispositions toward specific individuals (kin, group members, or enemies).
  2. SOCIAL-EVOL (Environment): A text-based simulation of a prehistoric society. Agents must manage Health Points (HP), gather resources (low-risk plants or high-risk/high-reward prey), reproduce, and interact socially through communication, resource allocation, or conflict.
The Social-Evol framework overview, illustrating the interaction between the LLM-based agent architecture, the environment, and the temporal dynamics.

Agents were assigned one of four moral types based on The Expanding Circle Theory: Self-focused (personal survival), Kin-focused (genetic relatives), Reciprocal group-focused (cooperation with those showing goodwill), and Universal group-focused (altruistic toward everyone).

Key Insights and Results

The simulation produced emergent behaviors that align with established social science theories, such as Bounded Rationality and Life History Theory, providing external validation for the model.

Cognitive Constraints and Social Costs

A key finding is that the "cost" of morality is often cognitive. In scenarios with high social interaction costs—where negotiating takes significant time and resources—selfish agents tend to dominate. In these environments, moral agents waste critical survival resources attempting to coordinate, making altruism a liability.

The "Invisible Morality" Paradox

In baseline scenarios, kin-focused agents were the most stable, as biological connections provide a reliable foundation for cooperation. However, a paradox emerged when agents could not directly observe each other's moral types. In these "invisible" scenarios, universal altruists performed better than reciprocal agents. Reciprocal agents often suffered from social exclusion due to "misjudged" retaliations—interpreting a neutral action as hostile—whereas universal altruists avoided these destructive cycles by never retaliating.

Agent population ratios over time in the 'Invisible Morality' scenario, showing the survival of Universal and Kin-focused types.

Conclusion and Future Work

This work establishes LLM-based simulation as a powerful new paradigm for investigating the complexities of social evolution. While current models face limitations regarding LLM reasoning deficiencies in spatial/temporal calculations and simplified biological mechanisms, they offer a unique ability to observe how psychological traits influence long-term survival. Future directions include expanding the framework to include sexual selection, cultural mechanisms like toolmaking, and more complex social norms.

Summary updated

BibTeX
@misc{zhou2025llm,
  author = {Ziheng Zhou and Huacong Tang and Mingjie Bi and Yipeng Kang and Wanying He and Fang Sun and Yizhou Sun and Ying Nian Wu and Demetri Terzopoulos and Fangwei Zhong},
  title = {{An LLM-based Agent Simulation Approach to Study Moral Evolution}},
  year = {2025},
  eprint = {2509.17703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.17703},
}

Loading related content...

Figure