MemSim: A Bayesian Simulator for Evaluating Memory of LLM-based Personal Assistants

Ji-Rong Wen (Renmin University of China) · Xu Chen (Renmin University of China) · Rui Li (Rochester Institute of Technology) · Zeyu Zhang (The Australian National University) · Quanyu Dai (Huawei Technologies Ltd.) · Zhenhua Dong (Huawei Technologies Ltd.) · Luyu Chen (Renmin University of China) · Zeren Jiang (Huawei Technologies Ltd.) · Jieming Zhu (Huawei Noah's Ark Lab) · Yi Xie (Huawei Technologies Ltd.)
automatic evaluationbayesian relation networkbayesian simulatorbenchmark.causal generation mechanismdaily-life scenariodiversityevaluation datasetllm hallucinationsllm-based agentsmemdaily datasetmemory capabilitymemory mechanismsreliable questionsscalability

LLM-based agents have been widely applied as personal assistants, capable of memorizing information from user messages and responding to personal queries. However, there still lacks an objective and automatic evaluation on their memory capability, largely due to the challenges in constructing reliable questions and answers (QAs) according to user messages. In this paper, we propose MemSim, a Bayesian simulator designed to automatically construct reliable QAs from generated user messages, simultaneously keeping their diversity and scalability. Specifically, we introduce the Bayesian Relation Network (BRNet) and a causal generation mechanism to mitigate the impact of LLM hallucinations on factual information, facilitating the automatic creation of an evaluation dataset. Based on MemSim, we generate a dataset in the daily-life scenario, named MemDaily, and conduct extensive experiments to assess the effectiveness of our approach. We also provide a benchmark for evaluating different memory mechanisms in LLM-based agents with the MemDaily dataset.