mlsanityData to 14 Oct 2026

Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models

arXiv 2508.09874 ↗First posted 13 Aug 2025cs.CL cs.AIcited by 16

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2024Qwen2.5 Technical Reportcited by 4,942
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  5. 2016Pointer Sentinel Mixture Modelscited by 3,096
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  7. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  8. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
  9. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  10. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
  11. 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 997
  12. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
20 more
  1. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  2. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  3. 2023In-Context Retrieval-Augmented Language Modelscited by 702
  4. 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 493
  5. 2023Adapting Language Models to Compress Contextscited by 356
  6. 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 319
  7. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 263
  8. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  9. 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
  10. 2021Efficient Nearest Neighbor Language Modelscited by 93
  11. 2021Adaptive Semiparametric Language Modelscited by 83
  12. 2024Continual Learning and Catastrophic Forgettingcited by 77
  13. 2023FinGPT: Democratizing Internet-scale Data for Financial Large Language Modelscited by 67
  14. 2023BianQue: Balancing the Questioning and Suggestion Ability of Health LLMs with Multi-turn Health Conversations Polished by ChatGPTcited by 65
  15. 2022Nonparametric Masked Language Modelingcited by 40
  16. 2023Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models Memoriescited by 34
  17. 2023Why do Nearest Neighbor Language Models Work?cited by 29
  18. 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inferencecited by 27
  19. 2024Great Memory, Shallow Reasoning: Limits of kNN-LMscited by 8
  20. 2023Automated Refugee Case Analysis: An NLP Pipeline for Supporting Legal Practitionerscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 13.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Memory3: Language Modeling with Explicit Memory
  2. 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
  3. 2025MLP Memory: A Retriever-Pretrained Memory for Large Language Models
  4. 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decoding
  5. 2024Reference Trustable Decoding: A Training-Free Augmentation Paradigm for Large Language Models
  6. 2024Online Adaptation of Language Models with a Memory of Amortized Contexts
  7. 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference
  8. 2025REFRAG: Rethinking RAG based Decoding