Abstract
With ChatGPT-like large language models (LLM) prevailing in the community, how to evaluate the ability of LLMs is an open question. Existing evaluation methods suffer from following shortcomings: (1) constrained evaluation abilities, (2) vulnerable benchmarks, (3) unobjective metrics. We suggest that task-based evaluation, where LLM agents complete tasks in a simulated environment, is a one-for-all solution to solve above problems. We present AgentSims, an easy-to-use infrastructure for researchers from all disciplines to test the specific capacities they are interested in. Researchers can build their evaluation tasks by adding agents and buildings on an interactive GUI or deploy and test new support mechanisms, i.e. memory, planning and tool-use systems, by a few lines of codes.
Introduction: The Crisis in LLM Evaluation
Current Large Language Model (LLM) evaluation relies heavily on static benchmarks such as MMLU or C-Eval, which primarily use multiple-choice questions or single-turn dialogues. This paradigm faces three critical flaws. First, static Q&A cannot test complex "Theory of Mind" or multi-step instruction following in dynamic environments. Second, benchmarks are vulnerable to data leakage, where models memorize answers from training data. Third, metrics like BLEU/ROUGE or LLM-as-a-judge are often unobjective or biased.
AgentSims addresses these issues by shifting evaluation into a simulated "socio-economic" environment. In this sandbox, success is measured by objective goal completion—such as managing a town budget or navigating social friction—rather than linguistic similarity to a reference text.
The AgentSims Sandbox
AgentSims provides a modular infrastructure consisting of a Python-based backend and a Unity-driven frontend that visualizes a virtual town. The platform supports two interaction modes: a User Mode with a drag-and-drop GUI for non-programmers and a Developer Mode with a Python API for researchers to implement custom logic. This allows for a wide range of interactions between agents, players, and the environment.
System Architecture
The core of the simulation lies in its "Generative Agents." To ensure realistic behavior, agent functions are abstracted into three primary support systems that interact with the environment:
- Planning System: Decomposes high-level goals into actionable subtasks using pluggable prompt modules.
- Memory System: Utilizes a vector database to store and retrieve past experiences, ensuring behavioral consistency over time.
- Tool-Use System: Enables agents to interact with environmental equipment (e.g., using a stove) and learn from operational feedback.
Evaluation Paradigm and Key Insights
AgentSims champions task-based evaluation as a "one-for-all" solution. By requiring agents to solve problems in a dynamic world, the evaluation becomes resistant to memorization-based "hacking." Emergent social behaviors are far too complex to be captured in a simple training corpus.
Furthermore, the platform offers objective success metrics via "task passing rates." For instance, if an agent is tasked with purchasing a specific item within a budget, the outcome is binary and indisputable. This modular design also facilitates ablation studies, allowing researchers to swap different memory or planning algorithms to pinpoint which components drive performance improvements in social settings.
Conclusion
AgentSims provides an accessible, interdisciplinary tool for evaluating LLMs through complex, objective simulations. By providing both a "pixel-game" GUI and a robust developer API, the platform enables psychologists, economists, and social scientists to design LLM experiments without needing deep expertise in software architecture. While currently limited by simulation fidelity and asset variety, it represents a significant step toward more robust and meaningful AI evaluation.
Summary updated