Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Zeyu, Dai, Quanyu, Li, Rui, Bo, Xiaohe, Chen, Xu, Dong, Zhenhua
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909749530853376
author Zhang, Zeyu
Dai, Quanyu
Li, Rui
Bo, Xiaohe
Chen, Xu
Dong, Zhenhua
author_facet Zhang, Zeyu
Dai, Quanyu
Li, Rui
Bo, Xiaohe
Chen, Xu
Dong, Zhenhua
contents LLM-based agents have been extensively applied across various domains, where memory stands out as one of their most essential capabilities. Previous memory mechanisms of LLM-based agents are manually predefined by human experts, leading to higher labor costs and suboptimal performance. In addition, these methods overlook the memory cycle effect in interactive scenarios, which is critical to optimizing LLM-based agents for specific environments. To address these challenges, in this paper, we propose to optimize LLM-based agents with an adaptive and data-driven memory framework by modeling memory cycles. Specifically, we design an MoE gate function to facilitate memory retrieval, propose a learnable aggregation process to improve memory utilization, and develop task-specific reflection to adapt memory storage. Our memory framework empowers LLM-based agents to learn how to memorize information effectively in specific environments, with both off-policy and on-policy optimization. In order to evaluate the effectiveness of our proposed methods, we conduct comprehensive experiments across multiple aspects. To benefit the research community in this area, we release our project at https://github.com/nuster1128/learn_to_memorize.
format Preprint
id arxiv_https___arxiv_org_abs_2508_16629
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework
Zhang, Zeyu
Dai, Quanyu
Li, Rui
Bo, Xiaohe
Chen, Xu
Dong, Zhenhua
Machine Learning
Artificial Intelligence
Computation and Language
Information Retrieval
LLM-based agents have been extensively applied across various domains, where memory stands out as one of their most essential capabilities. Previous memory mechanisms of LLM-based agents are manually predefined by human experts, leading to higher labor costs and suboptimal performance. In addition, these methods overlook the memory cycle effect in interactive scenarios, which is critical to optimizing LLM-based agents for specific environments. To address these challenges, in this paper, we propose to optimize LLM-based agents with an adaptive and data-driven memory framework by modeling memory cycles. Specifically, we design an MoE gate function to facilitate memory retrieval, propose a learnable aggregation process to improve memory utilization, and develop task-specific reflection to adapt memory storage. Our memory framework empowers LLM-based agents to learn how to memorize information effectively in specific environments, with both off-policy and on-policy optimization. In order to evaluate the effectiveness of our proposed methods, we conduct comprehensive experiments across multiple aspects. To benefit the research community in this area, we release our project at https://github.com/nuster1128/learn_to_memorize.
title Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework
topic Machine Learning
Artificial Intelligence
Computation and Language
Information Retrieval
url https://arxiv.org/abs/2508.16629