Augmenting Language Models with Long-Term Memory

AI-generated keywords: LongMem Language Modeling Memory Augmentation Long-Context Models In-Context Learning

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • The paper introduces a framework called Language Models Augmented with Long-Term Memory (LongMem)
  • LongMem addresses the limitation of existing large language models (LLMs) in utilizing long-context information
  • LongMem uses a decoupled network architecture with a memory encoder and an adaptive residual side-network as a memory retriever and reader
  • LongMem allows for caching and updating long-term past contexts without suffering from memory staleness
  • The proposed framework is enhanced with memory-augmented adaptation training, enabling it to memorize long past context and utilize long-term memory for language modeling
  • The memory retrieval module in LongMem can handle unlimited-length context in its memory bank
  • LongMem can expand the long-form memory up to 65k tokens, allowing it to cache numerous extra demonstration examples for in-context learning
  • Experimental results show that LongMem outperforms strong long-context models on ChapterBreak benchmark
  • LongMem achieves remarkable improvements in memory-augmented in-context learning compared to traditional LLMs
  • The authors provide an open source implementation of their code at https://aka.ms/LongMem.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Weizhi Wang, Li Dong, Hao Cheng, Xiaodong Liu, Xifeng Yan, Jianfeng Gao, Furu Wei

Abstract: Existing large language models (LLMs) can only afford fix-sized inputs due to the input length limit, preventing them from utilizing rich long-context information from past inputs. To address this, we propose a framework, Language Models Augmented with Long-Term Memory (LongMem), which enables LLMs to memorize long history. We design a novel decoupled network architecture with the original backbone LLM frozen as a memory encoder and an adaptive residual side-network as a memory retriever and reader. Such a decoupled memory design can easily cache and update long-term past contexts for memory retrieval without suffering from memory staleness. Enhanced with memory-augmented adaptation training, LongMem can thus memorize long past context and use long-term memory for language modeling. The proposed memory retrieval module can handle unlimited-length context in its memory bank to benefit various downstream tasks. Typically, LongMem can enlarge the long-form memory to 65k tokens and thus cache many-shot extra demonstration examples as long-form memory for in-context learning. Experiments show that our method outperforms strong long-context models on ChapterBreak, a challenging long-context modeling benchmark, and achieves remarkable improvements on memory-augmented in-context learning over LLMs. The results demonstrate that the proposed method is effective in helping language models to memorize and utilize long-form contents. Our code is open-sourced at https://aka.ms/LongMem.

Submitted to arXiv on 12 Jun. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2306.07174v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

The paper titled "Augmenting Language Models with Long-Term Memory" introduces a framework called Language Models Augmented with Long-Term Memory (LongMem) to address the limitation of existing large language models (LLMs) in utilizing long-context information. LLMs can only handle fixed-sized inputs, which restricts their ability to incorporate rich historical context. To overcome this, the authors propose a decoupled network architecture where the original LLM serves as a memory encoder and an adaptive residual side-network acts as a memory retriever and reader. This design allows for caching and updating long-term past contexts without suffering from memory staleness. The proposed LongMem framework is enhanced with memory-augmented adaptation training, enabling it to memorize long past context and utilize long-term memory for language modeling. The memory retrieval module in LongMem can handle unlimited-length context in its memory bank, benefiting various downstream tasks. Specifically, LongMem can expand the long-form memory up to 65k tokens, allowing it to cache numerous extra demonstration examples for in-context learning. Experimental results demonstrate that the proposed method outperforms strong long-context models on ChapterBreak, a challenging benchmark for long-context modeling. Additionally, LongMem achieves remarkable improvements in memory-augmented in-context learning compared to traditional LLMs. These findings highlight the effectiveness of the proposed method in helping language models memorize and utilize long form contents. The authors provide an open source implementation of their code at https://aka.ms/LongMem.
Created on 01 Aug. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.