How Much Should an Agent Remember? The Answer Depends on the Model, Not the Memory
Agents fail the same way twice
LLM agents on long-horizon tasks do not fail in interesting new ways. They fail in recurring, procedural ways: they mis-paginate an API, resolve the wrong entity, answer a question nobody asked. The same mistake shows up run after run, because nothing in the system remembers that it happened. The industry's answer so far has been to give agents more memory. A paper submitted November 19 by IBM researchers asks whether that is the right question, and the answer is no. The question is how much memory, for which model, and in what form.
Lessons, not logs
The paper's pipeline works in two passes. First it mines short lessons from the agent's own trajectories, one to three per episode. A lesson is a sentence about what went wrong and what to do instead, not a transcript. Then it consolidates those lessons into a smaller set of guidelines, each one recording how many lessons it merged, so a guideline that absorbed twelve lessons carries more weight than one that absorbed two. At inference time the agent receives either all the guidelines or a selected subset. The pipeline ships in the open-source altk-evolve library and runs in production in IBM's CUGA agent and the watsonx Orchestrate platform. The test bed is AppWorld, across models whose baseline task completion runs from 40 to 92 percent.
Strong models want more. Weak models want less.
Here is the central finding, and it is the opposite of the usual advice. The right amount of memory is a property of the model, not the memory. A strong model keeps improving as guidelines are added. DeepSeek-V3.2 gained 9.5 points of task completion and 16.1 points of scenario completion with its full set of 191 guidelines. More memory, more wins, no visible ceiling in the test.
A weak model behaves differently. gpt-oss-120b starts at 39.9 percent task completion. With all 199 of its guidelines it reaches 51.2 percent. With a selected subset of about 29 guidelines it reaches 55.4 percent, the mean of two runs. The full set is worse than the curated subset by more than four points. The weak model cannot tell good guidance from noise when you hand it two hundred rules at once, so the extra rules dilute the ones that matter. The same memory that helps a strong model hurts a weak one. That is why memory products that sell "unlimited recall" are selling the wrong thing. The scarce resource is not storage. It is the model's ability to use what you stored.
Product Hunt on November 21 had three memory products launch on the same day, and the pitch in every case is more memory, synced everywhere. The paper says that pitch is backwards for most of the models people actually run.
Four ways memory goes wrong
The paper is unusually honest about its own failures, and the list is worth stealing. First, a high-support guideline backfired: a rule that had absorbed many lessons turned out to be wrong in a context the consolidation step had erased. Second, provenance was silently dropped during consolidation, so nobody could tell which episodes a guideline came from. Third, a swallowed API error failed every task in a run while producing a plausible-looking log, which meant the lessons mined from that run taught the agent the wrong thing. Fourth, a baseline confound nearly produced a misleading comparison with a prior method, caught only because someone checked the setup instead of the headline number. Each of these is a failure of the memory pipeline, not the model.
What to build on Monday
If you run agents in production, the paper's shape is directly usable. Mine lessons from your own trajectories, one to three per episode, and consolidate them into guidelines that carry their support count. Then do the step most teams skip: measure. Run your agent with the full set, with a selected subset, and with nothing, and pick the winner per model, not per team. Strong models get the full set. Weak models get a small curated subset, tested, not assumed. Keep provenance attached to every guideline so a bad rule can be traced to the episodes that produced it. Log API errors loudly enough that a silent failure cannot poison the next round of lessons. Treat the guideline set as a living artifact with a review cycle, not a database that only grows.
Memory is a filter, not a warehouse
The agent memory market is selling storage. The paper shows the job is editing. A strong model can carry 191 guidelines and keep climbing. A weak model peaks near 29 and declines after that. The difference between those two numbers is the difference between a memory system and a junk drawer. Build the filter first, measure what survives it, and let the model tell you how much it can hold. Anything else is just paying to remember your own mistakes, in higher resolution, forever.
Get Daily AI Trends
Weekly breakdowns of autonomous agents and live benchmarks.
Blockframe Labs Content Team
The content team at BlockFrame Labs writes about AI systems and services we actually ship: automation pipelines, agent infrastructure, and the web engineering behind them. Every guide comes from a system running in production.
Work with us
This blog runs itself. Our Blog OS publishes daily from Notion with zero manual edits, and we build the same system for clients.