Abstract
Weakly supervised sentiment analysis leverages limited human-labeled data, often relying on small lexicons or keywords. However, variational models in this domain frequently struggle with stability and "topic drift," where latent variables capture thematic content rather than sentiment polarity. This paper introduces VWS-PR (Variational Weakly Supervised with Posterior Regularization), a framework that enforces semantic consistency: documents with similar opinion words should share the same sentiment label. Experimental results on Yelp, IMDB, and Amazon datasets demonstrate that VWS-PR significantly improves F1 scores and model stability compared to existing state-of-the-art methods.
Introduction
Sentiment analysis is a cornerstone of natural language processing, yet the reliance on massive human-labeled datasets remains a significant bottleneck. Weak supervision offers a solution by using "hints"—such as a small list of keywords like "excellent" or "terrible"—to guide learning.
A prominent approach, Variational Weakly Supervised (VWS) sentiment analysis, treats sentiment as a latent variable. Despite its potential, VWS is prone to instability. Without sufficient constraints, the model may inadvertently cluster documents by topic (e.g., "service speed" vs. "food quality") instead of sentiment. This paper addresses this flaw by introducing posterior regularization to ensure the latent sentiment variable remains focused on polarity.
Methodology: VWS-PR
The proposed VWS-PR framework enhances the base variational model with a regularization term grounded in semantic intuition.
The Base Model
The architecture consists of two primary components:
- Sentiment Polarity Classifier: Predicts the sentiment label based on the document text.
- Opinion Word Classifier: Predicts the likelihood of specific opinion words appearing given a predicted sentiment.
Posterior Regularization
The core innovation is a regularization term that enforces a simple rule: If two documents utilize semantically similar opinion words, they should likely share the same sentiment label.
To implement this, the authors extract sets of opinion words from document pairs and calculate their cosine similarity using pre-trained word embeddings.
- Positive Correlation: High similarity between words (e.g., "great" and "excellent") pushes the model toward identical labels.
- Negative Correlation: Opposite meanings (e.g., "great" and "awful") push the model toward different labels.
The final objective function maximizes the Evidence Lower Bound (ELBO) of the log-likelihood, augmented by this pairwise regularization term.
Experimental Setup
The framework was evaluated on three standard binary sentiment classification benchmarks: Yelp, IMDB, and Amazon reviews. Each dataset is balanced (50% positive, 50% negative).
The authors utilized a dependency parser and a set of four extraction rules to identify opinion words. A small development set was used for hyper-parameter tuning, specifically for the regularization weights $\beta$, $\gamma_1$, and $\gamma_2$.
Results and Discussion
VWS-PR consistently outperformed baselines, including the original VWS and keyword-based methods like WeSTClass.
Performance and Stability
The introduction of posterior regularization led to significant gains in F1 scores: 4% on Yelp, 2% on IMDB, and 1% on Amazon. Beyond raw accuracy, the most striking improvement was in model stability. Weakly supervised models often exhibit high variance across training runs. VWS-PR drastically reduced this variance; for instance, on the Yelp dataset, the standard deviation dropped from 0.0179 to 0.0013.
Handling Complex Sentiment
The model's scoring function was specifically designed to handle "mixed" reviews (e.g., "The food was great, but the service was slow"). By analyzing the maximum and minimum similarities between word sets, the model effectively navigates documents containing conflicting sentiment signals.
Conclusion and Future Work
VWS-PR demonstrates that semantic anchoring via posterior regularization is a powerful tool for stabilizing weakly supervised models. By leveraging pre-trained embeddings to provide "common sense" guidance, the model achieves state-of-the-art performance without additional human labeling.
However, limitations remain. The model's reliance on fixed dependency rules means it may miss idiomatic expressions (e.g., "cost an arm and a leg"). Furthermore, implicit sentiment—where descriptive phrases imply polarity without standard adjectives—remains a challenge. Future research may explore advanced keyword expansion and domain-specific sentiment modeling to further refine these results.
Summary updated