arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.13343cs.CL
收藏

SCM:通过自控制记忆框架增强大型语言模型

SCM: Enhancing Large Language Model with Self-Controlled Memory Framework

Beihang University(北京航空航天大学);Harbin Institute of Technology(哈尔滨工业大学);ByteDance AI Lab(字节跳动AI实验室)

Bing Wang, Xinnian Liang, Jian Yang, Hui Huang, Shuangzhi Wu, Peihao Wu, Lu Lu, Zejun Ma, Zhoujun Li

AI总结:

针对 LLM 难以处理长输入的问题,本文提出即插即用的 SCM 记忆框架,通过智能体、记忆流和记忆控制器实现长期记忆管理,并在自建长文本数据集上验证其检索与生成优势。

摘要:

大型语言模型(LLM)受限于无法处理冗长输入,导致关键历史信息丢失。为解决这一局限,本文提出自控制记忆(Self-Controlled Memory,SCM)框架,以增强 LLM 保持长期记忆并回忆相关信息的能力。SCM 框架包含三个关键组件:作为框架骨干的基于 LLM 的智能体、用于存储智能体记忆的记忆流,以及负责更新记忆并决定何时、如何使用记忆流中记忆的记忆控制器。此外,所提出的 SCM 无需任何修改或微调即可处理超长文本,并能以即插即用的方式与任何遵循指令的 LLM 集成。进一步地,我们标注了一个数据集,用于评估 SCM 处理冗长输入的有效性。该标注数据集涵盖三项任务:长期对话、书籍摘要和会议摘要。实验结果表明,在长期对话中,与具有竞争力的基线相比,我们的方法取得了更高的检索召回率,并生成了信息量更丰富的回复。(https://github.com/wbbeyourself/SCM4LLMs)

英文摘要:

Large Language Models (LLMs) are constrained by their inability to process lengthy inputs, resulting in the loss of critical historical information. To address this limitation, in this paper, we propose the Self-Controlled Memory (SCM) framework to enhance the ability of LLMs to maintain long-term memory and recall relevant information. Our SCM framework comprises three key components: an LLM-based agent serving as the backbone of the framework, a memory stream storing agent memories, and a memory controller updating memories and determining when and how to utilize memories from memory stream. Additionally, the proposed SCM is able to process ultra-long texts without any modification or fine-tuning, which can integrate with any instruction following LLMs in a plug-and-play paradigm. Furthermore, we annotate a dataset to evaluate the effectiveness of SCM for handling lengthy inputs. The annotated dataset covers three tasks: long-term dialogues, book summarization, and meeting summarization. Experimental results demonstrate that our method achieves better retrieval recall and generates more informative responses compared to competitive baselines in long-term dialogues. (https://github.com/wbbeyourself/SCM4LLMs)

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

↑