[Paper Review] Leveraging Sparse and Dense Feature Combinations for Sentiment Classification
This paper proposes a simple yet powerful sentiment classification model that combines sparse n-gram features with dense word embeddings grouped by part-of-speech (POS) tags, using a logistic regression classifier. The method achieves near state-of-the-art performance across multiple benchmarks, outperforming complex deep learning models on most datasets while remaining fast and easy to train.
Neural networks are one of the most popular approaches for many natural language processing tasks such as sentiment analysis. They often outperform traditional machine learning models and achieve the state-of-art results on most tasks. However, many existing deep learning models are complex, difficult to train and provide a limited improvement over simpler methods. We propose a simple, robust and powerful model for sentiment classification. This model outperforms many deep learning models and achieves comparable results to other deep learning models with complex architectures on sentiment analysis datasets. We publish the code online.
Motivation & Objective
- To develop a lightweight, high-performing sentiment classification model that avoids the complexity and training burden of deep neural networks.
- To investigate whether combining sparse bag-of-words features with dense word embeddings improves sentiment classification beyond traditional NBSVM.
- To evaluate the impact of grouping word embeddings by part-of-speech (POS) tags on model performance.
- To compare the proposed method against state-of-the-art deep learning models in terms of accuracy and training efficiency.
- To provide a practical, easily deployable baseline model for sentiment analysis that outperforms simpler linear models without requiring complex architectures.
Proposed method
- The model uses a Naive Bayes Support Vector Machine (NBSVM) framework, where log-count ratios of n-grams are computed for each class to form a sparse feature vector.
- Word embeddings are averaged across all words in a sentence to form a dense vector, and additional dense vectors are created by grouping embeddings according to POS tags (NOUN, VERB, ADJECTIVE).
- For the Twitter sentiment dataset (TTwt), an additional averaged embedding vector is computed for the target word to enable target-dependent sentiment classification.
- The final input to the logistic regression classifier is the concatenation of the sparse NBSVM feature vector and the dense embedding vectors (including POS-grouped and average embeddings).
- Pre-trained Google word2vec embeddings are used, and all models use the same pre-processing steps as in Kim (2014).
- The model is trained using logistic regression on the combined sparse and dense feature representation.
Experimental results
Research questions
- RQ1Can combining sparse n-gram features with dense word embeddings improve sentiment classification performance beyond standard NBSVM?
- RQ2Does grouping word embeddings by part-of-speech tags lead to significant performance gains in sentiment classification?
- RQ3How does the proposed model compare in accuracy and training efficiency to complex deep learning architectures like AdaSent and BLSTM-2DPooling?
- RQ4Can a simple linear model with engineered features match or exceed the performance of more complex neural networks on sentiment benchmarks?
- RQ5Is there a benefit to using POS-tagged embeddings over raw averaged embeddings in sentiment classification tasks?
Key findings
- The NBLR + POSwemb model achieves 81.6% accuracy on the MR dataset, outperforming the original NBSVM (79.4%) by 2.2 percentage points.
- On the CR dataset, the model reaches 84.0% accuracy, a 2.2-point improvement over NBSVM (81.8%).
- The model achieves 89.9% accuracy on MPQA, surpassing NBSVM (86.3%) and matching or exceeding most complex deep learning models.
- On the IMDB dataset, the model attains 91.8% accuracy, outperforming NBSVM (91.2%) and being second only to AdaSent (93.3%).
- On the TTwt dataset, the model achieves a macro F-measure of 69.9%, outperforming other target-dependent models like Targ-dept+ (69.5%) and AdaRNN comb (65.9%).
- The model consistently ranks as the best or second-best across multiple benchmarks, demonstrating that simple feature engineering with embeddings can rival complex deep learning models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.