[KongchangAI]
· 2 min read· 1,361 words

Failure Broadens, Success Refines: Dual-Polarity Memory Enables Continuous Evolution of Tool-Using Agents

Failure Broadens, Success Refines: Dual-Polarity Memory Enables Continuous Evolution of Tool-Using Agents

DualPM models successful and failed trajectories as dual-polarity procedural memory with periodic consolidation—failure broadens coverage, success streamlines execution.

The study proposes DualPM, a retrieval-free dual-polarity procedural memory workflow for continuously learning tool-using agents. It distills reusable operational experience from both successful and failed task trajectories and periodically consolidates memories under capacity constraints to prevent unbounded growth during long-term online operation. Online prequential evaluation under cross-domain streaming tasks shows a clear division of labor: failure memory broadens behavioral coverage, success memory streamlines execution paths and reduces overhead, and combining both yields dual benefits. DualPM avoids vector retrieval infrastructure, yielding a simpler and more stable pipeline, with portability validated on the external benchmark EvoMemBench.

Large language model agents are moving from passively executing instructions toward self-improvement from historical experience. One repeatedly validated path is procedural memory: distilling the operational steps and tool-call patterns accumulated from past task trajectories and reusing them in new tasks. But a key question has long been overlooked: do experiences from success and failure carry the same value?

A recent study centers on this question and proposes DualPM (Dual-Polarity Memory with Periodic Maintenance)—a retrieval-free memory workflow systematically validated on heterogeneous multi-domain tool-use task streams. The conclusion can be summed up in one sentence: failure broadens the boundary, success refines execution.

Overview of dual-polarity memory research

Success Memory and Failure Memory: Two Different Utilities

The researchers examined agents' continuous adaptation capability under conditions closer to real-world scenarios: task streams span multiple domains, environmental constraints differ, and tasks arrive sequentially in a streaming manner rather than in centralized batches. Under this setting, DualPM's core design has two points.

First, customizable reflection and procedural memory generation. From every task trajectory, whether ultimately successful or failed, reusable operational experience is distilled. Failed trajectories are equally valuable—they reveal which paths don't work and which tool combinations contain pitfalls.

Second, periodic memory consolidation. Under a given memory capacity constraint, memories are periodically compressed and merged to prevent memory size from growing unboundedly with the task stream. This is a necessary mechanism for long-term online operation; otherwise memory itself becomes a burden.

Through online prequential evaluation and fine-grained metrics, the study reveals the division of labor between the two types of memory: failure memory is better at broadening coverage, giving the agent more alternative paths when encountering new situations; success memory is better at streamlining execution flows, allowing completed task types to be finished with shorter paths and lower overhead. Combining the two yields both benefits simultaneously.

Procedural memory is a concept from cognitive science referring to skills and operational knowledge about "how to do" something, as distinct from declarative memory (factual knowledge about "what is"). In the context of LLM agents, it typically refers to reusable operation sequences, tool-call templates, and decision rules abstracted from historical task trajectories, rather than semantic indexing of task content. The core characteristic of procedural memory is that it can be directly invoked by the policy and manifested in behavioral form, so its quality directly determines the agent's execution efficiency and exploration breadth on new tasks.

Prequential evaluation (a contraction of predictive-sequential) is a standard paradigm for streaming learning evaluation: for each task arriving in sequence, the agent first makes a prediction or executes based on current memory, then receives real feedback and updates memory, and so on. Unlike batch training followed by unified testing, prequential evaluation can characterize a model's continuous adaptation capability when the task distribution changes over time, and makes it easy to observe whether memory updates bring cumulative gains or degradation.

What a Retrieval-Free Memory Workflow Means

A notable feature of DualPM is that it is retrieval-free, i.e., it does not rely on explicit vector retrieval or similarity matching to invoke memory. This choice has practical engineering significance.

Retrieval-based memory typically requires maintaining an embedding index, designing similarity thresholds, and facing trade-offs between retrieval latency and recall quality as task scale grows. DualPM instead directly generates and maintains procedural memory at the trajectory level, combined with periodic consolidation to control capacity; the overall pipeline is simpler and easier to keep stable across heterogeneous task streams.

It should be noted that the paper currently provides evidence at the methodology and evaluation level; engineering implementation details and computational overhead data are not elaborated in the source material.

