q-bio.NCMar 15, 2026

D-MEM: Dopamine-Gated Agentic Memory via Reward Prediction Error Routing

Authors: Yuru Song, Qi Xin

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

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. D-Mem: A Dual-Process Memory System for LLM Agents

    Mar 19, 2026Zhixing You, Jiachen Yuan, Jason CaiAgent Memory ManagementMemory-Augmented Language Model Agents

  2. MemFit: Efficient Long-Term Agentic Memory

    Oct 1, 2026Mitchell Piehl, Muchao YeLLM Agent MemoryPersistent Memory for Language Models