Abstract
A novel framework based on neural network is proposed to predict sentiment polarity of aspects in a sentence. The proposed model finely tunes pre-trained word embedding in order to get more accurate embedding for aspect-based sentiment analysis task. Aspect attention based on its location and the whole sentence is calculated to generate importance of context words. The merits of our model are tested on three datasets: reviews of restaurants, laptops from SemEval2014, and review collected from twitter for testing robust of our model on language form. It is shown by experiments that the proposed model outperforms the state-of-the-art methods on these datasets.
Introduction
Traditional sentiment analysis often treats a sentence as a single unit of emotion. However, real-world reviews are rarely that simple. Consider the sentence: "The screen is beautiful, but the battery life is abysmal." A standard model might label this as "neutral" or "mixed," but a business needs to know that the Screen aspect is positive while the Battery aspect is negative. This is the core of Aspect-Based Sentiment Analysis (ABSA).
Current ABSA models face two major hurdles:
- The Antonym Problem: Pre-trained word embeddings (like GloVe) are trained on context. Because "good" and "bad" often appear in similar sentence structures, their vector representations are frequently very similar. For sentiment tasks, this is problematic as these opposites need to be distinct.
- Contextual Noise: In long sentences with multiple aspects, global attention mechanisms often get "distracted" by sentiment words that belong to a different aspect.
The ETAN Framework
The proposed ETAN (Embedding Tuning & Attention Neural Network) model addresses these issues through a three-stage architecture.
1. Embedding Tuning Layer
Instead of using static pre-trained vectors, the model "finely tunes" them during training. It concatenates the aspect word and context word vectors, passing them through a non-linear tanh layer. This forces the model to learn representations where antonyms are pushed further apart in vector space, reducing the cosine similarity between words like "good" and "bad" by over 64%.
2. Bi-GRU Memory
The model uses a Bidirectional Gated Recurrent Unit (Bi-GRU) to process the sentence. GRUs are chosen over LSTMs for their efficiency and fewer parameters, which is advantageous for the relatively small datasets common in ABSA.
3. Dual Attention Mechanism
This is the core innovation of ETAN:
- Global Attention: Captures the overall sentiment of the sentence.
- Location-Based Local Attention: Uses a sliding window around the specific aspect. It intelligently shifts this window if it hits punctuation, ensuring the model focuses only on the most relevant nearby descriptors.
The outputs of the global and local attention are concatenated and passed through a softmax layer to predict the final sentiment (Positive, Negative, or Neutral).
Evaluation
The model was evaluated on four diverse datasets to test its robustness:
- SemEval 2014 (Task 4): Industry standard reviews for Restaurants and Laptops.
- Tweet Dataset: Social media posts used to test robustness against informal language and slang.
- BDCI: A large-scale Chinese dataset, demonstrating cross-linguistic applicability.
Performance Analysis
ETAN consistently outperformed previous state-of-the-art models like IAN and ATAE-LSTM across all metrics.
Key results include:
- Restaurant Reviews: Achieved 77.9% accuracy, a significant lead over the baseline.
- Twitter: Saw a major jump to 69.5% accuracy, suggesting the dual-attention approach is particularly effective at navigating messy social media syntax.
- BDCI (Chinese): Reached a high of 88.5% accuracy.
An ablation study confirmed that both local attention and embedding fine-tuning contribute significantly to the final performance, with their combination yielding the best results.
Conclusion
The ETAN framework demonstrates that proximity-based attention and sentiment-specific embedding tuning are powerful tools for ABSA. While the model excels at identifying explicit sentiment, future work may focus on "implicit sentiment"—understanding cues like "It weighed seven pounds" where no explicit sentiment words are present. Additionally, exploring domain-specific pre-trained embeddings for social media could further enhance performance on informal datasets.
Summary updated