Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass
Not on the map. Why?
Abstract (arXiv)
Large language models (LMs) are typically adapted to improve performance on new contexts (eg text prompts that define new tasks or domains) through fine-tuning or prompting. However, there is an accuracy compute tradeoff -- fine-tuning incurs significant training cost and prompting increases inference overhead. We introduce GenerativeAdapter, an effective and efficient adaptation method that directly maps new contexts to low-rank LM adapters, thereby significantly reducing inference overhead with no need for finetuning. The adapter generator is trained via self-supervised learning, and can be used to adapt a single frozen LM for any new task simply by mapping the associated task or domain context to a new adapter. We apply GenerativeAdapter to two pretrained LMs (Mistral-7B-Instruct and Llama2-7B-Chat) and evaluate the adapted models in three adaption scenarios: knowledge acquisition from documents, learning from demonstrations, and personalization for users. In StreamingQA, our approach is effective in injecting knowledge into the LM's parameters, achieving a 63.5% improvement in F1 score over the model with supervised fine-tuning (from 19.5 to 31.5) for contexts as long as 32K tokens. In the MetaICL in-context learning evaluation, our method achieves an average accuracy of 44.9 across 26 tasks, outperforming the base model. On MSC, our method proves to be highly competitive in memorizing user information from conversations with a 4x reduction in computation and memory costs compared to prompting with full conversation history. Together, these results suggest that GenerativeAdapter should allow for general adaption to a wide range of different contexts.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 36 of its 44 references that are in the map. First posted on arXiv 8 Nov 2024.
Builds on
36 of 44 references.
References · 36
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020Rethinking Attention with Performerscited by 1,584
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 740
24 more
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2023LaMP: When Large Language Models Meet Personalizationcited by 425
- 2021Random Feature Attentioncited by 350
- 2023Adapting Language Models to Compress Contextscited by 350
- 2021Beyond Goldfish Memory: Long-Term Open-Domain Conversationcited by 266
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2016Using Fast Weights to Attend to the Recent Pastcited by 161
- 2022StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Modelscited by 123
- 2024Injecting New Knowledge into Large Language Models via Supervised Fine-Tuningcited by 56
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 54
- 2023Meta-Learning Online Adaptation of Language Modelscited by 43
- 2023Compressed Context Memory For Online Language Model Interactioncited by 42
- 2024Online Adaptation of Language Models with a Memory of Amortized Contextscited by 35
- 2023Dodo: Dynamic Contextual Compression for Decoder-only LMscited by 23
- 2022Meta-Learning Fast Weight Language Modelscited by 20
- 2024Compressing Lengthy Context With UltraGistcited by 4
Built on by
Citing papers per year: 2025: 6; 2026: 20.
26 papers.
Sort:
By area:
- 2025Self-Adapting Language Modelscited by 71
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 36
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 22
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 16
- 2026LatentSkill: From In-Context Textual Skills to In-Weight Latent Skills for LLM Agentscited by 7
- 2026Training Transformers for KV Cache Compressibilitycited by 6
- 2025Context Parametrization with Compositional Adapterscited by 3
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updatescited by 3
- 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuningcited by 2
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuningcited by 1
- 2025Understanding Parametric Knowledge Injection in Retrieval-Augmented Generationcited by 1
14 more
- 2026Training Large Reasoning Models Efficiently via Progressive Thought Encodingcited by 1
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolutioncited by 1
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atomscited by 1
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functionscited by 1
- 2026PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialoguecited by 1
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
- 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answeringcited by 0
- 2026Amortized Low-Rank Adaptation for Model-Based Reinforcement Learningcited by 0
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalizationcited by 0
- 2026HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agentscited by 0
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited by 0
- 2026Doc2LoRA Provides Decodable Representations of Scientific Ideascited by 0
- 2026Internalizer: Portable Context-to-Parameter Mapping for Very Large Language Modelscited by 0
- 2026Internalizer: Portable Context-to-Parameter Mapping for Very Large Language Models8 Oct 2026
- 2026Doc2LoRA Provides Decodable Representations of Scientific Ideas29 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agents25 Sep 2026
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents20 Sep 2026
- 2026Amortized Low-Rank Adaptation for Model-Based Reinforcement Learning10 Sep 2026
- 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answering27 Aug 2026
- 2026PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialogue7 Aug 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atoms10 Jun 2026
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution4 Jun 2026
14 more
- 2026LatentSkill: From In-Context Textual Skills to In-Weight Latent Skills for LLM Agents4 Jun 2026
- 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuning28 May 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026Training Transformers for KV Cache Compressibility7 May 2026
- 2026Training Large Reasoning Models Efficiently via Progressive Thought Encoding18 Feb 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Pass6 Feb 2026
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updates2 Feb 2026
- 2025Understanding Parametric Knowledge Injection in Retrieval-Augmented Generation14 Oct 2025
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuning26 Sep 2025
- 2025Context Parametrization with Compositional Adapters26 Sep 2025
- 2025Self-Adapting Language Models12 Jun 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillation11 Mar 2025
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 36
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updatescited by 3
- 2026Training Large Reasoning Models Efficiently via Progressive Thought Encodingcited by 1
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atomscited by 1
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atoms10 Jun 2026
- 2026Training Large Reasoning Models Efficiently via Progressive Thought Encoding18 Feb 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updates2 Feb 2026
- 2026Training Transformers for KV Cache Compressibilitycited by 6
- 2026Training Transformers for KV Cache Compressibility7 May 2026
- 2025Self-Adapting Language Modelscited by 71
- 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 22
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 16
- 2025Context Parametrization with Compositional Adapterscited by 3
- 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuningcited by 2
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuningcited by 1
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolutioncited by 1
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functionscited by 1
- 2026PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialoguecited by 1
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
- 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answeringcited by 0
12 most cited of 16 All 16 (JSON)
- 2026Internalizer: Portable Context-to-Parameter Mapping for Very Large Language Models8 Oct 2026
- 2026Doc2LoRA Provides Decodable Representations of Scientific Ideas29 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answering27 Aug 2026
- 2026PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialogue7 Aug 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution4 Jun 2026
- 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuning28 May 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Pass6 Feb 2026
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuning26 Sep 2025
12 newest of 16 All 16 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024RE-Adapt: Reverse Engineered Adaptation of Large Language Models
- 2023Batch Prompting: Efficient Inference with Large Language Model APIs
- 2023kNN-Adapter: Efficient Domain Adaptation for Black-Box Language Models
- 2024The Power of Adaptation: Boosting In-Context Learning through Adaptive Prompting
- 2026Summarize Before You Speak with ARACH: A Training-Free Inference-Time Plug-In for Enhancing LLMs via Global Attention Reallocation
- 2024An Empirical Study on Cross-lingual Vocabulary Adaptation for Efficient Language Model Inference
- 2025Optimising Language Models for Downstream Tasks: A Post-Training Perspective
- 2026Cautious Context Steering for Language Model Personalization