Reproduce “Online Adaptation of Language Models with a Memory of Amortized Contexts” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jihoon Tack, Jaehyung Kim, Eric Mitchell, Jinwoo Shin, Yee Whye Teh, Jonathan Richard Schwarz
MAC adapts a frozen language model to document streams by encoding each document as a compact learned modulation and storing it in a memory bank. At query time, a question-conditioned aggregator combines relevant modulations, without updating the base model’s weights. On StreamingQA after 1,665 documents, LLaMA-2 7B scores 21.79 F1 versus 18.97 for Salient Spans; CaMeLS is unavailable for this comparison.
Key insights
- Amortization-based meta-learning allows for efficient, gradient-free adaptation at inference time by learning to predict PEFT modulations for new documents.
- Storing compressed knowledge in a memory bank and selectively aggregating it for queries effectively mitigates catastrophic forgetting and preserves learned information.
- Integrating memory-efficient techniques like backpropagation dropout and hierarchical modulation aggregation makes the framework scalable to larger LLMs and extensive data streams.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.