arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.30690cs.CL
收藏

ElasticMem: 将潜在记忆作为LLM智能体的可学习资源

ElasticMem: Latent Memory as a Learnable Resource for LLM Agents

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Nanyang Technological University(南洋理工大学)

Tao Feng, Chongrui Ye, Fangxu Yu, Tianyang Luo, Jingjun Xu, Xueqiang Xu, Haozhen Zhang, Weizhi Zhang, Zijie Lei, Jiaxuan You

AI总结:

提出ElasticMem框架,通过可学习的弹性潜在记忆分配策略,在记忆密集型问答和具身智能体控制任务中显著提升准确率并降低token开销。

摘要:

长期记忆对于LLM智能体在长时间交互中连贯推理、个性化响应和复用过往经验至关重要。然而,现有的记忆增强方法通常将记忆视为固定资源:文本空间方法将检索到的记忆拼接进上下文窗口,导致大量token开销和对噪声证据的敏感性;而潜在空间方法减少了文本成本,但仍依赖刚性检索或固定容量的记忆接口。这造成了查询相关的记忆效用与固定记忆分配之间的不匹配。我们提出ElasticMem,一种记忆增强的LLM框架,学习将记忆用作弹性潜在资源。ElasticMem构建了一个离线潜在记忆库,包含检索键和内容缓存,从推理器的隐藏状态自适应地检索记忆,通过学得的策略为每个检索到的记忆分配可变潜在预算,并将选中的潜在状态作为软记忆token注入生成过程。整个记忆使用过程通过组相对策略优化与下游任务奖励进行联合优化。我们在MemorySuite上评估ElasticMem,涵盖记忆密集型QA和具身智能体控制。在Qwen2.5-3B-Instruct和Qwen2.5-7B-Instruct骨干网络上,ElasticMem在加权平均QA准确率上分别比最强基线提升26.2%和24.6%,在ALFWorld成功率上分别提升66.3%和27.2%,同时实现了最低的ALFWorld token成本。消融和定性分析进一步表明,自适应检索和弹性预算分配帮助ElasticMem优先考虑有用证据和可迁移计划,超越了刚性余弦相似度。ElasticMem的代码将在https://github.com/ulab-uiuc/ElasticMem发布。

英文摘要:

Long-term memory is essential for LLM agents to reason coherently across extended interactions, personalize responses, and reuse past experience. However, existing memory-augmented methods typically treat memory as a fixed resource: text-space approaches concatenate retrieved memories into the context window, causing substantial token overhead and sensitivity to noisy evidence, while latent-space approaches reduce textual cost but still rely on rigid retrieval or fixed-capacity memory interfaces. This creates a mismatch between query-dependent memory utility and fixed memory allocation. We propose ElasticMem, a memory-augmented LLM framework that learns to use memory as an elastic latent resource. ElasticMem builds an offline latent memory bank with retrieval keys and content caches, retrieves memories adaptively from the reasoner's hidden state, assigns each retrieved memory a variable latent budget through a learned policy, and injects selected latent states as soft memory tokens for generation. The full memory-use process is optimized with downstream task rewards through group-relative policy optimization. We evaluate ElasticMem on MemorySuite, covering memory-intensive QA and embodied agent control. Across Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct backbones, ElasticMem improves weighted-average QA accuracy by 26.2% and 24.6% and ALFWorld success rate by 66.3% and 27.2% relative to the strongest baselines, while consuming the fewest tokens on ALFWorld on average. Ablations and qualitative analyses further show that adaptive retrieval and elastic budget allocation help ElasticMem prioritize useful evidence and transferable plans beyond rigid cosine similarity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