[Paper Review] BERT4GCN: Using BERT Intermediate Layers to Augment GCN for Aspect-based Sentiment Classification
BERT4GCN proposes a novel framework that enhances Graph Convolutional Networks (GCN) for aspect-based sentiment classification by fusing grammatical sequential features from intermediate BERT layers with syntactic dependency graphs. By integrating BERT's layered linguistic representations, relative positional encoding, and attention-based dependency graph refinement, the model achieves state-of-the-art performance on SemEval 2014 and Twitter benchmarks.
Graph-based Aspect-based Sentiment Classification (ABSC) approaches have yielded state-of-the-art results, expecially when equipped with contextual word embedding from pre-training language models (PLMs). However, they ignore sequential features of the context and have not yet made the best of PLMs. In this paper, we propose a novel model, BERT4GCN, which integrates the grammatical sequential features from the PLM of BERT, and the syntactic knowledge from dependency graphs. BERT4GCN utilizes outputs from intermediate layers of BERT and positional information between words to augment GCN (Graph Convolutional Network) to better encode the dependency graphs for the downstream classification. Experimental results demonstrate that the proposed BERT4GCN outperforms all state-of-the-art baselines, justifying that augmenting GCN with the grammatical features from intermediate layers of BERT can significantly empower ABSC models.
Motivation & Objective
- To address the limitation of existing GCN-based ABSC models in capturing sequential and syntactic dependencies effectively.
- To leverage the hierarchical linguistic knowledge in BERT’s intermediate layers—particularly syntactic and grammatical features—for improved sentiment classification.
- To enhance GCN representations by incorporating relative positional information and refining dependency graphs using BERT’s self-attention weights.
- To demonstrate that integrating pre-trained linguistic knowledge directly from BERT, without fine-tuning from scratch, significantly improves ABSC performance.
- To validate the effectiveness of component modules such as relative position encoding and attention-based graph pruning through ablation studies.
Proposed method
- Utilizes hidden states from intermediate layers of BERT to enrich node representations in the GCN, capturing syntactic and sequential features.
- Employs a BiLSTM to encode word order and context, initializing GCN node representations with its hidden states.
- Fuses BERT’s intermediate layer outputs with GCN hidden states during neighborhood aggregation to enhance message passing with grammatical context.
- Applies self-attention weights from BERT’s Transformer encoder to prune and reweight dependency graph edges, reducing noise from parsing errors.
- Introduces a relative positional embedding module to make GCN position-aware, improving modeling of long-range dependencies between aspect and opinion terms.
- Constructs a hybrid architecture where BERT provides linguistic priors and GCN performs graph-based message passing, jointly optimizing for sentiment classification.
Experimental results
Research questions
- RQ1Can intermediate layers of BERT, which encode syntactic and grammatical features, improve GCN-based aspect-based sentiment classification?
- RQ2How does integrating relative positional encoding affect GCN performance in ABSC, especially in relation to dependency graph quality?
- RQ3To what extent does attention-based dependency graph refinement improve model robustness and accuracy, particularly on noisy or out-of-domain data?
- RQ4Does the proposed BERT4GCN framework outperform existing state-of-the-art models on standard ABSC benchmarks like SemEval 2014 and Twitter?
- RQ5How do different window sizes for relative position encoding affect performance across datasets with varying aspect-opinion distance distributions?
Key findings
- BERT4GCN achieves state-of-the-art performance on all three benchmark datasets—Laptop, Restaurant, and Twitter—outperforming all prior BERT-based and GCN-based models.
- The model shows a significant performance gain on the out-of-domain Twitter dataset, suggesting enhanced robustness to domain shift when leveraging BERT’s intermediate features.
- Ablation studies confirm that fusing BERT’s intermediate representations with GCN already yields SOTA results, even without the relative position or graph refinement modules.
- The relative position module alone degrades performance, but when combined with attention-based graph pruning, it significantly improves accuracy, indicating synergy between positional bias and graph quality.
- Optimal relative position window size varies by dataset: smaller windows suit Twitter and Laptop, while larger windows are preferred for Restaurant, reflecting domain-specific aspect-opinion distance patterns.
- The attention-based dependency graph refinement reduces noise by removing irrelevant edges, particularly those linking nearby aspect terms to sentiment-irrelevant words, thereby improving model generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.