Cross-Dataset Movie Review Sentiment Classification Using GloVe-Enhanced BiLSTM Attention and Lightweight Hybrid Ensembles
Abstract
Binary sentiment classification remains a useful test bed for evaluating the trade-off between sparse lexical models, neural sequence models, and lightweight ensembles. This study compares logistic regression, multinomial naive bayes, linear support vector machines, Random Forests, TextCNN, RNN, LSTM, BiLSTM, and BiLSTM with additive attention for English movie-review sentiment classification. The neural models are evaluated with and without 100-dimensional GloVe word vectors. Experiments use the 50,000-review IMDb dataset and the GLUE SST-2 benchmark. A validation partition is reserved for model selection and ensemble-weight selection, while final results are reported over five random seeds. On IMDb, a lightweight ensemble of logistic regression, SVM, and CNN probabilities achieved the best F1-score (0.9005 +/- 0.0011) and ROC-AUC (0.9632 +/- 0.0007). On the external SST-2 test set, BiLSTM with attention and GloVe was strongest, achieving an F1-score of 0.8431 +/- 0.0078 and ROC-AUC of 0.9170 +/- 0.0056. The ablation study shows that GloVe improves the attention model by 0.0243 F1 on IMDb. The findings demonstrate that lightweight lexical ensembles are highly effective in-domain, whereas attention-enhanced sequence modeling provides stronger cross-dataset generalization.
References
- Pang, B., & Lee, L. (2008). Opinion mining and sentiment analysis. Foundations and Trends in Information Retrieval, 2(1-2), 1-135. https: //doi.org/10.1561/1500000011
- Kim, Y. (2014). Convolutional neural networks for sentence classification. EMNLP. https: //doi.org/10.3115/v1/D14-1181
- Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735-1780. https: //doi.org/10.1162/neco.1997.9.8.1735
- Schuster, M., & Paliwal, K. K. (1997). Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11), 2673-2681. https: //doi.org/10.1109/78.650093
- Bahdanau, D., Cho, K., & Bengio, Y. (2015). Neural machine translation by jointly learning to align and translate. International Conference on Learning Representations. https: //arxiv.org/abs/1409.0473
- Liu, B. (2012). Sentiment analysis and opinion mining. Morgan & Claypool. https: //doi.org/10.2200/S00416ED1V01Y201204HLT016
- Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5-32. https: //doi.org/10.1023/A: 1010933404324
- Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20, 273-297. https: //doi.org/10.1007/BF00994018
- Pennington, J., Socher, R., & Manning, C. D. (2014). GloVe: Global vectors for word representation. EMNLP. https: //doi.org/10.3115/v1/D14-1162
- Zhang, L., Wang, S., & Liu, B. (2018). Deep learning for sentiment analysis: A survey. WIREs Data Mining and Knowledge Discovery, 8(4), Article e1253. https: //doi.org/10.1002/widm.1253
- Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. NAACL-HLT. https: //doi.org/10.18653/v1/N19-1423
- Maas, A. L., Daly, R. E., Pham, P. T., Huang, D., Ng, A. Y., & Potts, C. (2011). Learning word vectors for sentiment analysis. ACL. https: //aclanthology.org/P11-1015/
- Socher, R., Perelygin, A., Wu, J., Chuang, J., Manning, C. D., Ng, A. Y., & Potts, C. (2013). Recursive deep models for semantic compositionality over a sentiment treebank. EMNLP. https: //aclanthology.org/D13-1170/
- Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., & Bowman, S. R. (2019). GLUE: A multi-task benchmark and analysis platform for natural language understanding. International Conference on Learning Representations. https: //arxiv.org/abs/1804.07461
- Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427-437. https: //doi.org/10.1016/j.ipm.2009.03.002
- McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12, 153-157. https: //doi.org/10.1007/BF02295996
- Dietterich, T. G. (1998). Approximate statistical tests for comparing supervised classification learning algorithms. Neural Computation, 10(7), 1895-1923. https: //doi.org/10.1162/089976698300017197