Skip to main content
QUICK REVIEW

[Paper Review] KBGAN: Adversarial Learning for Knowledge Graph Embeddings

Liwei Cai, William Yang Wang|arXiv (Cornell University)|Nov 11, 2017
Advanced Graph Neural NetworksComputer Science22 references44 citations
TL;DR

KBGAN proposes a novel adversarial learning framework that improves knowledge graph embedding models by using a probability-based model as a generator to produce high-quality negative training samples, while a distance-based model acts as a discriminator. This approach significantly boosts performance on link prediction tasks across multiple datasets without requiring external ontologies.

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.

Motivation & Objective

  • To address the challenge of poor-quality negative training samples in knowledge graph embedding, where uniformly random negatives are often trivially distinguishable from positives.
  • To improve the generalization and performance of existing knowledge graph embedding models through adversarial training with better negative examples.
  • To design a generic, model-agnostic framework that can integrate any knowledge graph embedding model as generator or discriminator without requiring external constraints.
  • To enable gradient-based optimization in a discrete generation setting by applying a one-step reinforcement learning method with variance reduction.

Proposed method

  • KBGAN employs a generative adversarial network (GAN)-inspired framework where one KGE model acts as a generator to produce negative facts, and another as a discriminator to distinguish real from generated negatives.
  • The generator is a probability-based model (e.g., DistMult or ComplEx) that scores potential negative triples based on learned embeddings.
  • The discriminator is a margin-loss-based model (e.g., TransE or TransD) that learns to classify true facts from generated negatives.
  • A one-step REINFORCE algorithm with variance reduction is used to backpropagate gradients through the discrete sampling step of the generator.
  • The framework is trained end-to-end, with the generator improving over time to produce more realistic negative samples that challenge the discriminator.
  • Hyperparameters such as the number of negative samples per positive fact (Ns) are tuned to balance training stability and performance.

Experimental results

Research questions

  • RQ1Can adversarial training with a learned generator produce higher-quality negative samples than uniform random sampling in knowledge graph embedding?
  • RQ2Does the proposed KBGAN framework consistently improve the performance of diverse knowledge graph embedding models across different datasets?
  • RQ3How does the quality of generated negative samples affect the discriminator’s ability to generalize on link prediction tasks?
  • RQ4Can the framework be applied to various KGE models without requiring architectural modifications or external ontologies?

Key findings

  • KBGAN consistently improves the performance of both TransE and TransD across all three benchmark datasets: FB15k-237, WN18, and WN18RR.
  • The adversarial training setup leads to significant gains in mean reciprocal rank (MRR) and hits@10 across all settings, with improvements observed even on challenging datasets like WN18RR.
  • Generated negative samples from the model are semantically more relevant than uniformly random negatives, as shown in qualitative case studies where entities exhibit weak but plausible semantic relations.
  • The training process shows stable and monotonic improvement on the validation set, indicating convergence despite the inherent instability of GANs.
  • The framework remains effective even when using simpler models like TransE and TransD as discriminators, suggesting broad compatibility with existing KGE architectures.
  • The use of a one-step REINFORCE method enables effective backpropagation through the discrete generator, making end-to-end training feasible.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.