An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Access to external knowledge is essential for many natural language processing tasks, such as question answering and dialogue. Existing methods often rely on a parametric model that stores knowledge in its parameters, or use a retrieval-augmented model that has access to an external knowledge source. Parametric and retrieval-augmented models have complementary strengths in terms of computational efficiency and predictive accuracy. To combine the strength of both approaches, we propose the Efficient Memory-Augmented Transformer (EMAT) -- it encodes external knowledge into a key-value memory and exploits the fast maximum inner product search for memory querying. We also introduce pre-training tasks that allow EMAT to encode informative key-value representations, and to learn an implicit strategy to integrate multiple memory slots into the transformer. Experiments on various knowledge-intensive tasks such as question answering and dialogue datasets show that, simply augmenting parametric models (T5-base) using our method produces more accurate results (e.g., 25.8 -> 44.3 EM on NQ) while retaining a high throughput (e.g., 1000 queries/s on NQ). Compared to retrieval-augmented models, EMAT runs substantially faster across the board and produces more accurate results on WoW and ELI5. Our code and datasets are available at https://github. com/uclnlp/EMAT.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 35 of its 43 references that are in the map. First posted on arXiv 30 Oct 2022.
Builds on
35 of 43 references.
Closest ancestors · 3
Same direction, newest first
- 2022Augmenting Pre-trained Language Models with QA-Memory for Open-Domain Question Answering10 Apr
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
- 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb
Other references · 32
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
20 more
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2019ELI5: Long Form Question Answeringcited by 567
- 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
- 2021PAQ: 65 Million Probably-Asked Questions and What You Can Do With Themcited by 198
- 2014A Convolutional Neural Network for Modelling Sentencescited by 163
- 2019End-to-End Open-Domain Question Answering with BERTserinicited by 152
- 2020Question and Answer Test-Train Overlap in Open-Domain Question Answering Datasetscited by 137
- 2019Large Memory Layers with Product Keyscited by 120
- 2019Multi-passage BERT: A Globally Normalized BERT Model for Open-domain Question Answeringcited by 96
- 2020Learning Dense Representations of Phrases at Scalecited by 91
- 2019A Discrete Hard EM Approach for Weakly Supervised Question Answeringcited by 78
- 2020Augmenting Transformers with KNN-Based Composite Memory for Dialoguecited by 53
- 2021NeurIPS 2020 EfficientQA Competition: Systems, Analyses and Lessons Learnedcited by 52
- 2021Hindsight: Posterior-guided training of retrievers for improved open-ended generationcited by 38
- 2022Kformer: Knowledge Injection in Transformer Feed-Forward Layerscited by 37
- 2021Challenges in Generalization in Open Domain Question Answeringcited by 30
- 2020Don't Read Too Much into It: Adaptive Computation for Open-Domain Question Answeringcited by 7
- 2021Training Adaptive Computation for Open-Domain Question Answering with Computational Constraintscited by 4
Built on by
Citing papers per year: 2023: 15; 2024: 11; 2025: 9; 2026: 1.
36 papers.
Sort:
By area:
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2024NetLLM: Adapting Large Language Models for Networkingcited by 76
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)cited by 56
- 2025KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Modelcited by 35
- 2023Creating Trustworthy LLMs: Dealing with Hallucinations in Healthcare AIcited by 33
- 2023ZO-AdaMU Optimizer: Adapting Perturbation by the Momentum and Uncertainty in Zeroth-order Optimizationcited by 24
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operatorcited by 19
- 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your computecited by 17
- 2024Analysing the Residual Stream of Language Models Under Knowledge Conflictscited by 15
- 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Modelscited by 14
24 more
- 2023The Effect of Scaling, Retrieval Augmentation and Form on the Factual Consistency of Language Modelscited by 11
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
- 2025A Comprehensive Analysis of Large Language Model Outputs: Similarity, Diversity, and Biascited by 10
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2023GLIMMER: generalized late-interaction memory rerankercited by 7
- 2023Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solvingcited by 6
- 2023Insights into Classifying and Mitigating LLMs' Hallucinationscited by 6
- 2023Answering Ambiguous Questions with a Database of Questions, Answers, and Revisionscited by 4
- 2024A Multimodal In-Context Tuning Approach for E-Commerce Product Description Generationcited by 4
- 2024KS-LLM: Knowledge Selection of Large Language Models with Evidence Document for Question Answeringcited by 4
- 2025From Standalone LLMs to Integrated Intelligence: A Survey of Compound Al Systemscited by 4
- 2024Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarioscited by 3
- 2023AWESOME: GPU Memory-constrained Long Document Summarization using Memory Mechanism and Global Salient Contentcited by 2
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sourcescited by 2
- 2024TTM-RE: Memory-Augmented Document-Level Relation Extractioncited by 2
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuningcited by 2
- 2025R4: Retrieval-Augmented Reasoning for Vision-Language Models in 4D Spatio-Temporal Spacecited by 2
- 2023Pluggable Neural Machine Translation Models via Memory-augmented Adapterscited by 1
- 2023MEMORY-VQ: Compression for Tractable Internet-Scale Memorycited by 1
- 2025Learning to Extract Rational Evidence via Reinforcement Learning for Retrieval-Augmented Generationcited by 1
- 2023Heterogenous Memory Augmented Neural Networkscited by 0
- 2025End-to-End Dialog Neural Coreference Resolution: Balancing Efficiency and Accuracy in Large-Scale Systemscited by 0
- 2025Dual Knowledge-Enhanced Two-Stage Reasoner for Multimodal Dialog Systemscited by 0
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformerscited by 0
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers22 Mar 2026
- 2025R4: Retrieval-Augmented Reasoning for Vision-Language Models in 4D Spatio-Temporal Space17 Dec 2025
- 2025Dual Knowledge-Enhanced Two-Stage Reasoner for Multimodal Dialog Systems9 Sep 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025Learning to Extract Rational Evidence via Reinforcement Learning for Retrieval-Augmented Generation21 Jul 2025
- 2025KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model26 Jun 2025
- 2025From Standalone LLMs to Integrated Intelligence: A Survey of Compound Al Systems5 Jun 2025
- 2025A Comprehensive Analysis of Large Language Model Outputs: Similarity, Diversity, and Bias14 May 2025
- 2025End-to-End Dialog Neural Coreference Resolution: Balancing Efficiency and Accuracy in Large-Scale Systems8 Apr 2025
- 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Models21 Jan 2025
- 2024Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios20 Nov 2024
- 2024Analysing the Residual Stream of Language Models Under Knowledge Conflicts21 Oct 2024
24 more
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineering21 Oct 2024
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuning30 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024TTM-RE: Memory-Augmented Document-Level Relation Extraction9 Jun 2024
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources7 Jun 2024
- 2024KS-LLM: Knowledge Selection of Large Language Models with Evidence Document for Question Answering24 Apr 2024
- 2024A Multimodal In-Context Tuning Approach for E-Commerce Product Description Generation21 Feb 2024
- 2024NetLLM: Adapting Large Language Models for Networking4 Feb 2024
- 2024DoraemonGPT: Toward Understanding Dynamic Scenes with Large Language Models (Exemplified as A Video Agent)16 Jan 2024
- 2023ZO-AdaMU Optimizer: Adapting Perturbation by the Momentum and Uncertainty in Zeroth-order Optimization23 Dec 2023
- 2023Insights into Classifying and Mitigating LLMs' Hallucinations14 Nov 2023
- 2023The Effect of Scaling, Retrieval Augmentation and Form on the Factual Consistency of Language Models2 Nov 2023
- 2023Heterogenous Memory Augmented Neural Networks17 Oct 2023
- 2023Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solving28 Sep 2023
- 2023Creating Trustworthy LLMs: Dealing with Hallucinations in Healthcare AI26 Sep 2023
- 2023MEMORY-VQ: Compression for Tractable Internet-Scale Memory28 Aug 2023
- 2023Answering Ambiguous Questions with a Database of Questions, Answers, and Revisions16 Aug 2023
- 2023Pluggable Neural Machine Translation Models via Memory-augmented Adapters12 Jul 2023
- 2023GLIMMER: generalized late-interaction memory reranker17 Jun 2023
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmap14 Jun 2023
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memory6 Jun 2023
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operator24 May 2023
- 2023AWESOME: GPU Memory-constrained Long Document Summarization using Memory Mechanism and Global Salient Content24 May 2023
- 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute25 Jan 2023
- 2023Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solvingcited by 6
- 2024Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarioscited by 3
- 2025R4: Retrieval-Augmented Reasoning for Vision-Language Models in 4D Spatio-Temporal Spacecited by 2
- 2025Dual Knowledge-Enhanced Two-Stage Reasoner for Multimodal Dialog Systemscited by 0
- 2025R4: Retrieval-Augmented Reasoning for Vision-Language Models in 4D Spatio-Temporal Space17 Dec 2025
- 2025Dual Knowledge-Enhanced Two-Stage Reasoner for Multimodal Dialog Systems9 Sep 2025
- 2024Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios20 Nov 2024
- 2023Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solving28 Sep 2023
- 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your computecited by 17
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sourcescited by 2
- 2025Learning to Extract Rational Evidence via Reinforcement Learning for Retrieval-Augmented Generationcited by 1
- 2025Learning to Extract Rational Evidence via Reinforcement Learning for Retrieval-Augmented Generation21 Jul 2025
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources7 Jun 2024
- 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute25 Jan 2023
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2024NetLLM: Adapting Large Language Models for Networkingcited by 76
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60
- 2025KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Modelcited by 35
- 2023Creating Trustworthy LLMs: Dealing with Hallucinations in Healthcare AIcited by 33
- 2023ZO-AdaMU Optimizer: Adapting Perturbation by the Momentum and Uncertainty in Zeroth-order Optimizationcited by 24
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operatorcited by 19
- 2024Analysing the Residual Stream of Language Models Under Knowledge Conflictscited by 15
- 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Modelscited by 14
- 2023The Effect of Scaling, Retrieval Augmentation and Form on the Factual Consistency of Language Modelscited by 11
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
12 most cited of 28 All 28 (JSON)
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers22 Mar 2026
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model26 Jun 2025
- 2025From Standalone LLMs to Integrated Intelligence: A Survey of Compound Al Systems5 Jun 2025
- 2025A Comprehensive Analysis of Large Language Model Outputs: Similarity, Diversity, and Bias14 May 2025
- 2025End-to-End Dialog Neural Coreference Resolution: Balancing Efficiency and Accuracy in Large-Scale Systems8 Apr 2025
- 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Models21 Jan 2025
- 2024Analysing the Residual Stream of Language Models Under Knowledge Conflicts21 Oct 2024
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineering21 Oct 2024
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuning30 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024TTM-RE: Memory-Augmented Document-Level Relation Extraction9 Jun 2024
12 newest of 28 All 28 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025MLP Memory: A Retriever-Pretrained Memory for Large Language Models
- 2023BRENT: Bidirectional Retrieval Enhanced Norwegian Transformer
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
- 2026Knowledge Capsules: Structured Nonparametric Memory Units for LLMs
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories
- 2024Memory3: Language Modeling with Explicit Memory
- 2025Evaluating Long-Term Memory for Long-Context Question Answering
- 2022Knowledge-in-Context: Towards Knowledgeable Semi-Parametric Language Models