On the Domain Adaptation and Generalization of Pretrained Language Models: A Survey

Xu Guo, Han YuarXiv 2022 · DOI

Abstract

Pretrained Language Models (PLMs) like BERT and GPT have established a new paradigm in Natural Language Processing, yet their performance often degrades when applied to specialized domains such as medicine or law. This survey provides a comprehensive roadmap for domain adaptation, introducing a novel taxonomy that categorizes strategies into data augmentation, model optimization, and personalization. By synthesizing modern techniques, the authors highlight the transition from general-purpose foundation models to specialized, high-performance systems.

Introduction: The Domain Gap Challenge

While PLMs possess vast general linguistic knowledge, they frequently encounter a "domain gap"—a mismatch between general-purpose pretraining data (e.g., Wikipedia) and the specific vocabulary, syntax, and logic of target domains. Traditional finetuning on small domain-specific datasets often results in overfitting or "catastrophic forgetting," where the model loses its original reasoning capabilities. This survey explores how modern adaptation techniques bridge this gap while maintaining model stability and performance.

A Taxonomy of Adaptation Strategies

The authors propose a structured view of domain adaptation, organizing methods into three primary pillars: Data Augmentation, Model Optimization, and Model Personalization.

Taxonomy of domain adaptation strategies including categories, definitions, and subcategories (S1-S9).

1. Data Augmentation (Input-centric)

These methods focus on manipulating the input space to better align with the target domain:

  • Importance Weighting (S1): Prioritizing relevant source samples during training.
  • Pseudo-labeling (S2): Utilizing teacher models to generate labels for unlabeled target data, facilitating self-training.
  • Prompting (S3): Leveraging "cloze-style" templates to activate the PLM's latent knowledge without extensive parameter updates.

2. Model Optimization (Objective-centric)

Optimization strategies modify the learning process to induce domain-specific representations:

  • Continual Learning (S4): Further pretraining on domain corpora (e.g., BioBERT). This often includes vocabulary adaptation to incorporate technical terms.
  • Adversarial Learning (S5): Employing discriminators to ensure the model learns domain-invariant features.
  • Metric Learning (S6): Using statistical measures like Maximum Mean Discrepancy (MMD) to align source and target distributions.

3. Model Personalization (Scale-centric)

Personalization is an emerging field focused on adapting a single PLM to multiple sub-domains or users simultaneously:

  • Reparameterization (S9): Techniques like Adapters and LoRA (Low-Rank Adaptation) inject small, trainable modules into a frozen model, allowing for efficient multi-domain scaling.

Research Landscape and Benchmarks

The survey maps these strategies across a wide array of existing research and PLMs, illustrating the diverse approaches taken in the field:

Mapping of related works to the proposed taxonomy of assumptions and approaches across various PLMs.

To evaluate these methods, the paper identifies several key benchmarks:

  • Sentiment Analysis: Multi-domain Amazon Reviews.
  • Named Entity Recognition (NER): BioNLP (medical) and WNUT2016 (social media).
  • Summarization: AdaptSum, a benchmark specifically designed for low-resource abstractive summarization across six domains.
  • Dialogue: MultiWOZ for multi-domain human conversations.

Key Insights and Results

  • The Modular "Lego" Approach: Domain adaptation is evolving into a modular pipeline where prompting, adapters, and continual learning can be combined.
  • Vocabulary as a Bottleneck: Adapting the tokenizer and embedding layer is often as critical as weight updates for technical domains.
  • Efficiency vs. Performance: While continual pretraining remains the performance "gold standard," Parameter-Efficient Tuning (e.g., LoRA) offers a competitive alternative that mitigates catastrophic forgetting with minimal overhead.
  • Prompting Potential: Prompting excels in few-shot scenarios but currently lags behind full finetuning when larger datasets are available.

Future Directions

The authors highlight several critical areas for future research:

  • Mitigating Catastrophic Forgetting: Developing more robust methods to preserve general knowledge during domain-specific updates.
  • Low-Resource Adaptation: Improving performance in "near-zero" data scenarios remains a significant challenge.
  • Lifelong Learning: Moving toward models that can dynamically update knowledge through human interaction without full retraining.

Summary updated

BibTeX
@misc{guo2022domain,
  author = {Xu Guo and Han Yu},
  title = {{On the Domain Adaptation and Generalization of Pretrained Language Models: A Survey}},
  year = {2022},
  eprint = {2211.03154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.03154},
}
Figure