MemGPT: Towards LLMs as Operating Systems
Paper · 2023 · Charles Packer, Sarah Wooders, Kevin Lin et al.
Summary
An assistant may receive a question about something discussed long ago, after the relevant exchange has disappeared from its current input. A document assistant faces a related difficulty: the evidence it needs may sit somewhere in a collection too large to examine at once. MemGPT approaches both situations as problems of managing access to information. Instead of requiring an ever larger input window, it combines a bounded workspace with external records and operations for moving information between them. The paper calls this arrangement virtual context management. Its inspiration is the distinction between immediately available memory and larger storage in an operating system: information can remain available to an application without occupying its immediate workspace continuously.
MemGPT places a language model inside an environment that it can modify through function calls. The immediate input contains fixed instructions, an editable block for important information, and a queue of recent activity. Separate databases retain messages and other text. The processor can search those databases, bring results into its input, preserve selected information, and request another processing cycle before returning to the user. A queue manager tracks capacity, warns when space is becoming scarce, and removes older messages when necessary. It also maintains a compressed account of removed material. Crucially, removal from the active queue does not delete the original conversation records. A later search can recover details that the compressed account no longer contains.
The experiments examine several consequences of this design instead of a single general notion of memory. In conversation, the authors test answers to questions about earlier exchanges and the ability to begin a later interaction using personal information. In document analysis, they evaluate answers grounded in Wikipedia passages and introduce a synthetic task involving chains of key–value references. Their reported comparisons favor MemGPT over corresponding systems without its memory environment. The nested lookup experiment supplies especially clear failure points: GPT-3.5 reaches 0 percent accuracy at 1 nesting level, while GPT-4 and GPT-4 Turbo reach 0 percent by 3 nesting levels. MemGPT with GPT-4 avoids the reported decline as nesting increases in the tested range. The paper does not state an exact accuracy for that configuration in its prose, so the finding should remain qualitative rather than acquire an invented numerical score.
The contribution is a way to coordinate storage, retrieval, editing, and continued computation. It does not make all stored information simultaneously visible, and it does not guarantee that an agent will search far enough. The authors observe early termination during document retrieval and difficulties when function use is unreliable. They also treat longer context windows as compatible with MemGPT: a larger window increases the immediate workspace within the hierarchy. The authors release their implementation, their extension of the conversational dataset, the nested retrieval data, and Wikipedia embeddings. Together, the architecture and experiments support a practical systems argument: an application can gain useful access to a history or collection larger than its current input, provided its processor can manage the operations needed to reach that information.
Interesting ideas
Keep compressed accounts connected to recoverable records. Compression helps a system maintain continuity, but future questions may concern details that did not seem important when the compression occurred. MemGPT retains searchable messages alongside its historical summary. This arrangement is useful for extended investigations, document review, and assistants whose users may revisit an incidental remark. The compressed account provides orientation; the retained record provides a route to specific evidence.
Allocate immediate space according to purpose. Instructions, persistent task information, and recent activity do different jobs. MemGPT gives them distinct regions instead of treating the entire input as an undifferentiated transcript. This makes maintenance decisions easier to express: behavioral instructions remain fixed, important facts can be revised deliberately, and recent messages can rotate. Similar separation can help systems that must preserve an objective or commitment while processing a growing stream of events.
Give content decisions advance notice of capacity limits. A warning before eviction creates time to preserve something important. MemGPT makes memory pressure visible to the component choosing what to retain. The general principle applies beyond conversational context: a document processor approaching a resource boundary can consolidate evidence, save unresolved questions, or record the next step before detail becomes less accessible.
Represent continuation as part of the action interface. A search result may be useful without being sufficient. MemGPT lets a function call request another inference cycle, allowing the next operation to depend on the previous result. This pattern applies to searches across several sources, dependent database queries, and other tasks whose full plan cannot be settled in advance. It also makes premature stopping observable as a distinct failure.
Make large collections accessible through small responses. Pagination separates the size of the stored collection from the size of an individual retrieval result. That protects the active workspace while preserving a route to additional evidence. The idea transfers naturally to information retrieval, log inspection, and interfaces for large tool outputs. Its success depends on both sides of the contract: the service must expose further results, and the caller must recognize when to request them.
Separate requested recall from spontaneous use. Answering a direct historical question and independently using personal information are different behaviors. MemGPT evaluates them through different conversational tasks. This distinction is useful wherever a system must both recover evidence on demand and apply relevant knowledge without an explicit reminder. A convincing personalized message does not establish detailed recall, while successful recall does not establish appropriate personalization.
Define completion with a checkable condition. In nested key–value retrieval, finding an associated value is only an intermediate success if that value is another key. Completion requires checking whether another lookup remains necessary. Such tasks reveal whether a system can distinguish progress from a finished answer. The principle applies to dependency resolution and evidence gathering, although ordinary documents often provide less explicit stopping conditions than synthetic identifiers do.
Deep dive: MemGPT: Towards LLMs as Operating Systems
MemGPT uses memory tiers, searchable records, and function calls to work beyond a fixed context window in conversations and document analysis. · about 41 minutes to read
How Mova uses it
Mova is a small language system written in Rust whose native understanding uses explicit linguistic structure, rules, learned parameters, and graph knowledge. Its documented architecture already distinguishes the current document state from several forms of durable knowledge. It also has bounded worker interfaces, retained learning state, source-bound records, and explicit checks on what may enter training. These connections make MemGPT relevant without establishing that Mova implements MemGPT’s prompt layout or autonomous memory policy.
The marks below describe proposed relationships to those mechanisms. They are not receipts of a MemGPT implementation, and they do not establish measured gains. Where the digest documents a related mechanism, the connection is named. Where a transfer would require additional work, its implementation status remains unknown.
Idea: Distinguish available information from immediately active information. Where: MemGPT, opening architectural description. Area: memory architecture. Mova: частково є (docs/knowledge.md, as described by docs/architecture.md: skeleton, important graph in RAM, and durable global graph). Mova could expose whether an answer uses current frames, activated graph knowledge, or material fetched from durable storage. MemGPT motivates this access distinction, although Mova’s graph organization is not the same as a prompt hierarchy. Why Mova: it would make the evidence actually available to a native inference easier to inspect.
Idea: Retain original records behind a compressed account. Where: Main context and Queue Manager. Area: data provenance. Mova: частково є (tools/dictindex/README.md: exact sentence text, source credit, document identity, and stable postings). Mova could connect any compact account of a long task to the original records that support it. The documented index already preserves detailed evidence, but a general summary-to-record recovery policy is not established. Why Mova: a later question could recover a detail that an earlier condensation omitted.
Idea: Give stable instructions and changing state different interfaces. Where: Main context. Area: execution architecture. Mova: частково є (docs/hybrid-system.md: explicit capability configuration and bounded operational interfaces). MemGPT’s immutable instruction region suggests keeping execution contracts distinct from mutable observations and task notes. This would complement Mova’s separation of configured capabilities from worker results. Why Mova: a newly retrieved passage should supply evidence without silently changing the rules governing its use.
Idea: Maintain a bounded collection of current commitments. Where: Main context, working-context description. Area: task state. Mova: частково є (docs/architecture.md: context includes working memory, quantities, and justification). A native task could keep its current question, unresolved references, and admitted intermediate conclusions in an explicit structure. MemGPT supplies the architectural motivation; selection and replacement rules would need separate design. Why Mova: often needed task information could remain accessible without repeatedly reconstructing it from activity records.
Idea: Separate recent activity from durable task information. Where: Main context, FIFO queue description. Area: state management. Mova: частково є (docs/hybrid-system.md: persistent worker state and retained operational results). Mova could distinguish an event history from the smaller state that currently governs a task. This parallels MemGPT’s different treatment of the rolling queue and working information. Why Mova: recent tool output and a lasting constraint should not compete under an unexplained retention rule.
Idea: Warn before active material is displaced. Where: Queue Manager. Area: resource management. Mova: нове (proposed native memory-pressure event; implementation status unknown). A bounded reader could emit an explicit warning before deactivating evidence or exceeding a task budget. The appropriate resource might be graph size, retained observations, or processing time rather than prompt tokens. Why Mova: the task could preserve unresolved obligations while the relevant evidence is still active.
Idea: Treat deactivation as different from deletion. Where: Queue Manager, eviction and recall behavior. Area: storage semantics. Mova: частково є (tools/dictindex/README.md: durable indexed records and separate query access). Mova could use explicit lifecycle states for retained evidence, distinguishing material removed from working state from material no longer stored. MemGPT shows why this distinction matters for later recovery. Why Mova: bounded operation could remain compatible with traceable historical access.
Idea: Update a compact account incrementally. Where: Queue Manager, recursive summary. Area: summarization. Mova: нове (proposed task-history condensation; implementation status unknown). A native adaptation could update a structured account from its previous version and newly deactivated frames. It should preserve references and uncertainty rather than assume prose compression is lossless. Why Mova: a long task could retain orientation while limiting the amount of active historical detail.
Idea: Route memory changes through explicit operations. Where: Function executor. Area: state mutation. Mova: частково є (docs/hybrid-system.md: explicit interfaces and separate admission operations). Mova could require every change to retained task memory to identify the operation, affected record, and evidence. This is compatible with its documented distinction between a transcript, an annotation proposal, and admitted knowledge. Why Mova: memory maintenance would become reviewable state change rather than an implicit side effect.
Idea: Validate a proposed operation before execution. Where: Function executor, argument checking. Area: execution validation. Mova: вже є (docs/hybrid-system.md: configured capability resolution and admitted handlers). MemGPT provides another application of a boundary Mova already uses: understanding a request and authorizing a concrete supported operation are separate steps. A memory adapter could follow the same contract. Why Mova: a well-formed request would still need to satisfy the memory operation’s declared requirements.
Idea: Return failed operations as structured evidence. Where: Function executor, runtime feedback. Area: error handling. Mova: частково є (docs/hybrid-system.md: retained failures and worker outcomes). A failed memory edit could report capacity, invalid references, or incompatible state through a typed result. That would let a bounded native policy choose a supported alternative. Why Mova: failure could inform the next decision without being mistaken for a successful update.
Idea: Bound the material returned by each search. Where: Function executor, pagination. Area: retrieval interfaces. Mova: частково є (tools/dictindex/README.md: deterministic query limits and bounded examples). Mova already bounds dictionary retrieval, but a general continuation interface across large evidence stores is not established. MemGPT suggests making further access explicit instead of returning an oversized response. Why Mova: evidence access could scale without overwhelming the current task representation.
Idea: Make continuation an explicit outcome. Where: Control flow and function chaining. Area: operational control. Mova: частково є (docs/hybrid-system.md: bounded plans, nested calls, and inspected results). A native step could return continue, yield, or unresolved, together with a reason. This would adapt MemGPT’s heartbeat mechanism without requiring its language-generated control policy. Why Mova: completing a tool call would no longer be confused with completing the user’s task.
Idea: Trigger useful work from declared events. Where: Control flow and function chaining. Area: event processing. Mova: частково є (docs/hybrid-system.md: configured task queues and worker protocols). MemGPT treats uploads, warnings, and timed notifications as possible triggers. Mova could give such events typed identities and bounded handlers, while leaving priorities in deployment configuration. Why Mova: supported maintenance could begin from an explicit condition rather than an ambiguous textual cue.
Idea: Preserve the identity of nested processing. Where: Control flow and function chaining. Area: recursive execution. Mova: вже є (docs/hybrid-system.md: nested calls retain source, configuration, observation, budget, and outcome). MemGPT’s dependent calls reinforce the value of this existing boundary. A memory lookup followed by another lookup should remain an inspectable sequence. Why Mova: recursive self-use would retain enough context to diagnose where a chain went wrong.
Idea: Distinguish adjustment during a task from learning. Where: Function executor, feedback loop. Area: learning semantics. Mova: вже є (docs/hybrid-system.md and tools/enrich/README.md: operational records, reviewed drafts, admission, and training are separate). MemGPT’s error feedback can change subsequent actions without demonstrating parameter training. Mova should preserve the same distinction when describing memory behavior. Why Mova: successful recovery from an error would not become an unsupported claim of durable learning.
Idea: Evaluate historical recall independently. Where: Deep memory retrieval task. Area: evaluation. Mova: частково є (docs/school.md, as described in docs/architecture.md: fresh-process retained-state assessment). Mova could add questions about incidental earlier task details, with answers withheld until its response is recorded. This would test recovery from retained records rather than lesson replay. Why Mova: the experiment would reveal whether historical evidence remains usable after it leaves immediate state.
Idea: Test spontaneous use separately from requested recall. Where: Conversation opener task. Area: pragmatics and evaluation. Mova: нове (proposed proactive-use assessment; implementation status unknown). A native system could be tested on whether an admitted preference or standing constraint changes a later supported action without a direct reminder. This would be an adaptation, not evidence of conversational engagement. Why Mova: remembering a constraint matters only if the system applies it when relevant.
Idea: Prevent test questions from being answerable through shortcuts. Where: Self-instruct DMR dataset generation. Area: dataset construction. Mova: частково є (tools/dictindex/README.md: exact lesson-field restrictions and exclusion of assessment material). The DMR generation rule suggests checking that a historical question cannot be answered from a general persona or an always-active fact alone. Why Mova: a memory benchmark should require the access mechanism it claims to evaluate.
Idea: Compare complete records with compressed history. Where: Deep memory retrieval task, baseline setup. Area: controlled evaluation. Mova: нове (proposed retained-record comparison; implementation status unknown). Mova could answer the same questions with detailed records available and with only a compact account. Source material and scoring would remain fixed. Why Mova: the comparison could locate losses caused by representation compression rather than by the inference rules.
Idea: Account for answer length when interpreting overlap scores. Where: Deep memory retrieval task, ROUGE-L recall. Area: evaluation metrics. Mova: частково є (docs/architecture.md: measured assessment with controls, but this particular diagnostic is not established). A Mova evaluation could report whether a short expected fact appears while separately checking unsupported additions. MemGPT motivates the length issue, not a universal preference for recall. Why Mova: verbose output should neither be penalized mechanically nor receive credit for ungrounded extra claims.
Idea: Keep different correctness judgments separate. Where: Deep memory retrieval task and LLM Judge appendix. Area: evaluation analysis. Mova: частково є (docs/architecture.md: answers retain reasons and assessment traces). Mova could distinguish exact answer recovery, semantic agreement, and evidential support. MemGPT uses overlap and a judge because a single comparison misses aspects of response quality. Why Mova: disagreements between measures could become diagnostic evidence instead of disappearing inside an aggregate score.
Idea: Evaluate proactive behavior against more than one reference. Where: Conversation opener task. Area: evaluation design. Mova: нове (proposed multiple-reference assessment; implementation status unknown). A native personalization test could compare relevant retained facts with an independently prepared example action. This would separate use of known information from resemblance to a particular response. Why Mova: there may be several appropriate ways to apply the same preference.
Idea: Hold the retriever fixed when comparing readers. Where: Multi-document question-answering. Area: experimental control. Mova: частково є (tools/dictindex/README.md: deterministic retrieval and repeated-result measurements). Mova could feed competing readers the same indexed evidence or expose the same search interface. MemGPT’s shared retrieval basis helps locate differences in access and processing. Why Mova: a reader improvement should not be credited for an unnoticed change in source retrieval.
Idea: Require evidence alongside an answer. Where: Document Analysis Instructions and document-analysis judge. Area: grounded question answering. Mova: вже є (docs/architecture.md: answer justification; tools/dictindex/README.md: exact corpus witnesses). MemGPT’s answer-plus-passage requirement supports an existing Mova principle. A native document answer could identify the precise passage and the frame or rule connecting it to the conclusion. Why Mova: a correct-looking answer would remain distinguishable from a supported answer.
Idea: Permit another search after examining results. Where: Multi-document question-answering. Area: retrieval policy. Mova: частково є (docs/hybrid-system.md: bounded self-use can inspect an intermediate result and prepare another step). Mova could admit a second query when current evidence leaves a named gap. MemGPT shows the value of changing the evidence inspected during a task. Why Mova: an imperfect initial query would not necessarily determine the final outcome.
Idea: Measure retrieval ranking separately from answer production. Where: Multi-document question-answering, discussion of gold-document position. Area: error analysis. Mova: частково є (world/src/knowledge/retention/fastread.rs: classification of missing representation, inference, parameters, and parse failures). A retrieval-aware extension could record whether necessary evidence was indexed, returned, activated, and understood. Why Mova: failure to find a passage should not be repaired by changing an unrelated reasoning rule.
Idea: Inspect premature stopping directly. Where: Multi-document question-answering, observed paging behavior. Area: control-policy analysis. Mova: нове (proposed stopping audit; implementation status unknown). A bounded task log could state what unresolved evidence obligation remained at yield. This would distinguish a justified stop from exhausted budget or an unsupported completion decision. Why Mova: available information is useful only when the task continues far enough to reach it.
Idea: Compare truncation with recoverable access. Where: Multi-document question-answering, shortened-document baselines. Area: information preservation. Mova: частково є (pack storage and tools/dictindex/README.md: recoverable compressed records). MemGPT’s truncation comparison suggests testing whether omitted active detail remains retrievable. Mova’s byte-exact storage compression is a different mechanism and should not be equated with deleting passage text. Why Mova: the evaluation could distinguish smaller storage from irreversible loss of task evidence.
Idea: Use dependent lookup as a reasoning diagnostic. Where: Nested key-value retrieval. Area: reasoning evaluation. Mova: частково є (math::steps, deduct, and explicit graph links described in docs/architecture.md). Mova could follow a source-defined chain while recording every transition. The synthetic identifiers would test dependency tracking without requiring broad lexical knowledge. Why Mova: a compact diagnostic could expose skipped steps in otherwise transparent reasoning.
Idea: Verify the terminal condition before answering. Where: K/V Task Instructions and nested retrieval example. Area: proof obligations. Mova: частково є (world/src/knowledge/retention/mice.rs: explicit proof obligations). A lookup answer could require evidence that the returned item no longer satisfies the continuation rule. That would adapt MemGPT’s task-specific stopping instruction into a native obligation. Why Mova: an intermediate value would not be accepted merely because it looks like an answer.
Idea: Change ordering independently of task meaning. Where: Nested key-value retrieval, ordering configurations. Area: robustness evaluation. Mova: частково є (docs/architecture.md and measured contrast controls in the digest). Mova could reorder equivalent records while preserving their relations and compare outcomes. MemGPT’s construction separates dependency structure from where identifiers appear. Why Mova: a logical reader should not silently depend on a convenient presentation order.
Idea: Compare direct performance with operational performance. Where: Nested key-value retrieval, processor comparisons. Area: system selection. Mova: частково є (docs/hybrid-system.md: capabilities and conformance must be declared at their actual scope). A component good at answering supplied questions may still be poor at choosing a sequence of supported operations. Mova could measure these roles independently. Why Mova: selecting a worker by an unrelated benchmark could weaken the complete workflow.
Idea: Make the evidence collection’s time frame explicit. Where: Document Analysis Instructions. Area: temporal grounding. Mova: частково є (tools/sources/README.md: source and version evidence; tools/dictindex/README.md: separately named source versions). MemGPT’s document instructions constrain answers to the collection’s historical setting. Mova could propagate source versions and relevant dates into task explanations. Why Mova: an answer should be interpreted against the evidence actually examined.
Idea: Treat larger immediate capacity as complementary. Where: Related Work, Long-context LLMs. Area: architecture evaluation. Mova: частково є (docs/knowledge.md, as described in the digest: nonexclusive knowledge-storage roles). Mova could test larger active graphs alongside improved retrieval rather than assume one removes the need for the other. MemGPT’s hierarchy makes the same compatibility argument for context length. Why Mova: capacity and access policy address different causes of failure.
Idea: Keep proposed policy improvements behind measurement. Where: Conclusion, future control-flow and memory-policy work. Area: development process. Mova: вже є (docs/training.md and tools/enrich/README.md: bounded proposals, review, held-out comparison, and admission gates). MemGPT leaves important policies open, including when to retrieve and what to preserve. A Mova adaptation should enter through its existing tested revision path. Why Mova: an attractive memory analogy is a design hypothesis until native measurements support it.
The problem and its context
Applications accumulate information faster than an input can grow
The paper begins with a mismatch between application lifetimes and inference inputs. Conversations can continue while a processor’s input capacity remains fixed. Documents can be collected without regard to how much text an answering system can accept. An application therefore needs a policy for selecting what the processor sees.
Selection creates consequences for question answering. If a user asks about an earlier exchange, a fluent response is not enough; the agent needs access to the relevant detail. If a document question depends on a passage outside the supplied input, the answering component cannot derive the requested answer from that input alone. Keeping information somewhere in the application does not automatically make it usable during the next inference.
This distinction is easy to obscure because ordinary language uses remembering for several operations. An application may preserve a transcript, keep a compressed account, retrieve a passage, or retain a few important facts. Those operations support different questions. A transcript offers detail but requires access. A compact account is convenient but selective. A small set of persistent facts may help continuity while missing an incidental event.
MemGPT turns these differences into architectural responsibilities. The immediate workspace is limited, but the application’s retained history need not share that limit. The central challenge becomes deciding what to keep nearby and how to recover what is elsewhere.
Longer windows address capacity, but not every access problem
The authors situate the problem in the transformer tradition associated with Attention Is All You Need and later language systems. They point to a computational obstacle: the self-attention mechanism they discuss makes longer inputs expensive in computation and memory. Extending the window is therefore a research problem with substantial resource requirements.
Their argument also concerns behavior. Lost in the Middle reports that information position affects successful use of long inputs. Material near an input’s ends can be easier to recover than material placed centrally. The MemGPT authors draw a cautious systems lesson from this: admitting more text does not ensure that every part receives equally useful treatment.
The related-work discussion describes several architectural responses. Longformer and Sparse Transformers belong to the cited work on sparse attention. The authors also mention low-rank approaches, neural memory, and techniques that extend usable input length beyond the length used during training.
MemGPT does not require these approaches to fail. Its hierarchy can incorporate a processor with a larger window. The larger window becomes a larger immediate tier, while the external collection remains separately accessible. This compatibility matters because the paper’s proposal is about organization and control, not a claim that context capacity has ceased to matter.
Retrieval supplies information, but access can be too rigid
The paper builds on retrieval-augmented generation, where a system obtains relevant material from an external source. Its references include REALM, Dense Passage Retrieval, and the work titled Retrieval-Augmented Generation. MemGPT’s external store belongs to this broader history of connecting inference with retrieved evidence.
A common retriever–reader arrangement first selects passages and then asks a reader to answer from them. That arrangement is straightforward, but it places a hard boundary around the evidence available for the response. If selection misses the necessary passage, a capable reader may still fail.
The authors identify active retrieval as a closer precursor. FLARE allows retrieval decisions during generation. They also discuss earlier work that alternates retrieval with reasoning on questions requiring several steps. These approaches already recognize that the right evidence request may emerge only after earlier evidence has been examined.
MemGPT places such access inside a broader memory environment. The same processor can search historical conversations, revise its compact working information, inspect document results, and continue operating. Retrieval becomes one part of maintaining and using the current context.
Agent interfaces make the hierarchy executable
The paper relies on function calling because storage tiers alone do not produce behavior. The processor needs a way to request an operation, provide arguments, observe its result, and decide what follows. Toolformer appears among the cited work motivating executable tool use.
The authors also connect their design to WebGPT’s use of search and bounded pages. An external source may be enormous, but its response still enters a finite input. Pagination is therefore part of the solution to the same capacity problem that motivates the architecture.
ReAct provides another relevant connection through alternating reasoning and action. The paper describes MemGPT as able to express a plan while carrying out operations, drawing on the broader setting of chain-of-thought prompting. Its own emphasis is narrower: how agents can retain and recover information supplied over time.
The operating-system comparison ties these elements together. A hierarchy determines where information lives. Operations move it. Capacity signals announce pressure. Control flow determines whether processing continues. MemGPT’s contribution is the coordinated arrangement of those pieces for a processor whose immediate input remains bounded.
The method, step by step
Establish an explicit visibility boundary
MemGPT calls the processor’s current prompt its main context. Only material inside that prompt is directly available during the current inference. External context includes stored information that has not been placed there.
The boundary is operational rather than merely descriptive. A passage in a database must be retrieved and added to the prompt before the processor can examine it. The existence of a matching record elsewhere does not itself change the current input.
This is how the virtual-context idea works. The application can expose different portions of a much larger collection over successive cycles. It does not perform a single inference over an unlimited amount of text. Instead, it repeatedly assembles a bounded workspace.
The paper presents this mechanism through component definitions and execution behavior. It does not introduce a mathematical optimization objective, a memory-learning loss, or equations for an optimal replacement policy. Its experimental notation K denotes a count of retrieved documents. Adding a formal policy equation would go beyond what the authors specify.
MemGPT’s event, memory, and continuation cycle
The steps in order.
Organize the immediate prompt by responsibility
The prompt contains an instruction region, a working region, and a message queue. They are contiguous in the input but differ in purpose and mutability.
The instructions remain fixed. They explain the memory arrangement, describe available operations, and tell the processor how control passes between cycles. This is important because autonomous memory management depends on the processor understanding the environment. An available search function is of little use if the processor does not know when to invoke it or how to interpret its output.
The working region is an editable text block with a fixed capacity. In conversation, it is intended to hold important information about the user and the agent’s adopted persona. That information stays close at hand rather than depending on a new historical search whenever it becomes relevant.
The queue contains recent interaction. Its contents include user messages, the agent’s output, function traffic, and system notifications. A summary of material removed earlier occupies the beginning of the queue.
These divisions support different maintenance policies. Stable instructions should not disappear merely because conversation grows. Often useful personal facts should not depend completely on their original message remaining recent. Detailed activity can rotate while a compact historical account provides orientation.
Write the interaction record to recall storage
The queue manager handles incoming messages and generated output. It adds new activity to the queue, assembles the prompt, and initiates inference. It also writes the interaction to recall storage, the database used for message history.
This creates the basis for later recovery. The queue is a view of recent activity, while recall storage retains the broader record. When a recall function retrieves old messages, the returned material is appended to the active queue.
The system therefore does not need to restore every intervening message to recover a detail. It can bring a relevant part of the old conversation into the current input and inspect it in the present task.
Archival storage has a broader purpose. It holds text objects that may include documents or information deliberately written by the agent. Recall storage is organized around interaction history; archival storage supplies another persistent area for retained material.
The distinction matters when considering what the architecture remembers. A personal fact might be present in working context, recoverable from a conversation record, or preserved as an archival object. Those locations give the processor different routes to the same information.
Respond to pressure before and during eviction
The queue manager monitors the assembled prompt against capacity thresholds. The paper gives 70% as an example point for a warning. Crossing that point adds a notification that older queue content may soon be removed.
The processor can respond while those messages remain visible. It may copy an important detail into working context or write information to archival storage. The warning is therefore a chance to improve the future accessibility of recent material.
The paper gives 100% as an example flush threshold. It also gives 50% of the context window as an example associated with the amount removed. These are illustrative policy settings, not the results of a reported search for optimal thresholds.
During a flush, the queue manager produces a new historical summary from the existing summary and the messages being removed. Earlier compression is thus incorporated into subsequent compression.
That procedure preserves continuity at the cost of selectivity. A summary cannot be assumed to retain every original detail. MemGPT compensates by keeping the removed messages in recall storage, where functions can retrieve them later.
This combination gives the architecture a layered response to overflow. Some information remains immediately accessible in working context. Some survives in a compact historical account. The detailed record remains outside the prompt.
Execute only operations that pass argument checking
The processor produces an output string during inference. MemGPT interprets proposed function calls through a parser and checks their arguments before execution.
Validation supplies an execution boundary. The processor may propose an operation, but the system must be able to recognize and run it. The paper does not claim that this makes every proposed action semantically correct. It establishes a mechanism for checking the call’s executable form.
The function result returns to the processor through the active context. Runtime failures return as feedback too. An attempted addition to an already full working region is one example discussed by the authors.
This feedback allows the next decision to respond to the actual outcome. A failed write can be followed by a different preservation choice; a search can be followed by inspection or another search.
The paper describes adaptation through this interaction loop. It does not give a procedure that retrains the underlying processor after each runtime error. Changing the next action during a task should therefore be distinguished from learning a durable memory policy.
Limit each retrieval response
External storage can contain much more text than a single prompt can accept. MemGPT uses paginated results so that retrieval does not immediately recreate the overflow problem.
A page brings a bounded portion of the result set into the prompt. The processor can examine that portion and decide whether to continue. Further material remains accessible through subsequent calls.
Pagination changes the nature of retrieval. Instead of one irreversible selection, access can become an iterative sequence. The processor may find an answer on the current page, request a later page, or reformulate the query based on what it has learned.
The interface provides opportunity rather than assurance. If the processor yields after an unhelpful page, the remaining evidence has no effect on the answer. The document experiments show that this happens in practice.
Use events to start cycles and heartbeats to continue them
A user message is one possible trigger for inference. The paper also includes capacity notifications, alerts about user activity, document-upload events, and scheduled events.
MemGPT converts these inputs into textual messages suitable for the active context. This lets the same processing mechanism respond to different circumstances. A warning may lead to preservation work; an upload may make a document task possible.
Dependent operations require a way to continue without waiting for the user. MemGPT supplies the function argument request_heartbeat=true. With this request, the system executes the call, places its result into context, and initiates another inference cycle.
Without a continuation request, processing yields until another external event arrives. The difference is a control decision, not a difference in whether the preceding function succeeded.
This is particularly important when the next step depends on returned information. A lookup may produce another identifier to query. A document search may reveal a useful term absent from the original question. Function chaining lets the processor act on those discoveries before replying.
Prepare the external document collection
In the document experiments, archival storage uses PostgreSQL with pgvector. The authors compute text-embedding-ada-002 representations ahead of time and load them into the database.
An HNSW index supports approximate vector search. The authors describe retrieval queries as sub-second. That statement concerns the database operation; it does not specify the latency of an entire answer involving multiple inference and retrieval cycles.
Similarity search determines which documents are returned. MemGPT reaches that mechanism through archival functions. The comparison systems use the same retrieval basis, but their selected passages are fetched before the reader is asked to answer.
This shared retrieval technology is an important control. Differences in results are not explained simply by one system receiving an unrelated search engine. The major distinction is whether access remains available during the task.
Construct evaluation questions and synthetic dependencies
The conversational memory questions are generated using a separate language system. It receives earlier dialogue and persona information and is instructed to produce a natural question whose answer requires the dialogue.
The generation rule excludes questions answerable from persona facts alone. The appendix illustrates the distinction with a conversation about a shared outing: remembering a place discussed during planning requires the exchange, whereas knowing a general interest may require only the persona.
The nested retrieval data follow a different construction. Keys and values are identifiers, and some values also occur as keys. This creates a chain that the system must follow.
No new end-to-end training procedure is introduced for the full MemGPT architecture. The paper’s central intervention is the environment: storage, instructions, executable functions, capacity handling, and control flow. Its new datasets test whether existing processors can use that environment effectively.
Experiments and results
Scope and processor settings
The evaluations cover conversational behavior and document analysis. Within those domains, the tasks measure historical recall, personalized opening messages, document-grounded answers, and dependent lookup.
The implementation identifies GPT-4 with gpt-4-0613 and a window of 8,192 tokens. GPT-4 Turbo means gpt-4-1106-preview, with 128,000 tokens. GPT-3.5 Turbo means gpt-3.5-turbo-1106, with 16,385 tokens.
These endpoint details matter because the results concern particular processors operating through particular interfaces. They also prevent a misleading interpretation based only on window size. A larger immediate capacity does not necessarily produce the strongest behavior inside the MemGPT environment.
The paper’s prose states directions of change for the conversational comparisons and document answering, but it does not supply their individual table scores. Exact numerical reporting is consequently possible for some task settings and failure points, not for every performance claim.
Deep memory retrieval
Multi-Session Chat, abbreviated MSC, provides the conversational histories. Human participants were asked to maintain assigned personas across five sessions, with approximately a dozen messages in a session.
For deep memory retrieval, the authors add session 6. It contains a question and expected answer concerning information from earlier interaction. The questions are intended to have a narrow acceptable response and to require more than general persona knowledge.
The baseline reader receives a compressed version of earlier conversations. MemGPT can search the complete history, but it must bring relevant records into context through paginated recall access.
The evaluation uses ROUGE-L recall and an automated correctness judgment. ROUGE supplies an overlap-based comparison. The authors choose recall because generated responses tend to be longer than the expected answers.
The judge receives the question, a reference answer, and the generated reply. Its instructions accept longer wording when the relevant answer content is present. The paper cites Judging LLM-as-a-Judge as support for using this kind of evaluator.
The reported result is consistent across the corresponding comparisons: MemGPT improves judged correctness and ROUGE performance over the underlying processor without its memory arrangement. The paper therefore supports the usefulness of searchable historical access relative to the tested compressed-history baseline.
It does not establish which individual memory component accounts for how much improvement. The comparison changes the complete access arrangement, including the availability of detailed records and the ability to search them.
Personalized conversation openings
The opener task tests whether accumulated user information appears without a direct historical question. The agent must begin an interaction using knowledge from previous sessions.
Evaluation compares generated messages with persona descriptions and with a human-written opening. The table caption names SIM-1/3 and SIM-H, while the discussion refers to CSIM. The prose does not specify enough mathematical detail to reconstruct additional scoring definitions.
MemGPT’s openers are reported as competitive with the human-written references and sometimes stronger under the similarity measures. The authors also observe that generated openings are generally longer and incorporate more persona details.
Those observations belong together. Mentioning more known facts can increase similarity to persona descriptions. The result supports use of retained personal information, while leaving open whether a human user would prefer the resulting message.
Working-context information is identified as important for this behavior. The task therefore demonstrates a role distinct from historical search: readily available personal facts can support spontaneous use.
Document answering over Wikipedia
The document task uses NaturalQuestions-Open questions and a Wikipedia collection from late 2018. The evaluation sample contains 50 questions.
Both MemGPT and the baseline arrangement use the same embedding-based search. K denotes how many retrieved documents are considered as the experiment increases the available material.
For the baseline, the retrieved set is assembled before inference. The reader is instructed to ground its answer in those documents. If the evidence is missing, it must indicate that it lacks enough information.
MemGPT has access to the archival collection during processing. It can search repeatedly and inspect later result pages. The evidence available over the whole task can therefore exceed what fits into any one prompt.
The document judge requires both an acceptable answer and supporting text. A missing evidence field or an insufficient-information response counts as failure on the evaluated questions. This discourages credit for an unsupported answer produced independently of the retrieved passage.
The authors report that MemGPT sustains its performance as the effective context increases. The GPT-4 and GPT-4 Turbo versions are described as equivalent on this document task. MemGPT with GPT-3.5 performs substantially worse, which the authors attribute to difficulties using functions.
The baseline comparison also includes shortened document segments so that more retrieved items fit into a fixed input. Accuracy deteriorates as more shortening is required. The authors explain this through removal of the passage containing the answer.
This is evidence for the value of recoverable access. A truncated passage cannot help the reader if its useful text is gone from the supplied input, whereas MemGPT can inspect additional stored material.
The search policy does not exhaust its opportunity
The authors find that the relevant Wikipedia article can lie beyond the first dozen results, sometimes farther down. This makes initial retrieval quality a major determinant of baseline performance.
Increasing the number of supplied documents can help the fixed reader because the relevant evidence becomes more likely to appear. Its performance remains tied to what the initial selection includes.
MemGPT can continue through the ranking, but the authors observe that it often stops before reaching the end of the available results. The architecture removes the requirement to fit the entire candidate collection into one prompt; it does not guarantee exhaustive inspection.
The document instructions encourage persistence by telling MemGPT that the answer exists in archival storage. The observed stopping behavior is therefore particularly informative. Even explicit encouragement does not ensure that the processor carries out enough retrieval.
Nested key–value retrieval
The synthetic experiment uses 140 key–value pairs, occupying approximately 8k tokens. Every key and value is a 128-bit UUID. Identifiers provide no ordinary semantic clue about which association should follow.
The authors vary nesting from 0 to 4 and sample 30 orderings that change the positions of relevant identifiers. At the unnested setting, the initial associated value is terminal. In nested cases, a returned value may require another lookup.
The text’s description of the upper setting associates it with 4 lookups. Because the nesting terminology and counting are not developed further, the safest comparison uses the authors’ stated nesting levels without translating them into a newly calculated chain length.
GPT-3.5 reaches 0 percent accuracy at 1 nesting level. Its characteristic failure is to return the initially associated value, satisfying a simple lookup while failing the nested requirement.
GPT-4 and GPT-4 Turbo reach 0 percent by 3 nesting levels. The chart compares those explicitly stated failure depths. The starred settings share the deepest reported baseline failure threshold; the chart does not assign an unstated numerical score to MemGPT.
Nested key–value retrieval, reported baseline zero-accuracy depth
The GPT-4 baselines reach the stated failure point at deeper nesting than GPT-3.5.
The numbers
| System or setting | nesting level at reported 0 percent accuracy |
|---|---|
| GPT-3.5 baseline | 1 |
| GPT-4 baseline (this paper) | 3 |
| GPT-4 Turbo baseline | 3 |
MemGPT with GPT-4 avoids the reported deterioration as nesting increases across the experiment. The authors attribute this to repeated function-based access that follows the required associations.
MemGPT with GPT-4 Turbo and GPT-3.5 improves on the corresponding direct baselines, but begins to decline at 2 nesting levels. The reported explanation is insufficient continuation: the agent fails to perform enough lookups.
This task is useful because its difficulty is not simply collection size. The stored associations are compact, yet dependent access remains difficult. Successful completion requires following intermediate results and checking that the final value is no longer a key.
Released experimental resources
The authors make available the augmented MSC material, the nested retrieval dataset, and embeddings covering 20M Wikipedia articles. They also release the implementation and benchmark resources.
These releases have different roles. The conversational extension supplies historical questions. The synthetic collection supplies controlled dependencies. The embeddings support retrieval over the document corpus.
Their availability helps make the experimental design concrete, but it should not be confused with evidence of performance beyond the reported settings. A large released collection and a smaller evaluated question sample describe different aspects of the work.
What the ablations show
The paper does not report an exhaustive removal study of every architectural component; it offers system comparisons and targeted analyses that reveal how memory access, working information, processor choice, truncation, and continuation affect behavior.
Historical access changes what can be recovered
The deep memory comparison contrasts searchable complete records with a compressed historical account. Its outcome supports retaining a route to detail.
The question-generation procedure makes that contrast meaningful. Questions should require information from an earlier exchange, not a fact already available in a persona description. A compressed history can omit precisely the incidental detail a later question requests.
Nevertheless, the experiment should be read at its actual scope. It does not compare every possible compression method. It also does not hold information representation fixed while changing only one retrieval operation.
MemGPT itself uses a historical summary, so the result does not argue that summaries have no role. It supports combining convenient compression with access to original records instead of relying on compression alone.
Working information helps with unrequested use
The opener analysis identifies retained working information as important. This fits the intended function of that region: some facts are relevant often enough to remain available without a search.
The comparison suggests a distinction between information that is recoverable and information that is ready for spontaneous application. An external record may answer a direct question well while doing little for an opener if the processor never decides to retrieve it.
The paper does not provide a comprehensive selection-policy experiment for the working region. It leaves unresolved how best to choose facts, remove outdated information, or allocate space among competing details.
The supported result is narrower: readily available personal information contributes to the reported opener behavior.
A stronger direct baseline need not make a stronger memory agent
The processor comparisons expose an interaction between architecture and behavior. GPT-3.5 struggles with function use in document analysis. On nested retrieval, GPT-4 Turbo is described as a stronger direct baseline but performs worse inside MemGPT than GPT-4.
The memory environment requires more than reading a supplied text. The processor must issue useful calls, interpret their outputs, preserve relevant state, and continue at the right time.
These comparisons do not isolate the internal source of every difference. They show that the complete workflow depends on compatibility between the processor and its operational interface.
A nominally larger context window or better direct performance is therefore insufficient evidence for choosing the best MemGPT configuration.
Shortened passages reveal an irreversible information loss
The document comparison varies how aggressively retrieved passages are shortened to fit the input. The decline in accuracy is consistent with removing answer-bearing text.
That observation supports MemGPT’s ability to inspect additional evidence later. It does not establish that all forms of compression necessarily behave like truncation.
The important distinction is recoverability. A short active representation can be useful if a system can return to the underlying record. A shortened fixed input offers no such route during the response.
Additional dependencies reveal failures of persistence
Nesting changes the number of dependent operations required while retaining the same basic key–value format. This exposes cases where a processor treats an intermediate result as final.
The GPT-3.5 failure pattern is especially clear: it frequently returns the first value. Other configurations continue farther but still fail to establish that no further lookup is needed.
MemGPT with GPT-4 handles the tested dependency range better. The weaker configurations show that providing a continuation mechanism does not force sufficient continuation.
The experiment therefore separates an interface capability from a behavioral guarantee. The heartbeat makes another step possible; the processor must still request it.
Limitations
Author-reported failures remain central to the result
The authors explicitly report early stopping in document retrieval. Relevant material may remain available, yet MemGPT can cease paging before finding it.
This limits the practical interpretation of extended context. The collection may exceed the prompt by a large amount, but the answer depends on the portion actually inspected. Storage capacity and effective evidence access are different quantities.
They also identify weakness in function calling as a source of degraded performance. The document results with GPT-3.5 and the nested lookup failures show that an operational interface creates demands that some processors do not meet reliably.
Embedding search introduces another observed difficulty. A relevant document can be ranked well below the earliest results. Pagination supplies access to later material, but does not improve its ranking or guarantee that the agent will reach it.
These are not peripheral exceptions. They identify the main policy problem left inside the architecture: deciding which information to inspect and how long to continue.
A finite workspace remains finite
A careful reader should distinguish the authors’ virtual-memory analogy from simultaneous access to an unlimited history. Each inference still uses a bounded prompt.
Retrieved material competes with instructions, working information, recent events, and other retrieved results. The processor must therefore select and reorganize evidence even when external storage is ample.
The experiments demonstrate useful behavior on selected tasks. They do not establish arbitrary reasoning over every possible collection or history.
The operating-system analogy helps describe tiers and movement, but language-based evidence selection does not automatically provide the equivalent of a perfectly identified missing memory address. The processor must infer what it needs to search for.
The conversational goals are broader than their measurements
The authors motivate agents that remain coherent and personally engaging over extended interaction. Their experiments test historical questions and opening messages.
Those tasks are informative but incomplete operationalizations. Correctly recalling an event does not establish that an agent will avoid contradictions throughout a long dialogue. An opener that resembles persona information does not establish that a user finds it welcome or natural.
The authors’ observation that MemGPT openers are longer and mention more personal details is relevant to the metric. Similarity can reward broader coverage without directly measuring conversational preference.
MSC also supplies finite, persona-consistent histories. The experiments do not demonstrate the full range of changes, ambiguity, and revision that might arise in the long relationships used to motivate the work.
These are limits of inference from the setup, rather than failures the authors measure directly.
The judging procedures define a particular notion of success
For historical answers, the judge is instructed to accept the relevant topic inside a longer reply. ROUGE-L recall likewise emphasizes coverage of reference content.
These choices accommodate ordinary variation in wording. They also mean that success need not imply that every additional statement is justified.
The document judge adds a stronger grounding requirement by checking supporting text. That helps distinguish an evidenced response from an answer that merely happens to be correct.
Still, automated judging is part of the experimental instrument. The paper cites prior support for the approach, but does not establish that this removes all uncertainty about correctness or response quality.
The exact conversational and document scores are not stated in the prose account of the results. Their reported direction can be assessed, while unsupported precision should be avoided.
The baselines differ in access opportunities
The conversational baseline receives compressed history, while MemGPT can search detailed records. The document baseline receives a selected set, while MemGPT can retrieve again.
These are legitimate differences because they constitute the proposed system. They also mean that the experiments compare complete information-access arrangements rather than memory capacity in isolation.
The instructions differ accordingly. MemGPT is encouraged to persist because evidence exists in archival storage. The fixed document reader is required to rely on what it has already received.
A careful interpretation is therefore that MemGPT’s combination of access and control is beneficial in these settings. The evidence does not isolate a universal gain from one particular function, prompt region, or threshold.
The synthetic task makes completion unusually explicit
Nested identifiers provide a clear rule: continue while the returned value remains a key. That is valuable for diagnosis.
Ordinary documents often lack such a clean terminal condition. A reader may need to determine whether the available evidence is sufficient, whether a contradictory passage exists, or whether the question itself is ambiguous.
Success on the nested task consequently demonstrates a useful form of dependent lookup, not a general solution to stopping decisions in natural-language research.
The experiment also keeps the pair collection and nesting range bounded. It does not establish behavior for arbitrary dependency structures, malformed chains, or every possible ordering.
Resource costs and policy choices are not fully characterized
The paper describes sub-second database queries, but does not provide a comprehensive accounting of full-task latency, total inference use, and end-to-end cost across all comparisons.
Repeated retrieval and repeated inference are central to the method. Their practical consequences cannot be inferred from database speed alone.
The example warning and flush thresholds are not supported by a systematic threshold study. Nor does the work establish the best policy for choosing working facts, updating summaries, or replacing active evidence.
The authors explicitly identify improved memory policies, control flow, and alternative storage technologies as future directions. The architecture supplies a productive framework, while leaving important decisions within it open.
What came after
Later citations broaden the memory question
The later citation record includes dedicated memory architectures, personalization work, interface research, and broader surveys. The titles establish these research subjects, but they do not describe exactly how each work adopts or modifies MemGPT. A citation should therefore be read as a documented connection, not as proof that a later system reproduces its queue, heartbeat, or storage arrangement.
A-MEM places agentic memory at the center of its subject. Mem0 connects scalable persistent memory with production-oriented agents. Both continue the problem area made concrete by MemGPT: an agent’s useful history can exceed its immediate input. Their listed descriptions do not establish their exact mechanisms or measured improvements.
Memory OS explicitly retains an operating-system framing in its title. That makes it a close thematic successor to MemGPT’s organization of context through tiers and operations. The title alone does not establish which architectural details it shares.
Lightweight LLM Agent Memory with Small Language Models identifies a different emphasis: memory in conjunction with smaller processors. It is relevant to MemGPT’s finding that the surrounding architecture depends on operational competence, but the citation information does not supply a direct comparison.
Structure and time become explicit themes
Zep names a temporal knowledge graph as its memory architecture. Its title foregrounds time and structured relationships, whereas MemGPT’s account emphasizes access to text, messages, and editable working information.
MAGMA and GAM likewise identify graph-based memory as their subject. H-MEM foregrounds hierarchical memory for extended reasoning. These titles show continued interest in how memory is organized, but do not justify claims about particular graph operations or performance gains.
The conceptual connection is that retaining more information is only part of memory design. Organization affects what can be located and combined. MemGPT contributes an earlier, concrete systems treatment of that access problem; the listed later works pursue subjects whose specific solutions require their own evidence.
Management decisions become research targets
Memory-R1 explicitly associates memory management and use with reinforcement learning. That subject addresses an issue visible in MemGPT’s results: operations may be available while the processor still makes poor choices about using them.
Memory as Action presents context curation as an agent activity during extended tasks. Its framing connects closely to MemGPT’s decision to expose memory changes as executable operations.
MemInsight names autonomous augmentation of memory. In Prospect and Retrospect places reflective management within personalized dialogue. Their titles establish attention to active maintenance, but not the details of what is stored, revised, or discarded.
Preference-Aware Memory Update narrows the maintenance problem to preferences. MemGPT already treats preferences as useful working information, while its experiments do not comprehensively study how changing preferences should replace earlier ones. The later title makes that update problem explicit.
Interfaces, compression, and serving remain distinct connections
SWE-agent centers agent–computer interfaces in software engineering. Its thematic connection is the importance of an actionable environment: MemGPT’s behavior depends on the functions and feedback it exposes. The citation does not establish that SWE-agent uses MemGPT’s memory arrangement.
LLMLingua-2 concerns prompt compression using data distillation. Compression and retrieval address related input constraints, but they should not be treated as identical. MemGPT itself combines a compressed account with access to detailed records. No direct experimental comparison follows from the later title.
Mooncake describes a serving architecture centered on the KV cache. HERMES also names cache-based hierarchical memory, in a streaming-video setting. These subjects involve memory at different system levels from conversational evidence storage. Their citation relationship does not collapse those distinctions.
Evaluation continues alongside architecture
BAMBOO concerns long-text capability assessment. Mem-Gallery identifies multimodal conversational memory as its evaluation subject. The later titles extend the range of settings in which memory and long-input behavior are studied.
A Survey on Evaluation of LLM-based Agents places agent assessment itself at the center. The connection to MemGPT is especially useful because its tasks expose different abilities: recovering an old detail, using personal information proactively, grounding an answer, and completing dependent retrieval.
The listed surveys on retrieval-augmented generation and agent planning place MemGPT within broader research discussions. Their inclusion shows that its memory-management proposal connects to both information access and action sequencing. The detailed conclusions of those surveys, like the specific advances of the later memory systems, cannot be inferred from their titles alone.
Cite
Cite as Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica and Joseph E. Gonzalez. 2023. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560.
@misc{packer2023memgpt,
title = {{MemGPT: Towards LLMs as Operating Systems}},
author = {Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica and Joseph E. Gonzalez},
year = {2023},
doi = {10.48550/arxiv.2310.08560},
eprint = {2310.08560},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2310.08560}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/packer-2023-memgpt-towards-llms-operating-systems/
References
- Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. our card
- Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, et al. Improving language models by retrieving from trillions of tokens. In International conference on machine learning, pp. 2206–2240. PMLR, 2022. our card
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:0 1877–1901, 2020. our card
- Shouyuan Chen, Sherman Wong, Liangjian Chen, and Yuandong Tian. Extending context window of large language models via positional interpolation. arXiv preprint arXiv:2306.15595, 2023. OpenAlex ↗ · Scholar ↗
- Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. our card
- Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- Zican Dong, Tianyi Tang, Lunyi Li, and Wayne Xin Zhao. A survey on long text modeling with transformers. arXiv preprint arXiv:2302.14502, 2023. OpenAlex ↗ · Scholar ↗
- Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. Retrieval augmented language model pre-training. In International conference on machine learning, pp. 3929–3938. PMLR, 2020. OpenAlex ↗ · Scholar ↗
- Gautier Izacard and Edouard Grave. Leveraging passage retrieval with generative models for open domain question answering. arXiv preprint arXiv:2007.01282, 2020. our card
- Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave. Unsupervised dense information retrieval with contrastive learning. arXiv preprint arXiv:2112.09118, 2021. our card
- Zhengbao Jiang, Frank F Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, Yiming Yang, Jamie Callan, and Graham Neubig. Active retrieval augmented generation. arXiv preprint arXiv:2305.06983, 2023. our card
- Vladimir Karpukhin, Barlas Oğuz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. arXiv preprint arXiv:2004.04906, 2020. our card
- Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020. our card
- Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In International conference on machine learning, pp. 3744–3753. PMLR, 2019. OpenAlex ↗ · Scholar ↗
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:0 9459–9474, 2020. our card
- Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pp. 74–81, 2004. our card
- Xi Victoria Lin, Xilun Chen, Mingda Chen, Weijia Shi, Maria Lomeli, Rich James, Pedro Rodriguez, Jacob Kahn, Gergely Szilvasy, Mike Lewis, Luke Zettlemoyer, and Scott Yih. Ra-dit: Retrieval-augmented dual instruction tuning, 2023. our card
- Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language models use long contexts. arXiv preprint arXiv:2307.03172, 2023a. our card
- Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. AgentBench: Evaluating llms as agents. arXiv preprint arXiv:2308.03688, 2023b. our card
- Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. WebGPT: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332, 2021. our card
- Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:0 27730–27744, 2022. our card
- Joon Sung Park, Joseph C O'Brien, Carrie J Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein. Generative agents: Interactive simulacra of human behavior. arXiv preprint arXiv:2304.03442, 2023. OpenAlex ↗ · Scholar ↗
- David A Patterson, Garth Gibson, and Randy H Katz. A case for redundant arrays of inexpensive disks (raid). In Proceedings of the 1988 ACM SIGMOD international conference on Management of data, pp. 109–116, 1988. OpenAlex ↗ · Scholar ↗
- Ofir Press, Noah A Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409, 2021. OpenAlex ↗ · Scholar ↗
- Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. In-context retrieval-augmented language models. arXiv preprint arXiv:2302.00083, 2023. our card
- Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. arXiv preprint arXiv:2302.04761, 2023. our card
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. our card
- H. Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. ArXiv, abs/2212.10509, 2022. URL https://api.semanticscholar.org/CorpusID:254877499. our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. our card
- Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. OpenAlex ↗ · Scholar ↗
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:0 24824–24837, 2022. our card
- Jing Xu, Arthur Szlam, and Jason Weston. Beyond goldfish memory: Long-term open-domain conversation. arXiv preprint arXiv:2107.07567, 2021. OpenAlex ↗ · Scholar ↗
- Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629, 2022. our card
- Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging llm-as-a-judge with mt-bench and chatbot arena. arXiv preprint arXiv:2306.05685, 2023. our card