← Latest papers
💬 NLP

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

This paper evaluates various machine learning and NLP models for sentiment classification on the IMDb dataset, finding that RoBERTa achieves the highest accuracy at 93.02% while a soft voting ensemble of all models further enhances overall performance.

Original authors: Dip Biswas Shanto, Mitali Yadav, Prajwal Panth, Suresh Chandra Satapathy

Published 2026-05-22
📖 4 min read☕ Coffee break read

Original authors: Dip Biswas Shanto, Mitali Yadav, Prajwal Panth, Suresh Chandra Satapathy

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to guess how a movie audience feels just by reading their reviews. Some people write, "This was the best movie ever!" while others say, "I hated every minute of it." But sometimes, the truth is hidden in tricky phrases like, "It wasn't the worst movie I've ever seen," or sarcastic comments like, "Oh, great, another superhero movie that made no sense."

This paper is like a cooking competition where different chefs (computer models) try to taste these reviews and correctly guess if the diner is happy (positive) or unhappy (negative). The authors used a massive cookbook of 50,000 movie reviews from IMDb to train their chefs.

Here is how they tested their recipes:

1. The Old-School Chefs (Traditional Models)

First, they tried the "classic" methods. These models are like chefs who only look at a list of ingredients (words) and count how many times they appear.

  • The Method: They used a technique called TF-IDF, which is like a highlighter pen. It marks words that are important and unique to a specific review while ignoring common words like "the" or "and."
  • The Chefs: They used Naïve Bayes, Logistic Regression, SVM, and LightGBM.
  • The Result: These chefs were decent. They could spot obvious words like "good" or "bad." However, they sometimes got confused by complex sentences or sarcasm because they didn't really understand the story behind the words, just the ingredients.

2. The Smart Chefs (Deep Learning & Transformers)

Next, they brought in the "modern" chefs. These models are like chefs who not only read the ingredients but also understand the context and the flow of the recipe.

  • The Method: They used Transformers (specifically RoBERTa and DistilBERT). Think of these as super-smart readers that understand how words relate to each other in a sentence. They know that "not good" means something very different from just "good."
  • The Result: These chefs were much better. RoBERTa was the star of the show, getting it right about 93% of the time. It understood the nuances and metaphors that the old-school chefs missed. DistilBERT was a close second; it was like a lightweight version of the star chef—almost as smart but faster and easier to run.

3. The "All-Hands-On-Deck" Strategy (Ensemble Learning)

The authors realized that even the best single chef can make a mistake. So, they tried a Soft Voting Ensemble.

  • The Analogy: Imagine a panel of judges. Instead of one judge deciding the winner, you ask all the chefs (the old ones and the new ones) to vote. But instead of just shouting "Yes" or "No," they each give a percentage of confidence (e.g., "I'm 80% sure this is positive").
  • The Magic: The system takes all those percentages, averages them out, and makes a final decision.
  • The Result: This team approach worked even better than the single best chef. By combining their strengths, the group corrected each other's mistakes, especially on those tricky, sarcastic reviews. It was like having a safety net that caught errors no single model could see.

What Did They Learn?

  • The "Tricky" Reviews: The models still struggled with sarcasm (like saying "Great job" when they meant the opposite) and double negatives (like "not bad"). These were the hardest dishes to taste.
  • Transparency: The authors used a tool called SHAP to peek inside the black box. It's like putting a spotlight on the specific words that made the model change its mind. For example, it showed that the word "boring" was pulling the vote toward "negative," while "excellent" pulled it toward "positive."
  • The Winner: While the fancy RoBERTa model was the most accurate, the paper notes that the simpler, older models (like SVM) are still very useful if you don't have a super-computer to run the fancy ones.

The Bottom Line

The paper concludes that if you want the absolute best accuracy for understanding movie feelings, you should use the smartest Transformer model (RoBERTa) and combine it with a team voting strategy. However, if you need something quick and simple, the old-school methods are still surprisingly good at the basics.

In short: One smart chef is great, but a whole team of chefs working together is even better at guessing how people feel about a movie.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →