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

MemGPT:迈向作为操作系统的 LLMs

MemGPT: Towards LLMs as Operating Systems

University of California, Berkeley(加州大学伯克利分校)

Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, Joseph E. Gonzalez

AI总结:

针对LLM有限上下文窗口的局限,提出受操作系统启发的虚拟上下文管理技术MemGPT,通过智能管理分层内存有效扩展上下文,在文档分析和多会话聊天任务中显著提升性能。

摘要:

大型语言模型(LLMs)已经彻底改变了人工智能(AI),但受限于有限的上下文窗口,阻碍了它们在扩展对话和文档分析等任务中的实用性。为了能够使用超出有限上下文窗口的上下文,我们提出了虚拟上下文管理,这是一种受传统操作系统中分层内存系统启发的技术,该技术通过在快速和慢速内存之间移动数据来提供大内存资源的表象。使用这种技术,我们引入了 MemGPT(Memory-GPT),这是一个智能管理不同内存层级的系统,以便在 LLM 的有限上下文窗口内有效地提供扩展上下文,并利用中断来管理其自身与用户之间的控制流。我们在现代 LLM 有限的上下文窗口严重削弱其性能的两个领域评估了我们受操作系统启发的设计:文档分析,其中 MemGPT 能够分析远超底层 LLM 上下文窗口的大型文档;以及多会话聊天,其中 MemGPT 可以创建对话智能体,这些智能体通过与用户的长期互动来记忆、反思和动态演化。我们在 https://memgpt.ai 上发布了我们实验的 MemGPT 代码和数据。

英文摘要:

Large language models (LLMs) have revolutionized AI, but are constrained by limited context windows, hindering their utility in tasks like extended conversations and document analysis. To enable using context beyond limited context windows, we propose virtual context management, a technique drawing inspiration from hierarchical memory systems in traditional operating systems that provide the appearance of large memory resources through data movement between fast and slow memory. Using this technique, we introduce MemGPT (Memory-GPT), a system that intelligently manages different memory tiers in order to effectively provide extended context within the LLM's limited context window, and utilizes interrupts to manage control flow between itself and the user. We evaluate our OS-inspired design in two domains where the limited context windows of modern LLMs severely handicaps their performance: document analysis, where MemGPT is able to analyze large documents that far exceed the underlying LLM's context window, and multi-session chat, where MemGPT can create conversational agents that remember, reflect, and evolve dynamically through long-term interactions with their users. We release MemGPT code and data for our experiments at https://memgpt.ai.

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

↑