KBGAN: Adversarial Learning for Knowledge Graph Embeddings

Liwei Cai, William Yang Wang
11/11/2017
cs.CLcs.AI

Official code: cai-lw/KBGAN (213 stars, MIT, last commit 2018-10-11).

Abstract

We introduce KBGAN, an adversarial learning framework to improve the performances of a wide range of existing knowledge graph embedding models. Because knowledge graphs typically only contain positive facts, sampling useful negative training examples is a non-trivial task. Replacing the head or tail entity of a fact with a uniformly randomly selected entity is a conventional method for generating negative facts, but the majority of the generated negative facts can be easily discriminated from positive facts, and will contribute little towards the training. Inspired by generative adversarial networks (GANs), we use one knowledge graph embedding model as a negative sample generator to assist the training of our desired model, which acts as the discriminator in GANs. This framework is independent of the concrete form of generator and discriminator, and therefore can utilize a wide variety of knowledge graph embedding models as its building blocks. In experiments, we adversarially train two translation-based models, TransE and TransD, each with assistance from one of the two probability-based models, DistMult and ComplEx. We evaluate the performances of KBGAN on the link prediction task, using three knowledge base completion datasets: FB15k-237, WN18 and WN18RR. Experimental results show that adversarial training substantially improves the performances of target embedding models under various settings.

View on arXivView PDF

Code Implementations(1)

cai-lw/KBGANOfficial100%
MIT

Code for "KBGAN: Adversarial Learning for Knowledge Graph Embeddings" https://arxiv.org/abs/1711.04071

21354PythonFeb 28, 20188 years agoMIT
generative-adversarial-networkknowledge-baseknowledge-base-embeddingsknowledge-graphknowledge-graph-embeddings+1 more

Similar Papers

Cite this paper

@article{cai2017kbgan,
  title  = {KBGAN: Adversarial Learning for Knowledge Graph Embeddings},
  author = {Liwei Cai and William Yang Wang},
  year   = {2017},
  eprint = {1711.04071},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1711.04071}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1711.04071.svg)](https://codeofpaper.com/paper/1711.04071)

Discussion