Embedding Imputation with Grounded Language Information

Ziyi Yang, Chenguang Zhu, Vin Sachidananda, Eric Darve

Abstract

Word embeddings are foundational to modern Natural Language Processing, yet they struggle with "out-of-vocabulary" (OOV) words—terms that are rare or were absent during initial training. Traditional approaches like subword modeling or vector-space interpolation often fail to capture semantic nuances for words with opaque morphologies or limited context. We introduce KG2Vec (Knowledge-Graph-to-Vector), a novel imputation method that leverages grounded external knowledge from Wikipedia and Wiktionary. By representing words as nodes in a knowledge graph and utilizing Graph Convolutional Networks (GCNs) to aggregate semantic information, KG2Vec generates high-quality embeddings for OOV words. Our evaluation on rare word similarity benchmarks demonstrates that KG2Vec significantly outperforms existing state-of-the-art methods, achieving substantial gains in Pearson and Spearman correlations.

Introduction

The "fixed vocabulary" problem remains a significant hurdle in NLP. When a model encounters an OOV word, it typically maps it to a generic <UNK> token, losing critical semantic information. While subword-based models (e.g., FastText) help with morphologically rich languages, they struggle when a word's meaning is not apparent from its spelling (e.g., "Brexit"). Similarly, vector-space methods require sufficient distributional context, which is often unavailable for rare terms.

Methodology: The KG2Vec Approach

KG2Vec addresses these limitations by grounding word representations in external, human-curated knowledge. The process involves three main stages:

  1. Knowledge Graph Construction: For every word, the system retrieves the first paragraph of its Wikipedia entry and its Wiktionary definition. An undirected edge is established between words if their textual descriptions share high similarity (Jaccard coefficient $\ge 0.5$), with edge weights reflecting this similarity.
  2. Feature Initialization: Initial node features are computed by averaging the pre-trained embeddings of all words present in the Wikipedia and Wiktionary descriptions.
  3. GCN-based Imputation: A Graph Convolutional Network (GCN) is trained to aggregate information from a word's graph neighborhood. The network is optimized to minimize the Euclidean distance between its output and the known pre-trained embeddings for in-vocabulary words. Once trained, the GCN can project embeddings for OOV words based on their neighborhood in the knowledge graph.

Experimental Setup

The model was evaluated on two primary rare-word similarity benchmarks:

  • Card-660 (Cambridge Rare Word Dataset): A high-quality benchmark involving 660 word pairs from diverse domains like technology and medicine, featuring a high inter-annotator agreement (0.90).
  • Stanford Rare Word (RW) Similarity: A larger dataset consisting of 2,034 pairs that tests the ability to capture the semantics of infrequent words.
  • External Knowledge Bases: Wikipedia (3 billion tokens) and Wiktionary were used to provide the "grounded" text descriptions.

Results and Analysis

KG2Vec demonstrates superior performance across both GloVe and ConceptNet Numberbatch embedding spaces. As shown in the performance comparison below, KG2Vec consistently achieves the highest Pearson and Spearman correlation scores on the CARD dataset compared to various baselines, including subword-based models like Mimick and definition-based models like SemLand.

Comparison of KG2Vec against various imputation baselines on RW and CARD datasets.

Key Performance Gains

  • Using GloVe: KG2Vec improved Pearson’s correlation by 11% and Spearman’s correlation by 17.8% over previous best-in-class models on the CARD-660 dataset.
  • Using ConceptNet Numberbatch: The model showed improvements of 7.7% in Pearson and 6.7% in Spearman correlation over the prior state-of-the-art.
  • Efficiency: The graph used by KG2Vec is significantly smaller and more efficient than traditional lexical-semantic ontologies like WordNet, yet it yields better performance for OOV imputation.

Key Insights

  • Grounding vs. Morphology: External knowledge provides a more reliable semantic signal than internal subword structure for many rare words. By using Wikipedia and Wiktionary, KG2Vec captures the factual and lexical context that character-level models miss.
  • The Value of Graph Context: KG2Vec outperforms the "Node Features" baseline, which only uses immediate definition text. This confirms that the GCN's ability to aggregate information from a broader neighborhood is vital for accurate semantic inference.
  • Robustness to New Words: Because the model relies on external knowledge bases that are constantly updated, it can generate accurate embeddings for newly emerging terms (like "Brexit") that were completely absent from the original training corpus of models like GloVe.

Conclusion and Future Work

KG2Vec offers a robust solution for the OOV problem by integrating structured external knowledge into the embedding space. While the current model uses simple similarity-based edges, future work will explore incorporating specific relationship types (e.g., "is-a", "part-of") and applying meta-learning techniques (like MAML) to allow for even faster online adaptation as new words and definitions appear. Additionally, evaluating these imputed embeddings in complex downstream tasks like machine translation or question answering remains a key priority.

Summary updated

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