paper-with-me

홈 › Papers

On the Structural Memory of LLM Agents

2024-12-17 · Ruihong Zeng, Jinyuan Fang, Siwei Liu, Zaiqiao Meng

Memory plays a pivotal role in enabling large language model~(LLM)-based agents to engage in complex and long-term interactions, such as question answering (QA) and dialogue systems. While various memory modules have been proposed for these tasks, the impact of different memory structures across tasks remains insufficiently explored. This paper investigates how memory structures and memory retrieval methods affect the performance of LLM-based agents. Specifically, we evaluate four types of memory structures, including chunks, knowledge triples, atomic facts, and summaries, along with mixed memory that combines these components. In addition, we evaluate three widely used memory retrieval methods: single-step retrieval, reranking, and iterative retrieval. Extensive experiments conducted across four tasks and six datasets yield the following key insights: (1) Different memory structures offer distinct advantages, enabling them to be tailored to specific tasks; (2) Mixed memory structures demonstrate remarkable resilience in noisy environments; (3) Iterative retrieval consistently outperforms other methods across various scenarios. Our investigation aims to inspire further research into the design of memory systems for LLM-based agents.

📄 PDF Abstract BibTeX arXiv:2412.15266

Code (1)

zengrh3/StructuralMemory 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingLarge Language ModelQuestion AnsweringRerankingRetrieval

Similar Papers 제목 키워드 기반

From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents

2026-06-03 · Pritam Dash, Tongyu Ge, Aditi Jain, Tanmay Shah 외 arxiv

Memory is a core component of AI agents, enabling them to accumulate knowledge across interactions and improve performance. However, persistent memory introduces the risk of memory poisoning, where a single adversarial m…

Structurally Aligned Subtask-Level Memory for Software Engineering Agents

2026-02-25 · Kangning Shen, Jingyuan Zhang, Chenxi Sun, Wencong Zeng 외 arxiv

Large Language Models (LLMs) have demonstrated significant potential as autonomous software engineering (SWE) agents. Recent work has further explored augmenting these agents with memory mechanisms to support long-horizo…

Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agents

2026-08-15 · Wei-Chieh Huang, Weizhi Zhang, Yuchen Wu, Yankai Chen 외 hf

Memory is becoming core infrastructure for long-horizon LLM agents, yet existing evaluations offer limited guidance on which memory substrate, namely the underlying medium in which memory is represented and stored, shoul…

Question Answering

MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection

2026-05-22 · Zhewen Tan, Yilun Yao, Huiyan Jin, Wenhan Yu 외 arxiv

Large language model agents increasingly rely on persistent memory to store past interactions, retrieve relevant demonstrations, and improve long-horizon task execution. However, this memory mechanism also creates a prac…

Anomaly Detection

Mitigating Provenance-Role Collapse in Long-Term Agents via Typed Memory Representation

2026-05-25 · Zhengda Jin, Bingbing Wang, Jing Li, Ruifeng Xu 외 arxiv

Long-term memory is essential for persistent LLM agents, yet prevailing architectures store historical interactions as unstructured, flat text. This unconstrained storage induces provenance-role collapse, a critical fail…

Answer Generation