Training Language Models with Memory Augmentation
Not on the map. Why?
Cited by 29 in Retrieval-augmented generation, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Recent work has improved language models (LMs) remarkably by equipping them with a non-parametric memory component. However, most existing approaches only introduce mem-ories at testing time or represent them using a separately trained encoder, resulting in suboptimal training of the language model. In this work, we present TRIME, a novel yet simple training approach designed for training LMs with memory augmentation. Our approach uses a training objective that directly takes in-batch examples as accessible memory. We also present new methods for memory construction and data batching, which are used for adapting to different sets of memories--local, long-term, and external memory--at testing time. We evaluate TRIME on multiple language modeling and machine translation benchmarks and show that it is able to achieve significant improvements across all the settings. Concretely, TRIME reduces the perplexity from 18.70 to 15.37 on WIKITEXT-103, by effectively leveraging a large memory set from the training corpus. Compared to standard LM training, TRIME adds negligible computational overhead and is compatible with different neural architectures, making it a versatile solution for training memory-augmented LMs.
Key facts. Cited by 112 papers in the map (data through 7 Oct 2026). Builds on 49 of its 61 references that are in the map. First posted on arXiv 25 May 2022.
Builds on
49 of 61 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
37 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2020Efficient Transformers: A Surveycited by 784
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2021Random Feature Attentioncited by 350
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2022Memorizing Transformerscited by 219
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Episodic Memory in Lifelong Language Learningcited by 188
- 2019Adaptive Attention Span in Transformerscited by 148
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2021End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answeringcited by 133
- 2015Ask Me Anything: Dynamic Memory Networks for Natural Language Processingcited by 116
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2016Improving Neural Language Models with a Continuous Cachecited by 81
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2021Mention Memory: incorporating textual knowledge into Transformers through entity mention attentioncited by 42
- 2017Unbounded cache model for online language modeling with open vocabularycited by 37
- 2021When Attention Meets Fast Recurrence: Training Language Models with Reduced Computecited by 34
- 2021Not All Memories are Created Equal: Learning to Forget by Expiringcited by 32
- 2021GNN-LM: Language Modeling based on Global Contexts via GNNcited by 27
- 2021ReadTwice: Reading Very Large Documents with Memoriescited by 14
- 2022LaMemo: Language Modeling with Look-Ahead Memorycited by 4
Built on by
Citing papers per year: 2022: 11; 2023: 47; 2024: 40; 2025: 8; 2026: 6.
112 papers.
Sort:
By area:
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2023Enabling Large Language Models to Generate Text with Citationscited by 584
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2023Augmented Language Models: a Surveycited by 398
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 351
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
38 more
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 257
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
- 2023Augmenting Language Models with Long-Term Memorycited by 186
- 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Modelscited by 180
- 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 157
- 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 148
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 146
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
- 2023Complex Claim Verification with Evidence Retrieved in the Wildcited by 110
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2022Training Trajectories of Language Models Across Scalescited by 80
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 78
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 76
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 70
- 2023RET-LLM: Towards a General Read-Write Memory for Large Language Modelscited by 64
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontierscited by 60
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)cited by 56
- 2024Context-DPO: Aligning Language Models for Context-Faithfulnesscited by 50
- 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decodingcited by 49
- 2023Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language Modelscited by 46
- 2022Retrieval as Attention: End-to-end Learning of Retrieval and Reading within a Single Transformercited by 45
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detectioncited by 43
- 2024Training Language Models to Generate Text with Citations via Fine-grained Rewardscited by 40
- 2022Nonparametric Masked Language Modelingcited by 39
- 2024Lory: Fully Differentiable Mixture-of-Experts for Autoregressive Language Model Pre-trainingcited by 37
- 2022Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Modelcited by 32
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 31
- 2023Why do Nearest Neighbor Language Models Work?cited by 29
- 2023Emptying the Ocean with a Spoon: Should We Edit Models?cited by 27
- 2024Metacognitive Retrieval-Augmented Large Language Modelscited by 26
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processingcited by 25
50 most cited of 112 All 112 (JSON)
- 2026One Size Does Not Fit All! Dynamic Retriever and Generator Selection for RAG15 Sep 2026
- 2026Planning with Transformers: Chain of Computation and Structured Context Windows20 Jul 2026
- 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAG25 May 2026
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generation21 Apr 2026
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers8 Mar 2026
- 2026PEARL: Prototype-Enhanced Alignment for Label-Efficient Representation Learning with Deployment-Driven Insights from Digital Governance Communication Systems24 Jan 2026
- 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoning22 Oct 2025
- 2025Can an LLM Induce a Graph? Investigating Memory Drift and Context Length4 Oct 2025
- 2025CUPID: Evaluating Personalized and Contextualized Alignment of LLMs from Interactions3 Aug 2025
- 2025REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage Processing19 Jun 2025
- 2025Prompting is not Enough: Exploring Knowledge Integration and Controllable Generation26 May 2025
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory10 Apr 2025
38 more
- 2025Hallucination, Monofacts, and Miscalibration: An Empirical Investigation11 Feb 2025
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training9 Feb 2025
- 2024Context-DPO: Aligning Language Models for Context-Faithfulness18 Dec 2024
- 2024LLM Augmentations to support Analytical Reasoning over Multiple Documents25 Nov 2024
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory14 Oct 2024
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks10 Oct 2024
- 2024No Free Lunch: Retrieval-Augmented Generation Undermines Fairness in LLMs, Even for Vigilant Users10 Oct 2024
- 2024On the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains12 Sep 2024
- 2024Robots Can Multitask Too: Integrating a Memory Architecture and LLMs for Enhanced Cross-Task Robot Action Generation18 Jul 2024
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning14 Jul 2024
- 2024Intermediate Distillation: Data-Efficient Distillation from Black-Box LLMs for Information Retrieval18 Jun 2024
- 2024Multi-Modal Retrieval For Large Language Model Based Speech Recognition13 Jun 2024
- 2024TTM-RE: Memory-Augmented Document-Level Relation Extraction9 Jun 2024
- 2024"Forgetting" in Machine Learning and Beyond: A Survey31 May 2024
- 2024SelfCP: Compressing Over-Limit Prompt via the Frozen Large Language Model Itself27 May 2024
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization23 May 2024
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
- 2024Lory: Fully Differentiable Mixture-of-Experts for Autoregressive Language Model Pre-training6 May 2024
- 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decoding4 May 2024
- 2024R4: Reinforced Retriever-Reorder-Responder for Retrieval-Augmented Large Language Models4 May 2024
- 2024Semi-Parametric Retrieval via Binary Bag-of-Tokens Index3 May 2024
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing30 Apr 2024
- 2024Is Factuality Enhancement a Free Lunch For LLMs? Better Factuality Can Lead to Worse Context-Faithfulness30 Mar 2024
- 2024RAP: Retrieval-Augmented Planner for Adaptive Procedure Planning in Instructional Videos27 Mar 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2024LocalRQA: From Generating Data to Locally Training, Testing, and Deploying Retrieval-Augmented QA Systems1 Mar 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024Memory-Augmented Generative Adversarial Transformers29 Feb 2024
- 2024Retrieval is Accurate Generation27 Feb 2024
- 2024Metacognitive Retrieval-Augmented Large Language Models18 Feb 2024
- 2024Training Language Models to Generate Text with Citations via Fine-grained Rewards6 Feb 2024
- 2024UniMem: Towards a Unified View of Long-Context Large Language Models5 Feb 2024
- 2024Efficient Prompt Caching via Embedding Similarity2 Feb 2024
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens30 Jan 2024
- 2024Accelerating Retrieval-Augmented Language Model Serving with Speculation25 Jan 2024
50 newest of 112 All 112 (JSON)
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
- 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Modelscited by 180
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 70
- 2023Why do Nearest Neighbor Language Models Work?cited by 29
12 most cited of 28 All 28 (JSON)
- 2026One Size Does Not Fit All! Dynamic Retriever and Generator Selection for RAG15 Sep 2026
- 2026An Efficient and Privacy-Preserving Architecture for Cross-Institutional Collaborative RAG25 May 2026
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generation21 Apr 2026
- 2024No Free Lunch: Retrieval-Augmented Generation Undermines Fairness in LLMs, Even for Vigilant Users10 Oct 2024
- 2024On the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains12 Sep 2024
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024Intermediate Distillation: Data-Efficient Distillation from Black-Box LLMs for Information Retrieval18 Jun 2024
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
- 2024R4: Reinforced Retriever-Reorder-Responder for Retrieval-Augmented Large Language Models4 May 2024
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing30 Apr 2024
- 2024RAP: Retrieval-Augmented Planner for Adaptive Procedure Planning in Instructional Videos27 Mar 2024
12 newest of 28 All 28 (JSON)
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023Augmented Language Models: a Surveycited by 398
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 78
- 2022Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Modelcited by 32
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoningcited by 7
- 2024Robots Can Multitask Too: Integrating a Memory Architecture and LLMs for Enhanced Cross-Task Robot Action Generationcited by 5
- 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoningcited by 5
- 2024LLM Augmentations to support Analytical Reasoning over Multiple Documentscited by 3
- 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoning22 Oct 2025
- 2024LLM Augmentations to support Analytical Reasoning over Multiple Documents25 Nov 2024
- 2024Robots Can Multitask Too: Integrating a Memory Architecture and LLMs for Enhanced Cross-Task Robot Action Generation18 Jul 2024
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning14 Jul 2024
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization23 May 2024
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec 2023
- 2023Augmented Language Models: a Survey15 Feb 2023
- 2022Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Model18 Dec 2022
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 257
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontierscited by 60
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)cited by 56
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers8 Mar 2026
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)16 Jan 2024
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Security10 Jan 2024
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2023Enabling Large Language Models to Generate Text with Citationscited by 584
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 351
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
- 2023Augmenting Language Models with Long-Term Memorycited by 186
- 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 157
- 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 148
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 146
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
12 most cited of 69 All 69 (JSON)
- 2026Planning with Transformers: Chain of Computation and Structured Context Windows20 Jul 2026
- 2026PEARL: Prototype-Enhanced Alignment for Label-Efficient Representation Learning with Deployment-Driven Insights from Digital Governance Communication Systems24 Jan 2026
- 2025Can an LLM Induce a Graph? Investigating Memory Drift and Context Length4 Oct 2025
- 2025CUPID: Evaluating Personalized and Contextualized Alignment of LLMs from Interactions3 Aug 2025
- 2025REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage Processing19 Jun 2025
- 2025Prompting is not Enough: Exploring Knowledge Integration and Controllable Generation26 May 2025
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory10 Apr 2025
- 2025Hallucination, Monofacts, and Miscalibration: An Empirical Investigation11 Feb 2025
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training9 Feb 2025
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory14 Oct 2024
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks10 Oct 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
12 newest of 69 All 69 (JSON)