NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Affordable Generative Agents

Yangbin Yu, Qin Zhang, junyou li, Qiang Fu, Deheng Ye

Abstract

The emergence of large language models (LLMs) has significantly advanced the simulation of believable interactive agents. However, the substantial cost of maintaining prolonged agent interactions poses a challenge for the deployment of believable LLM-based agents. In this paper, we develop Affordable Generative Agents (AGA), a framework for enabling the generation of believable and low-cost interactions for both agent-environment and inter-agent scenarios. Specifically, for agent-environment interactions, we substitute repetitive LLM inferences with learned policies; for inter-agent interactions, we model social relationships and compress auxiliary dialogue information. Extensive experiments on multiple environments demonstrate the effectiveness and efficiency of our proposed framework. We also delve into the mechanisms of emergent believable behaviors in LLM agents, demonstrating that agents generate finite behaviors in fixed environments, providing a path to facilitate emergent interaction behaviors.

Introduction

Recent advancements in LLM-based agents, such as the "Stanford Town" experiment, have showcased the potential for highly believable human-like simulations. However, these simulations are prohibitively expensive due to two primary factors: redundant environment interactions and context bloat. Agents often invoke expensive LLM calls for repetitive daily tasks, and social interactions require feeding massive dialogue histories into prompts to maintain consistency. AGA addresses these inefficiencies by introducing mechanisms to reuse behavioral policies and compress social memory.

Methodology

1. Lifestyle Policy for Agent-Environment Interaction

To reduce redundant LLM calls, AGA implements a two-stage "Lifestyle Policy." When an agent encounters a new high-level plan (e.g., "preparing breakfast"), the LLM decomposes it into a sequence of sub-plans and executable actions. These sequences are stored in a policy library. For subsequent tasks, the agent uses an embedding model to calculate the cosine similarity between the current plan and stored policies. If a match exceeds a threshold (0.97), the agent executes the stored policy directly, bypassing the LLM.

Overview of the AGA framework illustrating the Lifestyle Policy and Social Impression Memory modules.

2. Social Memory for Inter-Agent Interaction

Traditional frameworks often include dozens of raw memory snippets in every dialogue prompt, leading to "token explosion." AGA replaces these logs with a compressed Social Impression Memory:

  • Summary Events: Relevant history is condensed into a dense, 100-token summary.
  • Relationship & Feeling: The system maintains an explicit state for each social connection (e.g., "Relationship: Acquaintances, Feeling: Positive"). This provides a high-level "vibe" that guides the LLM to produce more consistent dialogue without needing the full raw history.
The evolution of Social Impression Memory from initial contact to a post-conversation state.

3. Maintaining Spontaneity via Mind Wandering

To prevent agents from becoming overly mechanical when relying on stored policies, AGA includes a "Mind Wandering" module. This module occasionally injects unrelated memory fragments into the prompt, triggering spontaneous behaviors—such as an agent deciding to clean a room because they suddenly remembered it was idle—ensuring the simulation remains dynamic.

Experimental Results

Efficiency and Cost Reduction

AGA was evaluated in both the 2D Stanford Town sandbox and the 3D VirtualHome environment. The results show massive efficiency gains:

  • Stanford Town: Token costs were reduced to 31.1% of the baseline.
  • VirtualHome: Savings were even more significant, with costs dropping to just 3.4% of the baseline.

Believability and Information Diffusion

Despite the cost reductions, AGA maintained high performance. Using GPT-4 as an evaluator, AGA's human-likeness scores (approx. 3.2 for activities and 4.0 for dialogue on a 5-point scale) were nearly identical to the expensive baseline. Furthermore, in a 25-person simulation, AGA-powered agents successfully spread information (e.g., a party invitation) as effectively as baseline agents, proving that compressed social memory retains essential context.

Key Insights

One of the study's most significant findings is the "behavioral ceiling." In fixed environments, the variety of unique behaviors generated by LLM agents eventually flattens. This suggests that agents possess a finite behavioral repertoire in specific settings, validating the use of Lifestyle Policies as a mathematically sound representation of an agent's complete lifestyle rather than just a simple shortcut.

Conclusion

Affordable Generative Agents (AGA) demonstrates that believable AI simulations do not require exhaustive LLM usage. By leveraging policy reuse and social memory compression, AGA reduces operational costs by up to 96% while maintaining the "soul" and consistency of the agents. This framework paves the way for more sustainable and large-scale interactive AI environments.

Summary updated

BibTeX
@article{yu2024affordable,
  author = {Yangbin Yu and Qin Zhang and junyou li and QIANG FU and Deheng Ye},
  title = {{Affordable Generative Agents}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=7tlYbcq5DY},
}
Figure