D-MEM: Dopamine-Gated Agentic Memory via Reward Prediction Error Routing
Organizations: UC San Diego · Carnegie Mellon University
Abstract
Autonomous LLM agents require structured long-term memory, yet current "append-and-evolve" systems like A-MEM face O(N^2) write-latency and excessive token costs. We introduce D-MEM (Dopamine-Gated Agentic Memory), a biologically inspired architecture that decouples short-term interaction from cognitive restructuring via a Fast/Slow routing system based on Reward Prediction Error (RPE). A lightweight Critic Router evaluates stimuli for Surprise and Utility. Routine, low-RPE inputs are bypassed or cached in an O(1) fast-access buffer. Conversely, high-RPE inputs, such as factual contradictions or preference shifts, trigger a "dopamine" signal, activating the O(N) memory evolution pipeline to reshape the agent's knowledge graph. To evaluate performance under realistic conditions, we introduce the LoCoMo-Noise benchmark, which injects controlled conversational noise into long-term sessions. Evaluations demonstrate that D-MEM reduces token consumption by over 80%, eliminates O(N^2) bottlenecks, and outperforms baselines in multi-hop reasoning and adversarial resilience. By selectively gating cognitive restructuring, D-MEM provides a scalable, cost-efficient foundation for lifelong agentic memory.
Figures & tables
| Method | Overall F1 | Single | Temp | Open | Multi | Adv | Total Tokens |
|---|---|---|---|---|---|---|---|
| A-MEM (Synchronous) | 0.336 | 0.208 | 0.408 | 0.111 | 0.365 | 0.388 | 1,648K |
| D-MEM (Ours) | 0.369 | 0.246 | 0.440 | 0.085 | 0.412 | 0.412 | 319K (–80%) |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Overall | Single Hop | Temporal | Open Domain | Multi Hop | Adversarial |
|---|---|---|---|---|---|---|
| LoCoMo (Full Context) | — | 40.4 / 29.1 | 18.4 / 14.8 | 12.0 / 11.2 | 25.0 / 19.8 | 69.2 / 68.8 |
| ReadAgent | — | 9.7 / 7.7 | 12.6 / 8.9 | 5.3 / 5.1 | 9.2 / 6.5 | 9.8 / 9.0 |
| MemoryBank | — | 6.6 / 5.2 | 9.7 / 7.0 | 5.6 / 5.9 | 5.0 / 4.8 | 7.4 / 6.5 |
| MemGPT | — | 41.0 / 34.3 | 25.5 / 19.4 | 9.2 / 7.4 | 26.7 / 17.7 | 43.3 / 42.7 |
| A-MEM | 35.94 | 44.7 / 37.1 | 45.9 / 36.7 | 12.1 / 12.0 | 27.0 / 20.1 | 50.0 / 49.5 |
| D-MEM (ours) | 37.4 / 31.2 | 21.6 / 16.4 | 43.4 / 12.1 | 10.4 / 33.7 | 42.7 / 31.9 | 43.1 / 42.5 |
| Method | Overall | Single | Temp | Open | Multi | Adv | Skip Rate | Total Tokens |
|---|---|---|---|---|---|---|---|---|
| D-MEM-v1 (Linear) | 0.334 | 0.235 | 0.434 | 0.110 | 0.354 | 0.354 | 9.6% | 489K |
| D-MEM-v2 (Strict) | 0.291 | 0.172 | 0.338 | 0.081 | 0.327 | 0.341 | 68.5% | 497K |
| D-MEM-v3 (Safety Net) | 0.324 | 0.235 | 0.455 | 0.101 | 0.345 | 0.312 | 41.1% | 531K |
| D-MEM-v4 (Final) | 0.369 | 0.246 | 0.440 | 0.085 | 0.412 | 0.412 | 41.1% | 319K |
Agent Memory Management
Agent memory management studies how AI agents store, update, retrieve, compress, and forget information across long-running tasks.
See all 446 papers