Graph Convolutional Networks based Word Embeddings

Shikhar Vashishth, Prateek Yadav, Manik Bhandari, Piyush Rai, Chiranjib Bhattacharyya, Partha P. Talukdar

Abstract

Word embeddings have been widely adopted across several NLP applications. Most existing word embedding methods utilize sequential context of a word to learn its embedding. While there have been some attempts at utilizing syntactic context of a word, such methods result in an explosion of the vocabulary size. In this paper, we overcome this problem by proposing SynGCN, a flexible Graph Convolution based method for learning word embeddings. SynGCN utilizes the dependency context of a word without increasing the vocabulary size. Word embeddings learned by SynGCN outperform existing methods on various intrinsic and extrinsic tasks and provide an advantage when used with ELMo. We also propose SemGCN, an effective framework for incorporating diverse semantic knowledge for further enhancing learned word representations. We make the source code of both models available to encourage reproducible research.

Introduction

Traditional word embedding models, such as Word2vec and GloVe, are primarily built upon the distributional hypothesis, where word meaning is derived from sequential context windows. However, these models often fail to capture long-range syntactic dependencies—such as the relationship between a subject and a verb separated by multiple clauses. Furthermore, they struggle to distinguish between topical similarity (e.g., "doctor" and "hospital") and functional similarity (e.g., "doctor" and "surgeon").

Previous attempts to integrate syntax via dependency parses faced a "vocabulary explosion" problem. By creating unique context tokens for every word-relation pair (e.g., scientist_subj), the context vocabulary size would balloon, hindering scalability. This paper introduces SynGCN and SemGCN to address these limitations using Graph Convolutional Networks (GCNs).

Methods

The authors propose two GCN-based frameworks to integrate syntactic and semantic information.

SynGCN (Syntactic GCN)

SynGCN operates at the sentence level, representing each sentence as a graph where words are nodes and dependency parse tags are labeled edges. Unlike previous methods, SynGCN uses a GCN message-passing architecture to incorporate relation types directly into the convolution, avoiding vocabulary expansion. It also features an "edge-label gating" mechanism to mitigate noise from erroneous dependency parses. Mathematically, SynGCN is shown to be a generalization of the Continuous Bag-of-Words (CBOW) model.

SynGCN architecture for sentence-level syntactic embeddings.

SemGCN (Semantic GCN)

SemGCN is a corpus-level post-processing framework. It constructs a large-scale graph where nodes are words and edges represent semantic relations (e.g., synonymy, hyponymy) from knowledge bases like WordNet or PPDB. It refines pre-trained embeddings by smoothing them across these semantic connections, effectively "retrofitting" the representations with external knowledge.

Evaluation and Results

The models were trained on a Wikipedia corpus of 57 million sentences and evaluated on both intrinsic (similarity, categorization, analogy) and extrinsic (NER, SQuAD, POS tagging) tasks.

Key Results

SynGCN demonstrated superior performance, outperforming Word2vec, GloVe, and prior syntax-based models in 9 out of 10 intrinsic evaluation settings. For instance, on the WS353S similarity task, SynGCN achieved a score of 73.2, significantly higher than Word2vec’s 71.4.

Intrinsic evaluation results across various tasks.

In downstream tasks, SynGCN achieved an F1 score of 79.6 on the SQuAD question-answering dataset. The study also found that SynGCN provides structural context that is complementary to the sequential context captured by deep models like ELMo. Furthermore, refining SynGCN embeddings with SemGCN yielded the best overall performance across nearly all evaluated tasks.

Discussion and Conclusion

A key insight is the distinction between syntax and topic: while sequential models capture topical groupings, SynGCN excels at functional similarity (e.g., grouping "coffee" and "tea"). By treating relations as edge features in a GCN, the authors successfully bypassed the vocabulary bottleneck of previous syntactic models.

However, challenges remain. Jointly training for syntax and semantics proved less effective than a sequential approach, likely due to the massive imbalance between syntactic and semantic data volumes. Additionally, the model's performance remains tied to the quality of the underlying dependency parser. Future work will explore unified training objectives to better balance these diverse linguistic signals.

Summary updated

Abstract

Word embeddings have been widely adopted across several NLP applications. Most existing word embedding methods utilize sequential context of a word to learn its embedding. While there have been some attempts at utilizing syntactic context of a word, such methods result in an explosion of the vocabulary size. In this paper, we overcome this problem by proposing SynGCN, a flexible Graph Convolution based method for learning word embeddings. SynGCN utilizes the dependency context of a word without increasing the vocabulary size. Word embeddings learned by SynGCN outperform existing methods on various intrinsic and extrinsic tasks and provide an advantage when used with ELMo. We also propose SemGCN, an effective framework for incorporating diverse semantic knowledge for further enhancing learned word representations. We make the source code of both models available to encourage reproducible research.
BibTeX
@inproceedings{vashishth2019graph,
  author = {Shikhar Vashishth and Prateek Yadav and Manik Bhandari and Piyush Rai and Chiranjib Bhattacharyya and Partha P. Talukdar},
  title = {{Graph Convolutional Networks based Word Embeddings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=nN1W0ctvQX9},
}
Figure