mlsanityData to 14 Oct 2026

MLP Memory: A Retriever-Pretrained Memory for Large Language Models

arXiv 2508.01832 ↗First posted 3 Aug 2025cs.CLcited by 20

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

  1. 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentation9 Sep
  2. 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
  3. 2024ARL2: Aligning Retrievers for Black-box Large Language Models via Self-guided Adaptive Relevance Labeling21 Feb
  4. 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inference27 May
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May

Other references · 27

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Visual Instruction Tuningcited by 7,869
  6. 2020Scaling Laws for Neural Language Modelscited by 6,586
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  8. 2016Pointer Sentinel Mixture Modelscited by 3,096
  9. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  11. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  12. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
15 more
  1. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
  2. 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 997
  3. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  4. 2016Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filteringcited by 520
  5. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
  6. 2021Pay Attention to MLPscited by 368
  7. 2014Memory Networkscited by 363
  8. 2023Adapting Language Models to Compress Contextscited by 356
  9. 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
  10. 2023HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Modelscited by 341
  11. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 263
  12. 2023Augmenting Language Models with Long-Term Memorycited by 189
  13. 2021Efficient Nearest Neighbor Language Modelscited by 93
  14. 2022Efficient Language Modeling with Sparse all-MLPcited by 8
  15. 2024Great Memory, Shallow Reasoning: Limits of kNN-LMscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 18.

20 papers.

Sort:

By area:

  1. 2025Memory in the Age of AI Agentscited by 303
  2. 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 44
  3. 2025TeleMem: Building Long-Term and Multimodal Memory for Agentic AIcited by 14
  4. 2026δ-mem: Efficient Online Memory for Large Language Modelscited by 13
  5. 2026Dual Latent Memory for Visual Multi-agent Systemcited by 10
  6. 2026MSA: Memory Sparse Attention for Efficient End-to-End Memory Model Scaling to 100M Tokenscited by 6
  7. 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Schedulingcited by 4
  8. 2026Intern-S2-Preview: Scientific Agentic Foundation Modelcited by 4
  9. 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
  10. 2026MemSFT: Mitigating Alignment Tax with an External Parametric Memorycited by 3
  11. 2026Frozen Memory Is Not Enough: Rethinking External Memory as Extractioncited by 3
  12. 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
8 more
  1. 2026Decoupled Reasoning with Implicit Fact Tokens (DRIFT): A Dual-Model Framework for Efficient Long-Context Inferencecited by 1
  2. 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memorycited by 1
  3. 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inferencecited by 1
  4. 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
  5. 2026Repeated Shared Access Enables Grokking, but Edit Propagation Depends on an Addressable Memorycited by 0
  6. 2026MemoryAthena: Adaptive Routing over Latent and Generated Memoriescited by 0
  7. 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited by 0
  8. 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2022An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks
  2. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
  3. 2024Memory3: Language Modeling with Explicit Memory
  4. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories
  5. 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval
  6. 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute
  7. 2021Improving language models by retrieving from trillions of tokens
  8. 2026Latent Abstraction for Retrieval-Augmented Generation