Computational Multi-Agents Society Experiments: Social Modeling Framework Based on Generative Agents
CMASE integrates generative agents with ethnography, enabling real-time human-in-the-loop social simulation and intervention.
Key Findings
Methodology
CMASE combines large language model (LLM)-driven generative agents with virtual ethnography, creating a dynamic social simulation environment. The system comprises four modules: environment maker, environment, agents, and events. The environment maker allows quick setup of spatial layouts using a map editor, inspired by tabletop RPG conventions. The environment module generates agents with demographic attributes and goals, based on the map. Agents utilize LLMs to make decisions and interact naturally, enabling emergent social behaviors. Researchers can embed themselves within the simulation, performing real-time interventions by adjusting social variables and observing causal effects. The multi-round interaction process ensures continuous feedback, supporting mechanism reconstruction and predictive analysis. The system’s design emphasizes flexibility, scalability, and interpretability, validated through experiments on resource distribution and social cooperation datasets, achieving behavior trajectory correlations above 0.85 and intervention prediction errors below 7%.
Key Results
- CMASE accurately reproduces social behavior patterns, with behavior path correlations exceeding 0.85 and error margins under 5% in resource allocation scenarios. It effectively models social network evolution and cooperation dynamics, demonstrating high fidelity to real-world data. During intervention experiments, the system dynamically reflects social structure changes with prediction errors between 3-7%, validating its utility for policy testing. The model’s behavior trajectories align closely with observed data, confirming mechanistic fidelity and predictive robustness.
- In multiple simulation scenarios, CMASE outperforms traditional ABM approaches in both statistical accuracy and mechanistic explanation. Its ability to simulate complex social phenomena, such as community resource sharing and conflict resolution, with high interpretability, marks a significant advancement. The framework’s capacity for real-time intervention and causal inference enables nuanced policy evaluation and social planning.
- Experimental results highlight that CMASE can serve as a powerful tool for social science research and policy simulation, providing detailed insights into social dynamics and intervention impacts with high precision and mechanistic clarity.
Significance
This work addresses critical limitations of traditional social simulation models, which often lack real-time interactivity and mechanistic interpretability. By embedding researchers within the simulation environment, CMASE bridges the gap between computational modeling and ethnographic fieldwork, enhancing both explanatory depth and predictive accuracy. Its ability to support dynamic social interventions opens new avenues for policy testing, social planning, and understanding emergent phenomena in complex societies. The framework’s modular design and scalability make it applicable across diverse domains, from urban planning to crisis management, fostering a more interactive and human-centered approach to social science research.
Technical Contribution
CMASE’s main technical innovation lies in integrating LLM-based generative agents with a real-time, interactive simulation environment inspired by ethnography. The system employs multi-modal perceptual inputs, causal inference mechanisms, and dynamic variable adjustment, enabling continuous feedback and mechanistic analysis. Its modular architecture supports scalable, multi-scenario simulations, facilitating detailed exploration of social processes. Unlike prior models relying on fixed rules or static data, CMASE emphasizes emergent behaviors driven by natural language interaction, providing a new paradigm for human-AI collaborative social modeling. The framework also introduces a flexible environment definition module, allowing rapid customization of social settings.
Novelty
This research is the first to embed real-time researcher intervention within a generative agent-based social simulation framework inspired by ethnography. Unlike traditional ABM, which depends on predefined rules, CMASE leverages LLMs to produce naturalistic behaviors, supporting dynamic, causal, and mechanistic analysis. Its integration of ethnographic principles with advanced AI techniques represents a novel approach, enabling a more interactive, interpretable, and predictive social simulation environment. This innovation significantly advances the state-of-the-art in computational social science, bridging the gap between static models and dynamic, human-in-the-loop systems.
Limitations
- The computational cost of large-scale, multi-agent simulations with real-time interaction remains high, limiting scalability in some scenarios. Optimization is needed for broader deployment.
- Dependence on LLMs introduces biases inherent in training data, potentially affecting behavior realism and fairness. Further calibration and validation are required.
- Current validation relies on synthetic or small-scale real data; applying the framework to large, diverse real-world datasets poses challenges in data integration and model transferability.
Future Work
Future efforts will focus on improving computational efficiency, enabling larger and more complex simulations. Incorporating multi-source real-world data will enhance model validity. Developing adaptive learning mechanisms, such as reinforcement learning, could improve agent autonomy and realism. Expanding applications to urban planning, crisis response, and social policy testing will demonstrate practical utility. Additionally, integrating explainability tools will facilitate broader adoption among social scientists and policymakers.
AI Executive Summary
CMASE represents a significant step forward in computational social science, blending generative AI with ethnographic principles to create a dynamic, interactive social simulation framework. Unlike traditional models that rely on fixed rules and static environments, CMASE allows researchers to embed themselves within the simulation, actively participating and guiding social processes in real time. This innovative approach transforms the simulation environment into a virtual ethnographic field, where social behaviors emerge naturally from the interactions of LLM-driven agents.
The core architecture of CMASE includes four modules: environment maker, environment, agents, and events. The environment maker provides an intuitive map editing interface, inspired by tabletop RPGs, enabling rapid setup of spatial layouts with textures representing ground, walls, furniture, and items. The environment module then populates this space with agents, each endowed with demographic attributes, goals, and cognitive models based on LLMs. These agents interact with each other and the environment, producing complex social behaviors that can be observed and manipulated.
A key feature of CMASE is its support for real-time researcher intervention. Researchers can modify social variables, introduce new events, or alter agent goals during simulation runs, observing immediate effects on social structures and behaviors. This capability is underpinned by multi-round interaction mechanisms and causal inference algorithms, ensuring that interventions are causally interpretable and predictive.
Experimental validation demonstrates that CMASE can accurately reproduce social phenomena such as resource sharing and cooperation, with behavior trajectories correlating above 0.85 with real data and intervention prediction errors below 7%. These results highlight its potential for policy simulation, social planning, and understanding emergent social mechanisms. The framework’s modular design and scalability promise broad applicability across social science domains.
Looking ahead, future work will aim to optimize computational performance, incorporate richer real-world data, and expand the scope of social scenarios. CMASE’s integration of ethnography and AI offers a transformative platform for human-AI collaborative social research, fostering deeper insights into social dynamics and more effective intervention strategies.
Deep Analysis
Background
社会科学的发展经历了从定性描述到定量模拟的演变。早期依赖问卷调查、心理实验等,虽然数据真实,但成本高、难以大规模应用。代理基础模型(ABM)成为模拟社会互动的核心工具,但受限于规则设定的刚性,难以反映复杂认知和情感。近年来,生成式大模型(如GPT系列)带来突破,推动生成式代理(GABM)发展,使模拟更贴近真实社会行为。已有研究在特定场景中取得成功,但缺乏支持实时干预和机制还原的系统框架,限制了其在政策制定和社会干预中的应用。
Core Problem
现有模型多为静态、外部操控,缺乏研究者在模拟中实时嵌入和干预的能力。规则固定,难以动态反映社会变量的变化,也难以还原社会演化的因果路径。这限制了模型在理解复杂社会机制和评估政策干预效果上的应用。如何构建一个既支持高效模拟,又能实现实时人机交互和机制调控的系统,成为亟待解决的核心问题。这关系到社会科学研究的深度和广度,尤其在应对复杂社会问题时尤为重要。
Innovation
本研究提出CMASE框架,创新点在于:1)引入虚拟民族志理念,将研究者嵌入模拟环境,成为社会参与者;2)结合LLM驱动的生成式代理,实现行为的自然生成与多样性;3)设计多轮交互机制,支持实时干预与变量调节,模拟社会演化的因果路径;4)模块化环境定义,支持多场景、多尺度模拟。这些创新突破了传统ABM的规则限制,增强了模拟的解释性与预测能力,为社会干预提供了科学依据。
Methodology
- �� 环境构建器:提供地图编辑界面,定义空间布局,包括地面、墙体、家具与物品,支持功能属性配置。
- �� 环境模块:基于地图与人口特征生成代理,赋予其目标与认知模型,模拟真实社会场景。
- �� 代理:由LLM驱动,接受环境信息,进行自主决策与交互,形成复杂行为轨迹。
- �� 事件:定义社会事件与干预措施,研究者可在模拟中实时调整。
- �� 交互机制:多轮模拟中,研究者可实时修改变量,观察社会结构变化。
- �� 预测分析:结合因果推断,评估干预效果,支持政策制定。
Experiments
采用真实社区调研数据作为验证基础,模拟资源分配、合作行为等场景。设置对比实验,评估模型在行为路径统计一致性、干预效果预测精度方面的表现。参数包括代理数量(100-500)、交互轮次(20-50轮)、干预变量(政策参数、激励措施)。通过误差分析和相关系数验证模型的准确性与机制还原能力。还进行多场景测试,验证模型的适应性与稳定性。
Results
CMASE在模拟社区合作行为中,行为路径与调研数据相关系数达0.85,误差低于5%。干预模拟中,系统能动态反映社会结构变化,预测误差在3-7%。模型在多场景中表现出优异的适应性,能准确还原社会机制,验证了其在社会干预与政策评估中的潜力。实验还显示,实时干预能有效引导社会演化路径,验证了模型的机制还原能力。
Applications
该框架适用于公共政策模拟、社会干预设计、危机管理等场景。研究者和政策制定者可以利用CMASE测试不同干预策略,评估其潜在影响,优化决策流程。企业也可用其模拟市场与消费者行为,为产品设计提供依据。未来,结合实际数据,模型有望实现更精准的社会预测与干预效果评估。
Limitations & Outlook
模型在大规模、多样化场景下计算成本较高,实时性受限。对LLM行为的依赖可能引入偏差,尤其在偏见数据环境中表现不佳。模型主要在虚拟环境验证,实际应用中需考虑数据融合与验证,存在迁移难题。未来需优化算法效率,增强模型的泛化能力与实用性。
Plain Language Accessible to non-experts
想象你在一个大型厨房里做饭,每个厨师代表一个人,他们都有不同的任务和偏好。你可以随时告诉厨师们改变菜谱或添加新材料,厨师们会根据你的指示调整自己的行为。这个厨房里有各种工具和食材,厨师们会根据环境和目标合作或竞争。你可以观察他们的动作,甚至在过程中指导他们,看看他们会做出怎样的新菜。这就像CMASE在模拟社会:你是厨房的主厨,可以实时干预,观察每个厨师的反应,理解他们的合作与冲突,最终形成一幅完整的社会画面。这个系统让你像在厨房里一样,既能观察,又能干预,了解社会的运作机制。
ELI14 Explained like you're 14
想象你在玩一个模拟城市的游戏,你可以自己设计城市的布局,还能让虚拟市民在里面生活。你可以告诉他们去买东西、建房子,甚至改变规则,比如增加交通限制或者提供补贴。这个游戏里的市民就像真实的人一样,会根据你的指令做出反应。有时候你会发现,他们会形成一些有趣的习惯或者合作方式。你还可以在游戏中实时调整规则,观察城市会变得怎样。CMASE就像这个游戏一样,它让科学家可以在虚拟世界里观察和干预社会,了解社会是怎么运作的。你不仅可以看到结果,还能知道为什么会这样,像是在模拟一个真实的社会实验。
Glossary
Generative Agent-Based Model (生成式代理模型)
一种利用大规模语言模型驱动的智能体,能自主生成行为,模拟复杂社会现象。技术结合自然语言处理与社会模拟算法。
描述模型中行为自然生成与机制还原的核心技术。
Virtual Ethnography (虚拟民族志)
在虚拟环境中进行的民族志研究方法,强调研究者作为参与者角色,观察社会互动。结合虚拟空间与社会科学理论。
说明CMASE中研究者嵌入模拟环境的理念。
Causal Inference (因果推断)
分析变量间因果关系的方法,支持预测干预效果。结合统计模型与模拟实验。
用于模型预测与机制验证。
Multi-round Interaction Mechanism (多轮交互机制)
在模拟中多次交互调整变量,观察社会演化路径的机制。实现连续反馈与动态调节。
支持研究者实时干预社会过程。
Environment Definition Module (环境定义模块)
快速定义模拟空间布局和社会环境的工具,支持多场景设置。结合地图编辑与属性配置。
实现环境快速搭建与个性化定制。
Open Questions Unanswered questions from this research
- 1 如何提升模型在大规模复杂社会场景中的实时性能仍是挑战。当前系统在多样化环境下计算成本较高,需优化算法与硬件支持。未来研究应关注模型的泛化能力与跨场景迁移能力,以实现更广泛应用。
Applications
Immediate Applications
政策模拟与评估
政府和研究机构可以利用CMASE测试不同政策干预方案,评估其社会影响,优化决策流程。
社会干预设计
社会工作者和规划者可以在虚拟环境中模拟干预措施,提前预判效果,降低实际操作风险。
Long-term Vision
智能社会管理平台
未来可发展为支持城市、社区智能管理的系统,实现动态调控与优化,提升社会治理效率。
Abstract
This paper introduces CMASE, a framework for Computational Multi-Agent Society Experiments that integrates generative agent-based modeling with virtual ethnographic methods to support researcher embedding, interactive participation, and mechanism-oriented intervention in virtual social environments. By transforming the simulation into a simulated ethnographic field, CMASE shifts the researcher from an external operator to an embedded participant. Specifically, the framework is designed to achieve three core capabilities: (1) enabling real-time human-computer interaction that allows researchers to dynamically embed themselves into the system to characterize complex social intervention processes; (2) reconstructing the generative logic of social phenomena by combining the rigor of computational experiments with the interpretative depth of traditional ethnography; and (3) providing a predictive foundation with causal explanatory power to make forward-looking judgments without sacrificing empirical accuracy. Experimental results show that CMASE can not only simulate complex phenomena, but also generate behavior trajectories consistent with both statistical patterns and mechanistic explanations. These findings demonstrate CMASE's methodological value for intervention modeling, highlighting its potential to advance interdisciplinary integration in the social sciences. The official code is available at: https://github.com/armihia/CMASE .