arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.02553cs.AI
收藏

SimpleMem: 为LLM代理高效终身记忆

SimpleMem: Efficient Lifelong Memory for LLM Agents

University of California, Berkeley(加州大学伯克利分校);University of California, Santa Cruz(加州大学圣克ruz分校)

Jiaqi Liu, Yaofeng Su, Peng Xia, Siwei Han, Zeyu Zheng, Cihang Xie, Mingyu Ding, Huaxiu Yao

AI总结:

SimpleMem通过语义无损压缩和三阶段流程,提升LLM代理在复杂环境中的记忆效率与检索性能。

摘要:

为支持复杂环境中长期交互,LLM代理需要能够管理历史经验的记忆系统。现有方法要么通过被动上下文扩展保留完整的交互历史,导致大量冗余,要么依赖迭代推理来过滤噪声,造成高昂的token成本。为解决这一挑战,我们引入了SimpleMem,一种基于语义无损压缩的高效记忆框架。我们提出一个三阶段流程,旨在最大化信息密度和token利用率:(1)语义结构压缩,将无结构的交互压缩成紧凑的多视角索引记忆单元;(2)在线语义合成,一个会话内过程,即时整合相关上下文到统一的抽象表示以消除冗余;(3)意图感知检索规划,推断搜索意图以动态确定检索范围并高效构建上下文。在基准数据集上的实验表明,我们的方法在准确率、检索效率和推理成本方面均优于基线方法,实现LoCoMo任务的平均F1提升26.4%,同时将推理时间token消耗减少高达30倍,展示了性能与效率之间的优越平衡。代码可在https://github.com/aiming-lab/SimpleMem获取。

英文摘要:

To support long-term interaction in complex environments, LLM agents require memory systems that manage historical experiences. Existing approaches either retain full interaction histories via passive context extension, leading to substantial redundancy, or rely on iterative reasoning to filter noise, incurring high token costs. To address this challenge, we introduce SimpleMem, an efficient memory framework based on semantic lossless compression. We propose a three-stage pipeline designed to maximize information density and token utilization: (1) Semantic Structured Compression, which distills unstructured interactions into compact, multi-view indexed memory units; (2) Online Semantic Synthesis, an intra-session process that instantly integrates related context into unified abstract representations to eliminate redundancy; and (3) Intent-Aware Retrieval Planning, which infers search intent to dynamically determine retrieval scope and construct precise context efficiently. Experiments on benchmark datasets show that our method consistently outperforms baseline approaches in accuracy, retrieval efficiency, and inference cost, achieving an average F1 improvement of 26.4% in LoCoMo while reducing inference-time token consumption by up to 30-fold, demonstrating a superior balance between performance and efficiency. Code is available at https://github.com/aiming-lab/SimpleMem.

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

↑