MemoryTax paper: agent memory is a patch for weak models

An Oct 2026 arXiv study finds coding agents searching raw history match or beat Mem0 and Zep once the model is strong, at lower cost.

A short arXiv paper, MemoryTax: The Bitter Lesson of Agent Memory (Oct 21, 2026), tests whether designed memory layers still earn their keep once the model can search for itself. If you're adding Mem0 or Zep to an agent, the results suggest testing something simpler first.

The setup: one LoCoMo conversation (419 turns, 152 questions). The authors ran four memory methods (full context, BM25, Mem0, Zep) and three coding agents (Pi, Codex, Claude Code), each with GPT-4o-mini, GPT-6 Luna and Claude Opus 5.5, and recorded what every rollout cost. The coding agents keep the raw history and let the model search it with its own tools; Mem0 and Zep decide what to keep before any question arrives.

The findings, per the paper: Mem0 beat full context only with GPT-4o-mini, and its build alone cost more than a whole full-context rollout. Memory also has a ceiling set by the model that writes it: a stronger reader doesn't recover what a weaker writer left out. With Claude Opus 5.5, Pi scored 99% for less than half the cost of full context, and the authors attribute its one miss to a wrong answer key.

The limits are the authors' own. They call it a short empirical study with one conversation and one run per cell. Part of the agents' lead comes from photo captions only the agents could read; on the 88 questions without photo evidence, Pi and full context differ by one answer. It's unclear whether code and data are released for reruns, the abstract gives no dollar figures per setup, and long or multi-conversation histories weren't tested.

@bibryam's read of the paper is: invest in better search tools for agents, not necessarily more sophisticated memory architectures. Our take: the writer-ceiling finding is the practical one. If a cheap model summarizes history into memory to save money, whatever it drops is gone for the stronger model that answers later. Keeping raw logs avoids that loss, though with one conversation tested, treat this as a hypothesis to check rather than a settled result.

Try it: before adopting a memory layer, keep raw session transcripts as files and let your agent search them. One way to set that up (our example) is a CLAUDE.md line like: "Past session logs are in logs/; search them before asking me to repeat context." Then compare answers against your current memory setup on a handful of questions you know the answers to.

Sources