Lift Yourself Up: Retrieval-augmented Text Generation with Self Memory

Authors: Xin Cheng, Di Luo, Xiuying Chen, Lemao Liu, Dongyan Zhao, Rui Yan

Submitted to arXiv on 03 May. 2023
License: CC BY 4.0
Abstract

With direct access to human-written reference as memory, retrieval-augmented generation has achieved much progress in a wide range of text generation tasks. Since better memory would typically prompt better generation~(we define this as primal problem), previous works mainly focus on how to retrieve better memory. However, one fundamental limitation exists for current literature: the memory is retrieved from a fixed corpus and is bounded by the quality of the corpus. Due to the finite retrieval space, bounded memory would greatly limit the potential of the memory-augmented generation model. In this paper, by exploring the duality of the primal problem: better generation also prompts better memory, we propose a framework called Selfmem, which iteratively adopts a retrieval-augmented generator itself to generate an unbounded memory pool and uses a memory selector to pick one generated memory for the next generation round. By combining the primal and dual problem, a retrieval-augmented generation model could lift itself up with its own output in the infinite generation space. To verify our framework, we conduct extensive experiments across various text generation scenarios including neural machine translation, abstractive summarization and dialogue generation over seven datasets and achieve state-of-the-art results in JRC-Acquis(four directions), XSum(50.3 ROUGE-1) and BigPatent(62.9 ROUGE-1).

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 Another approach to the problem
    MemoRAG: Moving towards Next-Gen RAG Via Memory-Inspired Knowledge Discovery
    Hongjin Qian, Peitian Zhang, Zheng Liu et al. · 2024 · Computation and Language · cited 172 times · AI summary available

    MemoRAG uses long-term memory for knowledge discovery in RAG, whereas Selfmem generates and selects its own memories to improve text generation.

    Abstract

    Retrieval-Augmented Generation (RAG) leverages retrieval tools to access external databases, thereby enhancing the generation quality of large language models (LLMs) through optimized context. However, the existing retrieval methods are constrained inherently, as they can only perform relevance matching between explicitly stated queries and well-formed knowledge, but unable to handle tasks involving ambiguous information needs or unstructured knowledge. Consequently, existing RAG systems are primarily effective for straightforward question-answering tasks. In this work, we propose MemoRAG, a novel retrieval-augmented generation paradigm empowered by long-term memory. MemoRAG adopts a dual-sy…

  2. Close Another approach to the problem
    Active Retrieval Augmented Generation
    Zhengbao Jiang, Frank F. Xu, Luyu Gao et al. · 2023 · Computation and Language · cited 950 times · AI summary available

    Active Retrieval Augmented Generation repeatedly retrieves external information during long-text generation, while Selfmem iteratively generates and selects memories.

    Abstract

    Despite the remarkable ability of large language models (LMs) to comprehend and generate language, they have a tendency to hallucinate and create factually inaccurate output. Augmenting LMs by retrieving information from external knowledge resources is one promising solution. Most existing retrieval-augmented LMs employ a retrieve-and-generate setup that only retrieves information once based on the input. This is limiting, however, in more general scenarios involving generation of long texts, where continually gathering information throughout the generation process is essential. There have been some past efforts to retrieve information multiple times while generating outputs, which mostly re…

  3. Close Another approach to the problem
    Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
    Akari Asai, Zeqiu Wu, Yizhong Wang et al. · 2023 · Computation and Language · cited 3,006 times · AI summary available

    Self-RAG learns when to retrieve and uses self-critique, whereas Selfmem generates a memory pool and selects memories for successive generation rounds.

    Abstract

    Despite their remarkable capabilities, large language models (LLMs) often produce responses containing factual inaccuracies due to their sole reliance on the parametric knowledge they encapsulate. Retrieval-Augmented Generation (RAG), an ad hoc approach that augments LMs with retrieval of relevant knowledge, decreases such issues. However, indiscriminately retrieving and incorporating a fixed number of retrieved passages, regardless of whether retrieval is necessary, or passages are relevant, diminishes LM versatility or can lead to unhelpful response generation. We introduce a new framework called Self-Reflective Retrieval-Augmented Generation (Self-RAG) that enhances an LM's quality and fa…

  4. Close Another approach to the problem
    Natural Answer Generation with Heterogeneous Memory
    Yao Fu, Yansong Feng · 2018 · North American Chapter of the Association for Computational Linguistics · cited 23 times · Not summarized yet

    Natural Answer Generation with Heterogeneous Memory adapts attention to diverse memory contents for answer generation, while Selfmem grows its memory through generated outputs.

    Abstract

    Memory augmented encoder-decoder framework has achieved promising progress for natural language generation tasks. Such frameworks enable a decoder to retrieve from a memory during generation. However, less research has been done to take care of the memory contents from different sources, which are often of heterogeneous formats. In this work, we propose a novel attention mechanism to encourage the decoder to actively interact with the memory by taking its heterogeneity into account. Our solution attends across the generated history and memory to explicitly avoid repetition, and introduce related knowledge to enrich our generated sentences. Experiments on the answer sentence generation task s…

  5. Close* Broader context
    Unveil the Duality of Retrieval-Augmented Generation: Theoretical Analysis and Practical Solution
    Shicheng Xu, Liang Pang, Hua-Wei Shen et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet

    Unveil the Duality of Retrieval-Augmented Generation addresses the duality of RAG, a concept Selfmem uses to motivate generation improving memory.

  6. Close Review Cites this paper
    Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
    C. Sharma · 2025 · arXiv.org · preprint, not peer reviewed · cited 76 times · Not summarized yet

    The survey categorizes RAG architectures and reviews retrieval quality, grounding, efficiency, and robustness, including the area in which Selfmem proposes a framework.

    Abstract

    Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm to enhance large language models (LLMs) by conditioning generation on external evidence retrieved at inference time. While RAG addresses critical limitations of parametric knowledge storage-such as factual inconsistency and domain inflexibility-it introduces new challenges in retrieval quality, grounding fidelity, pipeline efficiency, and robustness against noisy or adversarial inputs. This survey provides a comprehensive synthesis of recent advances in RAG systems, offering a taxonomy that categorizes architectures into retriever-centric, generator-centric, hybrid, and robustness-oriented designs. We systematically anal…

  7. Close Review Cited by this paper
    A Survey on Retrieval-Augmented Text Generation
    Huayang Li, Yixuan Su, Deng Cai et al. · 2022 · Computation and Language · preprint, not peer reviewed · cited 310 times · AI summary available

    The survey reviews retrieval-augmented text generation approaches across dialogue, translation, and other tasks that Selfmem evaluates.

    Abstract

    Recently, retrieval-augmented text generation attracted increasing attention of the computational linguistics community. Compared with conventional generation models, retrieval-augmented text generation has remarkable advantages and particularly has achieved state-of-the-art performance in many NLP tasks. This paper aims to conduct a survey about retrieval-augmented text generation. It firstly highlights the generic paradigm of retrieval-augmented generation, and then it reviews notable approaches according to different tasks including dialogue response generation, machine translation, and other generation tasks. Finally, it points out some important directions on top of recent methods to fa…

  8. Close Broader context
    Enhancing Retrieval-Augmented Generation: A Study of Best Practices
    Siran Li, Linus Stenzel, Carsten Eickhoff et al. · 2025 · Computation and Language · cited 65 times · AI summary available

    Enhancing Retrieval-Augmented Generation studies query expansion and retrieval strategies, while Selfmem focuses on improving generation through self-generated memory.

    Abstract

    Retrieval-Augmented Generation (RAG) systems have recently shown remarkable advancements by integrating retrieval mechanisms into language models, enhancing their ability to produce more accurate and contextually relevant responses. However, the influence of various components and configurations within RAG systems remains underexplored. A comprehensive understanding of these elements is essential for tailoring RAG systems to complex retrieval tasks and ensuring optimal performance across diverse applications. In this paper, we develop several advanced RAG system designs that incorporate query expansion, various novel retrieval strategies, and a novel Contrastive In-Context Learning RAG. Our …

