Learning Structured Embeddings of Knowledge Graphs with Adversarial Learning Framework

Jiehang Zeng, Lu Liu, Xiaoqing ZhengarXiv 2020

Introduction

Knowledge Graphs (KGs), such as Freebase and WordNet, serve as massive repositories of structured information. However, their symbolic nature poses a significant challenge for integration into modern deep learning systems. To bridge this gap, researchers represent entities and relations as continuous vectors in a low-dimensional space, a process known as embedding.

The standard training paradigm for KG embeddings involves contrasting "positive" triples (observed facts) with "negative" triples (corrupted facts). Traditionally, negative samples are generated by randomly replacing an entity in a true triple. While simple, this method often produces "obvious" negatives (e.g., "Einstein born in Toaster") that fail to challenge the model. Consequently, the model may not learn the subtle semantic nuances required for high-precision tasks. This paper introduces a novel adversarial learning framework designed to generate "plausible" negative samples, forcing the embedding model to learn more robust and discriminative features.

Methodology

The authors propose a Generative Adversarial Network (GAN) framework tailored for Knowledge Graphs. This framework consists of two competing components: a Generative Network (GN) and a Discriminative Network (DN).

The proposed adversarial learning framework for knowledge graph embeddings.

The Generative Network (GN)

Given a head entity $h$ and a relation $r$, the GN attempts to generate a vector representation of a plausible tail entity $t'_g$. Unlike previous approaches that select existing entities from the KG—a process that is non-differentiable and requires Reinforcement Learning—this GN generates new vectors directly. This innovation ensures the entire framework is fully differentiable, allowing for stable training via standard backpropagation.

The Discriminative Network (DN)

The DN acts as a judge, receiving three types of triples: ground truth (positive), randomly sampled (traditional negative), and generated (plausible negative). Its objective is to assign higher plausibility scores to real facts while identifying fakes. The GN and DN are trained in a minimax game: as the GN becomes more adept at creating realistic "lies," the DN must become sharper at detecting them.

Evaluation and Results

The framework was evaluated on four benchmark datasets: WN18RR and FB15k-237 for link prediction, and WN11 and FB13 for triple classification. These datasets are specifically designed to be challenging by removing simple reversible relations.

The adversarial framework consistently outperformed baseline models. As shown in the results table below, the adversarial variants of classic models like TransE, TransH, and TransD showed significant gains.

Link prediction results on WN18RR and FB15k-237 datasets.

For instance, on the WN18RR dataset, the adversarial version of TransH (specifically the GN(TransH) + DN(CNN) configuration) improved the Hits@10 by 15.3% and the Mean Reciprocal Rank (MRR) by 25.9% compared to the baseline TransH. Notably, these adversarial models achieved performance competitive with more complex architectures like ConvE, despite using simpler underlying components.

Triple Classification

In triple classification tasks, the framework also demonstrated superior performance. On the WN11 dataset, the model achieved a state-of-the-art accuracy of 85.5%, surpassing specialized models such as KG2E. This confirms that the "plausible" negatives generated by the GN effectively train the DN to be a more accurate classifier of factual truth.

Discussion and Future Work

A key insight from this research is that the quality of negative samples is paramount. By focusing on plausibility rather than randomness, the model is forced to capture deeper structural regularities in the KG. Furthermore, the framework is model-agnostic, allowing various architectures (MLP, CNN, or translation-based models) to be used for the GN and DN.

However, the authors note that adversarial training can be sensitive to hyperparameters and model complexity. If both networks are overly complex, the search space may become too large for stable convergence. Future work will explore unsupervised pre-training and more sophisticated generator architectures to further enhance the capabilities of KG completion systems.

Summary updated

BibTeX
@misc{zeng2020learning,
  author = {Jiehang Zeng and Lu Liu and Xiaoqing Zheng},
  title = {{Learning Structured Embeddings of Knowledge Graphs with Adversarial Learning Framework}},
  year = {2020},
  eprint = {2004.07265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.07265},
}
Figure