[Paper Review] Various Approaches to Aspect-based Sentiment Analysis
This paper evaluates multiple approaches to aspect-based sentiment analysis, comparing classical machine learning models (e.g., SVM, XGBoost) and deep learning architectures (e.g., Attention-LSTM, MemNet) using TF-IDF, ID-encoding, bit-masking, and location-encoding features. The MemNet model achieved the highest accuracy, reaching 0.713 on tech reviews and 0.7866 on food reviews, outperforming other methods due to its multi-hop attention mechanism enabling better abstraction of aspect-context relationships.
The problem of aspect-based sentiment analysis deals with classifying sentiments (negative, neutral, positive) for a given aspect in a sentence. A traditional sentiment classification task involves treating the entire sentence as a text document and classifying sentiments based on all the words. Let us assume, we have a sentence such as "the acceleration of this car is fast, but the reliability is horrible". This can be a difficult sentence because it has two aspects with conflicting sentiments about the same entity. Considering machine learning techniques (or deep learning), how do we encode the information that we are interested in one aspect and its sentiment but not the other? Let us explore various pre-processing steps, features, and methods used to facilitate in solving this task.
Motivation & Objective
- To investigate effective feature engineering techniques for aspect-based sentiment analysis, including ID-encoding, bit-masking, and location-encoding.
- To evaluate classical machine learning models (e.g., SVM, Random Forest, XGBoost) with handcrafted features for aspect sentiment classification.
- To compare deep learning models—specifically Attention-LSTM and MemNet—on their ability to capture aspect-context dependencies.
- To identify the most effective combination of preprocessing, feature engineering, and model architecture for aspect-based sentiment classification.
- To analyze model performance across imbalanced datasets, particularly focusing on low F1-scores for the neutral class.
Proposed method
- Applied ID-encoding to assign unique IDs to each aspect term and create aspect-sequences for model input.
- Used bit-masking to represent aspect term locations with binary indicators instead of IDs.
- Implemented location-encoding to encode the relative position of each context word with respect to the aspect term.
- Employed TF-IDF vectorization for classical machine learning models, using scikit-learn’s implementations.
- Built a deep learning model using a single-layer Attention-LSTM with GLoVe embeddings, but found it insufficient for capturing complex dependencies.
- Designed a MemNet (deep memory network) with multiple attention hops, combining context and location attention, trained with TensorFlow and optimized for hierarchical abstraction of aspect-context interactions.
Experimental results
Research questions
- RQ1Which feature engineering technique—ID-encoding, bit-masking, or location-encoding—yields the most effective representation for aspect-based sentiment classification?
- RQ2How do classical machine learning models (e.g., SVM, XGBoost) compare to deep learning models in terms of performance on aspect-based sentiment analysis tasks?
- RQ3Why does a single-layer Attention-LSTM fail to generalize well on this task despite architectural enhancements like dropout and batch normalization?
- RQ4To what extent does the MemNet’s multi-hop attention mechanism improve performance over single-layer attention models in capturing aspect-context relationships?
- RQ5How do class imbalance and aspect phrase complexity affect model performance, especially for the neutral sentiment class?
Key findings
- The MemNet model achieved the highest overall accuracy of 0.713 on the Tech Reviews dataset and 0.7866 on the Food Reviews dataset, outperforming all other models.
- SVM with one-hot encoding performed second-best among classical models, achieving 0.6112 and 0.6629 accuracy on the Tech and Food datasets, respectively.
- The ETC (Extra Trees Classifier) model surprisingly outperformed other classical models on the Tech Reviews dataset with 0.7021 accuracy, but failed on the Food Reviews dataset, where its F1-score for the positive class was only 0.3745.
- The Attention-LSTM model underperformed due to insufficient abstraction capacity from a single attention layer, despite using dropout, batch normalization, and bidirectional LSTMs.
- The neutral class consistently showed the lowest F1-scores across all models, indicating persistent challenges due to class imbalance.
- The study confirms that multi-hop attention mechanisms in MemNet are essential for modeling complex, hierarchical dependencies between aspects and their context words.
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.