Generative Agents: Interactive Simulacra of Human Behavior
An agent architecture combining memory, retrieval, reflection, and planning to simulate believable long-horizon behavior.
Key takeaway
Agents store experiences, synthesize higher-level reflections, retrieve relevant memories, and use them to plan actions.
Updated on Oct 2, 2026
01
Abstract
- Generative Agents are computational agents designed to simulate believable human behavior in an interactive sandbox called Smallville.
- The architecture combines a memory stream, retrieval, reflection, and planning around a large language model.
- Each agent stores observations and experiences in natural language rather than a fixed symbolic state representation.
- Retrieval ranks memories using recency, importance, and relevance.
- Reflections synthesize multiple lower-level memories into higher-level conclusions that can influence future behavior.
- The paper demonstrates 25 agents interacting continuously in a simulated town.
02
Introduction
- Conventional language-model agents are often stateless or have only short conversational context.
- Believable social behavior requires remembering prior events, relationships, intentions, and commitments.
- Raw memory alone is insufficient because an agent cannot fit its entire life history into every prompt.
- Agents therefore need a retrieval mechanism that selects only memories relevant to the current situation.
- Higher-level reflections are necessary because repeated observations should be abstracted into beliefs and conclusions.
- Planning must translate memories and reflections into temporally ordered future actions.
03
Problem
- The paper addresses the problem of generating coherent social behavior over long time horizons.
- A useful architecture must preserve important information while avoiding unbounded context growth.
- Retrieval should balance what happened recently, what matters most, and what is semantically relevant.
- Agents must form abstractions from multiple experiences instead of repeatedly reacting to isolated events.
- Plans should remain consistent with the agent's memories, traits, relationships, and current environment.
04
Background
- The architecture draws from cognitive theories of memory, reflection, planning, and social behavior.
- The authors distinguish raw experiences from higher-level reflections derived from those experiences.
- The work uses language models as a flexible reasoning substrate rather than training a new foundation model.
- Memory retrieval is inspired by cognitive architectures in which recent, important, and contextually relevant memories are more likely to enter working context.
- The system connects these ideas into an explicit computational architecture for persistent LLM agents.
05
Methodology
- Every agent maintains a memory stream containing observations, plans, reflections, and other experiences.
- Each memory receives a recency score, an importance score, and a relevance score.
- Recency is computed using exponential decay so older memories become less likely to be retrieved.
- Importance is rated by the language model on a 1–10 scale to distinguish mundane events from consequential ones.
- Relevance is computed using embedding similarity between the current situation and candidate memories.
- The final retrieval score combines these three components before the memories are inserted into the agent's prompt.
Generative Agent Cognitive Architecture
Conceptual architecture showing memory stream, retrieval, reflection, planning, and environment interaction in generative agents.
MachinoAI generated conceptual diagram based on the paper content.
Formula notes
Mathematical details
Retrieval similarity
Rank candidate documents by similarity between the query embedding and document embedding.
- E
- -embedding function
- d
- -document
- q
- -query
- sim
- -similarity function
06
Architecture
- The core loop is Observe → Store → Retrieve → Reflect → Plan → Act.
- At each timestep, the agent perceives the environment and writes the observation into memory.
- Retrieval selects a compact set of relevant memories for the next decision.
- When sufficient new experience accumulates, the agent generates reflections that summarize patterns across memories.
- Planning produces a hierarchy of daily plans and more immediate actions.
- The language model generates behavior from the current observation plus retrieved memories, reflections, and plans.
07
Dataset
- Smallville is a sandbox town containing houses, shops, a school, a cafe, a bar, a park, and other locations.
- The simulation populates the environment with 25 generative agents.
- Agents have names, occupations, relationships, personalities, memories, daily schedules, and goals.
- The environment supports movement, conversations, object interactions, and social events.
- A key demonstration is the propagation of an initially small social event into broader behavior through agent communication and memory.
08
Training
- The system is built primarily around GPT-3.5-turbo rather than training a new language model.
- Agent memories are represented as natural-language records generated during simulation.
- Embeddings are used for relevance retrieval from the memory stream.
- The implementation uses prompts to generate observations, reflections, plans, and actions.
- The authors construct the agents and environment rather than performing gradient-based training for the agent architecture.
09
Experiments
- The evaluation studies whether agents can reproduce believable behavior over extended simulated time.
- The researchers run controlled experiments with ablated architectures to isolate the contribution of memory, reflection, and planning.
- A major demonstration is a Valentine's Day event in which one agent decides to organize a party and information spreads socially.
- The authors also examine how agents form relationships and coordinate activities without explicitly scripting every interaction.
- Human evaluators judge the believability of agent behavior under different architecture conditions.
Evidence highlights
- 01State management
- 02Tool contracts
- 03Observability
- 04Evaluation
- 05Safety
- 06Cost control
10
Baselines
- The main comparison removes one or more of the memory, reflection, and planning mechanisms.
- A memory-only configuration tests whether storing observations is sufficient without higher-level abstraction.
- A reflection-disabled configuration tests whether agents can maintain coherent behavior using raw memories alone.
- A planning-disabled configuration tests whether agents can produce consistent behavior without explicit future plans.
- Human-authored or scripted behavior provides an additional conceptual reference for evaluating believability.
11
Results
- The full architecture produces more believable behavior than ablated versions in the paper's human evaluation.
- Memory allows agents to remember specific events and interactions instead of responding only to the current observation.
- Reflection enables agents to derive higher-level beliefs, such as conclusions about another character's preferences or relationships.
- Planning allows those memories and reflections to influence behavior over hours or days of simulated time.
- The Valentine's Day demonstration shows emergent social coordination: an event initiated by one agent can propagate through conversations and plans.
12
Ablation
- Removing memory prevents the agent from reliably maintaining continuity across interactions.
- Removing reflection reduces the ability to synthesize multiple observations into higher-level social knowledge.
- Removing planning weakens long-horizon consistency because the agent lacks an explicit future-action structure.
- The three retrieval factors—recency, importance, and relevance—represent different reasons a memory may matter.
- The architecture works because these components complement one another rather than acting as interchangeable prompt text.
13
Limitations
- Human evaluation compares the full architecture against ablations on believability of one-hour simulation snippets.
- The full generative-agent architecture receives higher believability ratings than configurations lacking reflection or planning.
- The paper reports that agents can remember prior conversations and use those memories to initiate contextually appropriate actions.
- The architecture supports emergent coordination without hard-coding the final social event into the agent behavior.
- Retrieval quality is critical because irrelevant memories can distract the language model from the current goal.
14
Conclusion
- Generative Agents demonstrates a practical architecture for persistent language-model agents with long-term memory.
- Its main architectural contribution is the combination of memory retrieval, reflection, and planning around a general-purpose LM.
- The system shows that believable behavior can emerge from interactions among individually simple agents.
- The work provides a blueprint for later agent systems that use vector memory, reflection loops, hierarchical planning, and social state.
- The authors identify scaling, consistency, retrieval quality, and computational cost as important challenges for larger simulations.
15
References
Primary source: Park et al., “Generative Agents: Interactive Simulacra of Human Behavior.” UIST 2023, arXiv:2304.03442.
- The paper's Smallville simulation contains 25 agents.
- The architecture explicitly combines memory stream, retrieval, reflection, and planning.
- Memory retrieval combines recency, importance, and relevance.
- Importance is generated on a 1–10 scale, while recency uses exponential decay and relevance uses embedding similarity.
- The paper's evaluations include controlled ablations and human judgments of believability.
- The work is a systems demonstration rather than a new foundation-model training method.
Source trail
Primary papers, implementation pages, and external source records used to ground this explainer.
Continue reading
Related research
GitSwarm
GitSwarm turns inference-time work into a persistent, branchable body of reusable contributions that later agents can build on.
AI AgentsLongHarness
LongHarness helps agents reason over 100M-token document collections by keeping evidence and conclusions as explicit, revisable states that guide one another.
AI AgentsMIRA
MIRA is an autonomous medical agent evaluated in a sandboxed EHR workflow with tools for diagnosis, testing, treatment, and admission decisions.