Skip to main content
QUICK REVIEW

[Paper Review] VGCN-BERT: Augmenting BERT with Graph Embedding for Text Classification

Zhibin Lu, Pan Du|arXiv (Cornell University)|Apr 12, 2020
Topic ModelingComputer Science30 references11 citations
TL;DR

This paper proposes VGCN-BERT, a hybrid model that integrates graph convolutional networks (GCN) on a vocabulary graph with BERT to enhance text classification by jointly modeling local contextual information (via BERT's self-attention) and global lexical relationships (via GCN embeddings). The method achieves state-of-the-art performance on five text classification datasets by enabling dynamic interaction between word-level and graph-level representations through multi-layer attention mechanisms.

ABSTRACT

Much progress has been made recently on text classification with methods based on neural networks. In particular, models using attention mechanism such as BERT have shown to have the capability of capturing the contextual information within a sentence or document. However, their ability of capturing the global information about the vocabulary of a language is more limited. This latter is the strength of Graph Convolutional Networks (GCN). In this paper, we propose VGCN-BERT model which combines the capability of BERT with a Vocabulary Graph Convolutional Network (VGCN). Local information and global information interact through different layers of BERT, allowing them to influence mutually and to build together a final representation for classification. In our experiments on several text classification datasets, our approach outperforms BERT and GCN alone, and achieve higher effectiveness than that reported in previous studies.

Motivation & Objective

  • Address the limitation of BERT in capturing global lexical relationships beyond sentence-level context.
  • Overcome the inability of standard GCNs to model local syntactic and sequential dependencies in text.
  • Integrate global vocabulary structure with local contextual representations in a unified deep learning framework.
  • Enable bidirectional interaction between local (BERT) and global (VGCN) representations via self-attention mechanisms.
  • Improve text classification performance by leveraging both local context and global lexical semantics in a joint representation space.

Proposed method

  • Construct a vocabulary graph using pointwise mutual information (PMI) on word co-occurrence in a large corpus to capture semantic relationships.
  • Train a Graph Convolutional Network (GCN) on the vocabulary graph to produce graph embeddings that encode global lexical structure.
  • Concatenate word embeddings from BERT with graph embeddings from VGCN as input to the BERT encoder.
  • Allow interaction between word and graph embeddings through multi-head self-attention layers in BERT, enabling dynamic attention to both modalities.
  • Use the [CLS] token representation from the final BERT layer for downstream text classification.
  • Apply a learnable attention mechanism that allows the model to dynamically attend to both word tokens and graph embedding dimensions during inference.

Experimental results

Research questions

  • RQ1Can integrating global vocabulary structure via GCN improve BERT’s performance on text classification tasks?
  • RQ2Does the interaction between local (BERT) and global (VGCN) representations lead to better representation learning than separate or concatenative fusion?
  • RQ3Can graph embeddings help BERT resolve ambiguous or implicit sentiment expressions that rely on domain-specific lexical knowledge?
  • RQ4How does the attention mechanism in BERT distribute between word tokens and graph embedding dimensions in the presence of implicit sentiment?
  • RQ5Does the model’s performance improve when graph embeddings are dynamically attended to rather than used in a fixed, non-interactive manner?

Key findings

  • VGCN-BERT achieves the highest F1-score on all five benchmark datasets, outperforming both BERT and GCN alone.
  • On the IMDB movie review dataset, VGCN-BERT achieves an F1-score of 91.93, compared to 91.38 for Vanilla-VGCN-BERT and 91.38 for BERT, demonstrating the benefit of interaction.
  • The model improves the F1-score on the hate speech detection task to 81.26, significantly outperforming BERT’s 80.59 and GCN’s 66.61.
  • Visualization shows that VGCN-BERT learns to attend to graph embedding dimensions associated with key semantic concepts like 'innovation', which are crucial for correct sentiment classification.
  • The attention mechanism in VGCN-BERT dynamically assigns high attention to graph embedding dimensions related to implicit sentiment, such as 'innovation', only after deeper layers of BERT have formed higher-level representations.
  • In contrast, Vanilla-VGCN-BERT, which concatenates embeddings without interaction, fails to attend to graph embeddings, confirming that interaction is essential for effective integration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.