Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have shown strong abilities in general language tasks, yet adapting them to specific domains remains a challenge. Current method like Domain Adaptive Pretraining (DAPT) requires costly full-parameter training and suffers from catastrophic forgetting. Meanwhile, Retrieval-Augmented Generation (RAG) introduces substantial inference latency due to expensive nearest-neighbor searches and longer context. This paper introduces Memory Decoder, a plug-and-play pretrained memory that enables efficient domain adaptation without changing the original model's parameters. Memory Decoder employs a small transformer decoder that learns to imitate the behavior of an external non-parametric retriever. Once trained, Memory Decoder can be seamlessly integrated with any pretrained language model that shares the same tokenizer, requiring no model-specific modifications. Experimental results demonstrate that Memory Decoder enables effective adaptation of various Qwen and Llama models to three distinct specialized domains: biomedicine, finance, and law, reducing perplexity by an average of 6.17 points. Overall, Memory Decoder introduces a novel paradigm centered on a specially pretrained memory component designed for domain-specific adaptation. This memory architecture can be integrated in a plug-and-play manner, consistently enhancing performance across multiple models within the target domain.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 32 of its 49 references that are in the map. First posted on arXiv 13 Aug 2025.
Builds on
32 of 49 references.
References · 32
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
- 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 997
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
20 more
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2023In-Context Retrieval-Augmented Language Modelscited by 702
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 493
- 2023Adapting Language Models to Compress Contextscited by 356
- 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 319
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 263
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2024Continual Learning and Catastrophic Forgettingcited by 77
- 2023FinGPT: Democratizing Internet-scale Data for Financial Large Language Modelscited by 67
- 2023BianQue: Balancing the Questioning and Suggestion Ability of Health LLMs with Multi-turn Health Conversations Polished by ChatGPTcited by 65
- 2022Nonparametric Masked Language Modelingcited by 40
- 2023Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models Memoriescited by 34
- 2023Why do Nearest Neighbor Language Models Work?cited by 29
- 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inferencecited by 27
- 2024Great Memory, Shallow Reasoning: Limits of kNN-LMscited by 8
- 2023Automated Refugee Case Analysis: An NLP Pipeline for Supporting Legal Practitionerscited by 6
Built on by
Citing papers per year: 2025: 3; 2026: 13.
16 papers.
Sort:
By area:
- 2025Memory in the Age of AI Agentscited by 303
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 44
- 2026Dual Latent Memory for Visual Multi-agent Systemcited by 10
- 2026Hierarchical Memory Orchestration for Personalized Persistent Agentscited by 4
- 2026MeMo: Memory as a Modelcited by 4
- 2026Intern-S2-Preview: Scientific Agentic Foundation Modelcited by 4
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2026MemSFT: Mitigating Alignment Tax with an External Parametric Memorycited by 3
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
- 2025AtlasKV: Augmenting LLMs with Billion-Scale Knowledge Graphs in 20GB VRAMcited by 1
- 2026Decoupled Reasoning with Implicit Fact Tokens (DRIFT): A Dual-Model Framework for Efficient Long-Context Inferencecited by 1
4 more
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
- 2026Evolving Token Communication with Parametric Memory Networkcited by 0
- 2026Controlled Dynamics Attractor Transformercited by 0
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultationcited by 0
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultation28 Sep 2026
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents20 Sep 2026
- 2026Intern-S2-Preview: Scientific Agentic Foundation Model13 Aug 2026
- 2026MemSFT: Mitigating Alignment Tax with an External Parametric Memory28 Jul 2026
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memory5 Jul 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026MeMo: Memory as a Model14 May 2026
- 2026Evolving Token Communication with Parametric Memory Network3 May 2026
- 2026Hierarchical Memory Orchestration for Personalized Persistent Agents2 Apr 2026
- 2026Decoupled Reasoning with Implicit Fact Tokens (DRIFT): A Dual-Model Framework for Efficient Long-Context Inference10 Feb 2026
- 2026Dual Latent Memory for Visual Multi-agent System31 Jan 2026
4 more
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
- 2025AtlasKV: Augmenting LLMs with Billion-Scale Knowledge Graphs in 20GB VRAM20 Oct 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025Memory in the Age of AI Agentscited by 303
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 44
- 2026Intern-S2-Preview: Scientific Agentic Foundation Modelcited by 4
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents20 Sep 2026
- 2026Intern-S2-Preview: Scientific Agentic Foundation Model13 Aug 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
- 2026Dual Latent Memory for Visual Multi-agent Systemcited by 10
- 2026Hierarchical Memory Orchestration for Personalized Persistent Agentscited by 4
- 2026MeMo: Memory as a Modelcited by 4
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
- 2026Evolving Token Communication with Parametric Memory Networkcited by 0
- 2026Controlled Dynamics Attractor Transformercited by 0
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultationcited by 0
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultation28 Sep 2026
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memory5 Jul 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026MeMo: Memory as a Model14 May 2026
- 2026Evolving Token Communication with Parametric Memory Network3 May 2026
- 2026Hierarchical Memory Orchestration for Personalized Persistent Agents2 Apr 2026
- 2026Dual Latent Memory for Visual Multi-agent System31 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2024Memory3: Language Modeling with Explicit Memory
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
- 2025MLP Memory: A Retriever-Pretrained Memory for Large Language Models
- 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decoding
- 2024Reference Trustable Decoding: A Training-Free Augmentation Paradigm for Large Language Models
- 2024Online Adaptation of Language Models with a Memory of Amortized Contexts
- 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference
- 2025REFRAG: Rethinking RAG based Decoding