arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.09297cs.IRcs.CL
收藏

TA-Mem: 用于LLM长期对话问答的工具增强自主记忆检索

TA-Mem: Tool-Augmented Autonomous Memory Retrieval for LLM in Long-Term Conversational QA

Mengwei Yuan, Jianan Liu, Jing Yang, Xianyou Li, Weiran Yan, Yichao Wu, Penghao Liang

AI总结:

TA-Mem通过引入工具增强的自主记忆检索框架,解决了LLM在长距离推理任务中的记忆存储问题,提升了长期对话问答的性能。

摘要:

大型语言模型(LLM)在各种领域中展现了强大的推理能力,但在长距离推理任务中,上下文窗口的限制给模型带来了挑战,需要一个记忆存储系统。尽管许多当前的存储方法已经提出,使用事件笔记和记忆的图表示,但检索方法仍然主要依赖于预定义的工作流或静态的嵌入相似度top-k。为了解决这种不灵活性,我们引入了一个新的工具增强自主记忆检索框架(TA-Mem),其中包括:(1)一个记忆提取LLM代理,被提示根据语义相关性自适应地将输入拆分为子上下文,并将信息提取为结构化笔记;(2)一个多索引的记忆数据库,设计用于不同的查询方法,包括基于键的查找和基于相似度的检索;(3)一个工具增强的记忆检索代理,通过选择数据库提供的适当工具自主探索记忆,并根据用户输入决定是否继续下一轮迭代或最终生成响应。TA-Mem在LoCoMo数据集上进行了评估,相较于现有基线方法取得了显著的性能提升。此外,对不同问题类型中工具使用情况的分析也展示了所提方法的适应性。

英文摘要:

Large Language Model (LLM) has exhibited strong reasoning ability in text-based contexts across various domains, yet the limitation of context window poses challenges for the model on long-range inference tasks and necessitates a memory storage system. While many current storage approaches have been proposed with episodic notes and graph representations of memory, retrieval methods still primarily rely on predefined workflows or static similarity top-k over embeddings. To address this inflexibility, we introduced a novel tool-augmented autonomous memory retrieval framework (TA-Mem), which contains: (1) a memory extraction LLM agent which is prompted to adaptively chuck an input into sub-context based on semantic correlation, and extract information into structured notes, (2) a multi-indexed memory database designed for different types of query methods including both key-based lookup and similarity-based retrieval, (3) a tool-augmented memory retrieval agent which explores the memory autonomously by selecting appropriate tools provided by the database based on the user input, and decides whether to proceed to the next iteration or finalizing the response after reasoning on the fetched memories. The TA-Mem is evaluated on the LoCoMo dataset, achieving significant performance improvements over existing baseline approaches. In addition, an analysis of tool use across different question types also demonstrates the adaptivity of the proposed method.

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

↑