Prior work it builds on

  1. Close Another approach to the problem Used in depth by this paper A method it uses
    Neural Machine Translation with Monolingual Translation Memory
    Deng Cai, Yan Wang, Huayang Li et al. · 2021 · Annual Meeting of the Association for Computational Linguistics · cited 134 times · Not summarized yet

    Neural Machine Translation with Monolingual Translation Memory retrieves monolingual data for translation, while Selfmem evaluates translation using memories generated by its own model.

    Abstract

    Prior work has proved that Translation Memory (TM) can boost the performance of Neural Machine Translation (NMT). In contrast to existing work that uses bilingual corpus as TM and employs source-side similarity search for memory retrieval, we propose a new framework that uses monolingual memory and performs learnable memory retrieval in a cross-lingual manner. Our framework has unique advantages. First, the cross-lingual memory retriever allows abundant monolingual data to be TM. Second, the memory retriever and NMT model can be jointly optimized for the ultimate translation goal. Experiments show that the proposed method obtains substantial improvements. Remarkably, it even outperforms stro…

  2. Close Another approach to the problem Used in depth by this paper A method it uses
    Neural Machine Translation with Contrastive Translation Memories
    Xin Cheng, Shen Gao, Le-Mao Liu et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 28 times · Not summarized yet

    Neural Machine Translation with Contrastive Translation Memories reduces redundancy in retrieved translation examples, whereas Selfmem creates and selects generated memories.

    Abstract

    Retrieval-augmented Neural Machine Translation models have been successful in many translation scenarios. Different from previous works that make use of mutually similar but redundant translation memories (TMs), we propose a new retrieval-augmented NMT to model contrastively retrieved translation memories that are holistically similar to the source sentence while individually contrastive to each other providing maximal information gain in three phases. First, in TM retrieval phase, we adopt contrastive retrieval algorithm to avoid redundancy and uninformativeness of similar translation pieces. Second, in memory encoding stage, given a set of TMs we propose a novel Hierarchical Group Attentio…

  3. Close Another approach to the problem
    Generate rather than Retrieve: Large Language Models are Strong Context Generators
    Wenhao Yu, Dan Iter, Shuohang Wang et al. · 2022 · Computation and Language · cited 460 times · AI summary available

    Generate rather than Retrieve generates contextual documents for question answering instead of retrieving them, while Selfmem uses generated memories to improve text generation.

    Abstract

    Knowledge-intensive tasks, such as open-domain question answering (QA), require access to a large amount of world or domain knowledge. A common approach for knowledge-intensive tasks is to employ a retrieve-then-read pipeline that first retrieves a handful of relevant contextual documents from an external corpus such as Wikipedia and then predicts an answer conditioned on the retrieved documents. In this paper, we present a novel perspective for solving knowledge-intensive tasks by replacing document retrievers with large language model generators. We call our method generate-then-read (GenRead), which first prompts a large language model to generate contextutal documents based on a given qu…

  4. Close Another approach to the problem A method it uses
    Retrieve and Refine: Improved Sequence Generation Models For Dialogue
    J. Weston, Emily Dinan, Alexander H. Miller · 2018 · SCAI@EMNLP · cited 212 times · Not summarized yet

    Retrieve and Refine retrieves a dialogue response and refines it with a generator, while Selfmem iteratively generates and selects memories for dialogue generation.

    Abstract

    Sequence generation models for dialogue are known to have several problems: they tend to produce short, generic sentences that are uninformative and unengaging. Retrieval models on the other hand can surface interesting responses, but are restricted to the given retrieval set leading to erroneous replies that cannot be tuned to the specific context. In this work we develop a model that combines the two approaches to avoid both their deficiencies: first retrieve a response and then refine it – the final sequence generator treating the retrieval as additional context. We show on the recent ConvAI2 challenge task our approach produces responses superior to both standard retrieval and generation…

  5. Close Another approach to the problem A method it uses
    Retrieval-guided Dialogue Response Generation via a Matching-to-Generation Framework
    Deng Cai, Yan Wang, Wei Bi et al. · 2019 · Conference on Empirical Methods in Natural Language Processing · cited 91 times · Not summarized yet

    Retrieval-guided Dialogue Response Generation uses matching to extract a skeleton that guides response generation, while Selfmem uses generated memories across rounds.

    Abstract

    End-to-end sequence generation is a popular technique for developing open domain dialogue systems, though they suffer from the safe response problem. Researchers have attempted to tackle this problem by incorporating generative models with the returns of retrieval systems. Recently, a skeleton-then-response framework has been shown promising results for this task. Nevertheless, how to precisely extract a skeleton and how to effectively train a retrieval-guided response generator are still challenging. This paper presents a novel framework in which the skeleton extraction is made by an interpretable matching model and the following skeleton-guided response generation is accomplished by a sepa…

