[Paper Review] Sentiment analysis in tweets: an assessment study from classical to modern text representation models
This study evaluates classical and modern text representation models for sentiment analysis on tweets, comparing static embeddings (e.g., TF-IDF, Word2Vec) and contextualized models (e.g., BERT, RoBERTa, BERTweet). It finds that BERTweet, a Twitter-optimized BERT variant fine-tuned on sentiment datasets, achieves the best performance, especially when combined with logistic regression or MLP classifiers, outperforming both original and fine-tuned models across 22 diverse datasets.
With the growth of social medias, such as Twitter, plenty of user-generated data emerge daily. The short texts published on Twitter -- the tweets -- have earned significant attention as a rich source of information to guide many decision-making processes. However, their inherent characteristics, such as the informal, and noisy linguistic style, remain challenging to many natural language processing (NLP) tasks, including sentiment analysis. Sentiment classification is tackled mainly by machine learning-based classifiers. The literature has adopted word representations from distinct natures to transform tweets to vector-based inputs to feed sentiment classifiers. The representations come from simple count-based methods, such as bag-of-words, to more sophisticated ones, such as BERTweet, built upon the trendy BERT architecture. Nevertheless, most studies mainly focus on evaluating those models using only a small number of datasets. Despite the progress made in recent years in language modelling, there is still a gap regarding a robust evaluation of induced embeddings applied to sentiment analysis on tweets. Furthermore, while fine-tuning the model from downstream tasks is prominent nowadays, less attention has been given to adjustments based on the specific linguistic style of the data. In this context, this study fulfils an assessment of existing language models in distinguishing the sentiment expressed in tweets by using a rich collection of 22 datasets from distinct domains and five classification algorithms. The evaluation includes static and contextualized representations. Contexts are assembled from Transformer-based autoencoder models that are also fine-tuned based on the masked language model task, using a plethora of strategies.
Motivation & Objective
- To assess the performance of classical and modern text representation models in sentiment analysis of tweets.
- To investigate how static and contextualized embeddings compare in handling the informal, noisy linguistic style of tweets.
- To evaluate the impact of fine-tuning Transformer-based models on domain-specific sentiment datasets versus generic tweet corpora.
- To determine optimal combinations of language models and classifiers for tweet sentiment classification.
- To identify whether pre-training on generic tweets or fine-tuning on sentiment-labeled data yields better results for Twitter sentiment analysis.
Proposed method
- Evaluated 22 diverse English tweet datasets spanning multiple domains to ensure robustness.
- Compared static representations (Bag-of-Words, TF-IDF, Word2Vec, Fast-Text) with contextualized models (BERT, RoBERTa, BERTweet).
- Fine-tuned Transformer-based models using masked language modeling on varying sizes of unlabeled English tweets (from 0.5K to 1.5M).
- Applied five classifiers (Logistic Regression, SVM, MLP, Random Forest, Naive Bayes) to assess model performance across different learning paradigms.
- Conducted ablation studies comparing fine-tuning with generic tweets versus sentiment-labeled tweets, including hybrid fine-tuning using target and external sentiment datasets.
- Used BERTweet, a BERT variant pre-trained on a large corpus of tweets, to evaluate the benefits of domain-specific pre-training and fine-tuning.
Experimental results
Research questions
- RQ1How do static text representations (e.g., TF-IDF, Word2Vec) compare to contextualized representations (e.g., BERT, RoBERTa, BERTweet) in sentiment classification of tweets?
- RQ2Does fine-tuning pre-trained Transformer-based models on large-scale unlabeled English tweets improve sentiment classification performance?
- RQ3Is fine-tuning on sentiment-labeled datasets more effective than fine-tuning on generic tweet corpora for sentiment analysis?
- RQ4Which combination of language model and classifier yields the highest performance in tweet sentiment analysis?
- RQ5How does the size of the fine-tuning dataset affect the performance of pre-trained models like BERT, RoBERTa, and BERTweet?
Key findings
- BERTweet achieved the best overall performance across all 22 datasets when fine-tuned with a combination of the target dataset and a large set of external sentiment datasets (BERTweet_22Dt).
- BERTweet outperformed all other models using only 5K fine-tuning tweets, indicating that models pre-trained on Twitter data require less fine-tuning data to achieve high performance.
- Fine-tuning on sentiment-labeled datasets consistently improved performance over fine-tuning on generic tweets, with BERTweet_22Dt achieving the highest F1-score across all configurations.
- The combination of BERTweet with Logistic Regression (LR) and Multilayer Perceptron (MLP) classifiers yielded the best overall results, outperforming other model-classifier combinations.
- RoBERTa and BERT performed better when fine-tuned with 250K and 50K tweets, respectively, but still underperformed BERTweet even with larger fine-tuning sets.
- Fine-tuning strategies varied by model: BERT performed best with only the target dataset, while RoBERTa and BERTweet benefited from combining target data with external sentiment datasets.
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.