The Trade-offs of Domain Adaptation for Neural Language Models
Abstract
This work connects language model adaptation with concepts of machine learning theory. We consider a training setup with a large outof-domain set and a small in-domain set. We derive how the benefit of training a model on either set depends on the size of the sets and the distance between their underlying distributions. We analyze how out-of-domain pretraining before in-domain fine-tuning achieves better generalization than either solution independently. Finally, we present how adaptation techniques based on data selection, such as importance sampling, intelligent data selection and influence functions, can be presented in a common framework which highlights their similarity and also their subtle differences.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Unsupervised Domain Clusters in Pretrained Language Models cites Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
- Don't Stop Pretraining: Adapt Language Models to Domains and Tasks cites Unsupervised Domain Clusters in Pretrained Language Models
Cited by top-tier papers3
- Towards General Continuous Memory for Vision-Language ModelsWenyi Wu, Zixuan Song, Kun Zhou, Yifei Shao et al.NeurIPS 2025 · 19 citations
- Can LMs Generalize to Future Data? An Empirical Analysis on Text SummarizationChi Seng Cheang, Hou Pong Chan, Derek F. Wong, Xuebo Liu et al.EMNLP 2023 · 2 citations
- RICo: Refined In-Context Contribution for Automatic Instruction-Tuning Data SelectionYixin Yang, Qingxiu Dong, Linli Yao, Fangwei Zhu et al.AAAI 2026
Builds on4
- Estimating Training Data Influence by Tracing Gradient DescentGarima Pruthi, Frederick Liu, Satyen Kale, Mukund SundararajanNeurIPS 2020 · 784 citations
- Conditionally Adaptive Multi-Task Learning: Improving Transfer Learning in NLP Using Fewer Parameters & Less DataJonathan Pilault, Amine Elhattami, Christopher J. PalICLR 2021 · 105 citations
- Don't Stop Pretraining: Adapt Language Models to Domains and TasksSuchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo et al.ACL 2020 · 93 citations
- Unsupervised Domain Clusters in Pretrained Language ModelsRoee Aharoni, Yoav GoldbergACL 2020 · 13 citations
Related papers
- How Does the Pretraining Distribution Shape In-Context Learning? A Fundamental Trade-OffWaïss Azizian, Ali HasanICML 2026
- Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline MethodsWanru Zhao, Yihong Chen, Yuzhi Tang, Wentao Ma et al.ICLR 2026 · 4 citations
- Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and EvaluationMarius Mosbach, Tiago Pimentel, Shauli Ravfogel, Dietrich Klakow et al.ACL Findings 2023 · 81 citations
- Data Selection for Language Models via Importance ResamplingSang Michael Xie, Shibani Santurkar, Tengyu Ma, Percy LiangNeurIPS 2023 · 383 citations
- Farewell to Aimless Large-scale Pretraining: Influential Subset Selection for Language ModelXiao Wang, Weikang Zhou, Qi Zhang, Jie Zhou et al.ACL Findings 2023 · 11 citations
