Abstract
Standard word embeddings such as Word2vec and GloVe are built on the distributional hypothesis, which posits that words appearing in similar contexts have similar meanings. While effective for many NLP tasks, this approach creates a significant bottleneck for sentiment analysis: words with opposite polarities (e.g., "good" and "bad") often appear in identical contexts, leading to nearly identical vector representations. This paper proposes a post-processing refinement model that utilizes sentiment lexicons to "nudge" word vectors—pulling sentimentally similar words together and pushing opposites apart. Experimental results on the Stanford Sentiment Treebank demonstrate consistent accuracy gains across multiple neural network architectures.
The "Good-Bad" Problem in Word Embeddings
In Natural Language Processing, words are represented as dense vectors (embeddings). However, because these are learned from context, a sentiment classifier often struggles to distinguish between "The movie was great" and "The movie was terrible." In standard GloVe embeddings, approximately 24% of a word's top 10 nearest neighbors actually possess the opposite sentiment polarity—a metric the authors define as noise@k.
While training "sentiment-aware" embeddings from scratch is an option, it requires massive labeled datasets and often sacrifices the broad semantic knowledge captured by general-purpose embeddings trained on billions of tokens.
Proposed Refinement Method
The authors introduce a "plug-and-play" post-processing step that can be applied to any pre-trained embedding space. The refinement process involves three primary stages:
- Neighborhood Selection: For a target word, the model identifies its top-$k$ nearest neighbors in the original semantic space.
- Sentiment Re-ranking: These neighbors are re-ranked using a sentiment lexicon (e.g., E-ANEW). Words with similar valence (sentiment intensity) move to the top, while opposites are pushed to the bottom.
- Vector Optimization: The model iteratively adjusts the target word's vector to minimize an objective function. This function balances moving closer to sentimentally similar neighbors while remaining close enough to the original vector to preserve core semantic and syntactic information.
This approach is computationally efficient because it only updates the vectors of words present in the sentiment lexicon, leaving the rest of the embedding space undisturbed.
Experimental Results
The refined embeddings, designated as Re(GloVe) and Re(Word2vec), were evaluated using the Stanford Sentiment Treebank (SST) for both binary and fine-grained (5-class) classification. The study utilized four distinct neural architectures: Deep Averaging Networks (DAN), Convolutional Neural Networks (CNN), Bidirectional LSTMs (Bi-LSTM), and Tree-structured LSTMs (Tree-LSTM).
Key Findings:
- Consistent Improvement: Refinement improved binary classification accuracy by an average of 1.5% to 1.7% and fine-grained classification by 1.6%.
- State-of-the-Art Performance: The Tree-LSTM model using Re(GloVe) achieved a top accuracy of 90.3% on binary classification and 54.0% on fine-grained classification, outperforming previous methods like HyRank.
- Noise Reduction: The refinement method successfully reduced the
noise@10metric from 24% to approximately 14%, confirming that the vectors were indeed becoming more sentiment-aware.
Conclusion and Future Work
By treating sentiment as a post-processing refinement task, researchers can leverage the vast knowledge of models like GloVe while correcting their specific weaknesses regarding polarity. The authors found that using real-valued sentiment scores (intensity) is significantly more effective than simple binary labels.
Future work may address the dependency on specific lexicons like E-ANEW, which limits the refinement of slang or domain-specific terms, and explore how these refinements generalize across diverse text types, such as social media versus formal reviews.
Summary updated