Abstract
Simulating collective decision-making involves more than aggregating individual behaviors; it emerges from dynamic interactions among individuals. While large language models (LLMs) offer strong potential for social simulation, achieving quantitative alignment with real-world data remains a key challenge. To bridge this gap, we propose the Mean-Field LLM (MF-LLM) framework, the first to incorporate mean field theory into LLM-based social simulation. MF-LLM models bidirectional interactions between individuals and the population through an iterative process, generating population signals to guide individual decisions, which in turn update the signals. This interplay produces coherent trajectories of collective behavior. To improve alignment with real-world data, we introduce IB-Tune, a novel fine-tuning method inspired by the Information Bottleneck principle, which retains population signals most predictive of future actions while filtering redundant history. Evaluated on a real-world social dataset, MF-LLM reduces KL divergence to human population distributions by 47% compared to non-mean-field baselines, enabling accurate trend forecasting and effective intervention planning. Generalizing across 7 domains and 4 LLM backbones, MF-LLM provides a scalable, high-fidelity foundation for social simulation.
Introduction
Recent advancements in Large Language Models (LLMs) have sparked interest in "generative agents" capable of simulating human-like social interactions. However, existing simulations often prioritize narrative plausibility over quantitative accuracy. While these models can create engaging stories in sandbox environments, they frequently fail to replicate the statistical trends and collective dynamics observed in real-world human populations.
The challenge of scaling social simulation is three-fold. First, there is a lack of data alignment; heuristic-based prompts rarely capture the nuanced evolution of real populations. Second, interaction dynamics are often ignored; standard supervised fine-tuning (SFT) treats agent decisions as independent events rather than part of a feedback loop. Finally, scalability remains a bottleneck; modeling every pairwise interaction in a large group creates $O(N^2)$ complexity, making large-scale simulation computationally prohibitive.
The MF-LLM Framework
To address these challenges, we introduce MF-LLM, a framework that applies Mean-Field Theory to LLM-based social simulation. In physics and social science, mean-field theory simplifies complex systems by assuming that individuals interact with a collective "mean field" rather than every other individual peer-to-peer. This reduces complexity from $O(N^2)$ to $O(N)$.
In the MF-LLM framework, the simulation operates through a recursive loop involving two primary modules:
- The Mean-Field Model: This module aggregates the history of population actions and distills them into a concise textual "population signal" ($m_t$). This signal represents the current social climate or collective state.
- The Policy Model: This module generates individual agent actions. It takes the agent’s private state (e.g., user profile, personal history) and the current population signal ($m_t$) as inputs to determine the next action.
This bidirectional interaction—where the population signal shapes individual choices, and those choices subsequently update the signal—allows for the emergence of coherent collective behavior trajectories.
Information Bottleneck Fine-Tuning (IB-Tune)
A critical challenge in mean-field modeling is ensuring the population signal remains informative without becoming cluttered with historical noise. To solve this, we developed IB-Tune, a fine-tuning method based on the Information Bottleneck (IB) principle.
IB-Tune trains the mean-field model to extract only the information most predictive of future collective actions while filtering out redundant or irrelevant historical data. By optimizing this trade-off, the framework ensures that the LLM focuses on the most salient social cues, preventing the "signal" from becoming a verbose and distracting text block that degrades model performance.
Experimental Results
We evaluated MF-LLM using the WEIBO corpus, which contains over 5,000 real-world social media events across seven domains: Crime, Culture, Health, News, Politics, Sports, and Technology. Each event includes temporally ordered user responses and detailed profiles, providing a rigorous benchmark for quantitative alignment.
Quantitative Accuracy
MF-LLM demonstrated a significant leap in fidelity, reducing the KL divergence (a measure of the difference between two probability distributions) to real human population distributions by 47% compared to non-mean-field baselines. This indicates that the framework's generated distributions of sentiment and behavior closely mirror actual human data.
Trend Forecasting and Intervention
The model successfully predicted "tipping points" in social dynamics, such as the peak and decline of rumor propagation. While standard models often over-predict the virality of content, MF-LLM’s feedback loop provided a more grounded trajectory. Furthermore, the framework enables "what-if" analysis. By simulating interventions—such as debunking a rumor at a specific time—we demonstrated that MF-LLM can predict which strategies are most effective at stabilizing social trajectories.
The "Smaller Model" Paradox
An unexpected finding was that smaller models (e.g., Qwen2-1.5B) often outperformed larger models like GPT-4o-mini in social simulation tasks. Larger models tend to produce highly homogeneous, "optimal" responses that lack the diversity and variability inherent in human populations. In contrast, smaller models, when properly tuned via MF-LLM, maintained the necessary human-like variance required for realistic collective dynamics.
Conclusion and Future Work
MF-LLM provides a scalable and high-fidelity foundation for social simulation by bridging the gap between individual LLM agents and collective population dynamics. While the framework excels at modeling internal (endogenous) dynamics, future work will focus on incorporating exogenous shocks—unpredictable external events that can shift social trajectories. Additionally, addressing long-horizon drift, where small errors compound over time, remains a priority for maintaining simulation alignment over extended periods.
Summary updated