Efficient Hierarchical Domain Adaptation for Pretrained Language Models
Not on the map. Why?
Abstract (arXiv)
The remarkable success of large language models has been driven by dense models trained on massive unlabeled, unstructured corpora. These corpora typically contain text from diverse, heterogeneous sources, but information about the source of the text is rarely used during training. Transferring their knowledge to a target domain is typically done by continuing training in-domain. In this paper, we introduce a method to permit domain adaptation to many diverse domains using a computationally efficient adapter approach. Our method is based on the observation that textual domains are partially overlapping, and we represent domains as a hierarchical tree structure where each node in the tree is associated with a set of adapter weights. When combined with a frozen pretrained language model, this approach enables parameter sharing among related domains, while avoiding negative interference between unrelated ones. Experimental results with GPT-2 and a large fraction of the 100 most represented websites in C4 show across-the-board improvements in-domain. We additionally provide an inference time algorithm for a held-out domain and show that averaging over multiple paths through the tree enables further gains in generalization, while adding only a marginal cost to inference.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 34 of its 52 references that are in the map. First posted on arXiv 16 Dec 2021.
Builds on
34 of 52 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2016Layer Normalizationcited by 5,579
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
22 more
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018Deep contextualized word representationscited by 2,285
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
- 2017Learning multiple visual domains with residual adapterscited by 553
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
- 2020MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfercited by 443
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 318
- 2019Simple, Scalable Adaptation for Neural Machine Translationcited by 239
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 130
- 2020UDapter: Language Adaptation for Truly Universal Dependency Parsingcited by 77
- 2019Adapt or Get Left Behind: Domain Adaptation through BERT Language Model Finetuning for Aspect-Target Sentiment Classificationcited by 62
- 2020Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformerscited by 57
- 2016What to do about non-standard (or non-canonical) language in NLPcited by 35
- 2020Recipes for Adapting Pre-trained Monolingual and Multilingual Models to Machine Translationcited by 28
- 2021Multilingual Unsupervised Neural Machine Translation with Denoising Adapterscited by 22
Built on by
Citing papers per year: 2022: 8; 2023: 14; 2024: 8; 2025: 2.
32 papers.
Sort:
By area:
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2023Modular Deep Learningcited by 82
- 2024Towards Modular LLMs by Building and Reusing a Library of LoRAscited by 72
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
- 2022NLPeer: A Unified Resource for the Computational Study of Peer Reviewcited by 60
- 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
- 2023Guiding Language Model Reasoning with Planning Tokenscited by 58
- 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
- 2022M2D2: A Massively Multi-domain Language Modeling Datasetcited by 26
- 2023Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learningcited by 26
20 more
- 2022On the Domain Adaptation and Generalization of Pretrained Language Models: A Surveycited by 22
- 2022Geographic Adaptation of Pretrained Language Modelscited by 14
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guaranteescited by 14
- 2024DALLMi: Domain Adaption for LLM-based Multi-label Classifiercited by 7
- 2023Plug-and-Play Document Modules for Pre-trained Modelscited by 6
- 2023Plug-and-Play Knowledge Injection for Pre-trained Language Modelscited by 6
- 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimizationcited by 6
- 2024AgentGroupChat: An Interactive Group Chat Simulacra For Better Eliciting Emergent Behaviorcited by 6
- 2023A Block Metropolis-Hastings Sampler for Controllable Energy-based Text Generationcited by 5
- 2023From Adversarial Arms Race to Model-centric Evaluation: Motivating a Unified Automatic Robustness Evaluation Frameworkcited by 3
- 2022Mixed-effects transformers for hierarchical adaptationcited by 2
- 2023GMNLP at SemEval-2023 Task 12: Sentiment Analysis with Phylogeny-Based Adapterscited by 2
- 2024A critical review of methods and challenges in large language modelscited by 2
- 2022Effective Transfer Learning for Low-Resource Natural Language Understandingcited by 1
- 2023Population Expansion for Training Language Models with Private Federated Learningcited by 1
- 2023Diversifying Knowledge Enhancement of Biomedical Language Models using Adapter Modules and Knowledge Graphscited by 1
- 2024Towards Generalized Offensive Language Identificationcited by 1
- 2025Minifinetuning: Low-Data Generation Domain Adaptation through Corrective Self-Distillationcited by 1
- 2024Adapter-based Approaches to Knowledge-enhanced Language Models -- A Surveycited by 0
- 2025A Lightweight Multi-Expert Generative Language Model System for Engineering Information and Knowledge Extractioncited by 0
- 2025Minifinetuning: Low-Data Generation Domain Adaptation through Corrective Self-Distillation30 May 2025
- 2025A Lightweight Multi-Expert Generative Language Model System for Engineering Information and Knowledge Extraction27 May 2025
- 2024Adapter-based Approaches to Knowledge-enhanced Language Models -- A Survey25 Nov 2024
- 2024Towards Generalized Offensive Language Identification26 Jul 2024
- 2024Towards Modular LLMs by Building and Reusing a Library of LoRAs18 May 2024
- 2024DALLMi: Domain Adaption for LLM-based Multi-label Classifier3 May 2024
- 2024A critical review of methods and challenges in large language models18 Apr 2024
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guarantees12 Apr 2024
- 2024AgentGroupChat: An Interactive Group Chat Simulacra For Better Eliciting Emergent Behavior20 Mar 2024
- 2024OLMo: Accelerating the Science of Language Models1 Feb 2024
- 2023Diversifying Knowledge Enhancement of Biomedical Language Models using Adapter Modules and Knowledge Graphs21 Dec 2023
- 2023Paloma: A Benchmark for Evaluating Language Model Fit16 Dec 2023
20 more
- 2023A Block Metropolis-Hastings Sampler for Controllable Energy-based Text Generation7 Dec 2023
- 2023Guiding Language Model Reasoning with Planning Tokens9 Oct 2023
- 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimization5 Oct 2023
- 2023Population Expansion for Training Language Models with Private Federated Learning14 Jul 2023
- 2023From Adversarial Arms Race to Model-centric Evaluation: Motivating a Unified Automatic Robustness Evaluation Framework29 May 2023
- 2023Plug-and-Play Knowledge Injection for Pre-trained Language Models28 May 2023
- 2023Plug-and-Play Document Modules for Pre-trained Models28 May 2023
- 2023GMNLP at SemEval-2023 Task 12: Sentiment Analysis with Phylogeny-Based Adapters25 Apr 2023
- 2023Scaling Expert Language Models with Unsupervised Domain Discovery24 Mar 2023
- 2023Modular Deep Learning22 Feb 2023
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models14 Feb 2023
- 2023Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learning23 Jan 2023
- 2022NLPeer: A Unified Resource for the Computational Study of Peer Review12 Nov 2022
- 2022On the Domain Adaptation and Generalization of Pretrained Language Models: A Survey6 Nov 2022
- 2022M2D2: A Massively Multi-domain Language Modeling Dataset13 Oct 2022
- 2022Effective Transfer Learning for Low-Resource Natural Language Understanding19 Aug 2022
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Models5 Aug 2022
- 2022Mixed-effects transformers for hierarchical adaptation3 May 2022
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Models24 Mar 2022
- 2022Geographic Adaptation of Pretrained Language Models16 Mar 2022
- 2023Guiding Language Model Reasoning with Planning Tokenscited by 58
- 2023Guiding Language Model Reasoning with Planning Tokens9 Oct 2023
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
- 2023AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Modelscited by 84
- 2023Modular Deep Learningcited by 82
- 2024Towards Modular LLMs by Building and Reusing a Library of LoRAscited by 72
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
- 2022NLPeer: A Unified Resource for the Computational Study of Peer Reviewcited by 60
- 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
- 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
- 2022M2D2: A Massively Multi-domain Language Modeling Datasetcited by 26
- 2023Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learningcited by 26
- 2022On the Domain Adaptation and Generalization of Pretrained Language Models: A Surveycited by 22
12 most cited of 30 All 30 (JSON)
- 2025Minifinetuning: Low-Data Generation Domain Adaptation through Corrective Self-Distillation30 May 2025
- 2025A Lightweight Multi-Expert Generative Language Model System for Engineering Information and Knowledge Extraction27 May 2025
- 2024Adapter-based Approaches to Knowledge-enhanced Language Models -- A Survey25 Nov 2024
- 2024Towards Generalized Offensive Language Identification26 Jul 2024
- 2024Towards Modular LLMs by Building and Reusing a Library of LoRAs18 May 2024
- 2024DALLMi: Domain Adaption for LLM-based Multi-label Classifier3 May 2024
- 2024A critical review of methods and challenges in large language models18 Apr 2024
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guarantees12 Apr 2024
- 2024OLMo: Accelerating the Science of Language Models1 Feb 2024
- 2023Diversifying Knowledge Enhancement of Biomedical Language Models using Adapter Modules and Knowledge Graphs21 Dec 2023
- 2023Paloma: A Benchmark for Evaluating Language Model Fit16 Dec 2023
- 2023A Block Metropolis-Hastings Sampler for Controllable Energy-based Text Generation7 Dec 2023
12 newest of 30 All 30 (JSON)