Adversarial Category Alignment Network for Cross-domain Sentiment Classification

Xiaoye Qu, Zhikang Zou, Yu Cheng, Yang Yang, Pan Zhou

Abstract

Cross-domain sentiment classification is hindered by "domain shift," where the sentiment of specific words varies across different contexts. While Unsupervised Domain Adaptation (UDA) typically employs adversarial learning to align global feature distributions, these methods often fail to account for category-specific decision boundaries, leading to misclassification of ambiguous features. This paper introduces the Adversarial Category Alignment Network (ACAN), which utilizes a dual-classifier discrepancy mechanism to achieve category-level alignment. By forcing a feature generator to produce representations that minimize classifier disagreement, ACAN effectively pushes target data into high-density, class-distinct regions. Experimental results on the Amazon reviews benchmark show that ACAN outperforms existing baselines, achieving an average accuracy of 82.15%.

Introduction

Sentiment analysis models often struggle when applied to domains different from their training data. For instance, a model trained on movie reviews may misinterpret "tasty" in a kitchen appliance review or "blurry" in an electronics review. This phenomenon, known as domain shift, necessitates robust domain adaptation techniques.

Standard UDA approaches often focus on global marginal alignment, attempting to make the source and target feature distributions indistinguishable. However, as illustrated in Figure 1, global alignment can lead to "category mismatch," where positive features from the target domain are aligned with negative features from the source domain, or ambiguous features are pushed onto the decision boundary.

Comparison of global alignment versus category-level alignment.

Methodology

The Adversarial Category Alignment Network (ACAN) addresses these issues through a three-stage process focused on category-level alignment.

1. Global Marginal Alignment

Initially, the model employs Kullback-Leibler (KL) divergence to align the latent representations of the source and target domains at a high level, providing a baseline for adaptation.

2. Identifying Ambiguous Regions

ACAN utilizes two distinct classifiers, $F_1$ and $F_2$, which are trained to maximize their prediction discrepancy on unlabeled target data. This discrepancy serves as a signal to identify "no-man's land"—regions in the feature space where the model is uncertain and data points are likely near the decision boundary.

3. Adversarial Category Alignment

The feature generator ($G$) is then trained adversarially to minimize the discrepancy between $F_1$ and $F_2$. By doing so, $G$ learns to generate features that are sufficiently clear and discriminative such that both classifiers agree on the sentiment. This process effectively pushes target data points away from the boundary and into well-separated clusters.

The ACAN architecture, illustrating the training phase with dual classifiers and the testing phase.

Additionally, a generator regularizer based on the manifold assumption is incorporated to ensure that semantically similar data points in the input space remain close in the latent feature space.

Experiments and Results

The proposed model was evaluated using the Amazon reviews benchmark dataset, covering four domains: Books (B), DVDs (D), Electronics (E), and Kitchen appliances (K). Twelve cross-domain tasks were constructed to test the model's transferability.

ACAN achieved an average accuracy of 82.15%, surpassing strong baselines such as DANN (80.29%) and DAS (81.96%). Qualitative analysis using PCA visualizations confirmed that ACAN successfully separates target domain data into distinct positive and negative clusters, whereas global alignment methods often leave a significant portion of the data in an ambiguous central cloud. Furthermore, the model demonstrated significant performance gains even with limited unlabeled target data, highlighting its efficiency in unsupervised scenarios.

Discussion and Conclusion

The core innovation of ACAN lies in using classifier disagreement as a training signal for category-level alignment. This approach moves beyond simple distribution matching to ensure that the semantic nuances of different domains are preserved and correctly categorized. While the current generator regularizer uses a stochastic sampling approximation to manage computational complexity, future work may explore more efficient manifold learning techniques. Overall, ACAN provides a robust framework for cross-domain sentiment analysis and shows promise for extension to other domain adaptation tasks like image recognition.

Summary updated

BibTeX
@inproceedings{qu2019adversarial,
  author = {Xiaoye Qu and Zhikang Zou and Yu Cheng and Yang Yang and Pan Zhou},
  title = {{Adversarial Category Alignment Network for Cross-domain Sentiment Classification}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1258},
}
Figure