arXiv:2610.36652cs.AIOct 2026

Manuscript Offprint

arXiv:2610.36652

Remembering Is Not Enough: Refining Memories and Learning When to Use Them in Multi-Agent Systems

Yipeng Hao, Yuxuan Cai, Wenkai Ji, Jie Zhou, Liyang Yu, Qin Chen, Zhiguo Yan, Shulei Zheng, Liang He

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

ABSTRACT

Memory helps LLM-based multi-agent systems reuse experience, but stored advice can be flawed or applied in the wrong situation. Team-level success or failure alone cannot reliably show whether a memory needs correction or should not have been used. We propose DISCERNMEM, a training-free framework that improves both memory quality and memory use. To improve quality, Defect-Aware Memory Refinement (DMR) compares team executions with a single memory and with no memory, diagnoses rule defects, and tests repairs on current and earlier tasks to guard against losing previously useful behavior. To guide appropriate use, Boundary-Learning Meta-Memory (BLM) records each memory's past uses and effects, learning when its owner role should apply or avoid it based on task context and incoming messages. Together, these components help teams correct flawed experience while retaining useful rules that were applied incorrectly. Experiments with Qwen3-4B-Instruct-2507 on four benchmarks show that DISCERNMEM achieves the highest average score on AutoGen, CAMEL, and MacNet, exceeding the strongest reported baselines by 0.51–4.32 points. It leads on code generation and symbolic planning across all three systems, including a PDDL score of 37.71 versus 28.48 on CAMEL.

1 Introduction

Persistent memory allows large language model (LLM) agents to reuse experience without changing model parameters. Generative Agents (Park et al., 2023) retains observations and reflections to guide behavior, while Reflexion (Shinn et al., 2023) stores feedback-derived lessons for subsequent trials. In multi-agent systems such as AutoGen (Wu et al., 2024) and CAMEL (Li et al., 2023), memory offers a way to turn repeated collaboration into reusable knowledge for individual roles. However, accumulating experience is not sufficient: a previously useful rule can become harmful under different conditions. Reliable adaptation therefore requires learning both which memories are useful and when they should be applied.

Recent work advances memory organization, refinement, and selection. G-Memory (Zhang et al., 2025a) organizes collaborative experience into hierarchical graphs, while ConMem (Tan et al., 2026) coordinates structured strategy cards through their dependencies and conflicts. ReMe (Cao et al., 2026) combines procedural experience distillation, context-adaptive reuse, and utility-based refinement; MemRL (Zhang et al., 2026b) learns memory utilities from environmental feedback to guide retrieval. Complementarily, Scope Before You Persist (Cheng et al., 2026) restricts validated skill edits to their originating task families to reduce cross-family interference. These advances motivate a finer-grained update question within multi-agent collaboration: when a role's memory harms team performance, should the behavioral rule be repaired, or should the conditions for using it be revised? Neither semantic relevance nor an aggregate utility score alone resolves this distinction.

∗^{*}Corresponding author.

Answering this question poses two coupled challenges. First, memory quality is obscured by joint outcomes. One agent may compensate for another's defective rule, while an otherwise helpful memory may be used in a task that fails elsewhere. Team-level success or failure therefore cannot directly establish the value of each memory, and a proposed repair must be checked beyond the latest failure. Second, applicability depends on the role's observable collaboration context. Similar tasks may require different behavior depending on upstream messages and established prerequisites. For example, a code-repair rule may apply to an implementation bug but not to a testing-environment failure. Indiscriminate rewriting can damage useful experience, whereas restricting a genuinely defective rule leaves its defect unresolved.

To address these challenges, we propose DISCERNMEM, a training-free framework that separates memory-content refinement from applicability learning. Each memory contains a behavioral rule owned by one role. Defect-Aware Memory Refinement (DMR) measures its isolated effect by replaying the full collaboration with only that memory supplied to its owner and with no memories supplied to any role, under matched configurations and seeds. For harmful reuse, applicability checks and trajectory-grounded diagnosis determine whether evidence supports a content repair. DMR proposes targeted edits and validates them on the triggering task and earlier tasks to guard against regressions. Boundary-Learning Meta-Memory (BLM) maintains, for each memory, a meta-memory of its reuse: observed contexts, measured effects, and previously validated corrections. It learns use and avoidance conditions from this evidence, expressed through information available to the owner before acting, including upstream messages. These conditions guide role-specific retrieval and application. Together, the modules support distinct responses to harmful reuse: repair an evidenced rule defect, revise an applicability boundary, or leave the rule unchanged when the diagnosis is inconclusive.

We evaluate DISCERNMEM on AutoGen, CAMEL, and MacNet (Qian et al., 2025), using Qwen3-4B-Instruct-2507 (Yang et al., 2025) as the shared frozen backbone. The evaluation spans TriviaQA (Joshi et al., 2017), PopQA (Mallen et al., 2023), KodCode (Xu et al., 2025b), and planning tasks written in the Planning Domain Definition Language (PDDL) from AgentBoard (Ma et al., 2024), with each task scored before its experience updates memory. Compared with the strongest reported baseline, DISCERNMEM improves the average score by 0.70, 0.51, and 4.32 points on the three architectures, respectively (Table 1). It achieves the best code-generation and planning scores on every architecture, including a 9.23-point PDDL gain on CAMEL (37.71 versus 28.48). On MacNet, it leads on all four benchmarks, while QA results on the other architectures remain mixed.

Our contributions are threefold:

• We frame reliable memory adaptation in multi-agent systems around distinguishing defective behavioral rules from contextually misapplied experience.

• We introduce DISCERNMEM, combining execution-grounded, retention-aware memory refinement with meta-memory that learns role-specific applicability from each memory’s reuse history.

• We evaluate across four benchmarks and three multi-agent architectures, obtaining the highest average scores on all three and consistent advantages on code generation and symbolic planning.

References (34)