Abstract
Domain adaptation remains a critical challenge in machine learning, where models trained on a source domain often fail to generalize to a target domain due to distribution shifts. We present Adversarial Representation learning for Domain Adaptation (ARDA), a framework that utilizes the Wasserstein distance to learn domain-invariant and task-discriminative features. By addressing the vanishing gradient problem inherent in traditional adversarial methods, ARDA provides a more stable training signal, leading to state-of-the-art performance across diverse benchmarks in sentiment analysis, spam filtering, and image recognition.
Introduction
In many real-world applications, the assumption that training and test data are drawn from the same distribution is frequently violated. This "domain shift" typically results in significant performance degradation when a model is deployed on a target domain. Domain Adaptation (DA) seeks to mitigate this by mapping both source and target domains into a shared latent space where their distributions are indistinguishable to a domain classifier, yet distinct enough for a task-specific classifier.
Existing adversarial methods, such as Domain-Adversarial Neural Networks (DANN), often struggle when the domain discrepancy is large. In such cases, the domain discriminator can easily distinguish between domains, leading to vanishing gradients that stall the feature extractor's learning process. ARDA addresses this by replacing the standard binary classification loss with a Wasserstein-based critic.
Methodology
The ARDA architecture consists of three primary components: a Feature Generator, a task-specific Classifier, and a Domain Critic.
- Feature Generator ($f_g$): This module maps input data from both source and target domains into a common latent feature space.
- Domain Critic ($f_w$): Instead of a binary classifier, ARDA employs a "critic" to estimate the Wasserstein distance (Earth Mover's distance) between the source and target feature distributions. The Wasserstein metric is continuous and differentiable almost everywhere, providing a stable gradient even when distributions have non-overlapping supports.
- Adaptive Classifier ($f_c$): This component is trained on labeled source data to perform the target task, ensuring that the learned features remain discriminative.
To ensure the critic satisfies the Lipschitz continuity requirement of the Wasserstein metric, the authors implement a gradient penalty, which offers superior stability compared to traditional weight clipping.
Experimental Evaluation
The effectiveness of ARDA was evaluated on four diverse benchmarks:
- Amazon Review Dataset: Sentiment analysis across product categories (Books, DVD, Electronics, Kitchen).
- Email Spam Filtering: Knowledge transfer from public to private inboxes.
- 20 Newsgroups: Hierarchical text classification.
- Office-Caltech: Image recognition across four domains (Amazon, Webcam, DSLR, and Caltech-256).
ARDA consistently outperformed existing state-of-the-art methods like Maximum Mean Discrepancy (MMD) and DANN. For instance, on the Amazon dataset, ARDA achieved an average accuracy of 82.43%, which improved to 85.34% when combined with Marginalized Stacked Denoising Autoencoders (mSDA). On the Email Spam dataset, it reached 89.90%, a significant improvement over other adversarial methods.
Discussion and Visual Analysis
A key insight of this work is that gradient stability is paramount for successful domain alignment. Traditional cross-entropy losses fail when distributions are far apart, whereas the Wasserstein distance provides a consistent "slope" for optimization.
Visual evidence using t-SNE plots confirms that ARDA (labeled as WDGRL in the visualization) successfully merges source and target clusters more effectively than competing methods, while simultaneously maintaining clear boundaries between different class labels. This dual capability—domain invariance and task discriminativeness—is the hallmark of the ARDA approach.
Conclusion and Future Work
ARDA demonstrates that leveraging the Wasserstein distance within an adversarial framework significantly improves the robustness of domain adaptation. While the current implementation focuses on unsupervised adaptation, future work could extend this to semi-supervised settings or explore more complex feature generator architectures. Additionally, the sensitivity of the model to hyperparameters like the classification-alignment balance ($\lambda$) suggests room for more automated tuning strategies.
Summary updated