Sunday 23 February 2025
For decades, scientists have been trying to crack the code of complex systems, from the behavior of flocks of birds to the spread of diseases through populations. One way they’ve attempted to do this is by using agent-based modeling (ABM), a technique that simulates the actions of individual entities within a system.
The idea behind ABM is simple: by understanding how individual agents behave and interact with each other, scientists can gain insights into the complex patterns that emerge at a larger scale. However, creating these models from scratch has proven to be a time-consuming and labor-intensive task.
Researchers have now developed a new approach that uses large language models (LLMs) to automatically generate agent-based models. This is done by feeding the LLMs with conceptual models of the system being studied, along with prompts designed to extract specific information.
The process begins with a series of prompts that ask the LLM to identify key components within the model, such as agent sets and their characteristics, environmental variables, and the relationships between them. The model then uses this information to generate a detailed description of the system, including its dynamics and behavior over time.
One of the key benefits of this approach is its ability to automate the process of extracting relevant information from complex texts. This can be particularly useful for scientists who are not experts in programming or data analysis, but still need to create accurate models of their systems.
The new approach has been tested on a range of different systems, including epidemiological models and social network simulations. In each case, the results have been promising, with the LLMs able to generate accurate and detailed models that match those created by human experts.
While there are still many challenges to overcome before this technology can be widely adopted, its potential is clear. By automating the process of creating agent-based models, scientists will be free to focus on higher-level tasks, such as analyzing the results and making predictions about future behavior.
As researchers continue to develop and refine their techniques, it’s likely that we’ll see a surge in new insights and discoveries across a wide range of fields. From understanding the spread of diseases to predicting the behavior of financial markets, agent-based modeling has the potential to reveal complex patterns and relationships that were previously hidden from view.
Cite this article: “Automating Agent-Based Modeling with Large Language Models”, The Science Archive, 2025.
Agent-Based Modeling, Large Language Models, Complex Systems, Flocks Of Birds, Disease Spread, Populations, Agent Sets, Environmental Variables, Social Network Simulations, Epidemiological Models.







