Adapting a Language Model While Preserving its General Knowledge
Abstract
Domain-adaptive pre-training (or DA-training for short), also known as post-training, aims to train a pre-trained general-purpose language model (LM) using an unlabeled corpus of a particular domain to adapt the LM so that endtasks in the domain can give improved performances. However, existing DA-training methods are in some sense blind as they do not explicitly identify what knowledge in the LM should be preserved and what should be changed by the domain corpus. This paper shows that the existing methods are suboptimal and proposes a novel method to perform a more informed adaptation of the knowledge in the LM by (1) soft-masking the attention heads based on their importance to best preserve the general knowledge in the LM and (2) contrasting the representations of the general and the full (both general and domain knowledge) to learn an integrated representation with both general and domain-specific knowledge. Experimental results will demonstrate the effectiveness of the proposed approach. 1
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.
11 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
- Selecting Large Language Model to Fine-tune via Rectified Scaling Law cites Continual Pre-training of Language Models
- Demystifying Domain-adaptive Post-training for Financial LLMs cites Continual Pre-training of Language Models
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
- The Lottery Ticket Hypothesis for Pre-trained BERT Networks cites A Simple Framework for Contrastive Learning of Visual Representations
- The Lottery Ticket Hypothesis for Pre-trained BERT Networks cites Reducing Transformer Depth on Demand with Structured Dropout
- Continual Pre-training of Language Models cites A Simple Framework for Contrastive Learning of Visual Representations
- Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Training data-efficient image transformers & distillation through attention cites Reducing Transformer Depth on Demand with Structured Dropout
Cited by top-tier papers11
- Selecting Large Language Model to Fine-tune via Rectified Scaling LawHaowei Lin, Baizhou Huang, Haotian Ye, Qinyu Chen et al.ICML 2024 · 32 citations
- Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models' MemoriesShizhe Diao, Tianyang Xu, Ruijia Xu, Jiawei Wang et al.ACL 2023 · 17 citations
- Continual Pre-training of Language ModelsZixuan Ke, Yijia Shao, Haowei Lin, Tatsuya Konishi et al.ICLR 2023 · 15 citations
- Once Read is Enough: Domain-specific Pretraining-free Language Models with Cluster-guided Sparse Experts for Long-tail Domain KnowledgeFang Dong, Mengyi Chen, Jixian Zhou, Yubin Shi et al.NeurIPS 2024 · 6 citations
- Demystifying Domain-adaptive Post-training for Financial LLMsZixuan Ke, Yifei Ming, Xuan-Phi Nguyen, Caiming Xiong et al.EMNLP 2025 · 2 citations
Builds on13
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
- Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 citations
- The Lottery Ticket Hypothesis for Pre-trained BERT NetworksTianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu et al.NeurIPS 2020 · 428 citations
Related papers
- DADA: Distribution-Aware Domain Adaptation of PLMs for Information RetrievalDohyeon Lee, Jongyoon Kim, Seung-won Hwang, Joonsuk ParkACL Findings 2024 · 1 citation
- Adversarial and Domain-Aware BERT for Cross-Domain Sentiment AnalysisChunning Du, Haifeng Sun, Jingyu Wang, Qi Qi et al.ACL 2020 · 165 citations
- Unlocking LLMs' Self-Improvement Capacity with Autonomous Learning for Domain AdaptationKe Ji, Junying Chen, Anningzhe Gao, Wenya Xie et al.ACL Findings 2025
- ADEPT: Continual Pretraining via Adaptive Expansion and Dynamic Decoupled TuningJinyang Zhang, Yue Fang, Hongxin Ding, Weibin Liao et al.ICLR 2026 · 5 citations
- LLaMA Pro: Progressive LLaMA with Block ExpansionChengyue Wu, Yukang Gan, Yixiao Ge, Zeyu Lu et al.ACL 2024
