Abstract
Aspect-Based Sentiment Analysis (ABSA) is a fine-grained sentiment analysis task that identifies sentiment polarities towards specific aspects in text. Traditional approaches rely on Recurrent Neural Networks (RNNs) and attention mechanisms, which suffer from high computational complexity and difficulty in isolating aspect-specific features. This paper introduces the Gated Convolutional network with Aspect Embedding (GCAE), which utilizes parallelizable convolutional layers and a novel Gated Tanh-ReLU Unit (GTRU). GCAE achieves state-of-the-art performance on standard benchmarks while being significantly faster to train than existing LSTM-based models.
Introduction
While general sentiment analysis classifies a whole document or sentence as positive or negative, ABSA provides a more granular view. For instance, in the review "Average to good Thai food, but terrible delivery," a system must distinguish between the positive sentiment for "food" and the negative sentiment for "delivery."
Current state-of-the-art models typically use Long Short-Term Memory (LSTM) networks combined with attention. However, LSTMs are inherently sequential, limiting parallelization. Furthermore, attention mechanisms often apply a single weight to all features of a word, which can lead to "feature mixing" where irrelevant sentiment information leaks into the aspect classification.
Methodology: Gated Convolutional Networks
The proposed GCAE model replaces sequential processing with Convolutional Neural Networks (CNNs) to extract n-gram features. The architecture's core is the Gated Tanh-ReLU Unit (GTRU), which consists of two parallel convolutional layers:
- Sentiment Stream: Uses a
tanhactivation to capture potential sentiment features from the context. - Aspect Gate: Uses a
ReLUactivation and incorporates the target aspect embedding to act as a filter.
The outputs of these two streams are multiplied element-wise. The ReLU gate effectively "blocks" sentiment features that are not relevant to the specific aspect being analyzed by outputting zeros for those dimensions.
For Aspect-Term Sentiment Analysis (ATSA), where aspects are specific words in the text, the model includes an additional CNN to generate embeddings for multi-word terms.
Experimental Setup
The model was evaluated on the SemEval 2014 Task 4 datasets (Laptop and Restaurant reviews). To further test the model's robustness, the researchers introduced:
- Restaurant-Large: A combination of SemEval 2014-2016 data.
- "Hard" Datasets: Subsets containing only sentences with multiple aspects and conflicting sentiments, specifically designed to challenge a model's ability to separate aspect-specific signals.
Results and Discussion
GCAE demonstrated superior performance across all benchmarks, outperforming the ATAE-LSTM model by 1.1% to 2.5% in accuracy. The advantage was most pronounced on the "Hard" datasets; for example, on Restaurant-Large-Hard, GCAE achieved 70.75% accuracy, significantly higher than the 66.32% achieved by its LSTM-based competitor.
The most striking result is the training efficiency. GCAE converged in approximately 3.33 seconds for the ATSA task, compared to 82.87 seconds for the Interactive Attention Network (IAN), representing a 25x speedup.
As shown in the visualization above, the gating mechanism allows the model to focus on "good" when the aspect is "food" and "terrible" when the aspect is "delivery," effectively ignoring the conflicting sentiment in the other half of the sentence.
Conclusion
The GCAE model offers a highly efficient and accurate alternative to traditional RNN-based ABSA models. By leveraging the parallel nature of CNNs and the selective filtering of the GTRU, it addresses both the computational bottlenecks and the feature-mixing issues of previous approaches. Future work may involve integrating sentiment lexicons to improve performance on small datasets and exploring more sophisticated representations for long-range dependencies.
Summary updated