[Paper Review] Multi-Source Domain Adaptation for Text Classification via DistanceNet-Bandits
This paper proposes DistanceNet-Bandits, a multi-source domain adaptation framework for text classification that uses distance-based measures (e.g., MMD, CORAL, Cosine) as auxiliary loss functions to align source and target domain representations. It further introduces a multi-armed bandit controller to dynamically select optimal source domains during training, achieving state-of-the-art performance on sentiment analysis benchmarks by reducing domain shift error and improving generalization on low-resource targets.
Domain adaptation performance of a learning algorithm on a target domain is a function of its source domain error and a divergence measure between the data distribution of these two domains. We present a study of various distance-based measures in the context of NLP tasks, that characterize the dissimilarity between domains based on sample estimates. We first conduct analysis experiments to show which of these distance measures can best differentiate samples from same versus different domains, and are correlated with empirical results. Next, we develop a DistanceNet model which uses these distance measures, or a mixture of these distance measures, as an additional loss function to be minimized jointly with the task's loss function, so as to achieve better unsupervised domain adaptation. Finally, we extend this model to a novel DistanceNet-Bandit model, which employs a multi-armed bandit controller to dynamically switch between multiple source domains and allow the model to learn an optimal trajectory and mixture of domains for transfer to the low-resource target domain. We conduct experiments on popular sentiment analysis datasets with several diverse domains and show that our DistanceNet model, as well as its dynamic bandit variant, can outperform competitive baselines in the context of unsupervised domain adaptation.
Motivation & Objective
- To study and compare various distance-based measures for estimating domain dissimilarity in NLP tasks.
- To develop DistanceNet, a model that jointly minimizes task loss and domain discrepancy loss to improve unsupervised domain adaptation.
- To extend DistanceNet to a multi-source setting using a multi-armed bandit controller for dynamic source domain selection.
- To evaluate the effectiveness of distance measures and the proposed framework on real-world sentiment analysis datasets with diverse domains.
Proposed method
- The paper evaluates five distance measures: L2, Maximum Mean Discrepancy (MMD), Fisher Linear Discriminant (FDA), Cosine, and Correlation Alignment (CORAL).
- DistanceNet integrates these distance measures as additional loss terms during training to minimize distributional differences between source and target domain features.
- A mixture of distance measures is used with an unsupervised criterion to reduce hyperparameter sensitivity and improve robustness.
- For multi-source adaptation, a multi-armed bandit controller dynamically selects the most effective source domain at each training step based on performance feedback.
- The bandit policy is trained end-to-end with the classification and distance loss, enabling adaptive domain scheduling.
- Experiments are conducted on a multi-domain sentiment analysis dataset with five domains: MR, Books, Apparel, Baby, and Camera.
Experimental results
Research questions
- RQ1Which domain distance measures best distinguish between samples from the same or different domains in NLP tasks?
- RQ2How do different distance measures correlate with empirical domain adaptation performance?
- RQ3Can combining multiple distance measures improve unsupervised domain adaptation beyond single-measure baselines?
- RQ4Can a dynamic, bandit-driven controller for source domain selection outperform static or round-robin scheduling in multi-source domain adaptation?
Key findings
- The MMD-based DistanceNet model outperforms the baseline by one standard deviation in average performance across out-of-domain settings.
- The mixture of distance measures in DistanceNet achieves the highest average performance, improving over the baseline by two standard deviations.
- The DistanceNet-Bandit model improves individual target domain results and achieves a 1.1-point average gain over the non-bandit baseline, with improvements significant at the two-standard-deviation level.
- Visualization shows that the bandit controller learns context-specific domain preferences—for example, favoring 'Books' and 'Apparel' for 'MR' and 'Baby' targets, respectively.
- Even when reusing hyperparameters from single-source experiments, the bandit consistently outperforms the non-bandit baseline, demonstrating robustness and adaptability.
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.