Saved in:
Bibliographic Details
Main Authors: Packer, Charles, Wooders, Sarah, Lin, Kevin, Fang, Vivian, Patil, Shishir G., Stoica, Ion, Gonzalez, Joseph E.
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2310.08560
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929241018335232
author Packer, Charles
Wooders, Sarah
Lin, Kevin
Fang, Vivian
Patil, Shishir G.
Stoica, Ion
Gonzalez, Joseph E.
author_facet Packer, Charles
Wooders, Sarah
Lin, Kevin
Fang, Vivian
Patil, Shishir G.
Stoica, Ion
Gonzalez, Joseph E.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_08560
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle MemGPT: Towards LLMs as Operating Systems
Packer, Charles
Wooders, Sarah
Lin, Kevin
Fang, Vivian
Patil, Shishir G.
Stoica, Ion
Gonzalez, Joseph E.
Artificial Intelligence
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.
title MemGPT: Towards LLMs as Operating Systems
topic Artificial Intelligence
url https://arxiv.org/abs/2310.08560