Abstract
Aspect-level sentiment classification (ABSA) aims to identify sentiments toward specific aspects in text. Traditional methods often struggle with long-distance dependencies and underutilize syntactic structures. This paper introduces the Syntax-Aware Graph Attention Network (SAGAT), which integrates BERT's contextual embeddings with dependency tree structures. By maintaining subword tokens within a Graph Attention Network (GAT), SAGAT bridges the gap between distant sentiment-bearing words and their targets, achieving state-of-the-art performance on benchmark datasets.
Introduction
Aspect-Level Sentiment Analysis (ABSA) involves determining the sentiment (positive, negative, or neutral) toward specific "aspects" in a sentence. For example, in the sentence "The food was great but the service was slow," food is associated with a positive sentiment while service is negative.
Current ABSA research faces two primary challenges:
- Long-Distance Dependencies: Sentiment-bearing words are often separated from their target aspects by many tokens in a linear sequence, making it difficult for sequential models like RNNs to establish a link.
- Underutilized Syntax: While BERT provides powerful contextual embeddings, it is typically used as a sequential layer, ignoring the explicit syntactic "skeleton" provided by dependency trees. Conversely, existing graph-based models often treat all neighbors in a dependency tree as equally important, failing to capture the varying relevance of syntactic relations.
Methodology: The SAGAT Model
The SAGAT model addresses these issues by combining subword-aware encoding with a syntax-guided Graph Attention Network.
The architecture consists of four primary components:
- Subword-Aware Encoding: Unlike standard approaches that mean-pool BERT subwords into a single word-level vector, SAGAT retains all subword representations to preserve fine-grained information captured during pre-training.
- Syntax-Guided Graph Attention (GAT): The model constructs a graph based on the sentence's dependency tree, where nodes represent subwords and edges represent syntactic relationships. By using an attention mechanism rather than simple convolution, the model learns to weigh the importance of different syntactic neighbors.
- Fusion and Alignment Layers: These layers facilitate interaction between the context and the specific aspect. The Fusion layer employs max-pooling to extract significant features, while the Alignment layer uses self-attention to refine representations.
- Dependency Parsing: Syntactic structures are generated using the Spacy toolkit to inform the graph's topology.
Experimental Evaluation
The authors evaluated SAGAT on three standard benchmarks: SemEval 2014 Task 4 (Restaurant and Laptop domains) and the ACL 14 Twitter dataset.
As shown in the results table, SAGAT achieved state-of-the-art or near-state-of-the-art performance. Notably, it reached 85.08% accuracy on the Restaurant dataset and 75.40% on the Twitter dataset. While it was slightly outperformed by SDGCN-BERT on the Laptop dataset, it remained highly competitive.
Discussion and Key Insights
A central finding of this work is the advantage of syntactic distance over sequential distance. By using a graph structure, the model can "shortcut" the distance between a sentiment word and its aspect, requiring only a single "hop" in the dependency tree even if they are many tokens apart.
Furthermore, the decision to treat subwords as individual nodes in the graph proved crucial. This allows the GAT to weigh the importance of different word parts, leading to more accurate representations. Ablation studies confirmed that the Graph Attention layer is the most critical component; its removal significantly degrades performance, reducing the model to a standard sequential BERT classifier.
Limitations and Future Work
The model's performance is heavily dependent on the accuracy of the underlying dependency parser. In the Laptop dataset, performance was hindered by technical specifications and complex punctuation (e.g., "full 1920x1080 screen"), which often lead to "broken" dependency trees. Future research will focus on developing more robust parsers for technical domains or enhancing graph networks to be more resilient to noisy syntactic inputs.
Summary updated