Out-of-Vocabulary Embedding Imputation with Grounded Language Information by Graph Convolutional Networks

Ziyi Yang, Chenguang Zhu, Vin Sachidananda, Eric Darve

TL;DR

This paper introduces KG2Vec, a novel method for "imputing" embeddings for out-of-vocabulary (OOV) words by leveraging external knowledge bases like Wikipedia and Wiktionary. By constructing a knowledge graph and training a Graph Convolutional Network (GCN) to map graphical structures into existing embedding spaces (like GloVe), the authors achieve a new state-of-the-art on rare word similarity tasks, outperforming subword-based approaches.

What Problem Does This Paper Address?

Word embeddings are the bedrock of modern NLP, but they suffer from a fundamental limitation: fixed vocabularies. When a model encounters a rare word or a new term (e.g., "Brexit" at the time of the paper's writing), it typically falls back to a generic <UNK> token. This discards all semantic nuance, hurting performance on downstream tasks.

Existing solutions generally fall into two camps:

  1. Subword models: Constructing embeddings from characters or n-grams (like FastText). These work well for morphologically rich languages but can struggle with semantically unique words.
  2. Vector space properties: Attempting to learn embeddings from a few context sentences. This requires at least some training data, which isn't always available for truly "unseen" words.

The authors argue that we should instead look at grounded language information—the definitions and summaries found in human-curated knowledge bases—to bridge the gap.

Methods

The authors propose KG2Vec (Knowledge-Graph-to-Vector), which follows a three-step pipeline:

  1. Graph Construction: They build a knowledge graph where nodes represent both common (in-vocabulary) and OOV words. To create edges, they use "grounded information": the first paragraph of a word's Wikipedia page and its Wiktionary definition. An edge is drawn between two words if the Jaccard similarity of their grounded text exceeds a threshold (0.5).
  2. Feature Initialization: Each node is initialized with a feature vector $f_v$, calculated as the mean of the pre-trained embeddings of all words found in its grounded information text.
  3. GCN Mapping: They employ a Graph Convolutional Network (GCN) to learn a mapping from this graphical structure to the pre-trained embedding space (e.g., GloVe or ConceptNet). The GCN is trained to minimize the Euclidean distance between its output and the actual pre-trained vectors for known words. Once trained, the GCN can "impute" a high-quality vector for any OOV node based on its position and neighbors in the graph.

Datasets

The model was evaluated on two primary benchmarks for rare word representation:

  • Card-660 (Cambridge Rare Word Dataset): A word-word similarity task featuring 660 pairs of uncommon words across domains like technology and medicine. It is noted for its high inter-annotator agreement (0.90).
  • Stanford Rare Word (RW) Similarity: A larger dataset (2,034 pairs) focusing on infrequent words, though it has a lower inter-annotator agreement (0.41).

The authors used GloVe and ConceptNet Numberbatch as the target pre-trained embedding spaces.

Key Insights and Ideas

  • Knowledge over Morphology: Unlike subword methods that look at how a word is spelled, KG2Vec looks at what a word means via its definition. This is particularly effective for new entities or technical terms that don't share roots with common words.
  • GCNs as Imputers: The GCN acts as a sophisticated interpolator. By learning how known words relate to their definitions in a graph, it can accurately guess where an unknown word should sit in the high-dimensional vector space.
  • The Power of Grounding: The "aha moment" is that Wikipedia and Wiktionary are constantly updated. By using these as the graph source, the model can generate embeddings for words that didn't even exist when the original GloVe vectors were trained.

Key Results

KG2Vec achieved significant gains, particularly on the more reliable Card-660 dataset. As shown in the results table below, when using GloVe embeddings, KG2Vec improved Pearson’s and Spearman’s correlation coefficients by 11% and 17.8% respectively over the previous state-of-the-art (SemLand).

Performance of OOV models on Stanford Rare Word Similarity and Card-660 datasets.

The authors also included a "Node features" baseline (using just the mean of definition embeddings without the GCN). The GCN version consistently outperformed this baseline, proving that the structural information of the graph is critical for semantic inference.

Limitations and Future Work

  • Knowledge Base Dependency: The method relies entirely on the quality and availability of Wikipedia/Wiktionary entries. If a word isn't in these databases, KG2Vec cannot impute it.
  • Computational Overhead: Building a Jaccard-based similarity graph for a massive vocabulary can be computationally expensive, though the authors mitigate this by using an online construction method.
  • Future Directions: The authors suggest exploring more complex edge types (e.g., specific relations like "is-a" or "part-of") and integrating meta-learning (like MAML) to allow the model to adapt even faster to newly emerging vocabularies.

Summary updated

BibTeX
@inproceedings{yang2019out,
  author = {Ziyi Yang and Chenguang Zhu and Vin Sachidananda and Eric Darve},
  title = {{Out-of-Vocabulary Embedding Imputation with Grounded Language Information by Graph Convolutional Networks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1326},
}
Figure