MemoryBank: Enhancing Large Language Models with Long-Term Memory

Authors: Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, Yanlin Wang

Submitted to arXiv on 17 May. 2023
Abstract

Revolutionary advancements in Large Language Models have drastically reshaped our interactions with artificial intelligence systems. Despite this, a notable hindrance remains-the deficiency of a long-term memory mechanism within these models. This shortfall becomes increasingly evident in situations demanding sustained interaction, such as personal companion systems and psychological counseling. Therefore, we propose MemoryBank, a novel memory mechanism tailored for LLMs. MemoryBank enables the models to summon relevant memories, continually evolve through continuous memory updates, comprehend, and adapt to a user personality by synthesizing information from past interactions. To mimic anthropomorphic behaviors and selectively preserve memory, MemoryBank incorporates a memory updating mechanism, inspired by the Ebbinghaus Forgetting Curve theory, which permits the AI to forget and reinforce memory based on time elapsed and the relative significance of the memory, thereby offering a human-like memory mechanism. MemoryBank is versatile in accommodating both closed-source models like ChatGPT and open-source models like ChatGLM. We exemplify application of MemoryBank through the creation of an LLM-based chatbot named SiliconFriend in a long-term AI Companion scenario. Further tuned with psychological dialogs, SiliconFriend displays heightened empathy in its interactions. Experiment involves both qualitative analysis with real-world user dialogs and quantitative analysis with simulated dialogs. In the latter, ChatGPT acts as users with diverse characteristics and generates long-term dialog contexts covering a wide array of topics. The results of our analysis reveal that SiliconFriend, equipped with MemoryBank, exhibits a strong capability for long-term companionship as it can provide emphatic response, recall relevant memories and understand user personality.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Shared data, tool or method
    LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory
    Di Wu, Hongwei Wang, Wenhao Yu et al. · 2024 · Computation and Language · cited 861 times · AI summary available

    LongMemEval supplies a benchmark of questions and chat histories for measuring the long-term memory abilities that MemoryBank aims to provide.

    Abstract

    Recent large language model (LLM)-driven chat assistant systems have integrated memory components to track user-assistant chat histories, enabling more accurate and personalized responses. However, their long-term memory capabilities in sustained interactions remain underexplored. This paper introduces LongMemEval, a comprehensive benchmark designed to evaluate five core long-term memory abilities of chat assistants: information extraction, multi-session reasoning, temporal reasoning, knowledge updates, and abstention. With 500 meticulously curated questions embedded within freely scalable user-assistant chat histories, LongMemEval presents a significant challenge to existing long-term memor…

  2. Very close Another approach to the problem
    Memory Bear AI A Breakthrough from Memory to Cognition Toward Artificial General Intelligence
    De-Liang Wen, Ke Sun · 2025 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet

    Memory Bear proposes a cognitive-science-based architecture for LLM memory, addressing the sustained-dialogue and personalization limitations targeted by MemoryBank.

    Abstract

    Large language models (LLMs) face inherent limitations in memory, including restricted context windows, long-term knowledge forgetting, redundant information accumulation, and hallucination generation. These issues severely constrain sustained dialogue and personalized services. This paper proposes the Memory Bear system, which constructs a human-like memory architecture grounded in cognitive science principles. By integrating multimodal information perception, dynamic memory maintenance, and adaptive cognitive services, Memory Bear achieves a full-chain reconstruction of LLM memory mechanisms. Across domains such as healthcare, enterprise operations, and education, Memory Bear demonstrates …

  3. Very close Another approach to the problem
    Meta-Memory for Large Language Models
    Bin Liang, Cai Ke, Run-Cong Zhao et al. · 2026 · IEEE Transactions on Audio, Speech, and Language Processing · cited 5 times · Not summarized yet

    Meta-Memory adds self-monitoring and reflective memory management to LLMs for long-term conversations, while MemoryBank uses memory updates inspired by forgetting and reinforcement.

    Abstract

    Integrating memory components into large language models (LLMs) can improve the generation quality for long-term conversations. However, existing memory management methods largely overlook the cognition and regulation of the memory process, lacking the capability to dynamically manage and utilize memory on demand. To address this challenge, this paper approaches Meta-Memory for Memory Management (<bold>M<inline-formula><tex-math notation="LaTeX">$^{4}$</tex-math></inline-formula></bold>), a novel paradigm that equips LLMs with the ability for self-monitoring and self-reflective memory management. In long-term conversations, where dialogue history accumulates continuously, the meta-memory cap…

  4. Very close Another approach to the problem
    Improving Long-Term Conversational Abilities of Large Language Models Through Behavior Memory
    Haoyu Xiao · 2024 · 2024 4th International Conference on Electronic Information Engineering and Computer Science (EIECS) · cited 1 time · Not summarized yet

    Behavior Memory extracts, stores, and retrieves behavioral information from dialogue to improve long-term open-domain conversation, a different memory mechanism from MemoryBank.

    Abstract

    Although Large Language Models (LLMs) have achieved significant results in the field of natural language processing, there are still challenges in handling long-term memory in open domain dialogue systems. Processing lengthy conversation histories requires a significant amount of computational resources, which limits the input window of LLM and makes it unable to effectively handle tasks that require long-term memory. To this end, this article proposes a memory enhancement mechanism based on behavioral memory, which enhances the long-term memory ability of LLM by extracting, storing, and retrieving key behavioral information from conversations through association. This method does not requir…

  5. Very close Another approach to the problem
    Personalizing Chatbot Communication with Associative Memory
    Kirill Soloshenko, Alexandra D. Shatalina, E. Kornilova et al. · 2025 · Proceedings of the Student Research Workshop Associated with RANLP 2021 · cited 1 time · Not summarized yet

    Associative Memory uses a database and a multi-agent pipeline to personalize chatbot communication across extended interactions, as MemoryBank does with evolving user memories.

    Abstract

    Despite the significant progress made by large language models (LLMs) over the past few years, they are still limited in context and struggle to retain user-specific information over extended interactions, which significantly affects their quality. While current research is focused on expanding the contextual window, our approach is aimed at effectively expanding the context through integrating a database of associative memory into the natural language processing (NLP) pipeline. In order to improve long-term memory and personalization we have utilized methods close to Retrieval-Augmented Generation (RAG). We implement a multi-agent consecutive pipeline in order to improve the quality of pers…

  6. Very close Another approach to the problem
    Personalized Large Language Model Assistant with Evolving Conditional Memory
    Rui-Feng Yuan, Shichao Sun, Yong-Qi Li et al. · 2023 · International Conference on Computational Linguistics · cited 39 times · Not summarized yet

    Evolving Conditional Memory stores and retrieves dialogue-derived records for tailored assistant responses, addressing the personalization goal of MemoryBank through a different framework.

    Abstract

    With the rapid development of large language models, AI assistants like ChatGPT have become increasingly integrated into people's works and lives but are limited in personalized services. In this paper, we present a plug-and-play framework that could facilitate personalized large language model assistants with evolving conditional memory. The personalized assistant focuses on intelligently preserving the knowledge and experience from the history dialogue with the user, which can be applied to future tailored responses that better align with the user's preferences. Generally, the assistant generates a set of records from the dialogue dialogue, stores them in a memory bank, and retrieves relat…

  7. Very close Another approach to the problem
    RecallM: An Adaptable Memory Mechanism with Temporal Understanding for Large Language Models
    Brandon Kynoch, Hugo Latapie, Dwane van der Sluis · 2023 · Artificial Intelligence · cited 6 times · AI summary available

    RecallM proposes adaptable, temporally aware long-term memory for LLMs, whereas MemoryBank emphasizes selective retention through an Ebbinghaus-inspired update mechanism.

    Abstract

    Large Language Models (LLMs) have made extraordinary progress in the field of Artificial Intelligence and have demonstrated remarkable capabilities across a large variety of tasks and domains. However, as we venture closer to creating Artificial General Intelligence (AGI) systems, we recognize the need to supplement LLMs with long-term memory to overcome the context window limitation and more importantly, to create a foundation for sustained reasoning, cumulative learning and long-term user interaction. In this paper we propose RecallM, a novel architecture for providing LLMs with an adaptable and updatable long-term memory mechanism. Unlike previous methods, the RecallM architecture is part…

  8. Very close Review Cites this paper
    Learning to Remember: Advances in Memory Mechanisms for Large Language Models
    Chen Han, Hong-Chew Yu, Meng-Yue Wu et al. · 2026 · Not summarized yet

    Learning to Remember surveys LLM memory mechanisms by lifecycle, storage substrate, and system role, placing approaches such as MemoryBank in a broader taxonomy.

    Abstract

    Memory has become a central mechanism for extending large language models (LLMs) beyond fixed context windows, stateless interaction, and static parametric knowledge. This survey organizes the literature around three complementary dimensions: the life cycle of memory, the storage substrate, and the system role that memory plays in LLM-based agents, while using cognitive-science-inspired memory concepts as a lightweight conceptual motivation rather than as a separate technical contribution or implementation family. On this basis, we distinguish three mechanism families: nonparametric memory, where information is stored outside model parameters in text, graph, multimodal, or database-like stru…

