Abstract
Standard Unsupervised Domain Adaptation (UDA) typically assumes the existence of a labeled source dataset. However, in sensitive domains such as healthcare or private communications, data cannot be easily shared or annotated. This paper introduces "Domain Adaptation from Scratch," a framework that strategically combines Active Learning (AL) and Domain Adaptation (DA) to build high-performing models without requiring any labels from the target domain. By optimizing the selection of source data for annotation, the proposed hybrid methods significantly outperform traditional baselines.
Introduction
Deploying NLP models in sensitive environments—including healthcare, military applications, and private home assistants—presents a significant challenge: data privacy. Crowdsourcing labels for such data is impossible due to security risks, and internal expert annotation is often prohibitively expensive.
This research addresses the scenario where no pre-labeled data exists. Given a limited budget to annotate non-sensitive source domains, the goal is to identify which examples will best facilitate adaptation to a hidden, sensitive target domain.
Methodology
The study evaluates four primary algorithmic approaches:
- Active Learning (AL): Iterative selection of examples based on model uncertainty (e.g., Certainty or MC-Dropout).
- Domain Adaptation (DA): Learning domain-invariant features using techniques like Domain-Tuned (DT) BERT or Domain Adversarial Neural Networks (DANN).
- Hybrid Approaches: The core contribution involves combining AL and DA. Notable methods include Cert-DT and Cert-TAPAD. The latter utilizes Task-adapted Proxy A-distance (TAPAD) to measure task-specific domain similarity, restricting the annotation pool to the most relevant source domains.
- Selection: A non-iterative approach using a domain discriminator to select source examples that most closely resemble the target distribution.
Experimental Setup
The framework was evaluated on two distinct NLP tasks:
- Sentiment Analysis (SA): Utilizing five domains of product and airline reviews (Books, DVDs, Electronics, Kitchen, and Airline).
- Named Entity Recognition (NER): Utilizing six domains from the OntoNotes 5.0 dataset, including Broadcast Conversations (BC), Magazine (MZ), and Web data (WB).
Results and Discussion
The experimental results demonstrate a clear synergy between Active Learning and Domain Adaptation. While AL improves task-specific learning efficiency, DA ensures the generalizability of these features to the target domain.
Key Findings
- Performance Gains: Hybrid methods achieved a 7.3% improvement in AUC for Sentiment Analysis and a 6.8% improvement for NER over vanilla random-labeling baselines.
- The "Selection" Paradox: While the "Selection" method performed well in Sentiment Analysis, it failed in NER. In the NER task, the method favored the "Web" (wb) domain due to surface-level similarity, but this domain contained fewer entities, leading the model to learn poor predictive patterns. This underscores that domain similarity does not always correlate with data quality.
- Efficiency: The hybrid methods, particularly Cert-TAPAD, consistently achieved higher accuracy with fewer labeled examples, proving critical for budget-constrained annotation scenarios.
Conclusion
"Domain Adaptation from Scratch" provides a robust framework for training models on sensitive data. The integration of AL and DA, specifically through methods like Cert-TAPAD, offers a significant performance boost over isolated techniques. Future research will explore more intelligent initial seed selection and the integration of self-training and few-shot learning paradigms to further minimize human annotation requirements.
Summary updated