Papers that cite it

  1. Close Review Uses this paper in depth
    Retrieval-Augmented Generation for Large Language Models: A Survey
    Yunfan Gao, Yun Xiong, Xinyu Gao et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 4,420 times · AI summary available

    The survey reviews RAG's development and applications for LLMs, providing broad context for Selfmem's retrieval-augmented generation framework.

    Abstract

    Large Language Models (LLMs) showcase impressive capabilities but encounter challenges like hallucination, outdated knowledge, and non-transparent, untraceable reasoning processes. Retrieval-Augmented Generation (RAG) has emerged as a promising solution by incorporating knowledge from external databases. This enhances the accuracy and credibility of the generation, particularly for knowledge-intensive tasks, and allows for continuous knowledge updates and integration of domain-specific information. RAG synergistically merges LLMs' intrinsic knowledge with the vast, dynamic repositories of external databases. This comprehensive review paper offers a detailed examination of the progression of …

  2. Close Review Uses this paper in depth
    A Survey on Retrieval-Augmented Text Generation for Large Language Models
    Yi-Zheng Huang, J. Huang · 2024 · ACM Computing Surveys · cited 208 times · Not summarized yet

    The survey organizes RAG methods into categories and discusses their components, situating the text-generation framework proposed by Selfmem.

    Abstract

    Retrieval-Augmented Generation (RAG) merges information retrieval (IR) techniques with deep learning advancements to address the static limitations of large language models (LLMs) by enabling the dynamic integration of up-to-date external information. This methodology, focusing primarily on the text domain, provides a cost-effective solution to the generation of plausible but possibly incorrect responses by LLMs, thereby enhancing the accuracy and reliability of their outputs through the use of real-world data. As RAG grows in complexity and incorporates multiple concepts that can influence its performance, this article organizes the RAG paradigm into four categories: pre-retrieval, retrieva…

  3. Close Another approach to the problem Uses this paper in depth
    M-RAG: Reinforcing Large Language Model Performance through Retrieval-Augmented Generation with Multiple Partitions
    Zheng Wang, S. Teo, Jieer Ouyang et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 70 times · Not summarized yet

    M-RAG partitions external memories and uses multi-agent reinforcement learning for generation, while Selfmem expands memory by generating and selecting its own outputs.

    Abstract

    Retrieval-Augmented Generation (RAG) enhances Large Language Models (LLMs) by retrieving relevant memories from an external database. However, existing RAG methods typically organize all memories in a whole database, potentially limiting focus on crucial memories and introducing noise. In this paper, we introduce a multiple partition paradigm for RAG (called M-RAG), where each database partition serves as a basic unit for RAG execution. Based on this paradigm, we propose a novel framework that leverages LLMs with Multi-Agent Reinforcement Learning to optimize different language generation tasks explicitly. Through comprehensive experiments conducted on seven datasets, spanning three language…

  4. Close Broader context
    Retrieval Meets Reasoning: Even High-school Textbook Knowledge Benefits Multimodal Reasoning
    Cheng Tan, Jing-Xuan Wei, Lin-Zhuang Sun et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 19 times · Not summarized yet

    Retrieval Meets Reasoning applies RAG to multimodal reasoning, whereas Selfmem studies self-generated memory for text generation.

    Abstract

    Large language models equipped with retrieval-augmented generation (RAG) represent a burgeoning field aimed at enhancing answering capabilities by leveraging external knowledge bases. Although the application of RAG with language-only models has been extensively explored, its adaptation into multimodal vision-language models remains nascent. Going beyond mere answer generation, the primary goal of multimodal RAG is to cultivate the models' ability to reason in response to relevant queries. To this end, we introduce a novel multimodal RAG framework named RMR (Retrieval Meets Reasoning). The RMR framework employs a bi-modal retrieval module to identify the most relevant question-answer pairs, …

  5. Close Shared data, tool or method
    CRUD-RAG: A Comprehensive Chinese Benchmark for Retrieval-Augmented Generation of Large Language Models
    Yuanjie Lyu, Zhi-Yu Li, Si-Min Niu et al. · 2024 · ACM Trans. Inf. Syst. · cited 153 times · Not summarized yet

    CRUD-RAG introduces a Chinese benchmark for evaluating RAG across tasks, while Selfmem reports experiments on text-generation tasks and datasets.

    Abstract

    Retrieval-augmented generation (RAG) is a technique that enhances the capabilities of large language models (LLMs) by incorporating external knowledge sources. This method addresses common LLM limitations, including outdated information and the tendency to produce inaccurate “hallucinated” content. However, evaluating RAG systems is a challenge. Most benchmarks focus primarily on question-answering applications, neglecting other potential scenarios where RAG could be beneficial. Accordingly, in the experiments, these benchmarks often assess only the LLM components of the RAG pipeline or the retriever in knowledge-intensive scenarios, overlooking the impact of external knowledge base construc…

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 1 November 2026.

The illustrated guide to the papers around a paper