Abstract
Sentiment classification models often suffer from performance degradation when applied to domains different from their training data. This paper introduces a graph-ranking approach to solve the "sentiment transfer" problem—classifying documents in a new, unlabeled target domain using labeled data from a source domain. By treating documents as nodes in a graph and iteratively propagating sentiment scores based on content similarity, the proposed method significantly outperforms traditional supervised learning and state-of-the-art transfer learning methods like Structural Correspondence Learning (SCL).
Introduction
Sentiment classification is a critical task in natural language processing, yet models typically struggle with the domain-shift problem. For example, a model trained on book reviews might fail on kitchen appliance reviews because the vocabulary used to express sentiment varies across contexts. This is known as cross-domain sentiment classification. This research focuses on the unsupervised version of this problem: classifying a target domain with zero available labels by bridging the gap between domains without losing the nuances of the target domain's specific language.
Methodology
The core of the proposed solution is a Graph-Ranking Algorithm designed for sentiment transfer. The process follows four primary stages:
- Graph Construction: A graph is built where every document from both the source and target domains is represented as a node. Edges between nodes represent content similarity, calculated using the cosine similarity of TF-IDF vectors.
- Initialization: Since the target domain lacks labels, a "prototype classifier" (centroid-based) or an SVM is used to generate initial "pseudo-labels" (+1 for positive, -1 for negative) for the target documents.
- Iterative Scoring: Sentiment scores are updated iteratively. A document’s score is influenced by its $K$ nearest neighbors in both the source domain (which have ground-truth labels) and the target domain (which have pseudo-labels). The update rule employs a weighted fusion: $s_i = \alpha(\text{source influence}) + \beta(\text{target influence})$.
- Convergence: The algorithm repeats until scores stabilize. Final classification is determined by the sign of the score (positive if $>0$, negative if $<0$).
This graph-based approach allows the model to "smooth" its predictions, leveraging the internal structure of the target domain while remaining anchored by the source domain's labels.
Experimental Setup
The researchers evaluated their approach on three Chinese-language domain-specific datasets: Electronics (Elec), Stock Market (Stock), and Hotel reviews. These datasets vary significantly in scale, average review length, and vocabulary size, providing a robust test for cross-domain transfer capabilities.
Results and Discussion
The proposed algorithm was compared against standard baselines (Prototype and LibSVM) and the state-of-the-art Structural Correspondence Learning (SCL) method across six transfer tasks.
As shown in the results table, the graph-ranking method achieved significant gains:
- Superior Accuracy: The algorithm improved accuracy by an average of 10.8% over the Prototype baseline and 11.9% over LibSVM.
- Outperforming SCL: The approach outperformed SCL by approximately 3.5% on average. This is attributed to SCL's sensitivity to "pivot features," which can be difficult to identify and are often affected by low-frequency words.
- Peak Performance: The highest accuracy recorded was 86.09% during the Hotel $\rightarrow$ Elec transfer task.
The graph-ranking approach proves more robust than traditional classifiers because it relies on document-level similarity rather than overfitting to source-specific keyword weights.
Conclusion
By combining the accurate labels of a source domain with the structural consistency of a target domain, graph ranking provides a powerful framework for unsupervised sentiment transfer. Future work may explore sentiment-aware similarity measures to replace simple cosine similarity and investigate the computational scalability of the algorithm for massive datasets.
Summary updated