Vol. III · Essays on work after AI
Tuesday, November 24, 2026
evolving.work
Knowledge · Architecture · Essay № 038

Long Context Is Not the Same as Better Memory

Long context and memory solve different problems; confusing them is the most common error in AI system design

Every team I work with has watched their AI go blank at the worst moment. The assistant that nailed a multi-step task on Monday can’t remember the customer it spoke to on Friday, the legal copilot that read a contract twenty minutes ago hallucinates the indemnity clause, and the agent that started the morning knowing your product loses the thread by 4pm.

The market’s reflex is predictable: sell a bigger context window. Limits jumped from 4K to 128K to 200K to 1M tokens, with every launch deck pitching the higher ceiling as a memory upgrade. Vendors bundle reading a novel and remembering your last conversation into a single headline feature.

Both look like cures for forgetfulness, yet they solve very different kinds of forgetting. Long context governs what the model can hold in front of it while generating an answer, while memory governs what survives between sessions so a returning user doesn’t have to start over. You can buy a much bigger desk and still have no filing system.

Why Bigger Windows Fail Before They Fill

Even within a single session, advertised context limits behave more like a ceiling than a guarantee of reliable recall. In 2025, Kelly Hong, Anton Troynikov, and Jeff Huber at Chroma Research tested 18 frontier models (including GPT-4.1, Claude Opus 4, and Gemini 2.5) and measured how performance shifted as inputs grew. Every single model degraded as input length increased, even on simple tasks.

A model boasting a 200K-token context window can show meaningful degradation at just 50K tokens, a quarter of its advertised capacity. Empirical tests of 1M-token models show they rarely sustain high-accuracy reasoning past 30 to 60 percent of the window. Position bias compounds the problem: Stanford’s “Lost in the Middle” research and Chroma’s replication found that details buried in the middle of a prompt suffer accuracy drops of 30 percent or more. The model attends well to the start and end while dropping the middle, something anyone who has tucked a key clause into line 247 of a 400-line prompt has learned the hard way.

Expanding the window also leaves a separate architectural layer untouched: memory that persists across sessions and selects what to bring back when it’s relevant. UC Berkeley researchers framed this clearly in the 2023 MemGPT paper using a classic computing analogy. A context window works like RAM (fast, bounded, and volatile), while external memory works like disk (slower, persistent, and large). In MemGPT, later productionized as Letta, the LLM actively manages what stays in working context and what gets paged out via tool calls, allowing it to carry coherent conversations across weeks and separate transient details from durable facts.

Enterprise architectures are converging on a similar two-layer split: aggressively curated working context paired with persistent knowledge divided into episodic memory (what happened in past interactions), semantic memory (facts and entities), and procedural memory (learned workflows). Most teams currently call a vector database with chunked documents and similarity search “memory,” yet that’s just RAG. RAG handles static semantic lookup well, while leaving out what happened yesterday, what worked last time, and what deserves to be forgotten. Confusing RAM with disk storage treats raw capacity as if it were architecture.

Systems Built Around Selective Memory

Recent research gives teams strong evidence for separating memory from the context window, because architectures built around selective memory consistently beat stuffing everything into one prompt.

Google’s Titans architecture, presented at NeurIPS 2025, pairs attention with a structurally distinct neural long-term memory module. It uses a “surprise” metric to decide what gets stored permanently, retaining novel or unexpected information much like human memory encodes events that break our expectations. On the BABILong benchmark, Titans outperformed GPT-4 on long-range reasoning while using far fewer parameters.

GAM, a dual-agent memory system profiled by VentureBeat in 2025, builds on the same principle from the orchestration side. One agent (the memorizer) structures information during interactions, deciding what matters and how it connects to prior knowledge, while a second agent (the researcher) retrieves context on demand through just-in-time assembly rather than static precomputed summaries. On the RULER benchmark, which tracks variables across multi-step reasoning, GAM cleared 90 percent accuracy where conventional RAG approaches largely failed.

Both results point to the same lesson: memory is an active process of selective encoding and contextual recall, not a passive bucket. Careful curation of what enters the window matters more than raw window expansion, which becomes even clearer when you separate the three distinct ways AI systems forget.

Compression forgetting happens inside a single session when context fills up or degrades before hitting the ceiling. If doubling the window would fix the error, you’re dealing with compression forgetting.

Session forgetting happens between sessions, when a user returns the next day and the assistant starts completely blank. A larger window does nothing here because the session resets anyway; you need persistent cross-session memory.

Relevance forgetting is the trickiest of the three. The needed fact sits somewhere in a document, past chat, or CRM record, yet the system fails to pull it forward at the right moment. The fix is curation: a memory layer built to decide what to keep, when to retrieve it, and what to demote. Treating all three failure modes as a window-size problem is how teams end up paying for a 200K-token model that still breaks at 50K.

Where the Distinction Has Limits

Three reasonable objections push back on splitting context and memory into separate layers, and each sets a useful boundary.

First, some argue that rapid advances in attention and built-in memory modules like Titans will make separate memory infrastructure obsolete within 18 months. So far, the empirical trend runs the other way: context rot has persisted across model generations, and Titans itself succeeds by adding a distinct memory module rather than stretching the same attention window. Waiting for bigger windows to solve memory has already left three years of production systems accumulating architectural debt.

