MemGPT: Treating LLM Context Windows Like Virtual Memory episode artwork

EPISODE · Jul 21, 2026

MemGPT: Treating LLM Context Windows Like Virtual Memory

from AI Post Transformers

This episode explores MemGPT, a UC Berkeley paper proposing to manage large language model context windows the way operating systems manage virtual memory, paging information in and out rather than trying to cram everything into a fixed prompt window. The hosts unpack why this matters: self-attention's quadratic cost caps context size, and even models with huge windows suffer from the "lost in the middle" problem, where information buried mid-context gets recalled far less reliably than content at the start or end. They dig into MemGPT's architecture — a fixed "main context" split into an editable working scratchpad and a FIFO conversation queue, backed by two external tiers (archival storage for documents and recall storage for full message history) that the model pages in via its own function calls. A recurring debate threads through the discussion: whether letting the LLM itself decide when to page memory, rather than a deterministic kernel policy, makes the system meaningfully less reliable than a real OS. Listeners interested in agent memory design, long-context limitations, and the tradeoffs of self-directed retrieval will find the hosts' back-and-forth over how far the OS analogy actually holds particularly engaging. Sources: 1. MemGPT: Treating LLM Context Windows Like Virtual Memory https://arxiv.org/pdf/2310.08560 2. Lost in the Middle: How Language Models Use Long Contexts — Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, Percy Liang, 2023 https://scholar.google.com/scholar?q=Lost+in+the+Middle%3A+How+Language+Models+Use+Long+Contexts 3. Generative Agents: Interactive Simulacra of Human Behavior — Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, Michael S. Bernstein, 2023 https://scholar.google.com/scholar?q=Generative+Agents%3A+Interactive+Simulacra+of+Human+Behavior 4. Beyond Goldfish Memory: Long-Term Open-Domain Conversation — Jing Xu, Arthur Szlam, Jason Weston, 2021 https://scholar.google.com/scholar?q=Beyond+Goldfish+Memory%3A+Long-Term+Open-Domain+Conversation 5. Improving Language Models by Retrieving from Trillions of Tokens (RETRO) — Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, et al., 2022 https://scholar.google.com/scholar?q=Improving+Language+Models+by+Retrieving+from+Trillions+of+Tokens+%28RETRO%29 6. ReAct: Synergizing Reasoning and Acting in Language Models — Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao, 2022 https://scholar.google.com/scholar?q=ReAct%3A+Synergizing+Reasoning+and+Acting+in+Language+Models Interactive Visualization: MemGPT: Treating LLM Context Windows Like Virtual Memory

Episode metadata supplied by the publisher feed · Published Jul 21, 2026

Embed this episode

NOW PLAYING

MemGPT: Treating LLM Context Windows Like Virtual Memory

0:00 0:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

Frequently Asked Questions

When was this AI Post Transformers episode published?

This episode was published on July 21, 2026.

Can I download this AI Post Transformers episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!