Large language model (LLM) based agents have recently attracted much attention from the research and industry communities. Compared with original LLMs, LLM-based agents are featured in their self-evolving capability, which is the basis for solving real-world problems that need long-term and complex agent-environment interactions. The key component to support agent-environment interactions is the memory of the agents. While previous studies have proposed many promising memory mechanisms, they are scattered in different papers, and there lacks a systematical review to summarize and compare these works from a holistic perspective, failing to abstract common and effective designing patterns for inspiring future studies. To bridge this gap, in this paper, we propose a comprehensive survey on the memory mechanism of LLM-based agents. In specific, we first discuss ''what is'' and ''why do we need'' the memory in LLM-based agents. Then, we systematically review previous studies on how to design and evaluate the memory module. In addition, we also present many agent applications, where the memory module plays an important role. At last, we analyze the limitations of existing work and show important future directions. To keep up with the latest advances in this field, we create a repository at \url{https://github.com/nuster1128/LLM_Agent_Memory_Survey}.
Graph-based Agent Memory: Taxonomy, Techniques, and Applications
The Hong Kong Polytechnic University(香港理工大学);School of Information(信息学院);Xiamen University(厦门大学);School of Computing and Information Systems(计算与信息学院);Singapore Management University(新加坡国立管理学院);School of Artificial Intelligence(人工智能学院)
MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Qiyuan Tech(齐元科技);Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(北京大学计算机科学学院多媒体信息处理实验室);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
Choosing How to Remember: Adaptive Memory Structures for LLM Agents
University of Technology Sydney(悉尼大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);University of California, Los Angeles(加州大学洛杉矶分校);The University of Melbourne(墨尔本大学)
Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of California, San Diego(加利福尼亚大学圣迭戈分校);University of California, Merced(加利福尼亚大学默塞德分校);Adobe Research(奥多比研究院);Texas A&M University(德克萨斯农工大学)
MemLens: A Value-Aware Memory Management System with Interactive Analytics for LLM-based Agents
C-FAIR & School of Software, Shandong University(C-FAIR与山东大学软件学院);SKLCCSE Lab, Beihang University(北京航空航天大学SKLCCSE实验室);Department of Data Science, City University of Hong Kong(香港城市大学数据科学系)
ActMem: Bridging the Gap Between Memory Retrieval and Reasoning in LLM Agents
State Key Laboratory for Novel Software Technology, Nanjing University, China(南京大学新型软件技术国家重点实验室);Alibaba Group, Hangzhou, China(阿里巴巴集团,杭州,中国);National Institute of Healthcare Data Science, Nanjing University, China(南京大学健康数据科学国家研究院)
EvoMemBench: Benchmarking Agent Memory from a Self-Evolving Perspective
Hong Kong University of Science and Technology (Guangzhou)(香港理工大学(广州));Createlink Technology(创-link科技);Beijing University of Posts and Telecommunications(北京邮电大学);Beijing Institute of Technology(北京理工大学)
MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents
Department of Computer Science, The University of Texas at Dallas(德克萨斯大学达拉斯分校计算机科学系);Department of Electrical and Computer Engineering, University of Florida(佛罗里达大学电气与计算机工程系)
Beyond Similarity: Trustworthy Memory Search for Personal AI Agents
University of Science and Technology of China(中国科学技术大学);Tsinghua University(清华大学);National University of Singapore(新加坡国立大学);University of California, Berkeley(加州大学伯克利分校)