Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordia

Alexander Sasha Vezhnevets,John P. Agapiou,Avia Aharon,Ron Ziv,Jayd Matyas,Edgar A. Duéñez-Guzmán,William A. Cunningham,Simon Osindero,Danny Karmon,Joel Z. Leibo
2023-12-14
Abstract:Agent-based modeling has been around for decades, and applied widely across the social and natural sciences. The scope of this research method is now poised to grow dramatically as it absorbs the new affordances provided by Large Language Models (LLM)s. Generative Agent-Based Models (GABM) are not just classic Agent-Based Models (ABM)s where the agents talk to one another. Rather, GABMs are constructed using an LLM to apply common sense to situations, act "reasonably", recall common semantic knowledge, produce API calls to control digital technologies like apps, and communicate both within the simulation and to researchers viewing it from the outside. Here we present Concordia, a library to facilitate constructing and working with GABMs. Concordia makes it easy to construct language-mediated simulations of physically- or digitally-grounded environments. Concordia agents produce their behavior using a flexible component system which mediates between two fundamental operations: LLM calls and associative memory retrieval. A special agent called the Game Master (GM), which was inspired by tabletop role-playing games, is responsible for simulating the environment where the agents interact. Agents take actions by describing what they want to do in natural language. The GM then translates their actions into appropriate implementations. In a simulated physical world, the GM checks the physical plausibility of agent actions and describes their effects. In digital environments simulating technologies such as apps and services, the GM may handle API calls to integrate with external tools such as general AI assistants (e.g., Bard, ChatGPT), and digital apps (e.g., Calendar, Email, Search, etc.). Concordia was designed to support a wide array of applications both in scientific research and for evaluating performance of real digital services by simulating users and/or generating synthetic data.
Artificial Intelligence,Computation and Language
What problem does this paper attempt to address?
The problem this paper attempts to address is: how to use generative artificial intelligence (such as large language models) to construct more flexible and expressive generative agent-based models (GABM) to better simulate complex social interactions in physical, social, or digital spaces. Specifically, traditional agent-based models (ABM) typically analyze at a relatively abstract level, which limits their practical application value. By introducing generative agent-based models (GABM), researchers hope to: 1. **Enhance agents' cognitive abilities**: Enable agents to perform more complex cognitive operations, such as commonsense reasoning, planning, and few-shot learning. 2. **Natural language communication**: Interactions between agents and with the external environment can be conducted through natural language, thereby more realistically simulating human behavior. 3. **Multimodal environment simulation**: GABM can operate in physical, social, and digital environments, thereby more comprehensively capturing the complexity of the real world. 4. **Increase the flexibility and expressiveness of the model**: By using large language models, GABM can more flexibly adapt to different application scenarios and generate richer behavior patterns. To achieve these goals, the paper introduces the Concordia library, a tool for building and using GABM. Concordia manages the environment through a special agent called the "Game Master" (GM), who is responsible for translating the agents' natural language actions into specific implementation steps and maintaining the consistency and authenticity of the environment. In summary, this paper aims to promote the application of agent-based models in social and natural sciences through GABM and the Concordia library, enabling them to more accurately simulate and predict complex real-world phenomena.