Adaptive Semiparametric Language Models
Not on the map. Why?
Abstract (arXiv)
We present a language model that combines a large parametric neural network (i.e., a transformer) with a non-parametric episodic memory component in an integrated architecture. Our model uses extended short-term context by caching local hidden states -- similar to transformer-XL -- and global long-term memory by retrieving a set of nearest neighbor tokens at each timestep. We design a gating function to adaptively combine multiple information sources to make a prediction. This mechanism allows the model to use either local context, short-term memory, or long-term memory (or any combination of them) on an ad hoc basis depending on the context. Experiments on word-based and character-based language modeling datasets demonstrate the efficacy of our proposed method compared to strong baselines.
Key facts. Cited by 83 papers in the map (data through 7 Oct 2026). Builds on 30 of its 41 references that are in the map. First posted on arXiv 4 Feb 2021.
Builds on
30 of 41 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
18 more
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Episodic Memory in Lifelong Language Learningcited by 188
- 2020Answering Complex Open-Domain Questions with Multi-Hop Dense Retrievalcited by 160
- 2017Generating Sentences by Editing Prototypescited by 88
- 2016Tying Word Vectors and Word Classifiers: A Loss Framework for Language Modelingcited by 87
- 2016Improving Neural Language Models with a Continuous Cachecited by 81
- 2020MEGATRON-CNTRL: Controllable Story Generation with External Knowledge Using Large-Scale Language Modelscited by 74
- 2016Efficient softmax approximation for GPUscited by 67
- 2017Learning to Remember Rare Eventscited by 63
- 2017Dynamic Evaluation of Neural Sequence Modelscited by 53
- 2017Unbounded cache model for online language modeling with open vocabularycited by 37
- 2020BERT-kNN: Adding a kNN Search Component to Pretrained Language Models for Better QAcited by 36
- 2019Non-Parametric Adaptation for Neural Machine Translationcited by 34
- 2019Dynamic Evaluation of Transformer Language Modelscited by 23
- 2016Generalizing and Hybridizing Count-based and Neural Language Modelscited by 10
Built on by
Citing papers per year: 2021: 11; 2022: 27; 2023: 26; 2024: 14; 2025: 4; 2026: 1.
83 papers.
Sort:
By area:
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2022Memorizing Transformerscited by 219
- 2021Internet-Augmented Dialogue Generationcited by 217
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
- 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 157
- 2022A Review on Language Models as Knowledge Basescited by 156
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2021End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answeringcited by 133
38 more
- 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2023Retrieval meets Long Context Large Language Modelscited by 114
- 2022Training Language Models with Memory Augmentationcited by 112
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2022Language Models that Seek for Knowledge: Modular Search & Generation for Dialogue and Prompt Completioncited by 102
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2021Data Augmentation Approaches in Natural Language Processing: A Surveycited by 82
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
- 2022Nonparametric Masked Language Modelingcited by 39
- 2021Towards mental time travel: a hierarchical memory for reinforcement learning agentscited by 38
- 2022Retrieval-Augmented Transformer for Image Captioningcited by 38
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2022Combining Modular Skills in Multitask Learningcited by 27
- 2024CMAT: A Multi-Agent Collaboration Tuning Framework for Enhancing Small Language Modelscited by 26
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processingcited by 25
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
- 2022Relational Memory Augmented Language Modelscited by 24
- 2022Decoupled Context Processing for Context Augmented Language Modelingcited by 24
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
- 2022Chunk-based Nearest Neighbor Machine Translationcited by 21
- 2023Dynamic Benchmarking of Masked Language Models on Temporal Concept Drift with Multiple Viewscited by 21
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
- 2022ChapterBreak: A Challenge Dataset for Long-Range Language Modelscited by 18
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LMcited by 18
- 2021You Only Need One Model for Open-domain Question Answeringcited by 17
- 2023Rethinking Privacy in Machine Learning Pipelines from an Information Flow Control Perspectivecited by 16
- 2025Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Modelscited by 16
- 2024Memorization in deep learning: A surveycited by 14
- 2023kNN-Adapter: Efficient Domain Adaptation for Black-Box Language Modelscited by 13
- 2023Transformer Working Memory Enables Regular Language Reasoning and Natural Language Length Extrapolationcited by 13
- 2023Learn to Memorize: Scalable Continual Learning in Semiparametric Models with Mixture-of-Neighbors Induction Memorycited by 12
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
50 most cited of 83 All 83 (JSON)
- 2026A Hippocampus for Linear Attention: An Exact Memory for What the Recurrent State Forgets2 Jul 2026
- 2025SimulRAG: Simulator-based RAG for Grounding LLMs in Long-form Scientific QA29 Sep 2025
- 2025Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models13 Aug 2025
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generation7 Aug 2025
- 2025Studying the Role of Input-Neighbor Overlap in Retrieval-Augmented Language Models Training Efficiency20 May 2025
- 2024Plan*RAG: Efficient Test-Time Planning for Retrieval Augmented Generation28 Oct 2024
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression28 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024Memorization in deep learning: A survey6 Jun 2024
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Tasks4 Jun 2024
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection25 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
38 more
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing30 Apr 2024
- 2024CMAT: A Multi-Agent Collaboration Tuning Framework for Enhancing Small Language Models2 Apr 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2024Retrieval is Accurate Generation27 Feb 2024
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey15 Jan 2024
- 2024A Comprehensive Study of Knowledge Editing for Large Language Models2 Jan 2024
- 2023PEFA: Parameter-Free Adapters for Large-scale Embedding-based Retrieval Models5 Dec 2023
- 2023Rethinking Privacy in Machine Learning Pipelines from an Information Flow Control Perspective27 Nov 2023
- 2023On Retrieval Augmentation and the Limitations of Language Model Training16 Nov 2023
- 2023The Unreasonable Effectiveness of Random Target Embeddings for Continuous-Output Neural Machine Translation31 Oct 2023
- 2023Knowledge Corpus Error in Question Answering27 Oct 2023
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Models15 Oct 2023
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretraining11 Oct 2023
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
- 2023Retrieval meets Long Context Large Language Models4 Oct 2023
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models30 Aug 2023
- 2023Pluggable Neural Machine Translation Models via Memory-augmented Adapters12 Jul 2023
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval23 Jun 2023
- 2023GLIMMER: generalized late-interaction memory reranker17 Jun 2023
- 2023KNN-LM Does Not Improve Open-ended Text Generation24 May 2023
- 2023Has It All Been Solved? Open NLP Research Questions Not Solved by Large Language Models21 May 2023
- 2023HistAlign: Improving Context Dependency in Language Generation by Aligning with History8 May 2023
- 2023Transformer Working Memory Enables Regular Language Reasoning and Natural Language Length Extrapolation5 May 2023
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memory3 May 2023
- 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Study13 Apr 2023
- 2023Synthetically generated text for supervised text analysis28 Mar 2023
- 2023Train/Test-Time Adaptation with Retrieval25 Mar 2023
- 2023Learn to Memorize: Scalable Continual Learning in Semiparametric Models with Mixture-of-Neighbors Induction Memory2 Mar 2023
- 2023Retrieved Sequence Augmentation for Protein Representation Learning24 Feb 2023
- 2023Dynamic Benchmarking of Masked Language Models on Temporal Concept Drift with Multiple Views23 Feb 2023
- 2023On the Generalization Ability of Retrieval-Enhanced Transformers23 Feb 2023
- 2023kNN-Adapter: Efficient Domain Adaptation for Black-Box Language Models21 Feb 2023
- 2022Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translation17 Dec 2022
- 2022Nonparametric Masked Language Modeling2 Dec 2022
- 2022Adaptation Approaches for Nearest Neighbor Language Models15 Nov 2022
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LM28 Oct 2022
- 2022Nearest Neighbor Language Models for Stylistic Controllable Generation27 Oct 2022
50 newest of 83 All 83 (JSON)
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2021End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answeringcited by 133
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
- 2022Retrieval-Augmented Transformer for Image Captioningcited by 38
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processingcited by 25
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selectioncited by 25
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
12 most cited of 16 All 16 (JSON)
- 2025SimulRAG: Simulator-based RAG for Grounding LLMs in Long-form Scientific QA29 Sep 2025
- 2025Studying the Role of Input-Neighbor Overlap in Retrieval-Augmented Language Models Training Efficiency20 May 2025
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection25 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing30 Apr 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Models15 Oct 2023
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretraining11 Oct 2023
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval23 Jun 2023
- 2023KNN-LM Does Not Improve Open-ended Text Generation24 May 2023
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memory3 May 2023
12 newest of 16 All 16 (JSON)
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2022Memorizing Transformerscited by 219
- 2021Internet-Augmented Dialogue Generationcited by 217
- 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 157
- 2022A Review on Language Models as Knowledge Basescited by 156
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2023Retrieval meets Long Context Large Language Modelscited by 114
- 2022Training Language Models with Memory Augmentationcited by 112
12 most cited of 64 All 64 (JSON)
- 2026A Hippocampus for Linear Attention: An Exact Memory for What the Recurrent State Forgets2 Jul 2026
- 2025Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models13 Aug 2025
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generation7 Aug 2025
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression28 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024Memorization in deep learning: A survey6 Jun 2024
- 2024Retrieval is Accurate Generation27 Feb 2024
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey15 Jan 2024
- 2024A Comprehensive Study of Knowledge Editing for Large Language Models2 Jan 2024
- 2023PEFA: Parameter-Free Adapters for Large-scale Embedding-based Retrieval Models5 Dec 2023
- 2023Rethinking Privacy in Machine Learning Pipelines from an Information Flow Control Perspective27 Nov 2023
12 newest of 64 All 64 (JSON)