Generating effective ensembles for sentiment analysis

Abstract In recent years, transformer models have revolutionized Natural Language Processing (NLP), achieving exceptional results across various tasks, including sentiment analysis (SA). While current state-of-the-art approaches for SA predominantly rely on transformer achieving impressive accuracy levels on benchmark datasets, we hypothesize that strategically combining transformers with traditional NLP models can yield superior performance. In this paper, we introduce the hierarchical ensemble construction (HEC) algorithm, a novel greedy-based ensemble method that differs from traditional approaches (e.g., bagging, boosting, stacking) by iteratively building ensembles from scratch using simulated annealing to escape local optima. The key innovation of HEC lies in its empirically driven approach to ensemble construction. Through systematic experimentation, we discovered that selective inclusion of heterogeneous models outperforms traditional methods that assume all available models contribute positively to ensemble performance. Unlike conventional methods that use all available base-learners with different weights, HEC selectively identifies a minimal subset of complementary models that maximizes ensemble performance. Our empirical evaluation across eight widely-used SA datasets (including SST-2, IMDB, and YELP) demonstrates that HEC-based ensembles achieve a mean accuracy of 95.71%, yielding a statistically significant improvement ( $$p &lt; 0.05$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>p</mml:mi> <mml:mo>&lt;</mml:mo> <mml:mn>0.05</mml:mn> </mml:mrow> </mml:math> ) over both transformer-only ensembles and traditional ensemble methods. Specifically, HEC reduces 26.61% of the performance gap between the best individual model and perfect classification, compared to only 11.02% for traditional methods. Additionally, we provide a comparative analysis with GPT-4 using zero-shot prompting, demonstrating that HEC outperforms GPT-4 in six out of eight datasets. Our results suggest that leveraging the complementary strengths of diverse model types through intelligent ensemble construction can advance the state-of-the-art in sentiment analysis.

Authors

Institutions

Publication Details

Journal
International Journal of Data Science and Analytics
Published
2026-03-14
DOI
https://doi.org/10.1007/s41060-025-00963-0
Citations
1
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generating effective ensembles for sentiment analysis

Abraham Itzhak Weinberg, David Sarne, Itay Etelis, Avi Rosenfeld
1 citations
International Journal of Data Science and Analytics
Sentiment Analysis and Opinion Mining
article

Generating effective ensembles for sentiment analysis

Abraham Itzhak Weinberg, David Sarne, Itay Etelis, Avi Rosenfeld
article en
1 citations

Abstract

Abstract In recent years, transformer models have revolutionized Natural Language Processing (NLP), achieving exceptional results across various tasks, including sentiment analysis (SA). While current state-of-the-art approaches for SA predominantly rely on transformer achieving impressive accuracy levels on benchmark datasets, we hypothesize that strategically combining transformers with traditional NLP models can yield superior performance. In this paper, we introduce the hierarchical ensemble construction (HEC) algorithm, a novel greedy-based ensemble method that differs from traditional approaches (e.g., bagging, boosting, stacking) by iteratively building ensembles from scratch using simulated annealing to escape local optima. The key innovation of HEC lies in its empirically driven approach to ensemble construction. Through systematic experimentation, we discovered that selective inclusion of heterogeneous models outperforms traditional methods that assume all available models contribute positively to ensemble performance. Unlike conventional methods that use all available base-learners with different weights, HEC selectively identifies a minimal subset of complementary models that maximizes ensemble performance. Our empirical evaluation across eight widely-used SA datasets (including SST-2, IMDB, and YELP) demonstrates that HEC-based ensembles achieve a mean accuracy of 95.71%, yielding a statistically significant improvement ( $$p &lt; 0.05$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:mi>p</mml:mi> <mml:mo>&lt;</mml:mo> <mml:mn>0.05</mml:mn> </mml:mrow> </mml:math> ) over both transformer-only ensembles and traditional ensemble methods. Specifically, HEC reduces 26.61% of the performance gap between the best individual model and perfect classification, compared to only 11.02% for traditional methods. Additionally, we provide a comparative analysis with GPT-4 using zero-shot prompting, demonstrating that HEC outperforms GPT-4 in six out of eight datasets. Our results suggest that leveraging the complementary strengths of diverse model types through intelligent ensemble construction can advance the state-of-the-art in sentiment analysis.

International Journal of Data Science and AnalyticsVol. 22(1)
Bar-Ilan University (IL), Jerusalem College of Technology (IL), Tinbergen Institute (NL)
Bar-Ilan University
Quality Education
Openalex Percentile: Top 25%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.