"My agent understands me better": Integrating Dynamic Human-like Memory Recall and Consolidation in LLM-Based Agents

Yuki Hou, Haruki Tamoto and Homei Miyashita

Abstract

In this study, we propose a novel human-like memory architecture designed for enhancing the cognitive abilities of large language model (LLM)-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.

Venue
CHI 2024
Volume
Extended Abstracts of the CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3613905.3650839
PDF
https://dl.acm.org/doi/pdf/10.1145/3613905.3650839
Anthology ID
2024.chi-ea.356

Cite

@inproceedings{hou-etal-2024-my,
    title = {{"My agent understands me better": Integrating Dynamic Human-like Memory Recall and Consolidation in LLM-Based Agents}},
    author = {Yuki Hou and Haruki Tamoto and Homei Miyashita},
    booktitle = {Extended Abstracts of the CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400703317},
    year = {2024},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3613905.3650839},
    url = {https://doi.org/10.1145/3613905.3650839},
    abstract = {In this study, we propose a novel human-like memory architecture designed for enhancing the cognitive abilities of large language model (LLM)-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.}
}