Generative Agents: Interactive Simulacra of Human Behavior
Apr 2023
- Joon Sung Park
- Joseph C. O'Brien
- Carrie J. Cai
- Meredith Ringel Morris
- Percy Liang
- Michael S. Bernstein
Abstract
Believable proxies of human behavior can empower interactive applications ranging from immersive environments to rehearsal spaces for interpersonal communication to prototyping tools. In this paper, we introduce generative agents—computational software agents that simulate believable human behavior. Generative agents wake up, cook breakfast, and head to work; artists paint, while authors write; they form opinions, notice each other, and initiate conversations; they remember and reflect on days past as they plan the next day. To enable generative agents, we describe an architecture that extends a large language model to store a complete record of the agent's experiences using natural language, synthesize those memories over time into higher-level reflections, and retrieve them dynamically to plan behavior.
Introduction
The ability to create believable human-like behavior in computational agents has profound implications for interactive applications. From immersive virtual environments to training simulations for interpersonal communication, generative agents offer a new paradigm for human-computer interaction. These agents go beyond simple chatbots or NPCs—they exhibit complex, contextually appropriate behaviors that emerge from their experiences, memories, and social interactions.
Agent Architecture
The generative agent architecture extends large language models with three key components that enable believable, persistent behavior.
Memory Stream
A complete record of the agent's experiences stored in natural language, capturing observations, actions, and interactions with other agents and the environment.
Reflection
Higher-level synthesis of memories over time, allowing agents to form opinions, develop insights, and maintain coherent personality traits across interactions.
Planning
Dynamic retrieval and use of relevant memories to plan future actions, enabling agents to maintain goals and adapt their behavior based on context and experience.
Interactive Sandbox Environment
The research demonstrates generative agents in an interactive sandbox environment inspired by The Sims, where end users can interact with a small town of twenty-five agents using natural language. This environment serves as both a research platform and a demonstration of the technology's capabilities.
Emergent Social Behaviors
The agents demonstrate remarkable emergent social behaviors, such as autonomously spreading invitations to events, making new acquaintances, and coordinating to attend gatherings together at the right time.
Natural Language Interaction
Users can interact with agents using natural language, and the agents respond appropriately based on their memories, current context, and personality traits.
Evaluation and Validation
The research demonstrates through ablation studies that each component of the agent architecture—observation, planning, and reflection—contributes critically to the believability of agent behavior. The evaluation shows that generative agents produce both believable individual behaviors and emergent social dynamics.
Valentine's Day Party Example
Starting with only a single user-specified notion that one agent wants to throw a Valentine's Day party, the agents autonomously spread invitations, make new acquaintances, ask each other out on dates, and coordinate to show up for the party together at the right time.
Applications and Impact
- Immersive virtual environments and metaverse applications
- Training simulations for interpersonal communication skills
- Prototyping tools for social interaction design
- Research platforms for studying human behavior and social dynamics
- Entertainment and gaming with more realistic NPCs
Future Directions
- Scaling to larger populations of agents
- Integration with multi-modal environments and interactions
- Development of more sophisticated memory and reflection mechanisms
- Exploration of long-term relationship dynamics between agents
- Applications in education, therapy, and social skills training
Conclusion
Generative agents represent a significant step forward in creating believable, interactive simulations of human behavior. By fusing large language models with computational agent architectures, this work introduces new patterns for enabling rich, emergent social interactions. The technology opens up possibilities for more engaging virtual environments, better training tools, and deeper insights into human social behavior.
For the full details, see the original paper: Generative Agents: Interactive Simulacra of Human Behavior.