Smart Agent-Based Modeling: On the Use of Large Language Models in Computer Simulations

Zengqing Wu,Run Peng,Xu Han,Shuyuan Zheng,Yixin Zhang,Chuan Xiao
2023-12-15
Abstract:Computer simulations offer a robust toolset for exploring complex systems across various disciplines. A particularly impactful approach within this realm is Agent-Based Modeling (ABM), which harnesses the interactions of individual agents to emulate intricate system dynamics. ABM's strength lies in its bottom-up methodology, illuminating emergent phenomena by modeling the behaviors of individual components of a system. Yet, ABM has its own set of challenges, notably its struggle with modeling natural language instructions and common sense in mathematical equations or rules. This paper seeks to transcend these boundaries by integrating Large Language Models (LLMs) like GPT into ABM. This amalgamation gives birth to a novel framework, Smart Agent-Based Modeling (SABM). Building upon the concept of smart agents -- entities characterized by their intelligence, adaptability, and computation ability -- we explore in the direction of utilizing LLM-powered agents to simulate real-world scenarios with increased nuance and realism. In this comprehensive exploration, we elucidate the state of the art of ABM, introduce SABM's potential and methodology, and present three case studies (source codes available at <a class="link-external link-https" href="https://github.com/Roihn/SABM" rel="external noopener nofollow">this https URL</a>), demonstrating the SABM methodology and validating its effectiveness in modeling real-world systems. Furthermore, we cast a vision towards several aspects of the future of SABM, anticipating a broader horizon for its applications. Through this endeavor, we aspire to redefine the boundaries of computer simulations, enabling a more profound understanding of complex systems.
Artificial Intelligence,Computational Engineering, Finance, and Science,Computation and Language,Multiagent Systems,General Economics
What problem does this paper attempt to address?
### What problem does this paper attempt to solve? This paper aims to propose a new modeling framework—Smart Agent-Based Modeling (SABM)—by combining Large Language Models (LLMs) with Agent-Based Modeling (ABM). Specifically, the paper attempts to address the following issues: 1. **Modeling challenges of natural language instructions and common sense**: Traditional ABM methods face difficulties in handling behaviors and common sense described in natural language. These behaviors are hard to express with formal mathematical equations or rules, leading to significant model simplification and an inability to fully capture the complexity of the real world. 2. **Limitations of parameter settings**: ABM typically relies on preset parameters to define agent behaviors. While this approach can be effective in some cases, improper parameter settings may introduce researcher bias and increase the uncertainty of model outputs. 3. **Simulation of heterogeneous agents**: Agents in real-world systems are diverse, and traditional ABM methods face challenges in handling this diversity. Researchers need to deeply understand the subtle impacts of parameter settings to reveal the essence of phenomena. By introducing LLMs, such as Generative Pre-trained Transformers (GPT), the paper hopes to overcome the above limitations and enhance the performance of ABM in simulating complex systems. LLMs possess strong natural language processing and reasoning capabilities, which can be used to mimic complex real-world behaviors, thereby improving the realism and interpretability of models. Additionally, SABM proposes the concept of prior modeling, where LLM-driven agents can use common sense and knowledge for behavior simulation without relying on posterior rules or parameter settings. This approach not only increases the flexibility of the model but also better adapts to system changes, achieving more robust simulation results.