How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM Agents: what it means for business leaders

IBM reports what it learned shipping a memory pipeline that lets agents learn from their own runs, and finds that the right amount of memory depends on how capable the model is.

1. What the method is

The paper describes a three-stage memory pipeline that lets an LLM agent learn from its own run history, and reports what IBM learned shipping it. The pipeline mines one to three short imperative lessons from each recorded trajectory, consolidates near-duplicate lessons into guidelines that each record how many lessons they merged, and at inference gives the agent either every guideline or a selected subset. It ships in the open-source altk-evolve library and runs in IBM's CUGA agent and the watsonx Orchestrate platform. The authors say plainly that the method is not the contribution, since most pieces have precedents. The contribution is the deployment evidence, and its central finding is that the right amount of memory depends on the model: a strong model keeps improving as guidelines are added, while a weak one does better with a small selected subset than with the full set.

2. Why the method was developed

Agents on multi-step tasks fail in recurring procedural ways rather than from missing knowledge: they mis-paginate an API, resolve the wrong contact, or return an answer when none was asked. Because the lapses repeat, they look learnable from the agent's own logs, and systems such as ExpeL, ACE and Anthropic's dreaming already let agents write notes and read them back. What was missing was a careful account of building, measuring and shipping such a system. Two naive designs fail. Raw lessons pile up as near-duplicates, so retrieval slots fill with copies of one lesson and distinct guidance is crowded out. Asking a model to compress memory into a tidy checklist fails the other way: the first consolidation prompt produced twelve well-written rules that delivered under a third of the gain of the full set, because it discarded lessons that occurred only once.

3. Who should care

Teams building or operating agents are the first audience, because the memory setting is now a per-model configuration choice and not a feature to switch on. Whoever owns inference spend should care: injected guidelines are re-sent on every reasoning step, so the full set raised tokens per task by 78 percent on one model, while retrieval held cost within about 5 percent of baseline on another. Evaluation and quality leads should note that run-to-run noise was large enough to fabricate a win. Owners of workflows with irreversible side effects, such as finance or insurance claims, have a direct stake, since the production example concerns an assistant that called a submission tool twice. Anyone choosing between a cheaper and a stronger model should know that memory converts near-misses and does not lift a model over tasks it cannot do.

4. How the method works

Every trajectory from the training and development runs is kept, success or failure, and the outcome label comes from the task evaluator, never the model's self-report. An LLM writes one to three lessons per trajectory. Consolidation embeds the lessons, clusters near-duplicates, and has an LLM merge only within a cluster and only when following one lesson is equivalent to following the other. Each guideline carries a support count, and an enforced invariant makes total support equal the number of raw lessons; anything the model fails to cover passes through unchanged. For DeepSeek-V3.2, 290 lessons became 191 guidelines, 144 of them with support one. Delivery either injects the set statically or always includes a high-support core and adds the top few guidelines whose source task resembles the current one. The agent's own model does the extraction and consolidation, with no teacher model or human labels.

5. How it was evaluated

The main instrument is AppWorld, which simulates nine applications behind 457 APIs and has 750 tasks solved by writing and running Python. The authors use the 168-task test_normal split throughout and the 417-task test_challenge split in places, with the benchmark's reference ReAct code agent. They report task completion, the share of tasks passing all checks, and the stricter scenario completion, where every variant of a scenario must pass. Eight models were baselined and six ran with memory mined only from the train and dev splits. Because no held-out split remained, configurations were compared directly on the test set, so the authors also report a rule fixed in advance: inject everything. Most results are single runs. ACE was rerun in-house as the comparison. Product checks used CUGA with GPT-4.1 on AppWorld and the tau-bench retail split over three trials, and GLM-5.3-Flash with two runs per arm.

6. How it performed

With its full 191 guidelines DeepSeek-V3.2 rose from 79.8 to 89.3 percent task completion and from 64.3 to 80.4 on scenarios, at 78 percent more tokens per task. The weak gpt-oss-120b went from 39.9 to 51.2 with all 199 guidelines but reached 55.4 with about 29 selected, at near-baseline cost. GLM-5 did not move. Against ACE the lift was comparable, at roughly 40 percent of the tokens on DeepSeek and one-seventh on the weak model. In CUGA, GLM-5.3-Flash went from 87.8 to 93.2 for 36 percent more tokens. The limits: differences under about five tasks are noise, the pipeline has no correctness or recency signal, and a high-support pagination guideline caused a regression until reworded by hand. Our call is to pilot it on one agent, with repeated runs and human review of guidelines, and not to run it unattended. (Source: arXiv 2611.26361, 2026)

← Back to dossier index