[Paper Review] Unsupervised Domain Adaptation with Adapter
This paper proposes an adapter-based fine-tuning method for unsupervised domain adaptation (UDA) in NLP, where trainable adapter modules are inserted into a pre-trained language model (PrLM) while keeping the original PrLM weights frozen. The method uses a two-step training process—domain-fusion training on mixed source and target domain data followed by task-specific fine-tuning—achieving state-of-the-art performance with improved parameter efficiency and knowledge preservation, outperforming full fine-tuning baselines by 1.21% and 1.09% on SDA and XNLI respectively.
Unsupervised domain adaptation (UDA) with pre-trained language models (PrLM) has achieved promising results since these pre-trained models embed generic knowledge learned from various domains. However, fine-tuning all the parameters of the PrLM on a small domain-specific corpus distort the learned generic knowledge, and it is also expensive to deployment a whole fine-tuned PrLM for each domain. This paper explores an adapter-based fine-tuning approach for unsupervised domain adaptation. Specifically, several trainable adapter modules are inserted in a PrLM, and the embedded generic knowledge is preserved by fixing the parameters of the original PrLM at fine-tuning. A domain-fusion scheme is introduced to train these adapters using a mix-domain corpus to better capture transferable features. Elaborated experiments on two benchmark datasets are carried out, and the results demonstrate that our approach is effective with different tasks, dataset sizes, and domain similarities.
Motivation & Objective
- To address the problem of knowledge distortion and high deployment cost in fine-tuning full pre-trained language models (PrLMs) for domain-specific unsupervised domain adaptation (UDA).
- To preserve generic knowledge embedded in PrLMs by freezing their parameters during domain adaptation.
- To improve transferability of features across domains using parameter-efficient adapter modules.
- To explore the effectiveness of a two-step training process—domain-fusion followed by task-specific fine-tuning—for enhancing UDA performance.
Proposed method
- Insert trainable adapter modules into a transformer-based pre-trained language model (PrLM), with all original PrLM parameters frozen during training.
- Apply a two-step training process: first, domain-fusion training using masked language modeling (MLM) loss on a mixed corpus of source and target domains; second, task-specific fine-tuning using task-specific loss on source domain data.
- Use domain-fusion training to learn transferable features across domains by jointly optimizing on diverse domain data.
- Implement a bottlenecked adapter architecture with down-projection, feed-forward network, and up-projection layers to minimize parameter overhead.
- Perform t-SNE visualization of hidden representations to analyze domain alignment and feature transferability under different domain-fusion strategies.
- Evaluate the method on two benchmark datasets—SDA and XNLI—under varying data sizes and domain similarities.
Experimental results
Research questions
- RQ1Can adapter-based fine-tuning preserve generic knowledge in pre-trained language models during unsupervised domain adaptation?
- RQ2How effective is the two-step training process (domain-fusion followed by task fine-tuning) in improving UDA performance compared to standard fine-tuning?
- RQ3Does domain-fusion training with mixed-domain data enhance feature transferability, especially when domains are similar?
- RQ4How does model performance vary with different data sizes and domain similarities in the UDA setup?
- RQ5Is adapter-based adaptation more effective than full fine-tuning in preserving knowledge and improving downstream task accuracy?
Key findings
- The proposed adapter-based method achieves an absolute improvement of 1.21% over full fine-tuning on the SDA dataset and 1.09% on the XNLI dataset, demonstrating superior performance.
- On the small SDA dataset, the two-step training process increases the adapter’s effectiveness by approximately 6 times, improving performance from 92.89% to 93.31%.
- Domain-fusion training yields a 1.14% performance gain on SDA (where domains are similar), but only 0.22% on XNLI (where domains are dissimilar), indicating higher sensitivity to domain similarity.
- t-SNE visualization shows that domain-fusion with adapters leads to better-separated and more aligned hidden representations than full-model domain-fusion or no domain-fusion.
- The adapter module alone improves performance by only 0.07% on SDA without domain-fusion, but gains 0.87% with the two-step process, highlighting the necessity of domain-fusion for small data.
- The method maintains high efficiency and scalability, as only adapter parameters are fine-tuned, avoiding costly full-model retraining per domain.
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.