Microblog Sentiment Classification with Contextual Knowledge Regularization

Fangzhao Wu, Yangqiu Song, Yongfeng Huang

Introduction

Microblogging platforms like Twitter present a unique challenge for sentiment analysis due to the brevity and noise inherent in short-form text. Traditional NLP models often struggle with slang, evolving vocabularies, and the high cost of manual labeling. Furthermore, the sentiment of a word can be highly context-dependent. This paper introduces a framework that addresses these hurdles by mining "contextual knowledge" from massive amounts of unlabeled data. By enforcing mathematical constraints (regularization) that ensure related words have similar sentiment weights and align with known emoticon-based polarities, the authors achieve state-of-the-art accuracy on Twitter benchmarks while maintaining high computational efficiency.

Methodology: Contextual Knowledge Regularization

The core of the proposed approach is a Contextual Knowledge Regularization framework. Rather than relying solely on limited labeled data, the model incorporates two types of prior knowledge extracted from 1.6 million unlabeled tweets:

  1. Word-Word Association: Using Pointwise Mutual Information (PMI), the model identifies pairs of words that frequently co-occur within the same clause. A graph-guided fused lasso regularization is then applied to ensure that the sentiment weights assigned to these associated words are similar. This allows the model to learn weights for informal terms (e.g., "tnx") by linking them to standard sentiment words.
  2. Word-Sentiment Association: The model utilizes "distant supervision" by treating emoticons (e.g., :), :() as noisy labels. This data is used to calculate a SentiScore for individual words, which is incorporated as a linear regularization term to nudge the model toward these prior polarities.
Word-word and word-sentiment associations extracted from unlabeled data.

To handle the resulting optimization problem efficiently, the authors employ the Alternating Direction Method of Multipliers (ADMM) and accelerate intensive steps using the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA).

Experimental Setup

The framework was evaluated on three major benchmarks: the Sanders Twitter Dataset (1,224 tweets), STS-manual (359 tweets), and SemEval 2013 (4,482 tweets total). A separate "Mining Set" of 1.6 million unlabeled tweets (STS-emoticon) provided the basis for extracting PMI and SentiScores. The study focused on three model variants: CK-LS (Least Squares), CK-Log (Logistic Regression), and CK-SVM.

Results and Discussion

The proposed methods consistently outperformed standard baselines and previous state-of-the-art techniques. On the SemEval dataset, the CK-Log model achieved an accuracy of 0.8448, compared to the standard Logistic Regression baseline of 0.8229.

Ablation Study

A key finding of the research is the synergy between the two types of contextual knowledge. As shown in the ablation study, incorporating both word-word and word-sentiment associations yields significantly better results than using either component in isolation across all tested datasets.

Ablation study showing the contribution of word-word and word-sentiment associations across three datasets.

Efficiency and Scalability

Despite the complexity of the regularization terms, the optimization process is highly efficient. Training on 3,000 samples takes less than one second for the CK-Log and CK-LS models, demonstrating a linear relationship between data size and training time. This makes the framework suitable for real-time applications in large-scale microblogging environments.

Conclusion

This paper demonstrates that "soft constraints" derived from unlabeled data can significantly enhance the performance of sentiment classifiers on noisy microblog data. By bridging the gap between small labeled sets and massive unlabeled corpora, the Contextual Knowledge Regularization framework provides a robust and efficient solution for modern sentiment analysis.

Summary updated

BibTeX
@inproceedings{wu2015microblog,
  author = {Fangzhao Wu and Yangqiu Song and Yongfeng Huang},
  title = {{Microblog Sentiment Classification with Contextual Knowledge Regularization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9503},
}
Figure