English

From TF-IDF to Transformers: A Comparative and Ensemble Approach to Sentiment Classification

Computation and Language 2026-05-22 v1 Artificial Intelligence Information Retrieval Machine Learning

Abstract

Sentiment analysis, also referred to as opinion mining, primarily tries to extract opinion from any text-based data. In the context of movie reviews and critics, sentimental analysis can be a helpful tool to predict whether a movie review is generally positive or negative. It can be difficult for the ML models to understand the context or metaphysical sentiment accurately, as ML models rely largely on statistical word representations. The objective of this paper is to examine and categorise movie reviews into positive and negative sentiments. Diverse machine learning models are considered in doing so, and Natural Language Processing (NLP) methodologies are employed for data preprocessing and model assessment. The IMDb dataset is used. Specifically, Naive Bayes, Logistic Regression, Support Vector Machines (SVM), LightGBM, LSTM, and transformer-based models such as RoBERTa and DistilBERT were evaluated. After a lot of testing with accuracy, precision, recall, F1-score, and ROC-AUC, RoBERTa performed better than all the other models, with an accuracy of 93.02%. A soft voting ensemble that combined all the models also improved classification performance, showing that model ensembling works well for sentiment analysis.

Keywords

Cite

@article{arxiv.2605.22003,
  title  = {From TF-IDF to Transformers: A Comparative and Ensemble Approach to Sentiment Classification},
  author = {Dip Biswas Shanto and Mitali Yadav and Prajwal Panth and Suresh Chandra Satapathy},
  journal= {arXiv preprint arXiv:2605.22003},
  year   = {2026}
}

Comments

6 pages, 9 figures. This is the author's accepted manuscript, presented at the International Conference on Intelligent Computing, Networks and Security (IC-ICNS 2026), March 26-28, Bhubaneswar, India. Proceedings publication pending

R2 v1 2026-07-22T07:25:25.662Z