mlsanityData to 7 Oct 2026

Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass

arXiv 2411.05877 ↗First posted 8 Nov 2024cs.LG cs.AI cs.CLcited by 26

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  6. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
  11. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  12. 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 740
24 more
  1. 2018CoQA: A Conversational Question Answering Challengecited by 674
  2. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  3. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  4. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  5. 2021MetaICL: Learning to Learn In Contextcited by 450
  6. 2023LaMP: When Large Language Models Meet Personalizationcited by 425
  7. 2021Random Feature Attentioncited by 350
  8. 2023Adapting Language Models to Compress Contextscited by 350
  9. 2021Beyond Goldfish Memory: Long-Term Open-Domain Conversationcited by 266
  10. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  11. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  12. 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
  13. 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
  14. 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
  15. 2016Using Fast Weights to Attend to the Recent Pastcited by 161
  16. 2022StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Modelscited by 123
  17. 2024Injecting New Knowledge into Large Language Models via Supervised Fine-Tuningcited by 56
  18. 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 54
  19. 2023Meta-Learning Online Adaptation of Language Modelscited by 43
  20. 2023Compressed Context Memory For Online Language Model Interactioncited by 42
  21. 2024Online Adaptation of Language Models with a Memory of Amortized Contextscited by 35
  22. 2023Dodo: Dynamic Contextual Compression for Decoder-only LMscited by 23
  23. 2022Meta-Learning Fast Weight Language Modelscited by 20
  24. 2024Compressing Lengthy Context With UltraGistcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 20.

26 papers.

Sort:

By area:

  1. 2025Self-Adapting Language Modelscited by 71
  2. 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 36
  3. 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
  4. 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 22
  5. 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 16
  6. 2026LatentSkill: From In-Context Textual Skills to In-Weight Latent Skills for LLM Agentscited by 7
  7. 2026Training Transformers for KV Cache Compressibilitycited by 6
  8. 2025Context Parametrization with Compositional Adapterscited by 3
  9. 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updatescited by 3
  10. 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuningcited by 2
  11. 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuningcited by 1
  12. 2025Understanding Parametric Knowledge Injection in Retrieval-Augmented Generationcited by 1
14 more
  1. 2026Training Large Reasoning Models Efficiently via Progressive Thought Encodingcited by 1
  2. 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolutioncited by 1
  3. 2026Doc-to-Atom: Learning to Compile and Compose Memory Atomscited by 1
  4. 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functionscited by 1
  5. 2026PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialoguecited by 1
  6. 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agentscited by 1
  7. 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
  8. 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answeringcited by 0
  9. 2026Amortized Low-Rank Adaptation for Model-Based Reinforcement Learningcited by 0
  10. 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalizationcited by 0
  11. 2026HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agentscited by 0
  12. 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited by 0
  13. 2026Doc2LoRA Provides Decodable Representations of Scientific Ideascited by 0
  14. 2026Internalizer: Portable Context-to-Parameter Mapping for Very Large Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024RE-Adapt: Reverse Engineered Adaptation of Large Language Models
  2. 2023Batch Prompting: Efficient Inference with Large Language Model APIs
  3. 2023kNN-Adapter: Efficient Domain Adaptation for Black-Box Language Models
  4. 2024The Power of Adaptation: Boosting In-Context Learning through Adaptive Prompting
  5. 2026Summarize Before You Speak with ARACH: A Training-Free Inference-Time Plug-In for Enhancing LLMs via Global Attention Reallocation
  6. 2024An Empirical Study on Cross-lingual Vocabulary Adaptation for Efficient Language Model Inference
  7. 2025Optimising Language Models for Downstream Tasks: A Post-Training Perspective
  8. 2026Cautious Context Steering for Language Model Personalization