mlsanityData to 7 Oct 2026

Online Adaptation of Language Models with a Memory of Amortized Contexts

arXiv 2403.04317 ↗First posted 7 Mar 2024cs.LG cs.CLcited by 35

Not on the map. Why?

Abstract (arXiv)

Due to the rapid generation and dissemination of information, large language models (LLMs) quickly run out of date despite enormous development costs. To address the crucial need to keep models updated, online learning has emerged as a critical tool when utilizing LLMs for real-world applications. However, given the ever-expanding corpus of unseen documents and the large parameter space of modern LLMs, efficient adaptation is essential. To address these challenges, we propose Memory of Amortized Contexts (MAC), an efficient and effective online adaptation framework for LLMs with strong knowledge retention. We propose a feature extraction and memory-augmentation approach to compress and extract information from new documents into compact modulations stored in a memory bank. When answering questions, our model attends to and extracts relevant knowledge from this memory bank. To learn informative modulations in an efficient manner, we utilize amortization-based meta-learning, which substitutes an otherwise required optimization process with a single forward pass of the encoder. Subsequently, we learn to choose from and aggregate selected documents into a single modulation by conditioning on the question, allowing us to adapt a frozen language model during test time without requiring further gradient updates. Our experiment demonstrates the superiority of MAC in multiple aspects, including online adaptation performance, time, and memory efficiency. In addition, we show how MAC can be combined with and improve the performance of popular alternatives such as retrieval augmented generations (RAGs). Code is available at: https://github.com/jihoontack/MAC.

Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 80 of its 104 references that are in the map. First posted on arXiv 7 Mar 2024.

Builds on

80 of 104 references.

References · 80

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  7. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  8. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  11. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  12. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
38 more
  1. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  2. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  3. 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,286
  4. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  5. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  6. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  7. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
  8. 2016HyperNetworkscited by 1,003
  9. 2022Token Merging: Your ViT But Fastercited by 995
  10. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  11. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
  12. 2018Variational image compression with a scale hyperpriorcited by 910
  13. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  14. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  15. 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
  16. 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
  17. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
  18. 2018Progress & Compress: A scalable framework for continual learningcited by 516
  19. 2021Fast Model Editing at Scalecited by 491
  20. 2022Memory-Based Model Editing at Scalecited by 443
  21. 2018Conditional Neural Processescited by 421
  22. 2023Adapting Language Models to Compress Contextscited by 350
  23. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
  24. 2018Neural Processescited by 307
  25. 2021Time-Aware Language Models as Temporal Knowledge Basescited by 290
  26. 2019Attentive Neural Processescited by 280
  27. 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
  28. 2022Prompting GPT-3 To Be Reliablecited by 258
  29. 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
  30. 2021Mind the Gap: Assessing Temporal Generalization in Neural Language Modelscited by 226
  31. 2022Memorizing Transformerscited by 219
  32. 2023Augmenting Language Models with Long-Term Memorycited by 186
  33. 2021Towards Continual Knowledge Learning of Language Modelscited by 172
  34. 2023Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuningcited by 148
  35. 2019Fast and Flexible Multi-Task Classification Using Conditional Neural Adaptive Processescited by 131
  36. 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
  37. 2022StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Modelscited by 123
  38. 2019Functional Regularisation for Continual Learning with Gaussian Processescited by 121

50 most cited of 80 All 80 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 11; 2025: 12; 2026: 12.

35 papers.

Sort:

By area:

  1. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  2. 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
  3. 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agentscited by 99
  4. 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
  5. 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 80
  6. 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
  7. 2025VisMem: Latent Vision Memory Unlocks Potential of Vision-Language Modelscited by 31
  8. 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
  9. 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
  10. 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compressioncited by 12
  11. 2024Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimizationcited by 11
  12. 2024ChroniclingAmericaQA: A Large-scale Question Answering Dataset based on Historical American Newspaper Pagescited by 10
23 more
  1. 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
  2. 2024ComplexTempQA:A 100m Dataset for Complex Temporal Question Answeringcited by 6
  3. 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
  4. 2024Composable Interventions for Language Modelscited by 4
  5. 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decodingcited by 4
  6. 2026Memory Bank Compression for Continual Adaptation of Large Language Modelscited by 4
  7. 2026Beyond Static Models: An Evolving Framework for Continual Learning in Large Language Models across Training Stagescited by 4
  8. 2026ConMem: Contribution-Aware Memory for Long-Horizon Manufacturing Inspection Logscited by 4
  9. 2024Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answeringcited by 3
  10. 2024Latent Paraphrasing: Perturbation on Layers Improves Knowledge Injection in Language Modelscited by 3
  11. 2025Can Past Experience Accelerate LLM Reasoning?cited by 3
  12. 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
  13. 2025LLMs on a Budget? Say HOLAcited by 1
  14. 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agentscited by 1
  15. 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
  16. 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Onescited by 0
  17. 2026Scene-Aware Memory Discrimination: Deciding Which Personal Knowledge Stayscited by 0
  18. 2026MemDLM: Memory-Enhanced DLM Trainingcited by 0
  19. 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
  20. 2026In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspectivecited by 0
  21. 2026MIITA: Memory-Induced Inference-Time Adaptation for Continual Learning with Small Language Modelscited by 0
  22. 2026SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQLcited by 0
  23. 2026Online Test-Time Adaptation for Generalizable Dynamic Graph Anomaly Detectioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models
  2. 2026Thinking at the Right Size: Amortized Distillation Across Post-Trained LLMs
  3. 2025COSMOS: Predictable and Cost-Effective Adaptation of LLMs
  4. 2024Memory3: Language Modeling with Explicit Memory
  5. 2026Filtering Beats Fine Tuning: A Bayesian Kalman View of In Context Learning in LLMs
  6. 2023Amortizing intractable inference in large language models
  7. 2026HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agents
  8. 2025Contextual Attention Modulation: Towards Efficient Multi-Task Adaptation in Large Language Models