Second, many teams point out that RAG is widely deployed and already gives models persistent external knowledge. For straightforward lookup use cases, RAG is genuinely enough. As systems evolve from single-query assistants into persistent agents, though, RAG’s blind spots become structural: it retrieves static facts without capturing episodic history, procedural lessons, or active forgetting, which is why GAM topped 90 percent on RULER where RAG fell short.

Third, there’s the procurement reality: most CTOs don’t assemble separate context and memory layers; they buy an Assistants API as one bundle and move on. That’s accurate today, and it mirrors earlier infrastructure cycles. Databases unbundled from monoliths, compute unbundled into microservices, and security unbundled from perimeters into zero-trust, each resisted on procurement grounds until the bundled tool cracked under real workloads.

One more research nuance keeps this grounded: smaller, tighter context can actually beat longer context on certain tasks. LongLLMLingua posted up to 21.4 percent accuracy gains on NaturalQuestions while using roughly 4x fewer tokens. The line between working context and durable memory stays fluid, making architectural separation a strong default for multi-session systems rather than a rigid law.

Separating Your Desk From Your Filing System

Start from a concrete failure someone on your team can describe: did the assistant miss something inside the current task, forget yesterday’s conversation, or fail to pull up a stored record? That diagnosis tells you which layer to fix.

Classify the forgetting. Review your AI failures from the past month and ask one question for each: would doubling the context window fix it? Yes means compression forgetting; no means session or relevance forgetting. Tallying the split usually surprises teams by showing how few real failures are actually window-size problems.

Design the layers. Treat working context (RAM) with aggressive curation: summarize completed steps, drop stale details, and shape what the model sees on every pass, applying Chroma’s finding that context engineering beats raw window size. Build persistent memory (disk) around three explicit jobs: storage (what to keep), retrieval (how to surface it), and curation (what to demote or expire).

Engineer what persists. The hardest memory choice is deciding what to promote and what to let decay. Filter candidates using three signals: surprise (is this novel?), relevance (does it tie to ongoing goals?), and frequency (has this pattern shown up repeatedly?), using Titans’ surprise metric as a concrete example. Memory without selectivity is just a growing database, and an uncurated database eventually rots just like an overloaded prompt.

Measure and mature. Track within-session metrics (effective utilization, the token threshold where quality dips, and curated input density) alongside cross-session metrics (recall accuracy, retrieval precision, and knowledge accumulation rate). Without per-layer numbers, debugging stays guesswork, and regulated sectors like healthcare, finance, and policy need reproducible context to support audits and reviews. Institutions run into this exact same confusion at the human layer, as I explored in Fine-Tune Your Organization.

You can run a quick diagnostic this afternoon. Test the same task at 25, 50, and 75 percent of your model’s context window; if accuracy slips, you have a context problem to address. Then come back tomorrow and ask the system to recall a detail from today’s session; if it draws a blank, you have a memory problem that no larger window will fix. Measure both before paying for a bigger ceiling, and right alongside context-window size, ask your vendor what actually persists when a user comes back tomorrow.


References

  1. Hong, K., Troynikov, A., & Huber, J. (2025). “Context Rot: How Increasing Input Tokens Impacts LLM Performance.” Chroma Research. https://research.trychroma.com/context-rot
  2. Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., & Gonzalez, J. E. (2023). “MemGPT: Towards LLMs as Operating Systems.” arXiv / NeurIPS 2023 Workshop. https://arxiv.org/abs/2310.08560
  3. Behrouz, A., et al. (2025). “Titans: Learning to Memorize at Test Time.” Google Research / NeurIPS 2025. https://arxiv.org/abs/2501.00663
  4. VentureBeat (2025). “GAM Takes Aim at Context Rot: A Dual-Agent Memory Architecture That Outperforms Long-Context LLMs.” https://venturebeat.com/ai/gam-takes-aim-at-context-rot-a-dual-agent-memory-architecture-that
  5. arXiv (2025). “From Human Memory to AI Memory: A Survey on Memory Mechanisms in the Era of LLMs.” https://arxiv.org/html/2504.15965v1
  6. Tribe AI (2025). “Beyond the Bubble: How Context-Aware Memory Systems Are Changing the Game in 2025.” https://www.tribe.ai/applied-ai/beyond-the-bubble-how-context-aware-memory-systems-are-changing-the-game-in-2025
  7. Fluid AI (2025). “AI Memory Systems Explained: Short-Term, Long-Term, and Working Memory in LLMs.” https://www.fluid.ai/blog/ai-memory-systems-explained
  8. Liu, N. F., et al. (2023). “Lost in the Middle: How Language Models Use Long Contexts.” Stanford / arXiv. https://cs.stanford.edu/~nfliu/papers/lost-in-the-middle.arxiv2023.pdf
  9. “LongLLMLingua: Accelerating and Enhancing LLMs in Long Context via Prompt Compression.” ACL 2024. https://aclanthology.org/2024.acl-long.91/
  10. arXiv (2025). “Contextual Memory Intelligence: A Foundational Paradigm.” https://arxiv.org/html/2506.05370v1
About the author
Héctor Reinoso writes about how organizations should be designed when intelligence becomes abundant. He works on enterprise AI adoption inside a large industrial organization, after 25 years as a strategy consultant and transformation executive across four continents. Harvard MBA, industrial engineer, and still writes the code he writes about. More →