[Paper Review] Domain Adaptation with Category Attention Network for Deep Sentiment Analysis
This paper proposes CAN-CNN, a domain adaptation model for cross-domain sentiment analysis that unifies the learning of domain-shared (pivots) and domain-specific (non-pivots) sentiment words via a Category Attention Network (CAN). By integrating a Category Memory Module, Dynamic Matching, and Category Attention layer, the model improves performance and interpretability by automatically identifying transferable sentiment features, outperforming existing methods on three public datasets with measurable gains in accuracy and F1 scores.
Domain adaptation tasks such as cross-domain sentiment classification aim to utilize existing labeled data in the source domain and unlabeled or few labeled data in the target domain to improve the performance in the target domain via reducing the shift between the data distributions. Existing cross-domain sentiment classification methods need to distinguish pivots, i.e., the domain-shared sentiment words, and non-pivots, i.e., the domain-specific sentiment words, for excellent adaptation performance. In this paper, we first design a Category Attention Network (CAN), and then propose a model named CAN-CNN to integrate CAN and a Convolutional Neural Network (CNN). On the one hand, the model regards pivots and non-pivots as unified category attribute words and can automatically capture them to improve the domain adaptation performance; on the other hand, the model makes an attempt at interpretability to learn the transferred category attribute words. Specifically, the optimization objective of our model has three different components: 1) the supervised classification loss; 2) the distributions loss of category feature weights; 3) the domain invariance loss. Finally, the proposed model is evaluated on three public sentiment analysis datasets and the results demonstrate that CAN-CNN can outperform other various baseline methods.
Motivation & Objective
- Address the challenge of domain shift in cross-domain sentiment classification, where sentiment expressions vary significantly across domains such as food and movies.
- Overcome limitations of prior methods that treat pivots and non-pivots separately, requiring complex, dual-network architectures.
- Improve model interpretability by enabling automatic identification and attention to transferable sentiment features (pivots and non-pivots) in the target domain.
- Develop a unified framework that learns domain-aware category attribute words without requiring manual distinction between pivot and non-pivot words.
- Optimize the model using a multi-component loss function combining supervised classification, category feature distribution alignment, and domain invariance to enhance generalization and transferability.
Proposed method
- Propose a Category Attention Network (CAN) that integrates a Category Memory Module (CMM) to store and retrieve category-specific sentiment words.
- Implement a Dynamic Matching (DM) process that matches relevant category attribute words from the CMM to each input sample based on semantic similarity.
- Apply a Category Attention (CA) layer that computes attention weights between each sample and the matched category words to emphasize relevant sentiment features.
- Use the CMM in the source domain with pre-defined sentiment words and randomly initialize it in the target domain to enable domain-aware knowledge transfer.
- Optimize the model with three loss components: supervised classification loss, distribution loss for category feature weights, and domain invariance loss to align source and target domain representations.
- Integrate CAN with a Convolutional Neural Network (CNN) to form CAN-CNN, leveraging CNN’s local feature extraction and CAN’s attention-based category modeling for improved sentiment classification.
Experimental results
Research questions
- RQ1Can a unified framework effectively learn both domain-shared (pivots) and domain-specific (non-pivots) sentiment words without separate network branches?
- RQ2To what extent can the Category Attention Network (CAN) improve cross-domain sentiment classification performance compared to existing SOTA methods?
- RQ3Can the model’s internal CMM and attention mechanism provide interpretable insights into which sentiment features are transferred from source to target domains?
- RQ4How does the dynamic matching and attention mechanism in CAN enhance feature representation learning in low-resource target domains?
- RQ5Does the combination of category distribution alignment and domain invariance loss lead to better generalization and robustness in domain adaptation?
Key findings
- CAN-CNN outperforms multiple state-of-the-art baselines on three public sentiment analysis datasets (IMDB, Yelp, MR), achieving higher accuracy and F1 scores in cross-domain sentiment classification.
- The model achieves significant performance gains by jointly optimizing supervised classification, category feature distribution alignment, and domain invariance, demonstrating the effectiveness of the multi-component loss objective.
- After training, the target domain’s CMM learns meaningful sentiment words such as 'funny', 'heartbreaking', 'boring', and 'horrible', indicating successful domain-aware knowledge transfer.
- Visualization of category attention weights shows that the model correctly identifies key sentiment words—e.g., 'funny' and 'heartbreaking' in positive samples, 'boring' and 'horrible' in negative samples—demonstrating accurate attention to actual sentiment cues.
- The model effectively suppresses misleading sentiment cues (e.g., 'not horrible' or 'unsentimental') by focusing on dominant sentiment words, showing robustness to negation and irony.
- The domain-aware CMM in the target domain acts as a form of interpretable knowledge transfer, revealing which sentiment features are most relevant and transferable from source to target domains.
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.