arXiv:2611.04003cs.AINov 2026

Manuscript Offprint

arXiv:2611.04003

WASP-Mem: Let Agent Organize Procedural Memory. Human Spend Effort on Diagnosis

Peizhi Niu, Ge Shi, Vaibhav Gorde, Sarthak Ghosh, Christos Faloutsos, Min Cheng, Kevin Chen

ABSTRACT

LLM agents struggle to automate complex enterprise procedures because static, pre-built harness cannot capture proprietary policies, undocumented behaviors, or state-dependent recovery paths that surface only during execution. Procedural memory accrued from agent experience offers a training-free path to closing this gap—yet unlike episodic records or semantic facts, it must consolidate repeated successes and diagnosed failures into reusable actions and recovery strategies. We introduce WASP-Mem (Wiki-based Agent-Synthesized Procedural Memory), a nimble but effective method that distills execution traces and feedback into persistent, interlinked wiki pages, enabling continual agent learning. On TheAgent-Company benchmark, WASP-Mem raises the checkpoint pass rate by 4.6–6.1% over the strongest baseline we compared across three models while requiring 57–61% less storage. We further present a systematic controlled study spanning consolidation method, feedback type, trace ingestion scope, and refinement rounds. Our results reveal that prescriptive knowledge organization such as human defined schemas and explicit deduplication rules hurts performance rather than closing the procedural-knowledge gap. In contrast, human diagnosis converts failed traces into corrective knowledge and drives sustained improvement: a single round of human diagnosis outperforms four rounds of self-judgment by 7.0–10.9%. These findings point to a simple division of labor: let agents organize procedural memory, and invest human effort where it matters most—diagnosis.

1 INTRODUCTION

LLM agents are becoming practical interfaces for complex enterprise procedure automation: they plan, call tools, and modify shared services to complete multi-step workplace tasks (Xu et al., 2024; ang Gao et al., 2025). Their behavior is governed by a static agent harness, including the software implementation, system prompt, tools, environment interfaces, and fixed contexts supplied before deployment (Sumers et al., 2023). Yet the operational knowledge needed in a proprietary environment is intrinsically unforeseeable: under-documented APIs, organization-specific policies, strict output conventions, abnormal service states, and recovery paths often surface only during execution. In production, designers cannot know in advance which hidden condition will cause the next failure. Compounding this, unlike many coding or mathematical benchmarks where broadly available knowledge combines with compilers, tests, exact answers, or resettable sandboxes to provide cheap verification (Jimenez et al., 2023; Hendrycks et al., 2021), enterprise feedback depends on dedicated proprietary environments and organization-specific outcomes, making evaluation and diagnosis substantially more expensive (Xu et al., 2024).

Long-term memory offers a training-free way to close this residual knowledge gap without changing model parameters (Sumers et al., 2023; Du et al., 2025). Episodic memory preserves what happened in a particular rollout; semantic memory stores general facts or concepts. Procedural memory, in contrast, captures how to act under particular conditions (Tulving, 1972; Cohen & Squire, 1980;

∗^{*}Equal contribution.

Figure

(a) Procedural memory consolidation workflow.

(b) Memory-store size vs. checkpoint pass rate.

Figure 1: Workflow and key results. (a) The multi-round loop enables continual learning by consolidate agent execution traces and feedback into reusable procedural memory. (b) Memory-store size and checkpoint performance across consolidation methods and model variants. WASP-Mem achieves higher checkpoint pass rate with smaller memory store size.

Squire, 1992; Anderson, 1993). Its unit is not a transcript or isolated statement but reusable guidance specifying when a procedure applies, which actions and implementation details carry it out, what can fail, and how to recover. Consequently, procedural memory requires consolidation rather than naive accumulation: repeated successes should be merged, contradictions resolved, and diagnosed failures incorporated as missing preconditions or troubleshooting paths (Chen et al., 2024; Wang et al., 2024; Fang et al., 2025). Without such consolidation, raw sessions accumulate redundancy and noise without becoming accurate, robust knowledge that generalizes across recurring task instances.

Formally, this process is a multi-round execution–consolidation cycle (Figure 1a). During the execution phase, given a task, the agent retrieves zero or more relevant memory pages, acts on the environment through its tools, and records its actions and observations as a raw rollout trace. An evaluator or human then provides feedback based on the resulting environment state. During the consolidation phase, a method reads the current store alongside eligible traces and feedback, and abstracts them into reusable procedural knowledge: when a procedure applies, which actions to perform, what failures may arise, and how to diagnose and resolve them. The method then writes or merges this knowledge according to the memory system's representation and interaction interface. One execution pass followed by consolidation forms a round; only the updated memory store carries into the next round, while the model parameters and harness remain fixed.

Agent memory is a rapidly expanding design space, with new representations, extraction rules, retrieval mechanisms, and update procedures appearing continuously (Du et al., 2025; ang Gao et al., 2025; Xu et al., 2025; Ouyang et al., 2025; Hu et al., 2026; Wang et al., 2026). Choosing among overwhelming candidates resembles a classic Secretary Problem (Ferguson, 1989) with no known stopping rule, and exhaustive evaluation is infeasible. Practitioners instead need higher-level principles explaining which design dimensions matter, where human and system effort produces the greatest return, and which interventions merely add constraints or volume. We organize our study around three questions: (1) How should execution experience be consolidated into reusable procedural memory? (2) Which feedback, trace ingestion scope, and refinement choices most improve future execution? (3) Where should human effort be spent: prescribing knowledge organization upfront or diagnosing failures reactively?

Through controlled experiments and qualitative analysis, we derive actionable answers to these questions. Our contributions are threefold:

  • Nimble but Effective Consolidation Method. We introduce Wiki-based Agent-Synthesized Procedural Memory (WASP-Mem), an agentic procedural-memory organizer for training-free continual learning. It consolidates agent execution traces and human feedback into persistent, interlinked wiki pages, achieving both the most compact knowledge store and the strongest downstream task performance among all compared methods (Figure 1b).

  • Controlled Study. To determine what makes procedural-memory consolidation effective, we systematically vary consolidation method, feedback type, trace-ingestion scope, and refinement rounds across three models, identifying which interventions most improve future execution.

  • Learnings From a Bitter Lesson. We distill our findings into a design principle: build a general-purpose memory system, but let the agent self-organize its procedural knowledge. Imposing domain-specific structure on procedural knowledge at design time harms performance. Instead, human intervention is most effective when applied reactively—through failure diagnosis, targeted feedback, and iterative refinement.

References (39)