Relational Graph Attention Network for Aspect-based Sentiment Analysis

Kai Wang, Weizhou Shen, Yunyi Yang, Xiaojun Quan, Rui Wang

Abstract

Aspect-based sentiment analysis (ABSA) aims to identify sentiments toward specific entities within a sentence. Traditional methods often struggle to accurately link aspects to their corresponding opinion words, especially in complex sentences. This paper introduces the Relational Graph Attention Network (R-GAT), which leverages sentence syntax by reshaping dependency trees to center on target aspects and explicitly modeling syntactic relationship types. Our approach demonstrates significant performance improvements on standard benchmarks, particularly in handling sentences with multiple targets.

The Challenge of Aspect-Opinion Linking

The primary difficulty in ABSA is "connecting the dots" between an aspect and its relevant descriptors. For instance, in the sentence "The food was great but the service was slow," a model must correctly assign "great" to food and "slow" to service. Standard attention-based networks often rely on word proximity, which leads to errors in sentences like "So delicious was the noodles but terrible vegetables," where a proximity-based model might incorrectly link "terrible" to "noodles."

A complex sentence with multiple aspects ('falafel' and 'chicken') and their respective syntactic dependencies.

While dependency parse trees provide a map of grammatical structure, existing methods frequently ignore relationship labels (e.g., "subject" vs. "modifier") or fail because standard trees are not centered on the specific aspect under analysis.

Methodology: Aspect-Oriented Syntax

To address these limitations, we propose a two-part solution centered on the Aspect-Oriented Dependency Tree and the Relational Graph Attention Network (R-GAT).

1. Aspect-Oriented Dependency Tree

Instead of using a generic parse tree, we reshape and prune the structure to prioritize the target aspect:

  • Reshaping: The target aspect is moved to the "root" of the tree.
  • Pruning: Only direct syntactic connections to the aspect are retained.
  • Virtual Relations (n:con): To mitigate parsing errors and maintain context, virtual edges are added between the aspect and other words based on their original tree distance (up to a distance of 4).
The process of reshaping and pruning a standard dependency tree into an aspect-oriented tree centered on the target aspect 'noise level'.

2. Relational Graph Attention Network (R-GAT)

Standard Graph Attention Networks (GATs) typically only consider node features. R-GAT extends this by incorporating edge labels. It employs "relational heads" that function as gates, allowing the model to weigh information differently based on the grammatical relationship type. For example, an adjectival modifier is given more weight for sentiment than a determiner.

Experimental Results

We evaluated R-GAT on three standard benchmarks: SemEval 2014 Task 4 (Laptop and Restaurant) and a Twitter dataset.

  • Performance Gains: On the Restaurant dataset, R-GAT achieved 83.30% accuracy, a significant improvement over the standard GAT's 78.21%.
  • BERT Integration: When combined with BERT, the model reached state-of-the-art performance with 86.60% accuracy on Restaurants and 78.21% on Laptops.
  • Proximity Robustness: R-GAT proved far more effective at identifying sentiment when multiple aspects are clustered closely together, a common failure point for previous models.

Conclusion

By treating syntax as a filter and recognizing that relationship labels are critical, R-GAT provides a more robust framework for ABSA. While the model remains dependent on the quality of the initial dependency parser, the inclusion of virtual n:con relations provides a necessary safety net. Future work will explore integrating natural language inference (NLI) to better handle complex logical structures like double negations.

Summary updated

BibTeX
@inproceedings{wang2020relational,
  author = {Kai Wang and Weizhou Shen and Yunyi Yang and Xiaojun Quan and Rui Wang},
  title = {{Relational Graph Attention Network for Aspect-based Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.295},
}
Figure