PreprintCited by 342Speech and dialogue systemsTopic ModelingNatural Language Processing Techniques

MemoryBank: Enhancing Large Language Models with Long-Term Memory

Open access
Zhong, Wanjun, Guo, Lianghong, Gao, Qiqi, Ye, He, Wang, Yanlin·2023·arXiv

Abstract

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.

AI snapshot

Written from the paper’s full text.

TL;DR

MemoryBank is proposed as a long-term memory layer for LLMs, combining memory storage, retrieval, and a forgetting-curve-inspired updating mechanism, and SiliconFriend is an AI companion built on it. In simulated and real-user evaluations, the ChatGPT-backed variant performed best overall, while open-source variants showed strong retrieval accuracy.

Key findings

  • MemoryBank stores detailed conversation records, hierarchical event summaries, and evolving user portraits; retrieval uses dense dual-tower indexing, and updating increases memory strength when a memory is recalled and resets elapsed time.
  • SiliconFriend was tuned on 38k psychological dialogues and integrated with MemoryBank across ChatGPT, ChatGLM, and BELLE.
  • In the quantitative test with 10 days of conversations, 15 virtual users, and 194 probing questions (97 English, 97 Chinese), SiliconFriend ChatGPT was the best overall variant: English retrieval 0.763, correctness 0.716, coherence 0.912, ranking 0.818; Chinese retrieval 0.711, correctness 0.655, coherence 0.675, ranking 0.758.
  • Open-source variants had high retrieval accuracy—English ChatGLM 0.809 and BELLE 0.814; Chinese ChatGLM 0.84 and BELLE 0.856—but lower scores on other metrics; ChatGLM and ChatGPT did better in English, while BELLE did better in Chinese.

Methods

  • Design: MemoryBank consists of memory storage, dual-tower dense retrieval with FAISS indexing, and an Ebbinghaus-inspired memory updater; SiliconFriend uses LoRA tuning (rank 16, 3 epochs, A100) on 38k psychological dialogues for open-source models, then integrates memory.
  • Data and evaluation: qualitative analysis used real-user dialogs, while quantitative analysis used a simulated memory storage of 10 days, 15 virtual users, and 194 probing questions; human annotators scored retrieval accuracy, response correctness, contextual coherence, and model ranking.
  • Models and retrieval: ChatGPT, ChatGLM (6.2B), and BELLE (7B LLaMA) were used; embeddings were MiniLM for English and Text2vec for Chinese via LangChain.

Limitations

  • The paper states that its memory updating model is exploratory and highly simplified, that real memory is more complex and influenced by many factors, and that forgetting curves differ across people and information types; it also notes that Ebbinghaus theory includes additional phenomena such as overlearning and material meaningfulness, but this work simulates only three listed rules.
  • Evident from the text: the quantitative evaluation relies on ChatGPT-simulated users and manually written probing questions rather than a long-term real deployment, and no statistical tests or comparisons against alternative memory mechanisms are reported.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2305.10250

Cites

21 of 21 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

