paper-with-me

Papers

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

2025-08-13 · Jiaqi Cao, Jiarui Wang, Rubin Wei, Qipeng Guo, Kai Chen, Bowen Zhou, Zhouhan Lin 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.

📄 PDF Abstract BibTeX arXiv:2508.09874

Code (0)

등록된 구현이 없습니다.

Tasks

Domain Adaptation

Similar Papers 제목 키워드 기반

NGM: A Plug-and-Play Training-Free Memory Module for LLMs

2026-05-16 · Yuwen Qu, Wenhui Dong, Chenyang Si, Caifeng Shan arxiv

Recent studies introduce conditional memory modules that decouple knowledge storage from neural computation, enabling more direct knowledge access. Compared to MoE, which relies on dynamic computation paths, explicit loo…

Code Generation

Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory

2026-07-30 · Rubin Wei, Jiaqi Cao, Jiarui Wang, Junming Zhang 외 arxiv

Decoder-only language models entangle long-term memory and reasoning in a single parameter set, making it difficult to scale memory capacity independently. Memory Decoder introduces a parametric long-term memory module b…

Memory-Guided Point Cloud Completion for Dental Reconstruction

2025-12-03 · Jianan Sun, Yukang Huang, Dongzhihan Wang, Mingyu Fan arxiv

Partial dental point clouds often suffer from large missing regions caused by occlusion and limited scanning views, which bias encoder-only global features and force decoders to hallucinate structures. We propose a retri…

Point Cloud CompletionPoint Clouds

Memory Augmented Self-Play

2018-05-28 · Shagun Sodhani, Vardaan Pahuja

Self-play is an unsupervised training procedure which enables the reinforcement learning agents to explore the environment without requiring any external rewards. We augment the self-play setting by providing an external…

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Pluggable Neural Machine Translation Models via Memory-augmented Adapters

2023-07-12 · Yuzhuang Xu, Shuo Wang, Peng Li, Xuebo Liu 외

Although neural machine translation (NMT) models perform well in the general domain, it remains rather challenging to control their generation behavior to satisfy the requirement of different users. Given the expensive t…

Machine TranslationNMTTranslation