NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sentiment Analysis with Weighted Graph Convolutional Networks

Fanyu Meng, Junlan Feng, Danping Yin, Si Chen, Min HuEMNLP 2020

Introduction

In Natural Language Processing (NLP), accurately capturing sentiment requires more than just identifying keywords; it necessitates a deep understanding of linguistic structure. While standard Sentiment Analysis (SA) evaluates entire sentences, Aspect-Based Sentiment Analysis (ABSA) requires a more granular approach, linking specific sentiments to distinct targets (e.g., "the food was great but the service was slow").

Existing approaches typically rely on either Pre-trained Language Models (PLMs) like BERT for context or Graph Convolutional Networks (GCNs) to leverage dependency trees. However, traditional GCNs often treat all grammatical connections as equal (binary 1/0 connections). Researchers from China Mobile have addressed this limitation by introducing the Weighted Graph Convolutional Network (WGCN), which assigns varying levels of importance to different grammatical relationships.

The BERT-WGCN Framework

The proposed BERT-WGCN model integrates the contextual power of BERT with a syntax-aware graph that accounts for specific dependency types and parts of speech. The architecture follows a multi-stage pipeline designed to align sub-word features with high-level syntactic rules.

The BERT-WGCN architecture pipeline, showing the integration of BERT features with syntactical parsing and the WGCN layers.

As shown in the architecture, the model processes input text through two parallel paths: a BERT encoder for contextual embeddings and a syntactical parser for dependency mapping. Because BERT operates on sub-word "wordpieces" while parsers use whole words, the authors developed a token alignment method to ensure syntactic rules correctly map onto the BERT features. These aligned features are then processed through multiple WGCN layers to aggregate information from neighboring nodes in the dependency graph.

Weighted Adjacency Matrices

The core innovation of this research is the transition from binary adjacency matrices to weighted ones. The authors argue that certain grammatical links, such as a subject relationship (nsubj), are fundamentally more important for sentiment than others, like determiners (det).

The mechanism for combining Part-of-Speech (POS) features and dependency type features into a weighted adjacency matrix using feature interaction.

To calculate these weights, the model uses a technique inspired by Factorization Machines to model the interaction between dependency relation types and Part-of-Speech (POS) tags. This allows the network to learn, for instance, that an adjective modifying a noun is a high-priority signal for sentiment. By making these weights trainable, the model can dynamically prioritize "high importance" links while effectively ignoring noise from less relevant grammatical connections.

Experimental Results

The BERT-WGCN model was evaluated against several major benchmarks, including Laptop14, Restaurant14/15/16, and SST-5. Key results include:

  • State-of-the-Art Performance: The model achieved the best results on 4 out of 6 ABSA tasks. Notably, on the REST15 dataset, it reached an accuracy of 85.39%, a significant improvement over the standard BERT baseline of 81.20%.
  • Sentiment Analysis Gains: The model set new records for the SST-5 (56.5% accuracy) and SemEval-2013 (77.3% accuracy) datasets.
  • ABSA vs. SA: The syntax-aware approach provided a more substantial boost for ABSA than for general SA, confirming that structural awareness is critical when linking sentiment to specific aspects.

Key Insights and Limitations

Analysis of the model revealed that performance typically peaks at approximately three GCN layers; additional layers lead to "over-smoothing," where word features become too similar to distinguish. Furthermore, while the model excels in complex scenarios, the authors noted that on very small datasets (like REST16), the added complexity of the weighted graph can occasionally lead to overfitting.

Conclusion

By moving beyond binary dependency graphs, the BERT-WGCN framework demonstrates that not all grammatical links are created equal. The integration of weighted syntactic features with contextual embeddings provides a more nuanced and accurate tool for both general and aspect-based sentiment analysis, particularly in complex sentences where long-distance syntactic links are vital.

Summary updated

BibTeX
@inproceedings{meng2020sentiment,
  author = {Fanyu Meng and Junlan Feng and Danping Yin and Si Chen and Min Hu},
  title = {{Sentiment Analysis with Weighted Graph Convolutional Networks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=9MiIlNLXejU},
}
Figure