Prior work it builds on

  1. Very close Groundwork for this paper
    Long Time No See! Open-Domain Conversation with Long-Term Persona Memory
    Xinchao Xu, Zhibin Gou, Wenquan Wu et al. · 2022 · Findings · cited 167 times · Not summarized yet

    Long Time No See introduces a long-term persona-memory dialogue task and system, and MemoryBank cites it while studying sustained personalized chatbot interaction.

    Abstract

    Most of the open-domain dialogue models tend to perform poorly in the setting of long-term human-bot conversations. The possible reason is that they lack the capability of understanding and memorizing long-term dialogue history information. To address this issue, we present a novel task of Long-term Memory Conversation (LeMon) and then build a new dialogue dataset DuLeMon and a dialogue generation framework with Long-Term Memory (LTM) mechanism (called PLATO-LTM). This LTM mechanism enables our system to accurately extract and continuously update long-term persona memory without requiring multiple-session dialogue datasets for model training. To our knowledge, this is the first attempt to co…

  2. Close Groundwork for this paper
    Beyond Goldfish Memory: Long-Term Open-Domain Conversation
    Jing Xu, A. Szlam, J. Weston · 2021 · Annual Meeting of the Association for Computational Linguistics · cited 415 times · Not summarized yet

    Beyond Goldfish Memory releases multi-session conversations and studies long-term dialogue models, providing prior work cited by MemoryBank on sustained interaction.

    Abstract

    Despite recent improvements in open-domain dialogue models, state of the art models are trained and evaluated on short conversations with little context. In contrast, the long-term conversation setting has hardly been studied. In this work we collect and release a human-human dataset consisting of multiple chat sessions whereby the speaking partners learn about each other’s interests and discuss the things they have learnt from past sessions. We show how existing models trained on existing datasets perform poorly in this long-term conversation setting in both automatic and human evaluations, and we study long-context models that can perform much better. In particular, we find retrieval-augme…

  3. Related Groundwork for this paper Used in depth by this paper
    Neural Turing Machines
    Alex Graves, G. Wayne, I. Danihelka · 2014 · arXiv.org · preprint, not peer reviewed · cited 2,765 times · Not summarized yet

    Neural Turing Machines established differentiable interaction between neural networks and external memory, an earlier memory approach cited by MemoryBank.

    Abstract

    We extend the capabilities of neural networks by coupling them to external memory resources, which they can interact with by attentional processes. The combined system is analogous to a Turing Machine or Von Neumann architecture but is differentiable end-toend, allowing it to be efficiently trained with gradient descent. Preliminary results demonstrate that Neural Turing Machines can infer simple algorithms such as copying, sorting, and associative recall from input and output examples.

  4. Related Shared data, tool or method Used in depth by this paper A method it uses
    GLM-130B: An Open Bilingual Pre-trained Model
    Ao-Han Zeng, Xiao Liu, Zheng-Xiao Du et al. · 2022 · International Conference on Learning Representations · cited 1,320 times · AI summary available

    GLM-130B introduces the open bilingual model family that MemoryBank identifies as one type of model its mechanism can accommodate.

    Abstract

    We introduce GLM-130B, a bilingual (English and Chinese) pre-trained language model with 130 billion parameters. It is an attempt to open-source a 100B-scale model at least as good as GPT-3 (davinci) and unveil how models of such a scale can be successfully pre-trained. Over the course of this effort, we face numerous unexpected technical and engineering challenges, particularly on loss spikes and divergence. In this paper, we introduce the training process of GLM-130B including its design choices, training strategies for both efficiency and stability, and engineering efforts. The resultant GLM-130B model offers significant outperformance over GPT-3 175B (davinci) on a wide range of popular …

  5. Related Review
    A Survey of Large Language Models
    W. Zhao, Kun Zhou, Junyi Li et al. · 2023 · Frontiers Comput. Sci. · cited 5,222 times · AI summary available

    A Survey of Large Language Models reviews LLM techniques and applications broadly, and MemoryBank cites it for background on the field.

    Abstract

    The rapid evolution of large language models (LLMs) has driven a transformative shift in artificial intelligence (AI), reshaping both research paradigms and practical applications. Distinguished from their predecessors by unprecedented scale and advanced capabilities, LLMs necessitate new frameworks for understanding their development, behavior, and societal impact. This survey systematically reviews recent advancements in LLM techniques across four key dimensions: (1) pre-training methodologies, which establish core model capabilities through large-scale self-supervised training, architectural innovations, and data curation strategies; (2) post-training techniques, including supervised fine…

