[Paper Review] Modeling Rich Contexts for Sentiment Classification with LSTM
This paper proposes a hierarchical LSTM model that captures long-range contextual dependencies in social media text by modeling retweet/reply threads, significantly improving sentiment classification accuracy. By combining word-level and tweet-level LSTMs with additional social and text-based context features, the model outperforms baseline methods, especially in detecting sarcasm and sentiment drift in conversational contexts.
Sentiment analysis on social media data such as tweets and weibo has become a very important and challenging task. Due to the intrinsic properties of such data, tweets are short, noisy, and of divergent topics, and sentiment classification on these data requires to modeling various contexts such as the retweet/reply history of a tweet, and the social context about authors and relationships. While few prior study has approached the issue of modeling contexts in tweet, this paper proposes to use a hierarchical LSTM to model rich contexts in tweet, particularly long-range context. Experimental results show that contexts can help us to perform sentiment classification remarkably better.
Motivation & Objective
- To address the challenge of sentiment classification in short, noisy social media texts like Weibo and Twitter, where context is critical but often overlooked.
- To model long-range contextual dependencies in tweet threads, particularly retweet and reply histories, which influence sentiment polarity.
- To improve sentiment classification by incorporating rich contextual features such as social relationships and discourse structures.
- To develop a hierarchical deep learning architecture that captures both local tweet-level and global thread-level dependencies.
Proposed method
- A two-level hierarchical LSTM architecture is proposed: a word-level LSTM encodes individual tweets, while a tweet-level LSTM models the sequence of tweets in a conversation thread.
- The model integrates additional context features—including social context (follower/followee relationships) and text-based context (topic similarity, discourse markers)—extracted automatically from the data.
- Word embeddings are pre-trained on a large Chinese tweet corpus and fine-tuned during training with a dimension of 128.
- The hierarchical structure enables the model to learn long-range dependencies across multiple tweets in a thread, mitigating the vanishing gradient problem seen in standard RNNs.
- The model is trained and evaluated on a newly collected dataset of 14,000 tweets across 1,600 threads on Weibo, with 50 topics.
- Hyperparameters are tuned using a 3:1:1 training/validation/test split, and performance is measured using Macro-F1 and Accuracy.
Experimental results
Research questions
- RQ1Can modeling long-range retweet/reply history improve sentiment classification performance on short, noisy social media texts?
- RQ2How effective is a hierarchical LSTM architecture in capturing contextual dependencies across multiple tweets in a conversation thread?
- RQ3To what extent do additional context features—such as social relationships and discourse structures—enhance sentiment classification?
- RQ4Does the model outperform standard LSTMs and other baselines in detecting sarcasm and sentiment drift in conversational contexts?
Key findings
- The hierarchical LSTM (HLSTM) model achieves significantly better performance than standard LSTM and SVM baselines, demonstrating the effectiveness of modeling long-range context.
- The HLSTM model improves Macro-F1 and Accuracy over the standard LSTM, confirming that long-range dependencies are crucial for accurate sentiment classification.
- The inclusion of additional context features (HLSTM-f) further boosts performance, though the gain is limited due to feature sparsity.
- In case studies, the HLSTM correctly classifies sarcastic and ambiguous tweets—such as those using irony or agreement/disagreement markers—while the standard LSTM fails.
- 46.9% of tweets share the same sentiment polarity as their root tweet, and 64.7% with their parent tweets, indicating that context is highly predictive.
- The model successfully detects sentiment drift, such as sarcasm in tweets containing positive words but expressing negative sentiment in context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.