Remembering Is Not Enough: Refining Memories and Learning When to Use Them in Multi-Agent Systems
Organizations: School of Computer Science and Technology, East China Normal University, Shanghai · Ocean University of China · Tongji University · Information Engineering University
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.
Figures & tables
| Method | AutoGen | CAMEL | MacNet | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Trivia | Pop | Kod | PDDL | Avg. | Trivia | Pop | Kod | PDDL | Avg. | Trivia | Pop | Kod | PDDL | Avg. | |
| QA | QA | Code | QA | QA | Code | QA | QA | Code | |||||||
| No-memory | 60.31 | 38.78 | 68.40 | 16.39 | 45.97 | 56.96 | 32.38 | 70.70 | 22.10 | 45.54 | 53.77 | 24.89 | 70.40 | 20.73 | 42.45 |
| ChatDev | 57.34 | 33.24 | 68.55 | 15.22 | 43.59 | 57.55 | 36.78 | 68.20 | 18.58 | 45.28 | 57.29 | 35.33 | 70.50 | 15.85 | 44.74 |
| MetaGPT | 60.35 | 33.80 | 70.05 | 11.95 | 44.04 | 59.06 | 37.47 | 69.90 | 22.55 | 47.25 | 61.16 | 33.98 | 71.50 | 17.81 | 46.11 |
| Generative Agents | 59.65 | 40.37 | 70.90 | 13.94 | 46.22 | 57.63 | 35.32 | 70.65 | 17.29 | 45.22 | 59.89 | 43.39 | 71.15 | 16.81 | 47.81 |
| Enabled function | AutoGen | CAMEL | |||
|---|---|---|---|---|---|
| BLM | DMR | PDDL | KodCode | ||
| reuse | validation | Score | Score | ||
| 29.15 | – | 81.35 | – | ||
| 27.40 | 80.20 | ||||
| 26.31 | 79.50 | ||||
| 25.36 | 78.80 | ||||
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Symbol | Default |
| Shared effect assessment | ||
| Decision tolerance | ||
| Replay seed | – | |
| BLM and memory admission | ||
| Minimum cosine similarity | ||
| Retrieved candidates | ||
| (a) Content defect (AutoGen / PDDL) | |
|---|---|
| Owner | User proxy agent |
| Rule | Drop a ball at its target location only when it is currently being carried and the target location is reachable and valid . |
| Reuse | A later Gripper problem |
| Replay | |
| Effect | Picks up and drops the same ball repeatedly |
| Decision | Content ; delete the struck-through clause |
LLM Agent Memory
Large language model agent memory lets agents retain, organize, retrieve, and update information across interactions and long-running tasks.
See all 373 papers