2 of 11 cited sources checked · 0 supported · 0 flagged · accuracy not yet measured

  • Findingcitation

    MemoryBank is versatile in accommodating both closed-source models like ChatGPT and open-source models such as ChatGLM.

    “MemoryBank is versatile in accommodating both closed-source models like ChatGPT and opensource models such as ChatGLM.”
    • Also stated in: § 1 Introduction · plain
      “MemoryBank is versatile as it can accommodate both closed-source LLMs like ChatGPT and open-source LLMs like ChatGLM (Zeng et al., 2022) or BELLE (Yunjie Ji & Li, 2023).”
    Quote in the paperNot a substantial claim1 of 2 sources checked
    • cites Zeng et al., 2022 source

      The Introduction describes GLM-130B as an open model, and the Reproducibility section says its weights and code are open. Neither passage addresses MemoryBank, ChatGLM, or whether MemoryBank accommodates closed- and open-source models; searches for those terms found no supporting passage in our copy. (LLM, conf=0.76)

      Experimental — accuracy not yet measured
    • cites Yunjie Ji & Li, 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Premisenone given

    Memory-augmented networks have not fully addressed the need for a reliable and adaptable long-term memory function in LLMs.

    “Despite showing potential, these methods have not fully addressed the need for a reliable and adaptable long-term memory function in LLMs.”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites Meng & Huang, 2018 source
    • cites Graves et al., 2014 source

      The Abstract (p. 1) reports preliminary success on simple tasks, and §4 Experiments (p. 10) says the networks’ memory was reset between episodes. Neither passage assesses whether memory-augmented methods provide reliable, adaptable long-term memory in LLMs; a search for that limitation found no such assessment in our copy. (LLM, conf=0.75)

      Experimental — accuracy not yet measured
  • Findingown data

    SiliconFriend, equipped with MemoryBank, exhibits a strong capability for long-term companionship.

    “The results of our analysis reveal that Sili-conFriend, equipped with MemoryBank, exhibits a strong capability for long-term companionship”
    Quote in the paperSubstantial claim
  • Findingnone given

    MemoryBank is bilingual in both Chinese and English.

    “(2) Bilingual ability in both Chinese and English”
    Quote in the paperSubstantial claim
  • Findingown data

    SiliconFriend, equipped with MemoryBank, can understand user personality.

    “understand user personality”
    • Also stated in: § 1 Introduction · plain
      “understanding of user portraits”
    Quote in the paperSubstantial claim
  • May combine two claims. 17
  • Classified as probably not a substantial claim. 14
  • May combine two claims.

    Findingreasoning

    SiliconFriend's tuning with 38k psychological dialogues enables it to understand and respond to emotional cues effectively.

    “This tuning process enables SiliconFriend to understand and respond to emotional cues effectively, mimicking the empathy, understanding, and support of a human companion.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The 38k psychological conversations collected from online sources are suitable for tuning an LLM to provide empathetic support.
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingown data

    All three SiliconFriend variants answer correctly and coherently in the example memory probing question.

    “All these models answer correctly and coherently.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Findingnone given

    MemoryBank accommodates both open-source models such as ChatGLM and BELLE, and closed-source models like ChatGPT.

    “The versatility of MemoryBank is demonstrated through its accommodation of both open-source models such as ChatGLM and BELLE, and close-source models like ChatGPT.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    SiliconFriend BELLE and SiliconFriend ChatGLM have high performance in retrieval accuracy.

    “SiliconFriend BELLE and SiliconFriend ChatGLM also have high performance in retrieval accuracy, showing the generality and effectiveness of our MemoryBank mechanism for both open-source and closed-source LLMs.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    SiliconFriend ChatGLM and SiliconFriend ChatGPT deliver better results in English.

    “SiliconFriend ChatGLM and SiliconFriend ChatGPT deliver better results in English, while SiliconFriend BELLE excells in Chinese.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    MemoryBank is applicable with and without memory forgetting mechanism.

    “(3) Applicability with and without memory forgetting mechanism.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    Models' performance varies on different languages.

    “Models' performance varies on different languages.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    When a user expresses emotional difficulties and seeks assistance from SiliconFriend, SiliconFriend delivers empathetic responses along with constructive suggestions.

    “As demonstrated in Fig. 2, when a user expresses emotional difficulties and seeks assistance from SiliconFriend, the model is capable of delivering empathetic responses along with constructive suggestions.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationreasoning

    Integration of MemoryBank equips SiliconFriend with the ability to store and retrieve past interactions and understand user portraits.

    “This stage is vital as it equips SiliconFriend with the ability to store, retrieve past interactions and understand user portraits”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data

    The high retrieval accuracy of SiliconFriend BELLE and ChatGLM shows the generality and effectiveness of MemoryBank for both open-source and closed-source LLMs.

    “SiliconFriend BELLE and SiliconFriend ChatGLM also have high performance in retrieval accuracy, showing the generality and effectiveness of our MemoryBank mechanism for both open-source and closed-source LLMs.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Interpretationnone given

    Embedding models can be flexibly interchanged to suit varying needs.

    “It is worth noting that the embedding models can be flexibly interchanged to suit varying needs”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    LoRA reduces the quantity of trainable parameters while keeping the original weights frozen.

    “LoRA significantly reduces the quantity of trainable parameters by learning pairs of rank-decomposition matrices, while keeping the original weights frozen.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Hu et al., 2021

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S2 (checkable), S4 (based).

    Interpretationnone given

    The memory updating design improves the anthropomorphism of AI in long-term interaction scenarios.

    “This design improves the anthropomorphism of AI in long-term interactions scenarios.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    Prior long-range conversation studies are generally restricted to a few rounds of conversation, which cannot align with long-term AI companion scenarios.

    “However, these conversations are generally restricted to a few rounds of conversation, which can not align with the application scenarios of long-term AI companions.”
    Quote in the paperSubstantial claim0 of 2 sources checked
    • cites Xu et al., 2021

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Xu et al., 2022

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationreasoning

    SiliconFriend can generate responses that refer to past memories and deliver interactions tailored to the user's portrait.

    “Consequently, SiliconFriend can generate responses that refer past memories and deliver interactions tailored to the user's portrait.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning

    Equipped with MemoryBank, SiliconFriend can establish a deeper understanding of users, offering more personalized and meaningful interactions.

    “Equipped with MemoryBank, SiliconFriend can establish a deeper understanding of users, offering more personalized and meaningful interactions, emphasizing the potential for MemoryBank to humanize AI interactions.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given

    MemoryBank enhances the ability to understand user personality.

    “MemoryBank enhances the ability to maintain context over time, recall relevant information, and understand user personality.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    Prior models often fail to create a detailed user portrait and lack a human-like memory updating mechanism.

    “Moreover, these models often fail to create a detailed user portrait and lack a human-like memory updating mechanism, both crucial for facilitating more natural interactions.”
    Quote in the paperSubstantial claim0 of 2 sources checked
    • cites Xu et al., 2021

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Xu et al., 2022

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationown data

    SiliconFriend has successful memory recall and recognition capabilities.

    “These instances underscore SiliconFriend's successful memory recall and recognition capabilities.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductnone given

    MemoryBank's memory updating model is exploratory and highly simplified.

    “It is important to note that this is an exploratory and highly simplified memory updating model.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationnone given

    These stages transform SiliconFriend from a standard AI chatbot into a long-term AI companion, capable of remembering and learning from past interactions to provide personalized and empathetic user experience.

    “In conclusion, these stages transform SiliconFriend from a standard AI chatbot into a long-term AI companion, capable of remembering and learning from past interactions to provide personalized and empathetic user experience.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S2 (checkable).

    Premisecitation

    The Forgetting Curve theory by Ebbinghaus offers valuable insights into the pattern of memory retention and forgetting over time.

    “The Forgetting Curve theory by Ebbinghaus (1964) offers valuable insights into the pattern of memory retention and forgetting over time.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Ebbinghaus (1964)

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Premisecitation

    The Ebbinghaus forgetting curve is expressed using an exponential decay model R = e -t S.

    “The Ebbinghaus forgetting curve is expressed using an exponential decay model: R = e -t S , where R is the memory retention, or what fraction of the information can be retained.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Ebbinghaus

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Interpretationreasoning

    MemoryBank's memory updating mechanism allows for a realistic and human-like memory recall process.

    “The memory updating mechanism operates using principles inspired by the Ebbinghaus Forgetting Curve theory, allowing for a realistic and human-like memory recall process.”
    Quote in the paperNot a substantial claim
    • Rests on an assumption: The Ebbinghaus Forgetting Curve theory is applicable to artificial memory updating in LLMs.
  • May combine two claims.

    Interpretationreasoning

    MemoryBank provides LLMs with long-term memory and the ability to draw user portraits.

    “Therefore, we introduce MemoryBank, a novel mechanism designed to provide LLMs with the ability to retain long-term memory and draw user portraits.”
    • Also stated in: § Abstract · plain
      “we propose MemoryBank, a novel memory mechanism tailored for LLMs.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Premisenone given

    Large language models lack a long-term memory mechanism.

    “Despite this, a notable hindrance remains-the deficiency of a long-term memory mechanism within these models.”
    • Also stated in: § 1 Introduction · plain
      “Despite the remarkable capabilities of LLMs, a key limitation is their lack of long-term memory, an essential aspect of human-like communication, particularly noticeable in scenarios requiring sustained interactions like personal companionship, psychological counseling, and secretarial tasks.”
    Quote in the paperNot a substantial claim
