[Paper Review] Language Representation Models for Fine-Grained Sentiment Classification
This paper evaluates ALBERT, DistilBERT, and RoBERTa as BERT alternatives for fine-grained sentiment classification on the SST-5 dataset. By replacing BERT's embedding layer with these models and applying early stopping, the authors achieve a new state-of-the-art accuracy of 60.2% using RoBERTa LARGE, outperforming BERT and other variants despite higher computational costs.
Sentiment classification is a quickly advancing field of study with applications in almost any field. While various models and datasets have shown high accuracy inthe task of binary classification, the task of fine-grained sentiment classification is still an area with room for significant improvement. Analyzing the SST-5 dataset,previous work by Munikar et al. (2019) showed that the embedding tool BERT allowed a simple model to achieve state-of-the-art accuracy. Since that paper, several BERT alternatives have been published, with three primary ones being AlBERT (Lan et al., 2019), DistilBERT (Sanh et al. 2019), and RoBERTa (Liu etal. 2019). While these models report some improvement over BERT on the popular benchmarks GLUE, SQuAD, and RACE, they have not been applied to the fine-grained classification task. In this paper, we examine whether the improvements hold true when applied to a novel task, by replicating the BERT model from Munikar et al., and swapping the embedding layer to the alternative models. Over the experiments, we found that AlBERT suffers significantly more accuracy loss than reported on other tasks, DistilBERT has accuracy loss similar to their reported loss on other tasks while being the fastest model to train, and RoBERTa reaches anew state-of-the-art accuracy for prediction on the SST-5 root level (60.2%).
Motivation & Objective
- To assess whether BERT alternatives—ALBERT, DistilBERT, and RoBERTa—improve performance on fine-grained sentiment classification compared to BERT.
- To investigate if improvements seen on GLUE, SQuAD, and RACE benchmarks generalize to the more complex SST-5 fine-grained sentiment task.
- To determine the trade-offs between model size, training speed, and accuracy in the context of multi-class sentiment classification.
- To identify optimal training strategies, such as early stopping, to mitigate overfitting in fine-tuned BERT-based models.
- To establish a new state-of-the-art accuracy for SST-5 root-level sentiment classification using optimized pre-trained language models.
Proposed method
- Replicated the BERT model from Munikar et al. (2019) by replacing its embedding layer with ALBERT BASE, DistilBERT BASE, and RoBERTa LARGE.
- Trained each model using the same fine-tuning protocol: a simple classifier head with dropout and a softmax layer on top of the pooled CLS token.
- Applied early stopping based on validation loss to prevent overfitting, which was observed in initial training runs.
- Used the SST-5 dataset for evaluation, focusing on root-level sentiment classification with five classes: very negative, negative, neutral, positive, very positive.
- Compared model performance via accuracy, loss curves, and confusion matrices to analyze class-wise behavior and generalization.
- Optimized hyperparameters including learning rate and dropout rate, with additional ablation on dropout scheduling.
Experimental results
Research questions
- RQ1Do RoBERTa, ALBERT, and DistilBERT outperform BERT in fine-grained sentiment classification on the SST-5 dataset?
- RQ2How do the performance gains of these models on standard benchmarks like GLUE and SQuAD translate to the more nuanced SST-5 task?
- RQ3What is the trade-off between model efficiency (training speed, parameter count) and accuracy in fine-grained sentiment analysis?
- RQ4Does early stopping significantly improve generalization and reduce overfitting in BERT-based models fine-tuned on SST-5?
- RQ5Can RoBERTa achieve a new state-of-the-art accuracy on the SST-5 root-level classification task?
Key findings
- RoBERTa LARGE achieved a new state-of-the-art accuracy of 60.2% on the SST-5 root-level sentiment classification task, surpassing the previous SOTA of 55.5%.
- ALBERT BASE suffered significantly higher accuracy loss than reported on other benchmarks, indicating poor generalization to fine-grained sentiment tasks.
- DistilBERT BASE maintained accuracy close to BERT BASE (0.532 vs. 0.562) while training 50% faster, making it a strong efficiency-accuracy trade-off choice.
- Confusion matrices revealed RoBERTa LARGE outperformed BERT LARGE in all classes except 'Strongly Negative', where it improved by 7.5% in correct classification.
- The model exhibited overfitting in early training, with test loss plateauing within 2–3 epochs, which was mitigated by early stopping.
- The authors confirmed that the original BERT model from Munikar et al. (2019) was overfitted, and retraining with early stopping improved performance beyond the reported baseline.
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.