MemGPT: Towards LLMs as Operating Systems

By Charles Packer, Vivian Fang, Shishir G. Patil, Kevin Lin, Sarah Wooders, Joseph E. Gonzalez. arXiv.org, 2023

960 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Information Systems and Management

View Paper: https://www.semanticscholar.org/paper/908dad62c0e43d80e3e3cb3c0402f7c71c70499c

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Vineet Kosaraju
  2. Matei A. Zaharia
  3. Kurt Keutzer
  4. Defu Lian
  5. Ahmed Hassan Awadallah
  6. Jerry Tworek
  7. Xingmei Wang
  8. Xiaolong Chen

In Computer Vision and Pattern Recognition

  1. Matei A. Zaharia
  2. Vineet Kosaraju
  3. Kurt Keutzer
  4. Defu Lian
  5. Ahmed Hassan Awadallah
  6. Jerry Tworek
  7. Rishabh Tiwari
  8. Enhong Chen

In Information Systems and Management

  1. Matei A. Zaharia
  2. Ahmed Hassan Awadallah

Citations in the corpus