arxiv-2310-08560 · paperMemGPT: Towards LLMs as Operating Systems
Charles Packer, Sarah Wooders, Kevin Lin, et al.
Created: 2023 · Ingested: 2026-09-02
This source: MemGPT: Towards LLMs as Operating SystemsHow much the field cites it — very heavily cited in the last 12 months984 in the last 12 months · 1246 totalpublished 2023checked 2026-09-04click for Semantic Scholar984 citations in the last 12 months · 1246 total · checked 2026-09-04
https://arxiv.org/abs/2310.08560(opens in a new tab)In brief
Letting a fixed-context LLM call functions to page its own memory in and out beats feeding it a recursive summary, and the gain depends heavily on how good the base model is at function calling. MemGPT splits the prompt into system instructions, a writable working context, and a FIFO message queue, with evicted content pushed to external recall and archival stores (PostgreSQL plus pgvector) that the model queries itself, chaining calls via a request_heartbeat flag.
On a deep memory retrieval task built from Multi-Session Chat, MemGPT raised accuracy from 32.1% to 92.5% with GPT-4, 35.3% to 93.4% with GPT-4 Turbo, and 38.7% to 66.9% with GPT-3.5 Turbo, with ROUGE-L recall rising from 0.296 to 0.814 on GPT-4. Conversation openers scored 0.868 SIM-1 (GPT-4) against 0.800 for human-written openers. On a new nested key-value task with 140 UUID pairs and 30 orderings, GPT-4 and GPT-4 Turbo hit 0% accuracy by 3 nesting levels, while MemGPT with GPT-4 was unaffected.
Baselines are matched on retriever and context budget, and the model sweep isolates function-calling ability as the limiting factor: MemGPT with GPT-3.5 degrades badly, and MemGPT with GPT-4 Turbo underperforms MemGPT with GPT-4 on nested KV. Evaluation uses an LLM judge, document QA covers 50 sampled questions, and no open-weight models were tested. Treat self-directed paging as a real substitute for context length, but one bottlenecked by retrieval quality and the agent's willingness to keep paging.
Written from the abstract by claude-opus-5 on 2026-09-05, with every figure checked against it. Not a substitute for the paper.
Referenced by
Claims in this catalog that draw on this source, and whether as support or counterpoint.