26 of 26
  • The paper relies on this without support.

    The Ebbinghaus Forgetting Curve theory is applicable to artificial memory updating in LLMs.

    “inspired by the Ebbinghaus Forgetting Curve theory”
    “Our memory forgetting mechanism is inspired from Ebbinghaus Forgetting Curve theory”
  • The paper relies on this without support.

    ChatGPT can validly simulate multiple users with diverse characteristics for evaluating MemoryBank.

    “for which ChatGPT plays the role of users and generates dialog contexts according to their personalities.”
  • The paper relies on this without support.

    The 38k psychological conversations collected from online sources are suitable for tuning an LLM to provide empathetic support.

    “The initial stage of Silicon-Friend's development involves tuning the LLMs using a dataset of 38k psychological dialogues.This data, parsed from online sources, comprises a range of conversations that cover an array of emotional states and responses.”
  • The paper relies on this without support.

    LLMs lack a robust long-term memory function, which hinders their ability to maintain context over long periods and retrieve pertinent information from past interactions.

    “A noticeable gap lies in their deficiency in a robust long-term memory function.”
    “This limitation hinders their ability to maintain context over a long period and retrieve pertinent information from past interactions.”
  • The paper relies on this without support.

    There is a need for a long-term memory mechanism to empower LLMs in scenarios requiring personalized and persistent interactions.

    “In summary, while significant progress has been made in the field of LLMs, there is still a need for long-term memory mechanism to empower LLMs in the scenarios requiring personalized and persistent interactions.”
  • The paper relies on this without support.

    The ability to exhibit empathy in a conversation is a key attribute of an effective AI companion.

    “The ability to exhibit empathy in a conversation is a key attribute of an effective AI companion.”
