Introduction
In modern Natural Language Processing (NLP), a persistent challenge exists in balancing model accuracy with computational efficiency. While large-scale neural networks often dominate performance benchmarks, their high latency and resource requirements can be prohibitive in high-throughput commercial environments. This study investigates the trade-offs between simple baseline models and complex deep learning architectures using the Yelp Open Dataset to predict star ratings from review text.
Methodology
The research framework evaluates several classes of models, ranging from traditional statistical approaches to neural ensembles.
Feature Extraction and Baselines
The study compares Hashing Vectorizers with TF-IDF Vectorizers for initial feature extraction. Four "online" learning algorithms were implemented to serve as high-throughput baselines: Logistic Regression (optimized via Stochastic Gradient Descent), Multinomial Naive Bayes, and Passive-Aggressive classifiers.
Neural Architectures
To leverage semantic context, the researchers utilized BERT pretrained embeddings as inputs for Multi-Layer Perceptrons (MLP):
- Shallow MLP: A 7-layer model utilizing only BERT text embeddings.
- Deep MLP: A 9-layer model combining BERT embeddings with eight engineered features (e.g., sentiment scores, word counts) via an outer product.
Ensemble Strategy
The final approach involved a Weighted Voting mechanism to combine the predictions of baseline models and the neural MLPs, aiming to capitalize on the diverse error patterns of different model classes.
Experimental Results
The Power of Ensembling
The most significant finding was that the ensemble of TF-IDF Baselines and the MLP achieved the highest overall accuracy of 58.37%. Notably, a standalone Logistic Regression model with TF-IDF reached 56.70% accuracy, demonstrating that simple statistical models remain highly competitive with much more complex neural counterparts.
The Complexity Paradox
Counter-intuitively, the Shallow MLP (53.07% accuracy) outperformed the Deep MLP (52.82% accuracy). This suggests that the inclusion of additional engineered features and layers may have introduced noise or required more extensive hyperparameter tuning to be effective.
Feature Importance and Text Dominance
Using AdaBoost with decision stumps, the researchers quantified the impact of review text. Accuracy plummeted from 53.45% when including text to 43.70% when using metadata features alone, confirming that the textual content is the primary driver of sentiment prediction.
Discussion and Conclusion
The study highlights that for sentiment analysis tasks like Yelp rating prediction, the "meaningful" tokens identified by TF-IDF are often as predictive as dense neural embeddings. Furthermore, the success of the ensemble approach suggests that statistical and neural models fail in complementary ways. Future work will focus on more extensive hyperparameter optimization and the exploration of more sophisticated feature fusion techniques to further bridge the gap between simple baselines and deep learning performance.
Summary updated