MeKB-Sim: Personal Knowledge Base-Powered Multi-Agent Simulation

Zhenran Xu, Jifang Wang, Baotian Hu, Longyue Wang, Min Zhang2025

Abstract: Zhenran Xu, Jifang Wang, Baotian Hu, Longyue Wang, Min Zhang. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (System Demonstrations).

2025.

Introduction

While large language model (LLM) agents have demonstrated impressive social behaviors in sandbox environments, they are typically constrained by static "profiles"—fixed paragraphs of text that define their identity. In contrast, human interactions are dynamic, shaped by shifting moods, recent memories, and evolving goals. Existing simulations often struggle with "Theory of Mind" (ToM) because agents lack a structured way to track these internal states, leading to behaviors that feel "flat" or fail to adapt logically over time.

MeKB-Sim addresses this by replacing static profiles with a dynamic, hierarchical "Personal Knowledge Base" (MeKB), allowing agents to evolve based on their experiences.

The MeKB Framework

The researchers introduced a three-layered hierarchical MeKB for each agent to balance identity stability with behavioral flexibility:

  1. Central Fixed Attributes: Core identity markers that rarely change, such as name, occupation, and linguistic style.
  2. Variable Attributes: Evolving states that respond to the environment, including emotional status, short-term goals, and personality nuances.
  3. Experienced Events: The outermost layer that records fine-grained interactions, which trigger updates to the variable attributes.
The three-layered hierarchical structure of the Personal Knowledge Base (MeKB), illustrating the relationship between fixed attributes, variable states, and experienced events.

Agent Workflow and Dynamic Updates

The MeKB-Sim architecture employs a sophisticated workflow to ensure character coherence:

  • Planning and Reflection: Agents set daily goals using prior experiences as in-context examples. They perform "self-reflection" to decompose these into specific plans (e.g., who to meet and why).
  • Dual-Memory System: Short-term memory handles immediate dialogue context, while long-term memory utilizes a vector database (Faiss) to retrieve relevant past experiences.
  • Dynamic MeKB Updates: After an interaction, the system uses GPT-4 to analyze the event and update the agent's variable attributes. For example, a successful conversation might shift an agent's emotion from "neutral" to "happy" and refine their immediate objectives.
An example of the MeKB update process: Leonard's short-term goal evolves from a general desire to be supportive to a specific action (inviting Penny to a movie marathon) based on a recent conversation with Sheldon.

Experimental Evaluation

The researchers used the TV show The Big Bang Theory as their primary sandbox, synthesizing character profiles from the scripts of the first eight seasons. Human evaluators compared MeKB-based agents against a "Static Profile" baseline across several metrics (scored 1-5):

  • Goal Alignment: MeKB agents scored 4.25 (vs. 3.15 for static).
  • Timeline Coherence: MeKB agents scored 3.55 (vs. 3.25).
  • Character Consistency: MeKB agents scored 2.00 (vs. 1.30). While MeKB performed better, the low absolute scores suggest that perfectly mimicking specific, complex characters remains a significant challenge for current LLMs.

Human annotators accepted the LLM-generated updates at high rates, including 89% for personality shifts and 81% for emotional changes, confirming the logic of the evolution system.

Conclusion and Future Work

MeKB-Sim demonstrates that character consistency is not about staying the same, but about changing in a way that makes sense. By separating fixed and variable attributes, agents maintain a core "soul" while exhibiting human-like adaptability. Future work will focus on scaling the simulation to larger populations and bridging the "humor gap" to better capture the specific wit of fictional characters.

Summary updated

BibTeX
@misc{xu2025mekb,
  author = {Zhenran Xu and Jifang Wang and Baotian Hu and Longyue Wang and Min Zhang},
  title = {{MeKB-Sim: Personal Knowledge Base-Powered Multi-Agent Simulation}},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-demo.33},
}
Figure