6 of 6

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Memory systems largely treat memory as a passive information store.

    “However, these approaches largely treat memory as a passive information store.”

    From Evo-Harness: Context-to-Harness Skill Compilation for Self-Evolving Agents (2026) · cites this paper as Zhong et al., 2024

    The paper describes MemoryBank as more than a passive store. Section 2 describes storage, retrieval, and an updater; §2.3 says recalled memories are reinforced while less important memories may be forgotten. That is contrary to the characterization attributed to this source. (LLM, conf=0.86)

    Checked by a reasoning model — may be wrong.

    Experimental — accuracy not yet measured
  • Such methods ignore the dynamic changes in human psychological states.

    “However, such methods ignore the dynamic changes in human psychological states.”

    From H-MEM: Hierarchical Memory for High-Efficiency Long-Term Reasoning in LLM Agents (2026) · cites this paper as Zhong et al., 2024

    Related Works (p. 6) says earlier long-conversation models often fail to create a detailed user portrait and lack human-like memory updating. Memory Storage (p. 2) describes MemoryBank continuously updating its understanding of users’ personality traits and emotions. This supports the general contrast, but the source does not say that such methods uniformly ignore changes in human psychological states. (LLM, conf=0.82)

    Experimental — accuracy not yet measured
  • MemoryBank, while solving the long-term memory problem well, still has shortcomings in structured memory storage and efficient systematic memory retrieval, and further optimization and improvement are needed.

    “While this method solves the long-term memory problem of LLM Agents well, there are still shortcomings in structured memory storage and efficient systematic memory retrieval, and further optimization and improvement are needed.”

    From H-MEM: Hierarchical Memory for High-Efficiency Long-Term Reasoning in LLM Agents (2026) · cites this paper as Zhong et al., 2024

    The Conclusion (p. 7) reports that MemoryBank improves long-term memory and recall, supporting the first part of the claim. The paper does not identify shortcomings in structured storage or call for further optimization; its Memory Retrieval section (p. 2) instead describes FAISS indexing for efficient retrieval. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • Text-based memory offers good interpretability and implementation convenience for long-term memory in LLMs.

    “Memory in textual form (Li et al., 2023; Huang et al., 2023; Zhong et al., 2024) offers good interpretability and implementation convenience for long-term memory in LLMs.”

    From Evaluating the Long-Term Memory of Large Language Models (2025) · cites this paper as Zhong et al., 2024

    The Memory Storage section (p. 2) describes storing conversations, event summaries, and user assessments, supporting MemoryBank as an example of text-based long-term memory for LLMs. The paper does not say that textual memory offers good interpretability or implementation convenience; its discussion of versatility does not establish those particular benefits. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Retrieval-based external memory systems incur low online overhead but suffer from unstable accuracy due to limited query construction and candidate filtering.

    “These methods are efficient, but limited query construction and candidate filtering often introduce retrieval noise, resulting in unstable answer accuracy.”

    From Lightweight LLM Agent Memory with Small Language Models (2026) · cites this paper as Zhong et al., 2024

    The Memory Retrieval section (p. 2) says MemoryBank pre-encodes memories and indexes them with FAISS for efficient retrieval. It does not say that limited query construction or candidate filtering introduces retrieval noise or unstable answer accuracy; the Quantitative Analysis section (pp. 5–6) measures retrieval accuracy and response correctness without making that causal claim. (LLM, conf=0.86)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Simulated-dialog evaluation is labeled both qualitative and quantitative

    Minor

    The paper assigns simulated dialogs to the quantitative analysis, but later calls the evaluation using simulated dialog history and 194 probing questions qualitative. Its quantitative-analysis section also describes those 194 questions.

1 of 1

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Zhong, W., Guo, L., Gao, Q., Ye, H., & Wang, Y.
Affiliations
  • Sun Yat-sen University (CN)
  • Harbin Institute of Technology (CN)
  • KTH Royal Institute of Technology (SE)
Venue
arXiv
Publisher
arXiv
Published
2023
Volume
38
Issue
17
Pages
19724-19731
ISSN
2159-5399 (ISSN-L)
OpenAlex
W4393147158
Cited by
253
References
19
Citations by year
2026: 133 · 2025: 83 · 2024: 36 · 2023: 1
FWCI
74.02
Type
conference paper
Language
en
Open access
Locations
  • Proceedings of the AAAI Conference on Artificial Intelligence (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • AAAI Publications (The Association for the Advancement of Artificial Intelligence (AAAI)) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
long-term memory, large language models, Ebbinghaus forgetting curve, AI companions, chatbots, empathy, psychological counseling, memory retrieval

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-11.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-11.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review