Online Adaptation of Language Models with a Memory of Amortized Contexts
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
38 more
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,286
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2016HyperNetworkscited by 1,003
- 2022Token Merging: Your ViT But Fastercited by 995
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2018Variational image compression with a scale hyperpriorcited by 910
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
- 2018Progress & Compress: A scalable framework for continual learningcited by 516
- 2021Fast Model Editing at Scalecited by 491
- 2022Memory-Based Model Editing at Scalecited by 443
- 2018Conditional Neural Processescited by 421
- 2023Adapting Language Models to Compress Contextscited by 350
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2018Neural Processescited by 307
- 2021Time-Aware Language Models as Temporal Knowledge Basescited by 290
- 2019Attentive Neural Processescited by 280
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
- 2021Mind the Gap: Assessing Temporal Generalization in Neural Language Modelscited by 226
- 2022Memorizing Transformerscited by 219
- 2023Augmenting Language Models with Long-Term Memorycited by 186
- 2021Towards Continual Knowledge Learning of Language Modelscited by 172
- 2023Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuningcited by 148
- 2019Fast and Flexible Multi-Task Classification Using Conditional Neural Adaptive Processescited by 131
- 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
- 2022StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Modelscited by 123
- 2019Functional Regularisation for Continual Learning with Gaussian Processescited by 121
50 most cited of 80 All 80 (JSON)
Built on by
Citing papers per year: 2024: 11; 2025: 12; 2026: 12.
35 papers.
Sort:
By area:
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
- 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agentscited by 99
- 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 80
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
- 2025VisMem: Latent Vision Memory Unlocks Potential of Vision-Language Modelscited by 31
- 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compressioncited by 12
- 2024Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimizationcited by 11
- 2024ChroniclingAmericaQA: A Large-scale Question Answering Dataset based on Historical American Newspaper Pagescited by 10
23 more
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
- 2024ComplexTempQA:A 100m Dataset for Complex Temporal Question Answeringcited by 6
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
- 2024Composable Interventions for Language Modelscited by 4
- 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decodingcited by 4
- 2026Memory Bank Compression for Continual Adaptation of Large Language Modelscited by 4
- 2026Beyond Static Models: An Evolving Framework for Continual Learning in Large Language Models across Training Stagescited by 4
- 2026ConMem: Contribution-Aware Memory for Long-Horizon Manufacturing Inspection Logscited by 4
- 2024Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answeringcited by 3
- 2024Latent Paraphrasing: Perturbation on Layers Improves Knowledge Injection in Language Modelscited by 3
- 2025Can Past Experience Accelerate LLM Reasoning?cited by 3
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2025LLMs on a Budget? Say HOLAcited by 1
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agentscited by 1
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Onescited by 0
- 2026Scene-Aware Memory Discrimination: Deciding Which Personal Knowledge Stayscited by 0
- 2026MemDLM: Memory-Enhanced DLM Trainingcited by 0
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
- 2026In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspectivecited by 0
- 2026MIITA: Memory-Induced Inference-Time Adaptation for Continual Learning with Small Language Modelscited by 0
- 2026SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQLcited by 0
- 2026Online Test-Time Adaptation for Generalizable Dynamic Graph Anomaly Detectioncited by 0
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents20 Sep 2026
- 2026Online Test-Time Adaptation for Generalizable Dynamic Graph Anomaly Detection20 Aug 2026
- 2026ConMem: Contribution-Aware Memory for Long-Horizon Manufacturing Inspection Logs30 Jul 2026
- 2026SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQL3 Jun 2026
- 2026In-Context Optimization for Retrieval-Augmented Generation: A Gradient-Descent Perspective25 May 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026MIITA: Memory-Induced Inference-Time Adaptation for Continual Learning with Small Language Models20 May 2026
- 2026MemDLM: Memory-Enhanced DLM Training23 Mar 2026
- 2026Beyond Static Models: An Evolving Framework for Continual Learning in Large Language Models across Training Stages13 Mar 2026
- 2026Position: Modular Memory is the Key to Continual Learning Agents2 Mar 2026
- 2026Scene-Aware Memory Discrimination: Deciding Which Personal Knowledge Stays12 Feb 2026
- 2026Memory Bank Compression for Continual Adaptation of Large Language Models2 Jan 2026
23 more
- 2025VisMem: Latent Vision Memory Unlocks Potential of Vision-Language Models14 Nov 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agents29 Sep 2025
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents24 Jul 2025
- 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decoding3 Jul 2025
- 2025LLMs on a Budget? Say HOLA23 Jun 2025
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Ones6 Jun 2025
- 2025Can Past Experience Accelerate LLM Reasoning?27 May 2025
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Survey28 Mar 2025
- 2025MemInsight: Autonomous Memory Augmentation for LLM Agents27 Mar 2025
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillation11 Mar 2025
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression21 Feb 2025
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Models10 Dec 2024
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
- 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass8 Nov 2024
- 2024Latent Paraphrasing: Perturbation on Layers Improves Knowledge Injection in Language Models1 Nov 2024
- 2024Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answering11 Sep 2024
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation1 Aug 2024
- 2024Composable Interventions for Language Models9 Jul 2024
- 2024Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimization20 Jun 2024
- 2024ComplexTempQA:A 100m Dataset for Complex Temporal Question Answering7 Jun 2024
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr 2024
- 2024ChroniclingAmericaQA: A Large-scale Question Answering Dataset based on Historical American Newspaper Pages26 Mar 2024
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
- 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agentscited by 99
- 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agentscited by 1
- 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
- 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agents29 Sep 2025
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents24 Jul 2025
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Survey28 Mar 2025
- 2025MemInsight: Autonomous Memory Augmentation for LLM Agents27 Mar 2025
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 80
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
- 2025Can Past Experience Accelerate LLM Reasoning?cited by 3
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2026Position: Modular Memory is the Key to Continual Learning Agents2 Mar 2026
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025Can Past Experience Accelerate LLM Reasoning?27 May 2025
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation1 Aug 2024
- 2026MemDLM: Memory-Enhanced DLM Trainingcited by 0
- 2026MemDLM: Memory-Enhanced DLM Training23 Mar 2026
- 2024Composable Interventions for Language Modelscited by 4
- 2024Composable Interventions for Language Models9 Jul 2024
- 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compressioncited by 12
- 2024Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimizationcited by 11
- 2024ChroniclingAmericaQA: A Large-scale Question Answering Dataset based on Historical American Newspaper Pagescited by 10
- 2024ComplexTempQA:A 100m Dataset for Complex Temporal Question Answeringcited by 6
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
- 2026Memory Bank Compression for Continual Adaptation of Large Language Modelscited by 4
- 2026Beyond Static Models: An Evolving Framework for Continual Learning in Large Language Models across Training Stagescited by 4
- 2026ConMem: Contribution-Aware Memory for Long-Horizon Manufacturing Inspection Logscited by 4
- 2024Latent Paraphrasing: Perturbation on Layers Improves Knowledge Injection in Language Modelscited by 3
- 2025LLMs on a Budget? Say HOLAcited by 1
12 most cited of 18 All 18 (JSON)
- 2026Online Test-Time Adaptation for Generalizable Dynamic Graph Anomaly Detection20 Aug 2026
- 2026ConMem: Contribution-Aware Memory for Long-Horizon Manufacturing Inspection Logs30 Jul 2026
- 2026SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQL3 Jun 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026MIITA: Memory-Induced Inference-Time Adaptation for Continual Learning with Small Language Models20 May 2026
- 2026Beyond Static Models: An Evolving Framework for Continual Learning in Large Language Models across Training Stages13 Mar 2026
- 2026Scene-Aware Memory Discrimination: Deciding Which Personal Knowledge Stays12 Feb 2026
- 2026Memory Bank Compression for Continual Adaptation of Large Language Models2 Jan 2026
- 2025LLMs on a Budget? Say HOLA23 Jun 2025
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Ones6 Jun 2025
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillation11 Mar 2025
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression21 Feb 2025
12 newest of 18 All 18 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models
- 2026Thinking at the Right Size: Amortized Distillation Across Post-Trained LLMs
- 2025COSMOS: Predictable and Cost-Effective Adaptation of LLMs
- 2024Memory3: Language Modeling with Explicit Memory
- 2026Filtering Beats Fine Tuning: A Bayesian Kalman View of In Context Learning in LLMs
- 2023Amortizing intractable inference in large language models
- 2026HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agents
- 2025Contextual Attention Modulation: Towards Efficient Multi-Task Adaptation in Large Language Models