Papers that cite it

  1. Very close Another approach to the problem
    Recursively Summarizing Enables Long-Term Dialogue Memory in Large Language Models
    Qingyue Wang, Liang Ding, Yanan Cao et al. · 2023 · Neurocomputing · cited 113 times · Not summarized yet

    Recursively Summarizing builds dialogue memories by repeatedly summarizing prior memory and new contexts, another approach to the long-term recall targeted by MemoryBank.

    Abstract

    Recently, large language models (LLMs), such as GPT-4, stand out remarkable conversational abilities, enabling them to engage in dynamic and contextually relevant dialogues across a wide range of topics. However, given a long conversation, these chatbots fail to recall past information and tend to generate inconsistent responses. To address this, we propose to recursively generate summaries/ memory using large language models (LLMs) to enhance long-term memory ability. Specifically, our method first stimulates LLMs to memorize small dialogue contexts and then recursively produce new memory using previous memory and following contexts. Finally, the chatbot can easily generate a highly consist…

  2. Very close Another approach to the problem Uses this paper in depth
    MemFit: Efficient Long-Term Agentic Memory
    Mitchell Piehl, Mu-Chao Ye · 2026 · cited 1 time · Not summarized yet

    MemFit stores conversation turns verbatim and indexes them with segment summaries to reduce memory-operation cost, differing from MemoryBank's selective memory updates.

    Abstract

    Long-term memory systems for large language models (LLMs) have gained popularity for extending reasoning capabilities across applications. Current memory systems rely on LLM agents to organize and consolidate memory, resulting in costly, inefficient write operations. To address this limitation, we propose MemFit, a long-term memory system for conversational agents that reduces the cost and latency of memory operations. Unlike existing systems that rely on expensive LLM calls for memory construction or discard surface-level details through compression, MemFit stores each turn verbatim in an append-only store with near-instantaneous, LLM-free insertion, indexing turns with segment summaries ra…

  3. Very close Another approach to the problem Uses this paper in depth
    Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents
    E. Jiang, Zhi Zhang, Yu-Chen Wu et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet

    Memory as a Controlled Process learns adaptive memory-management decisions for LLM agents, while MemoryBank specifies an Ebbinghaus-inspired update mechanism.

    Abstract

    Large Language Model (LLM) agents increasingly rely on external memory systems to accumulate experience across tasks. Yet nearly all existing approaches, from graph-structured memories to reflective insight stores, access memory through fixed, hand-designed heuristics. We argue that this static view of memory is a core bottleneck for agentic learning because optimal memory behavior is fundamentally context-dependent. The early stages of the tasks, benefit from minimal retrieval because memory is sparse; recurring goal types benefit from plan reuse rather than generic nearest-neighbor lookup; stuck agents benefit from re-retrieval with alternative queries; and across long task streams, the me…

  4. Very close Another approach to the problem Uses this paper in depth
    All-in-One Memory: Process-Rewarded Reinforcement Learning for Memory Agents
    Bing-Bing Wang, Jing-Jie Lin, Wei-Ming Qiao et al. · 2026 · Not summarized yet

    All-in-One Memory jointly evaluates memory writing, retrieval, and stopping decisions for long histories, addressing memory-agent performance through a different framework.

    Abstract

    Large language models increasingly rely on external memory to answer queries grounded in long-horizon histories such as multi-session dialogues and lengthy documents. However, existing memory methods often optimize retrieval and memory construction separately, without a shared reward space for evaluating search, writing, and stopping decisions. To address this, we propose All-in-One Memory (AiO-Mem), which organizes these operations as transitions over a shared evidence state and directly evaluates the semantic quality of each action in a unified reward space. AiO-Mem compiles heterogeneous histories into source-traceable multi-view events, providing a shared substrate for retrieval and memo…

  5. Close Another approach to the problem Uses this paper in depth
    LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models
    Xiang-Long Shi, Rui-Jie Yang, Si-Rui Zhao et al. · 2026 · Not summarized yet

    LSTMem separates accumulating history from memory readout using layered states in a frozen LLM, a distinct architecture for long-term memory.

    Abstract

    Large language models increasingly serve as long-horizon assistants and agents, where they must both accumulate information across interactions and make the relevant parts available when later requests depend on them. Existing compact online memories typically use a single persistent state both to accumulate history and to serve readout, so what the memory stores cannot be controlled separately from what it exposes to the current computation. We propose LSTMem, an LSTM-inspired online memory that instead equips each layer of a frozen LLM with two matrix-valued states: a cell state that accumulates history and a hidden state whose readouts correct the backbone's attention. Input and forget ga…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 2 November 2026.

The illustrated guide to the papers around a paper