Abstract
Standard word embedding techniques often struggle with sentiment analysis tasks because they map words with similar local contexts but opposite polarities—such as "good" and "bad"—to proximal points in the vector space. This paper proposes a novel architecture that integrates local semantic context with a Global Sentiment Representation (GSR). By employing a biased "corruption" strategy to highlight informative words, the model learns sentiment-aware embeddings that are robust across both short-form social media text and long-form documents.
Introduction: The Proximity Problem
Most modern word embedding models, including Word2vec and GloVe, are built upon the distributional hypothesis: words appearing in similar contexts share similar meanings. While effective for capturing syntactic relationships, this approach is problematic for sentiment analysis. In sentences like "The movie was good" and "The movie was bad," the words "good" and "bad" share identical contexts, leading models to cluster them together in the embedding space.
Existing Sentiment-Specific Word Embeddings (SSWE) attempt to resolve this by incorporating sentiment labels during training. However, many of these models are optimized for short, sentence-level text and struggle to capture the overall sentiment flow in longer documents, sometimes performing worse than general-purpose embeddings on document-level classification.
Proposed Methodology
The authors extend the Continuous Bag-of-Words (CBoW) framework by introducing a dual-component architecture:
- Semantic Component: A standard CBoW model that learns to predict a target word from its local neighbors, preserving syntactic and general semantic information.
- Sentiment Component: This introduces the Global Sentiment Representation (GSR), calculated as a weighted average of all word embeddings within a text.
Corruption Strategy
To enhance the GSR, the authors implement a "corruption strategy" inspired by Doc2VecC. This biased dropout mechanism randomly removes words during training, specifically favoring "informative" words—those that appear less frequently but carry significant sentiment weight—while filtering out common, non-discriminative terms like stop words.
Model Variants
Two specific models were developed using this architecture:
- SWPredict: Formulates sentiment as a multi-class classification task, predicting document polarity directly.
- SWRank: Utilizes a triplet loss function to ensure that documents with similar sentiment are closer in the embedding space than those with opposite sentiment, treating the task as a ranking problem.
Experimental Setup and Results
The models were evaluated on the IMDB Movie Reviews dataset (document-level) and the Twitter (SemEval 2013) dataset (sentence-level). Training was supported by the large-scale SAR14 dataset to provide a robust source for learning the initial embeddings.
Performance Highlights
The proposed models consistently outperformed baseline embeddings across different text lengths:
- Document-level (IMDB): SWRank achieved 88.55% accuracy, surpassing Word2vec (86.51%).
- Sentence-level (Twitter): SWPredict reached 84.05% accuracy, significantly outperforming Word2vec (77.39%) and specialized models like SE-HyRank (81.2%).
Hyperparameter Sensitivity
A critical finding was the balance between semantic and sentiment loss, controlled by the parameter $\beta$.
As shown in the figure above, a $\beta$ value between 0.5 and 0.6 yielded the best results on both datasets. This confirms that both local semantic context and global sentiment representation are vital for high-quality embeddings; ignoring either component leads to a significant drop in classification accuracy.
Conclusion
By combining global sentiment properties with local semantic context, the proposed architecture effectively avoids the "good vs. bad" proximity trap. The use of triplet loss in SWRank proved particularly robust for document-level tasks where labels may be weak. Future work will explore integrating more complex linguistic structures, such as negation and irony, to move beyond the simple averaging currently used in the Global Sentiment Representation.
Summary updated