Discovering Protagonist of Sentiment with Aspect Reconstructed Capsule Network

Chi Xu, Hao Feng, Guoxin Yu, Min Yang, Xiting Wang, Yan Song, Xiang Ao

TL;DR

This paper introduces CAPSAR, a novel capsule network-based model for Aspect-Term Sentiment Analysis (ATSA). CAPSAR addresses the limitation of requiring explicit aspect terms during testing by learning to reconstruct aspect information from sentiment capsules, enabling it to discover potential aspects even when they are not provided. The model achieves state-of-the-art performance on standard ATSA tasks and demonstrates promising capabilities in aspect term detection.

What Problem Does This Paper Address?

Traditional Aspect-Term Sentiment Analysis (ATSA) models excel at predicting the sentiment (positive, negative, neutral) towards a specific target or aspect within a sentence. However, these models typically require the aspect term to be explicitly provided during both training and testing. This reliance on annotated aspect terms limits their applicability in real-world scenarios where such annotations might be unavailable or costly to obtain. The paper tackles this challenge by proposing a method that can perform ATSA and, crucially, discover potential aspect terms from the sentence itself, even when they are not explicitly given.

Methods

The core of the proposed solution is CAPSAR, a capsule network architecture. Here's a breakdown of its key components:

  • Capsule Networks: Inspired by the success of capsule networks in computer vision, CAPSAR uses capsules to represent sentiment categories. The activity vector of a capsule encodes the probability of a sentiment and its orientation captures properties related to that sentiment.
  • Sentiment-Aspect Reconstruction: During training, CAPSAR injects aspect term information into the sentiment capsules. This is achieved through a "sentiment-aspect reconstruction" procedure. The model learns to reconstruct the original aspect embedding from the output of the sentiment capsules. This reconstruction loss acts as a regularization, encouraging the sentiment capsules to encapsulate coherent patterns between aspects and their associated sentiments.
  • Hierarchical Capsule Layers: CAPSAR employs a hierarchical structure of capsule layers (primary, intermediate, and sentiment) to progressively refine representations.
  • Sharing-Weight Routing: Instead of the conventional dynamic routing, CAPSAR uses a "sharing-weight routing" algorithm. This approach shares weights between parent and child capsules, significantly reducing the number of parameters and computational cost while maintaining local proximity information.
  • Sequence Encoder: The paper uses a Bi-GRU as the sequence encoder to process the input sentence. They also note that more advanced encoders like BERT can be integrated.
  • Location Proximity (Optional): For training, a "location proximity" strategy is used to highlight opinion words closer to the given aspect. This is noted as optional for the test phase when aspect terms are unknown.

Datasets

The experiments were conducted on three widely used benchmark datasets for ATSA:

  • Restaurant: From SemEval-2014 Task 4.
  • Laptop: From SemEval-2014 Task 4.
  • Twitter: A dataset collected by Dong et al. (2014).

The paper does not introduce new datasets but uses these established ones to evaluate both standard ATSA performance and the novel aspect term detection capability.

Key Insights and Ideas

  • Decoupling Aspect and Sentiment: The most significant insight is the ability to decouple sentiment prediction from explicit aspect term input during testing. By learning to reconstruct aspect information from sentiment capsules, the model gains the ability to infer potential aspects.
  • Capsules as Aspect Property Encoders: The paper demonstrates that sentiment capsules can effectively encode aspect information as their orientation, going beyond just representing sentiment polarity.
  • Reconstruction Loss for Coherence: The sentiment-aspect reconstruction loss is a clever way to enforce a tighter coupling between aspect terms and their corresponding sentiments, leading to more robust representations.
  • Efficiency of Sharing-Weight Routing: The proposed routing mechanism offers a practical advantage by reducing computational complexity and parameters compared to standard dynamic routing.
  • Potential for Aspect Term Discovery: The experiments show that CAPSAR can not only predict sentiment but also identify likely aspect terms, opening doors for more unsupervised or weakly supervised ATSA.

Key Results

  • State-of-the-Art ATSA Performance: CAPSAR significantly outperforms several strong baseline methods (ATAE-LSTM, TD-LSTM, IAN, MemNet, RAM, MGAN, ANTM) on standard ATSA tasks across all three datasets, achieving higher accuracy and Macro-F1 scores.
  • Improved BERT Performance: When combined with BERT (CAPSAR-BERT), the model further enhances BERT's performance, demonstrating the synergy between pre-trained language models and the proposed capsule architecture.
  • Effective Aspect Term Detection: The paper shows that CAPSAR can detect potential aspect terms with encouraging precision and recall, even when aspect information is withheld during testing. For instance, on the Restaurant dataset, it achieved a Precision@1 of 0.8233 and Recall@5 of 0.7884.
  • Handling Target-Sensitive Sentences: CAPSAR shows a notable advantage in correctly predicting sentiments for sentences with multiple aspects or complex target-sensitive expressions, outperforming competitors in challenging cases.

Limitations and Future Work

  • Implicit Semantics: The authors acknowledge that for sentences relying heavily on implicit semantics rather than explicit opinion words, even their model struggles, indicating that inferring implicit meaning remains a significant challenge.
  • Aspect Term Detection Nuances: While promising, the aspect term detection is still an area for improvement. The paper notes that in cases of overall negative sentiment, both neutral and negative aspects might be incorrectly associated with the negative capsule.
  • Future Work: The paper suggests exploring how to further leverage capsule networks for more sophisticated target-sensitive sentiment analysis. Integrating CAPSAR with even more powerful pre-trained models like BERT is also highlighted as a promising direction. The potential for unsupervised or weakly supervised ATSA using the aspect discovery capabilities is also a key avenue for future research.

Summary updated

Abstract

Most existing aspect-term level sentiment analysis (ATSA) approaches combined neural networks with attention mechanisms built upon given aspect to generate refined sentence representation for better predictions. In these methods, aspect terms are always provided in both training and testing process which may degrade aspect-level analysis into sentence-level prediction. However, the annotated aspect term might be unavailable in real-world scenarios which may challenge the applicability of the existing methods. In this paper, we aim to improve ATSA by discovering the potential aspect terms of the predicted sentiment polarity when the aspect terms of a test sentence are unknown. We access this goal by proposing a capsule network based model named CAPSAR. In CAPSAR, sentiment categories are denoted by capsules and aspect term information is injected into sentiment capsules through a sentiment-aspect reconstruction procedure during the training. As a result, coherent patterns between aspects and sentimental expressions are encapsulated by these sentiment capsules. Experiments on three widely used benchmarks demonstrate these patterns have potential in exploring aspect terms from test sentence when only feeding the sentence to the model. Meanwhile, the proposed CAPSAR can clearly outperform SOTA methods in standard ATSA tasks.
BibTeX
@inproceedings{xu2021discovering,
  author = {Chi Xu and Hao Feng and Guoxin Yu and Min Yang and Xiting Wang and Yan Song and Xiang Ao},
  title = {{Discovering Protagonist of Sentiment with Aspect Reconstructed Capsule Network}},
  booktitle = {DASFAA},
  year = {2021},
  doi = {10.1007/978-3-030-73197-7\_8},
}
Figure