MLP Memory: A Retriever-Pretrained Memory for Large Language Models
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Modern approaches to enhancing Large Language Models' factual accuracy and knowledge utilization face a fundamental trade-off: non-parametric retrieval-augmented generation (RAG) provides flexible access to external knowledge but suffers from high inference latency and shallow integration, while parametric fine-tuning methods like LoRA risk catastrophic forgetting and degraded general capabilities. In this work, we propose MLP Memory, a lightweight parametric module that learns to internalize retrieval patterns without explicit document access. By pretraining an MLP to imitate a kNN retriever's behavior on the entire pretraining dataset, we create a differentiable memory component that captures the benefits of retrieval-based knowledge access in a fully parametric form. Our architecture integrates this pretrained MLP Memory with Transformer decoders through simple probability interpolation, yielding 17.5% and 24.1% scaling gains on WikiText-103 and Web datasets, respectively. It further achieves 12.3% relative improvement on five question-answering benchmarks and 5.2 points absolute gain across nine general NLP tasks, while reducing hallucinations by up to 10 points on HaluEval. Moreover, MLP Memory delivers 2.5× faster inference than RAG with superior accuracy. Our findings show that learning retrieval patterns parametrically bridges the gap between efficient inference and effective knowledge access, offering a practical alternative to both RAG and fine-tuning approaches.
Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 32 of its 54 references that are in the map. First posted on arXiv 3 Aug 2025.
Builds on
32 of 54 references.
Closest ancestors · 5
Same direction, newest first
- 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentation9 Sep
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
- 2024ARL2: Aligning Retrievers for Black-box Large Language Models via Self-guided Adaptive Relevance Labeling21 Feb
- 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inference27 May
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
Other references · 27
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Visual Instruction Tuningcited by 7,869
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
15 more
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
- 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 997
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2016Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filteringcited by 520
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
- 2021Pay Attention to MLPscited by 368
- 2014Memory Networkscited by 363
- 2023Adapting Language Models to Compress Contextscited by 356
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
- 2023HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Modelscited by 341
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 263
- 2023Augmenting Language Models with Long-Term Memorycited by 189
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2022Efficient Language Modeling with Sparse all-MLPcited by 8
- 2024Great Memory, Shallow Reasoning: Limits of kNN-LMscited by 8
Built on by
Citing papers per year: 2025: 2; 2026: 18.
20 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
- 2025TeleMem: Building Long-Term and Multimodal Memory for Agentic AIcited by 14
- 2026δ-mem: Efficient Online Memory for Large Language Modelscited by 13
- 2026Dual Latent Memory for Visual Multi-agent Systemcited by 10
- 2026MSA: Memory Sparse Attention for Efficient End-to-End Memory Model Scaling to 100M Tokenscited by 6
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Schedulingcited 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
- 2026Frozen Memory Is Not Enough: Rethinking External Memory as Extractioncited by 3
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
8 more
- 2026Decoupled Reasoning with Implicit Fact Tokens (DRIFT): A Dual-Model Framework for Efficient Long-Context Inferencecited by 1
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memorycited by 1
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inferencecited by 1
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
- 2026Repeated Shared Access Enables Grokking, but Edit Propagation Depends on an Addressable Memorycited by 0
- 2026MemoryAthena: Adaptive Routing over Latent and Generated Memoriescited by 0
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited 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
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026MemoryAthena: Adaptive Routing over Latent and Generated Memories22 Sep 2026
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents20 Sep 2026
- 2026Frozen Memory Is Not Enough: Rethinking External Memory as Extraction17 Aug 2026
- 2026Intern-S2-Preview: Scientific Agentic Foundation Model13 Aug 2026
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inference3 Aug 2026
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory30 Jul 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
- 2026Repeated Shared Access Enables Grokking, but Edit Propagation Depends on an Addressable Memory17 Jun 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
8 more
- 2026δ-mem: Efficient Online Memory for Large Language Models12 May 2026
- 2026MSA: Memory Sparse Attention for Efficient End-to-End Memory Model Scaling to 100M Tokens6 Mar 2026
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Scheduling15 Feb 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
- 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
- 2025TeleMem: Building Long-Term and Multimodal Memory for Agentic AI12 Dec 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
- 2025TeleMem: Building Long-Term and Multimodal Memory for Agentic AIcited by 14
- 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
- 2025TeleMem: Building Long-Term and Multimodal Memory for Agentic AI12 Dec 2025
- 2026δ-mem: Efficient Online Memory for Large Language Modelscited by 13
- 2026Dual Latent Memory for Visual Multi-agent Systemcited by 10
- 2026MSA: Memory Sparse Attention for Efficient End-to-End Memory Model Scaling to 100M Tokenscited by 6
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Schedulingcited by 4
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2026Frozen Memory Is Not Enough: Rethinking External Memory as Extractioncited by 3
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inferencecited by 1
- 2026Repeated Shared Access Enables Grokking, but Edit Propagation Depends on an Addressable Memorycited by 0
- 2026MemoryAthena: Adaptive Routing over Latent and Generated Memoriescited by 0
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited 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
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026MemoryAthena: Adaptive Routing over Latent and Generated Memories22 Sep 2026
- 2026Frozen Memory Is Not Enough: Rethinking External Memory as Extraction17 Aug 2026
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inference3 Aug 2026
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memory5 Jul 2026
- 2026Repeated Shared Access Enables Grokking, but Edit Propagation Depends on an Addressable Memory17 Jun 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026δ-mem: Efficient Online Memory for Large Language Models12 May 2026
- 2026MSA: Memory Sparse Attention for Efficient End-to-End Memory Model Scaling to 100M Tokens6 Mar 2026
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Scheduling15 Feb 2026
- 2026Dual Latent Memory for Visual Multi-agent System31 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
- 2024Memory3: Language Modeling with Explicit Memory
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories
- 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval
- 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute
- 2021Improving language models by retrieving from trillions of tokens
- 2026Latent Abstraction for Retrieval-Augmented Generation