arXiv:2611.26361cs.AINov 2026

Manuscript Offprint

arXiv:2611.26361

How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM Agents

K. R. Jayaram, Vatche Isahagian, Aswath Vaithinathan Aravindan, Vinod Muthusamy, Punleuk Oum, Gaodan Fang, Michal Ulewicz, Gegi Thomas, Evelyn Duesterwald

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents on long-horizon tasks fail in recurring, procedural ways. They mis-paginate an API, resolve the wrong entity, or answer when no answer was asked. We built a pipeline that lets an agent learn from its own history. It first mines short lessons from the agent’s own trajectories, one to three per episode. It then consolidates those lessons into a smaller set of guidelines, where each guideline records how many lessons it merged. At inference the agent receives either all guidelines or a selected subset. The pipeline ships in the open-source altk-evolve library and is deployed in IBM’s CUGA agent and watsonx Orchestrate platform. We report what we learned building, measuring, and productizing it. Our primary instrument is the AppWorld benchmark, across models spanning 40–92% baseline task completion. The central finding is that 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 gains +9.5 points of task completion and +16.1 points of scenario completion with its full 191-guideline set. A weak model gains less from the same full set than from a small selected subset. gpt-oss-120b starts at 39.9% task completion. It reaches 51.2% with all 199 of its guidelines but 55.4% (mean of two runs) with a selected subset of about 29. Around that result we report what went wrong: a high-support guideline that backfired, provenance silently dropped during consolidation, a swallowed API error that failed every task while producing a plausible log, and a baseline confound that nearly produced a misleading comparison with a prior method. We distill these into recommendations for teams deploying agent memory.

IBM

Introduction

Agents built on large language models fail on realistic multi-step tasks in a distinctive way. We read hundreds of trajectories of IBM’s CUGA agent and of the AppWorld reference agent. The failures are rarely knowledge gaps. The model knows the API, yet it mis-paginates it. It knows the user has contacts, yet it resolves the wrong one. It knows how to return an answer, yet it returns one when nothing was asked. These are procedural lapses, and they recur. That makes them look learnable from the agent’s own history.

That observation is now widely shared. Recent systems let an agent write notes about its experience and read them back later. Examples include ExpeL (Zhao et al. 2024), Agentic Context Engineering (ACE) (Zhang et al. 2026), and reflective memory in generative agents (Park et al. 2023). In products, Anthropic’s “dreaming” consolidates memory for managed agents (Anthropic 2026). What remains scarce is an account of what happens when such a system is built, measured carefully, and shipped.

This paper is that account. Our pipeline has three stages. It first extracts lessons from the agent’s own trajectories: short, imperative notes about what to do differently, one to three per episode. It then consolidates those lessons into guidelines, a smaller set in which each guideline records how many lessons support it. Finally, it delivers guidelines to the agent at inference, either all of them or a selected subset. The pipeline is part of the open-source altk-evolve library (AgentToolkit 2026). It is deployed in IBM products, including the CUGA agent and the watsonx Orchestrate platform. To measure it we used AppWorld (Trivedi et al. 2024). AppWorld offers three things a deployment needs and a production log rarely provides: an authoritative pass/fail verdict per task, graded difficulty, and a clean train/dev/test separation.

The method is not the contribution of this paper. Several of its pieces have precedents, which we credit below. The contribution is what we learned deploying it across models from 40% to 92% baseline task completion. In the spirit of this track, we focus on what went wrong:

  • The right amount of memory is a property of the model. A strong model keeps improving as guidelines are added. A weak model gains more from a small, selected subset than from the same full set (Insight 1).
  • Compressing memory to a tidy checklist discards most of its value. The value lives in one-off, situational lessons (Insight 2).
  • Selection is only possible if provenance survives consolidation. During productization it silently did not, twice (Insight 3).
  • A frequently derived guideline can still be wrong. Support measures recurrence, not correctness (Insight 4).
  • Run-to-run noise on a fixed configuration is large enough to fabricate a “win” (Insight 5).
  • Comparing memory systems across different agent scaffolds nearly produced a misleading headline (Insight 6).
  • Silent failures cost more calendar time than any modeling problem: a swallowed HTTP error, an idle-dropped connection, and a write hook that never fired (Insight 7).

We close with the practices we now apply and with a section on deployment in IBM’s products. That section reports CUGA benchmark results re-collected after the write-path bug described in Insight 7, with GPT-4.1 and GLM-5.3-Flash, and a qualitative example from watsonx Orchestrate.