Improving Twitter Sentiment Analysis with Topic-Based Mixture Modeling and Semi-Supervised Training

Bing Xiang, Liang ZhouACL 2014

Introduction

Sentiment analysis on Twitter presents a unique set of challenges, primarily due to the platform's 140-character limit and the highly informal nature of the language used. Traditional sentiment classifiers often rely on "local" features—such as specific words, emoticons, or parts of speech—to determine the emotional tone of a tweet. However, these features frequently fail when a word's sentiment is context-dependent. For instance, the word "offensive" is typically negative in a general context but neutral when referring to a sports position like an "offensive coordinator."

This paper addresses these limitations by introducing a topic-based mixture model that accounts for global context. By explicitly modeling the underlying topic of a tweet using Latent Dirichlet Allocation (LDA) and employing a semi-supervised training loop, the authors developed a system that outperforms previous state-of-the-art benchmarks.

Building a Feature-Rich Baseline

The foundation of the proposed system is a robust "Universal Sentiment Classifier" built using a Support Vector Machine (SVM) with a linear kernel. To overcome the data sparsity inherent in short tweets, the researchers integrated a wide array of features, including N-grams, manual lexicons, emoticons, and hashtag counts.

Incremental F-score improvements for the feature-rich SVM baseline.

As shown in the ablation study above, the inclusion of specialized features like PMI lexicons (automatically generated word-sentiment scores) and handling for elongated words significantly boosted the baseline performance from an initial F-score of 55.0 to 69.7, already surpassing the top-ranked system from the SemEval-2013 competition.

Methodology: Topics and Semi-Supervision

The core innovation of this research lies in two areas: topic-specific modeling and the utilization of unlabeled data.

Topic-Based Mixture Modeling

Instead of applying a single model to all tweets, the researchers used LDA to identify 100 distinct topics. They then trained separate sentiment models for each topic. The final sentiment probability for any given tweet is calculated as a weighted sum of the probabilities from these topic-specific models. To ensure robustness against errors in topic identification, a smoothing technique (linear interpolation) was used to blend the topic-specific results with the universal model.

Semi-Supervised Training

To leverage the vast amount of available but unlabeled Twitter data, the authors implemented an iterative semi-supervised process. They trained an initial model on labeled data, predicted sentiment for 2 million unlabeled tweets, and then selected high-confidence predictions to expand the training set. This cycle allowed the model to learn from a much broader linguistic variety than the initial training set provided.

Key Results and Performance

The integration of these methods led to incremental but significant improvements in classification accuracy. The researchers tested their approach using both Twitter-derived topics and topics inferred from a large newswire dataset to evaluate cross-domain synergy.

Performance gains from semi-supervised training and topic-based mixture modeling.

The results demonstrate that the semi-supervised training alone provided a jump of approximately 1.4 to 2.0 points over the baseline. The full mixture model, combined with smoothing, achieved a final state-of-the-art F-score of 71.7. Interestingly, the "News-topic" results were nearly as strong as the "Tweet-topic" results, suggesting that the thematic structure of language is consistent enough across different domains to provide useful context for sentiment analysis.

Conclusion

By bridging the gap between local linguistic features and global topical context, this research provides a more nuanced approach to social media sentiment analysis. While the computational complexity of training 100 separate SVMs is higher than traditional methods, the resulting performance gains—achieving a new state-of-the-art on the SemEval-2013 benchmark—demonstrate the value of topic-aware modeling in difficult, noisy linguistic environments.

Summary updated

BibTeX
@inproceedings{xiang2014improving,
  author = {Bing Xiang and Liang Zhou},
  title = {{Improving Twitter Sentiment Analysis with Topic-Based Mixture Modeling and Semi-Supervised Training}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2071},
}
Figure