MF-LLM: Simulating Population Decision Dynamics via a Mean-Field Large Language Model Framework

Qirui Mi, Mengyue Yang, Xiangning Yu, Zhiyu Zhao, Cheng Deng, Bo An, Haifeng Zhang, Xu Chen, Jun Wang

Introduction

Simulating how a population makes decisions—like how a rumor spreads on social media or how a crowd reacts to an emergency—is notoriously difficult. Traditional Agent-Based Models (ABMs) rely on handcrafted rules that lack the nuance of human language. While Large Language Models (LLMs) are great at "roleplaying" individuals, they struggle with quantitative alignment: their simulated collective behavior often diverges quickly from real-world data.

Furthermore, social behavior is driven by feedback loops: individual actions are influenced by the "vibe" of the crowd, and those actions, in turn, change that vibe. Modeling every agent's interaction with every other agent is computationally explosive ($O(N^2)$). To bridge this "realism gap" while keeping the simulation scalable, researchers introduce the Mean-Field LLM (MF-LLM) framework. MF-LLM brings Mean-Field Theory to social simulations, allowing LLMs to simulate large-scale population dynamics with unprecedented accuracy.

The MF-LLM Framework

The MF-LLM framework simplifies the complex web of agent-to-agent interactions into a more manageable agent-to-population model.

MF-LLM Framework
  1. Mean-Field Approximation: Instead of tracking every pairwise interaction, the framework maintains a Mean Field ($m_t$)—a textual summary representing the "population signal" (e.g., the current state of public opinion).
  2. The Bidirectional Loop:
    • Policy Model: An LLM generates an individual agent's action based on their private state and the current population signal.
  3. Mean-Field Model: Another LLM updates the population signal based on the most recent batch of agent actions.
  4. IB-Tune: To ensure these models reflect reality, the authors developed a fine-tuning algorithm based on the Information Bottleneck (IB) principle. It trains the Mean-Field model to extract only the information most predictive of future actions while filtering out redundant historical "noise." This prevents the simulation from drifting into unrealistic trajectories.

Datasets and Scalability

The framework was evaluated across several diverse datasets, including the WEIBO Corpus (~4,500 real-world events with rich user profiles), a TWITTER dataset of tweet-reply pairs, and a MARKET BEHAVIOR dataset of Bitcoin-related interactions. Testing spanned 7 distinct domains: Crime, Culture, Health, News, Politics, Sports, and Technology.

Because agents interact with a single population signal rather than each other, the computational complexity is reduced to $O(N)$ (linear). This allows the framework to scale to thousands of agents (tested up to 4,000) on a single GPU.

Key Insights and Results

The paper demonstrates that standard Supervised Fine-Tuning (SFT) fails because it treats decisions as independent. Realism emerges only when agents are explicitly conditioned on the evolving "mean field" of the population.

Simulation Trajectories
  • Superior Alignment: MF-LLM reduced the KL divergence (a measure of how much two distributions differ) to human population distributions by 47% compared to non-mean-field baselines.
  • Forecasting & Intervention: The model successfully predicted the "tipping point" and subsequent decline of rumors. It also allowed for "counterfactual" testing—simulating how different interventions (like debunking a rumor at step 34 vs. step 80) would change the eventual outcome.
  • Smaller Models Can Be Better: Surprisingly, smaller backbones (like Qwen2-1.5B) often outperformed massive models. Larger models tended to produce homogeneous responses, whereas smaller models exhibited higher responsiveness and behavioral diversity, leading to more realistic population trajectories.
  • Robustness: The framework showed consistent gains across 4 different LLM backbones (GPT-4o-mini, DeepSeek-R1, Qwen2-7B, and Qwen2-1.5B).

Limitations and Future Work

While MF-LLM is excellent at capturing internal population dynamics, it currently struggles to autonomously detect exogenous shocks (like a sudden news break) unless they are manually injected into the simulation. Additionally, as simulations run for very long periods, small errors in early steps can compound, leading to "distributional drift." Future work could involve automated mechanisms for monitoring and injecting external real-world events into the simulation loop in real-time, as well as periodic recalibration to prevent long-horizon drift.

Summary updated

BibTeX
@inproceedings{mi2025mf,
  author = {Qirui Mi and Mengyue Yang and Xiangning Yu and Zhiyu Zhao and Cheng Deng and Bo An and Haifeng Zhang and Xu Chen and Jun Wang},
  title = {{MF-LLM: Simulating Population Decision Dynamics via a Mean-Field Large Language Model Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=m0q8NfGWnv},
}
Figure