Generative Agents: Interactive Simulacra of Human Behavior

PDF · 7 Apr 2023

The paper introduces generative agents, a novel class of computational agents that simulate believable human behavior by extending large language models (LLMs) with a structured memory stream, dynamic retrieval, reflection, and planning mechanisms. The authors implement these agents in a Sims‑style sandbox world called Smallville, populating it with 25 agents who perform daily routines, form relationships, spread information, and coordinate activities such as a Valentine’s Day party. The architecture consists of four core modules: (1) a memory stream that records all observations in natural‑language form; (2) a retrieval system that scores memories by recency, importance, and relevance to surface the most pertinent facts for the LLM; (3) a reflection process that periodically synthesizes higher‑level insights from recent memories, which are stored back into the memory stream; and (4) a planning component that generates multi‑step daily agendas and reacts to unexpected events. The authors describe several architecture optimizations, such as caching core characteristic summaries, pre‑computing high‑level plans and just‑in‑time decomposition, and batching dialogue generation to improve real‑time performance. To evaluate the agents, a structured interview protocol with 25 questions probes five capabilities—self‑knowledge, memory, planning, reactions, and reflections—using a sample agent (Klaus Mueller) to illustrate responses. Controlled ablation studies compare the full system against versions lacking observation, reflection, or planning, while an end‑to‑end two‑day simulation measures emergent social phenomena such as information diffusion, relationship formation, and coordinated group actions. Results show that the full architecture yields the most believable behavior, with each component contributing significantly. The paper discusses potential applications (social prototyping, immersive environments, design tools) and outlines ethical risks, including parasocial attachment, hallucination, bias, and misuse, proposing mitigation strategies such as disclosure, value‑alignment, logging, and limiting substitution for human input.

Topics

Core Architecture: Memory Stream, Retrieval, Reflection, and Planning

Details the four‑module architecture that underpins generative agents: (1) a memory stream that logs observations in natural language; (2) a retrieval system that scores memories by recency, importance, and relevance; (3) a reflection process that synthesizes higher‑level insights from recent memories and writes them back to the stream; (4) a planning and reactive loop that creates multi‑step daily agendas, decomposes them just‑in‑time, and handles unexpected events. Includes optimizations such as cached characteristic summaries, pre‑computed high‑level plans, and batched dialogue generation.

Smallville Sandbox Implementation and Emergent Agent Behaviors

Describes the deployment of 25 generative agents in the pixel‑art sandbox world Smallville, covering avatar design, environment interaction, dialogue generation, and the emergence of social dynamics such as relationship formation, information diffusion, and coordinated events like a Valentine’s Day party. Also references the structured interview questionnaire used to probe agent capabilities.

More from Joon

PDF

03_2024_LLM-Agents-Grounded-Self-Reports.pdf

1mo ago
PDF

04_CHI2022_Jury-Learning.pdf

1mo ago
PDF

01_UIST2023_Generative-Agents-Interactive-Simulacra.pdf

1mo ago
PDF

02_UIST2022_Social-Simulacra.pdf

1mo ago
PDF

LLM Agents Grounded in Self-Reports Enable General-Purpose Simulation of Individuals

1y ago
PDF

Social Simulacra: Creating Populated Prototypes for Social Computing Systems

4y ago
See all content