Jointly learning word embeddings using a corpus and a knowledge base

Mohammed Alsuhaibani, Danushka Bollegala, Takanori Maehara, Ken-ichi KawarabayashiPLoS 2018

Abstract

Traditional word embedding models rely on the distributional hypothesis, capturing meaning through word co-occurrences in large text corpora. While effective, these models often ignore the explicit semantic relationships defined in human-curated Knowledge Bases (KBs). This paper presents a joint learning framework that integrates corpus-based statistics with KB-derived relational constraints. By introducing dynamic KB expansion techniques—Nearest Neighbour Expansion (NNE) and Hedged Nearest Neighbour Expansion (HNE)—the model addresses KB sparsity and improves the representation of rare words. Experimental results across multiple benchmarks demonstrate that this joint approach significantly outperforms corpus-only baselines and post-processing methods like retrofitting.

Introduction

The development of word embeddings has revolutionized natural language processing (NLP). Models such as Word2Vec and GloVe have demonstrated that vector representations of words, learned from the contexts in which they appear, can capture nuanced semantic and syntactic properties. However, these purely data-driven approaches have limitations. They struggle with rare words and often fail to distinguish between different types of semantic relations (e.g., similarity vs. association).

Conversely, Knowledge Bases (KBs) like WordNet provide high-precision, manually-curated relational structures. However, KBs are often sparse and fail to keep pace with evolving language or domain-specific terminology. Previous research has attempted to bridge this gap through "retrofitting"—adjusting pre-trained vectors using KB constraints. This paper argues for a more integrated approach: a joint learning objective that optimizes for both corpus co-occurrences and KB relations simultaneously.

Methodology

The proposed framework extends the GloVe architecture to incorporate structured knowledge through a unified optimization process.

1. Joint Objective Function

The model minimizes a combined loss function: $$J = J_{corpus} + \lambda J_{knowledge}$$ Where $J_{corpus}$ represents the standard GloVe objective (minimizing the squared error of the log-co-occurrence counts), and $J_{knowledge}$ enforces that words related in the KB (e.g., synonyms) are positioned closer together in the vector space. The hyperparameter $\lambda$ controls the influence of the KB constraints relative to the corpus data.

2. Dynamic KB Expansion

A primary challenge in joint learning is the "coverage gap"—many words in a large corpus do not appear in a formal KB. To mitigate this, the authors propose two methods to dynamically expand the KB using corpus statistics, specifically Positive Pointwise Mutual Information (PPMI):

  • Nearest Neighbour Expansion (NNE): This approach identifies the top-$K$ nearest neighbors of a KB-resident word in the corpus (based on PPMI) and treats them as having a semantic relationship. This allows the model to propagate KB constraints to words that were previously "unseen" by the lexicon.
  • Hedged Nearest Neighbour Expansion (HNE): To reduce noise introduced by polysemy or common "hub" words, HNE employs a triangulation strategy. A new word $V$ is only linked to the KB if it is a top neighbor of at least two words ($U$ and $H$) that are already connected within the KB. This conservative approach ensures higher precision in the expanded relations.

Experimental Setup

The model was trained on the ukWaC corpus (2 billion tokens) and utilized WordNet as the primary KB. The study focused on eight specific relation types, including synonyms, antonyms, hypernyms, hyponyms, and various meronym relations. Performance was evaluated on two main categories of tasks:

  1. Semantic Similarity: Benchmarks included WordSim353, Rubenstein-Goodenough (RG), Miller-Charles (MC), SimLex-999, and the Rare Words (RW) dataset.
  2. Word Analogy: The Google analogy dataset and SemEval 2012 Task 2.

Results and Discussion

The joint learning model consistently outperformed the baseline GloVe model across all evaluation metrics. Notably, the method also surpassed popular post-processing techniques like Retrofitting (Faruqui et al.), suggesting that incorporating knowledge during the initial training phase allows for a more coherent optimization of the vector space.

Rare Word Performance

One of the most significant findings was the improvement on the Rare Words (RW) dataset. By using NNE and HNE to link infrequent corpus words to well-defined KB terms, the model effectively "borrows" semantic context, providing robust embeddings for words that would otherwise have poorly defined vectors due to sparse corpus data.

The Role of HNE

The Hedged Nearest Neighbour Expansion proved superior to the simpler NNE. By requiring multiple points of contact with the existing KB, HNE successfully filtered out noisy associations caused by high-frequency words that appear in many contexts but lack specific semantic ties to the target word. This addressed the "hub" problem where common words act as false semantic bridges.

Conclusion

This research demonstrates that the synergy between unstructured text and structured knowledge bases is a powerful tool for representation learning. By treating the KB not just as a static reference but as a dynamic structure that can be expanded via corpus statistics, the proposed joint model achieves a more accurate and comprehensive mapping of word meanings. While the expansion process eventually plateaus as noise increases, the initial rounds of expansion provide a statistically significant boost to embedding quality, particularly for tasks requiring high semantic precision like SimLex-999.

Summary updated

BibTeX
@inproceedings{alsuhaibani2018jointly,
  author = {Mohammed Alsuhaibani and Danushka Bollegala and Takanori Maehara and Ken-ichi Kawarabayashi},
  title = {{Jointly learning word embeddings using a corpus and a knowledge base}},
  booktitle = {PLoS},
  year = {2018},
  doi = {10.1371/journal.pone.0193094},
}
Figure