Simulating and Experimenting with Social Media Mobilization Using LLM Agents
Sadegh Shirani, Mohsen Bayati
TL;DR
The paper tackles how peer influence in online networks shapes political mobilization by presenting LLM-SocioPol, an agent-based simulator that fuses census-grounded demographics, authentic Twitter topology, and heterogeneous LLM agents (GPT-4.1 variants) to model voting behavior. It reproduces the qualitative findings of the classic Facebook mobilization study, showing stronger effects from social messages and observable spillovers, while enabling counterfactuals and sensitivity analyses beyond real-world constraints. The study discusses quantitative differences in magnitude due to the isolated online setting and extended pre-election exposure, highlighting both the fidelity and limitations of high-fidelity LLM-based simulations. By providing a publicly available codebase, it offers a reproducible ex-ante platform for testing intervention designs and causal estimators that complement field experiments. The framework thus bridges rigorous empirical designs with flexible computational modeling for political mobilization research.
Abstract
Online social networks have transformed the ways in which political mobilization messages are disseminated, raising new questions about how peer influence operates at scale. Building on the landmark 61-million-person Facebook experiment \citep{bond201261}, we develop an agent-based simulation framework that integrates real U.S. Census demographic distributions, authentic Twitter network topology, and heterogeneous large language model (LLM) agents to examine the effect of mobilization messages on voter turnout. Each simulated agent is assigned demographic attributes, a personal political stance, and an LLM variant (\texttt{GPT-4.1}, \texttt{GPT-4.1-Mini}, or \texttt{GPT-4.1-Nano}) reflecting its political sophistication. Agents interact over realistic social network structures, receiving personalized feeds and dynamically updating their engagement behaviors and voting intentions. Experimental conditions replicate the informational and social mobilization treatments of the original Facebook study. Across scenarios, the simulator reproduces qualitative patterns observed in field experiments, including stronger mobilization effects under social message treatments and measurable peer spillovers. Our framework provides a controlled, reproducible environment for testing counterfactual designs and sensitivity analyses in political mobilization research, offering a bridge between high-validity field experiments and flexible computational modeling.\footnote{Code and data available at https://github.com/CausalMP/LLM-SocioPol}
