[Paper Review] Unsupervised Domain Adaptation of Contextualized Embeddings for Sequence Labeling
This paper proposes domain-adaptive fine-tuning to adapt pretrained contextualized embeddings like BERT to out-of-domain tasks without labeled data in the target domain. By fine-tuning BERT on unlabeled target-domain text using masked language modeling, the method achieves significant improvements—especially on out-of-vocabulary words—in sequence labeling for Early Modern English and Twitter, outperforming strong BERT baselines and avoiding catastrophic forgetting.
Contextualized word embeddings such as ELMo and BERT provide a foundation for strong performance across a wide range of natural language processing tasks by pretraining on large corpora of unlabeled text. However, the applicability of this approach is unknown when the target domain varies substantially from the pretraining corpus. We are specifically interested in the scenario in which labeled data is available in only a canonical source domain such as newstext, and the target domain is distinct from both the labeled and pretraining texts. To address this scenario, we propose domain-adaptive fine-tuning, in which the contextualized embeddings are adapted by masked language modeling on text from the target domain. We test this approach on sequence labeling in two challenging domains: Early Modern English and Twitter. Both domains differ substantially from existing pretraining corpora, and domain-adaptive fine-tuning yields substantial improvements over strong BERT baselines, with particularly impressive results on out-of-vocabulary words. We conclude that domain-adaptive fine-tuning offers a simple and effective approach for the unsupervised adaptation of sequence labeling to difficult new domains.
Motivation & Objective
- To address the challenge of applying pretrained contextualized embeddings to domains that differ substantially from the pretraining distribution, such as historical or social media text.
- To investigate whether unsupervised domain adaptation can improve sequence labeling performance when labeled data is only available in a source domain like newstext.
- To evaluate whether domain-adaptive fine-tuning on unlabeled target-domain text can enhance performance on out-of-vocabulary words without degrading performance on the source domain.
- To compare the effectiveness of unsupervised domain-adaptive fine-tuning against supervised fine-tuning, which risks catastrophic forgetting.
Proposed method
- Proposes domain-adaptive fine-tuning: fine-tuning BERT on unlabeled target-domain text using the masked language modeling objective.
- Applies this method to two challenging domains: Early Modern English and Twitter, both distinct from standard pretraining corpora.
- Uses the same BERT model fine-tuned on source-domain labeled data as a starting point, then further adapts it on unlabeled target-domain text.
- Employs wordpiece tokenization to handle rare and out-of-vocabulary words, improving robustness in low-resource domains.
- Avoids catastrophic forgetting by not using labeled target-domain data during adaptation, preserving performance on the source domain.
- Evaluates performance on part-of-speech tagging and named entity recognition, comparing against strong BERT baselines and prior unsupervised domain adaptation methods.
Experimental results
Research questions
- RQ1Can unsupervised domain-adaptive fine-tuning improve sequence labeling performance on out-of-domain texts like Early Modern English and Twitter without labeled data in the target domain?
- RQ2How does domain-adaptive fine-tuning compare to supervised fine-tuning in terms of performance degradation on the source domain?
- RQ3Does domain-adaptive fine-tuning yield significant improvements on out-of-vocabulary words in low-resource domains?
- RQ4Is the performance gain from domain-adaptive fine-tuning consistent across different types of domain shifts, such as diachronic (historical) and stylistic (social media) changes?
- RQ5Can a single BERT model be effectively adapted to multiple domains through unsupervised fine-tuning without catastrophic forgetting?
Key findings
- Domain-adaptive fine-tuning yields over 50% error reduction on out-of-vocabulary words in Early Modern English, significantly improving performance over strong BERT baselines.
- The method improves performance on named entity recognition in Twitter, outperforming most systems from the 2016 WNUT shared task.
- Unlike supervised fine-tuning, which causes catastrophic forgetting and degrades performance on the source domain, domain-adaptive fine-tuning maintains strong performance in both source and target domains.
- A BERT-based tagger outperforms the state-of-the-art unsupervised domain adaptation method from Yang and Eisenstein (2016) without any explicit adaptation steps.
- The approach is effective across diverse domain shifts, including diachronic changes (historical English) and stylistic shifts (social media), demonstrating broad applicability.
- The results suggest that unsupervised domain-adaptive fine-tuning enables a single model to generalize across multiple domains, offering a promising path for continual learning in NLP.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.