"My agent understands me better": Integrating Dynamic Human-like Memory Recall and Consolidation in LLM-Based Agents
Yuki Hou, Haruki Tamoto, Homei Miyashita
TL;DR
The paper presents a human-like memory architecture for LLM-based dialogue agents that enables autonomous, cue-triggered recall and dynamic memory consolidation to address temporal cognition limitations in transformers. It formalizes memory recall with an exponential-decay framework, where recall probability $p(t)$ is driven by memory relevance $r$ and a time-dependent decay $a$, adjusted over repeated recalls via $g_n$ and $S(t)$, and uses a recall threshold $k$ (≈0.86) to trigger retrieval. Memories are stored in a vector-database with content and temporal context, and are retrieved to influence prompts, enabling context-aware and personalized responses while keeping prompt length compact. Experimental results show statistically significant improvements in recall accuracy over Generative Agents across 10 tasks, supported by both quantitative loss analyses and qualitative dialogue examples, demonstrating the potential of human-like temporal cognition in AI agents and guiding future work on efficiency, behavior-shift detection, and domain generalization.
Abstract
In this study, we propose a novel human-like memory architecture designed for enhancing the cognitive abilities of large language model based dialogue agents. Our proposed architecture enables agents to autonomously recall memories necessary for response generation, effectively addressing a limitation in the temporal cognition of LLMs. We adopt the human memory cue recall as a trigger for accurate and efficient memory recall. Moreover, we developed a mathematical model that dynamically quantifies memory consolidation, considering factors such as contextual relevance, elapsed time, and recall frequency. The agent stores memories retrieved from the user's interaction history in a database that encapsulates each memory's content and temporal context. Thus, this strategic storage allows agents to recall specific memories and understand their significance to the user in a temporal context, similar to how humans recognize and recall past experiences.