Retrieval-augmented generation (RAG)-style memory mechanisms typically encode historical experience as vectors stored in an index, and when a task arrives, relevant entries are recalled via similarity retrieval. This paradigm depends on embedding model quality, index structure, and recall thresholds, and is prone to recall drift and rising latency when task domains are heterogeneous and memory entries keep growing. DualPM's retrieval-free design abandons this intermediate layer, instead directly producing structured procedural memory at the trajectory generation stage and performing compression and merging at fixed intervals. The cost is that memory invocation relies more on the policy's own context organization capability; the benefit is a shorter pipeline and more predictable behavior.

Cross-Domain Generalization and External Validation on EvoMemBench

Further analysis in the study points to two directions of capability. The first is cross-domain memory generalization: procedural experience accumulated in one domain can transfer and be useful in tasks from other domains. The second is continuous memory adaptation: as the task stream progresses, memory itself keeps updating without degrading.

On the external evaluation set EvoMemBench, DualPM demonstrates portability and effectiveness, validated as a general long-term procedural memory method. This is worth noting—performance on a third-party benchmark is more convincing than results within a single experimental setting. However, the source material does not disclose specific benchmark scores or comparison baselines, so only qualitative descriptions of directional conclusions can be made here.

Illustration of research sources

EvoMemBench is an evaluation benchmark for agents' long-term memory capability, designed to emphasize tasks evolving in a streaming manner and dynamically changing domain distributions, in order to test memory mechanisms' performance in continuous adaptation rather than accuracy on single-turn static tasks. The value of such benchmarks lies in partially decoupling "whether memory is actually effectively utilized" from "the model's own capability," making different memory workflows comparable. It should be noted that leading on a benchmark does not automatically equate to advantages in real deployment; task distribution, tool sets, and feedback noise all affect transfer effectiveness.

Implications for Agent Engineering Practice

This work offers several directly actionable references for building long-running agent systems.

Don't discard failed trajectories. Most agent frameworks only write successful execution sequences into memory, filtering failures out as noise. DualPM's conclusion suggests that failure experience has a unique role in expanding behavioral coverage, especially for agents that need to explore diverse task types.

The value of success experience lies in compressing paths. The role of success memory is not to make the agent "know more" but to make it "do more economically." For latency-sensitive or cost-sensitive scenarios, this type of memory has more direct value.

Memory needs a maintenance mechanism. Whether memory comes from success or failure, long-term accumulation leads to capacity bloat. Periodic consolidation is not optional but a prerequisite for continuous online operation.

The dual-polarity design can be implemented at low cost. Since it does not depend on retrieval infrastructure, the dual-polarity memory approach can be integrated into existing agent frameworks with minimal modification.

Questions Yet to Be Answered

Based on the scope covered by the source material, this study leaves several gaps. How to set the specific threshold for memory capacity, what the optimal frequency of periodic consolidation is, and whether the ratio of success to failure memory needs to be dynamically adjusted with task distribution—none of these are answered at the summary level. In addition, the boundary conditions of cross-domain transfer—which domains' procedural memories can transfer to each other and which cannot—also require more detailed experimental support.

Overall, the core insight DualPM offers is clear enough: in continuously learning tool-using agents, success and failure are not homogeneous signals; modeling them as two polarities separately and maintaining them periodically is a simple yet effective path.

One-line Summary

DualPM models successful and failed trajectories separately as dual-polarity procedural memory and consolidates them periodically—failure broadens coverage, success streamlines execution.

Paragraph Summary

The study proposes DualPM—a retrieval-free dual-polarity procedural memory workflow for continuously learning tool-using agents. It distills reusable operational experience separately from successful and failed task trajectories, and uses periodic memory consolidation to compress and merge memories under capacity constraints, preventing unbounded memory growth during long-term online operation. Under cross-domain streaming task settings, online prequential evaluation shows a clear division of labor between the two types of memory: failure memory broadens behavioral coverage, while success memory streamlines execution paths and reduces overhead; combining the two yields both benefits simultaneously. DualPM does not rely on vector retrieval infrastructure, resulting in a simpler pipeline that is more stable across heterogeneous task streams, and its portability and generality are validated on the external benchmark EvoMemBench.

#procedural memory#LLM agents#dual-polarity memory#DualPM#EvoMemBench#continuous learning#tool-use agents#retrieval-free memory
Share:

Related articles