Abstract
Sentiment analysis performance often degrades when models are applied to domains different from their training data due to domain discrepancy. This paper introduces two frameworks for Multi-Source Unsupervised Domain Adaptation (MS-UDA): Weighting Scheme based UDA (WS-UDA) and Two-Stage Training based UDA (2ST-UDA). By employing adversarial training, these frameworks effectively separate domain-invariant shared features from domain-specific private features. Furthermore, a multi-class discriminator is utilized to compute instance-level weights for source classifiers, enabling more accurate sentiment prediction in unlabeled target domains. Evaluations on the Amazon Review and FDU-MTL datasets show that the proposed methods outperform existing state-of-the-art techniques.
Introduction
The context-dependent nature of language poses a significant challenge for sentiment analysis (SA). A phrase like "it runs fast" carries positive sentiment for electronics but negative sentiment for battery-operated devices. This domain discrepancy necessitates domain adaptation techniques. While labeled data may be abundant for certain "source" domains, obtaining labels for a new "target" domain is often costly and time-consuming. Multi-Source Unsupervised Domain Adaptation (MS-UDA) aims to leverage multiple labeled source domains to predict sentiment in an unlabeled target domain. Current methods often struggle to account for domain-specific "private" knowledge or rely on assumptions that do not hold in natural language processing.
Methods
The authors propose a two-stage approach to MS-UDA to address these challenges.
WS-UDA (Weighting Scheme based UDA)
This framework utilizes a shared feature extractor ($E_s$) to capture domain-invariant information and multiple private extractors ($E_{p_j}$) for domain-specific features. An adversarial training regime is established using a discriminator ($D$). The shared extractor is trained to "fool" the discriminator, ensuring its features are domain-blind. Conversely, private extractors are encouraged to retain features that help the discriminator identify the source domain. Crucially, the discriminator also serves as a probability estimator, calculating instance-level weights ($\hat{w}$) that determine the relevance of each source classifier for a given target instance.
2ST-UDA (Two-Stage Training based UDA)
Building upon WS-UDA, this framework uses the weighted predictions to generate pseudo-labels for the target domain. It employs a dynamic confidence threshold ($\Delta$) that initially accepts only high-confidence labels and gradually incorporates more data as training progresses, eventually training a dedicated target-specific feature extractor.
Results and Discussion
The frameworks were evaluated on the Amazon Review Dataset and the FDU-MTL dataset. On the Amazon dataset, 2ST-UDA achieved an average accuracy of 84.14%, surpassing previous state-of-the-art models like MDAN and MAN. On the more complex FDU-MTL dataset, the models showed improvements in 12 out of 16 domains, with an average accuracy increase of 1.2% to 1.5%.
A key insight of this work is the importance of private knowledge. While many models discard domain-specific features to focus solely on shared ones, this approach isolates them, maintaining a richer context for sentiment prediction.
The effectiveness of the adversarial separation is evidenced by the performance of the discriminator. As shown in the training curves, the accuracy of the discriminator on private features increases significantly, while its ability to distinguish domains from shared features decreases toward a random baseline, confirming the successful separation of feature types.
Conclusion
This paper demonstrates that adversarial training can be effectively used not only for feature alignment but also for instance-level weighting and feature separation in MS-UDA. The proposed WS-UDA and 2ST-UDA frameworks provide a robust solution for sentiment analysis across diverse domains. Future work may explore the application of these weighting schemes to other text classification tasks such as intent detection or topic categorization.
Summary updated