Infected Smallville: How Disease Threat Shapes Sociality in LLM Agents

Soyeon Choi, Kangwook Lee, Oliver Sng, Joshua M. AckermanarXiv 2025 · DOI

Abstract

This study investigates whether Large Language Model (LLM) agents can simulate human-like social shifts in response to pathogen threats. By deploying 25 generative agents in the virtual town of "Smallville," researchers observed that priming agents with news of an infectious disease led to autonomous social distancing and behavioral changes mirroring the human "behavioral immune system."

Introduction

Social psychology often struggles with a "validity gap": laboratory experiments lack real-world complexity, while observational studies during actual crises lack controlled variables. This research utilizes Generative Agent-Based Modeling (GABM) to bridge this gap, testing if LLM-powered agents can realistically simulate complex socio-ecological theories like the behavioral immune system—a suite of psychological mechanisms that encourage social distancing and hygiene to preemptively avoid infection.

Methodology

The study utilized the "Smallville" sandbox, where 25 agents powered by GPT-4o-mini live out their lives and interact in natural language. The experiment employed a "multiverse" design to isolate the effects of disease threat.

Experimental timeline and condition divergence across the three study groups.

As shown in the experimental design, the simulation diverged into three distinct conditions:

  1. Disease-Threat: Agents were exposed to news of a Swine Flu (H1N1) outbreak.
  2. No-Threat (Control): No health-related news was provided.
  3. Noninfectious-Disease (Validity Check): Agents read about Type 2 Diabetes to ensure reactions were specific to contagion, not just general negative news.

Key Insights

The agents demonstrated sophisticated, context-aware reactions to the perceived threat:

  • Selective Social Withdrawal: Agents specifically avoided "third places" like cafes and parks. Movement patterns became significantly more home-centric in the disease condition.
  • The Diabetes Control: Crucially, agents in the noninfectious condition expressed concern for neighbors but did not alter their social schedules, proving the LLMs specifically understood the concept of contagion.
  • Emergent Coordination: Without researcher intervention, the cafe owner (Isabella) autonomously decided to postpone a Valentine’s Day party based on her personality and the news.
  • Unfamiliarity Bias: Pathogen threat reduced interactions with strangers by 23.2 percentage points compared to the control group.

Results

Quantitative analysis revealed a stark contrast between the control and disease-threat environments, particularly regarding social density in public hubs.

Comparison of agent activity in Hobbs Cafe under Disease-Threat vs. No-Threat conditions.
  • Spatial Behavior: Agents spent 73.3% less time in public spaces and took 22.3% fewer steps overall.
  • Social Interaction: Total conversations across the town dropped by 48.4%.
  • Event Participation: Average attendance at the Valentine's party plummeted from 7.33 agents in the control to just 1.33 in the disease condition.
  • Psychological Alignment: Post-simulation interviews showed agents in the disease condition scored significantly higher on a standardized Disease Avoidance motive scale (6.26 vs 3.48 on a 7-point scale).

Discussion and Limitations

While GABM proves to be a powerful tool for ethical socio-ecological testing, limitations remain. LLMs are often trained on "WEIRD" (Western, Educated, Industrialized, Rich, Democratic) datasets, potentially biasing social outcomes. Additionally, agents occasionally "hallucinated" modern tools (like Zoom) incompatible with the 2D environment. Future research should scale these simulations to hundreds of agents to observe the emergence of macro-level social norms and microcultures.

Summary updated

BibTeX
@misc{choi2025infected,
  author = {Soyeon Choi and Kangwook Lee and Oliver Sng and Joshua M. Ackerman},
  title = {{Infected Smallville: How Disease Threat Shapes Sociality in LLM Agents}},
  year = {2025},
  eprint = {2506.13783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.13783},
}
Figure