MemoryTax: The Bitter Lesson of Agent Memory

Zedong Peng
10/21/2026
cs.CLcs.AI

No official code found. Best implementation: zedong-peng/memorytax (6 stars, HTML, MIT, last commit 2026-10-25).

Abstract

Agent memory systems such as Mem0 and Zep decide what to keep before any question arrives; coding agents keep the raw history and let the model search it with its own tools. We ask whether designed memory still helps once the model is strong enough to search for itself.

Show full abstract

On one LoCoMo conversation (419 turns, 152 questions), we run 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 record what every rollout costs. This is a short empirical study, with one conversation and one run per cell. Agent memory is a costly patch for a weak model: Mem0 beats full context only with GPT-4o-mini, and its build alone costs more than a whole full-context rollout. Agent memory also has a ceiling, set by the model that writes it: a stronger reader does not recover what a weaker writer left out. With Claude Opus 5.5, Pi tops the cost-accuracy frontier, scoring 99% for less than half the cost of full context; its one miss is a wrong answer key. Part of that lead comes from photo captions that only the agents could read: on the 88 questions whose evidence has no photo, Pi and full context differ by one answer.

View on arXivView PDF

Code Implementations(1)

MIT

MemoryTax: The Bitter Lesson of Agent Memory. Code, data and paper.

60HTML, PythonOct 20, 20261 months agoMIT

Similar Papers

Cite this paper

@article{peng2026memorytax,
  title  = {MemoryTax: The Bitter Lesson of Agent Memory},
  author = {Zedong Peng},
  year   = {2026},
  eprint = {2610.29823},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29823v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29823.svg)](https://codeofpaper.com/paper/2610.29823)

Discussion