Skip to main content
QUICK REVIEW

[Paper Review] Efficient, Simple and Automated Negative Sampling for Knowledge Graph Embedding

Yongqi Zhang, Quanming Yao|arXiv (Cornell University)|Oct 24, 2020
Advanced Graph Neural NetworksComputer Science70 references4 citations
TL;DR

This paper proposes NSCaching, a novel negative sampling method for knowledge graph embedding that dynamically maintains a cache of high-gradient negative triplets to improve training efficiency and performance. By using automated machine learning to balance exploration and exploitation in cache management, NSCaching achieves state-of-the-art results across multiple models and benchmarks without increasing model complexity.

ABSTRACT

Negative sampling, which samples negative triplets from non-observed ones in knowledge graph (KG), is an essential step in KG embedding. Recently, generative adversarial network (GAN), has been introduced in negative sampling. By sampling negative triplets with large gradients, these methods avoid the problem of vanishing gradient and thus obtain better performance. However, they make the original model more complex and harder to train. In this paper, motivated by the observation that negative triplets with large gradients are important but rare, we propose to directly keep track of them with the cache. In this way, our method acts as a "distilled" version of previous GAN-based methods, which does not waste training time on additional parameters to fit the full distribution of negative triplets. However, how to sample from and update the cache are two critical questions. We propose to solve these issues by automated machine learning techniques. The automated version also covers GAN-based methods as special cases. Theoretical explanation of NSCaching is also provided, justifying the superior over fixed sampling scheme. Besides, we further extend NSCaching with skip-gram model for graph embedding. Finally, extensive experiments show that our method can gain significant improvements on various KG embedding models and the skip-gram model, and outperforms the state-of-the-art negative sampling methods.

Motivation & Objective

  • Address the vanishing gradient problem in knowledge graph embedding caused by poor negative sampling strategies.
  • Overcome the limitations of fixed sampling schemes like uniform or Bernoulli sampling, which fail to adapt to the dynamic distribution of negative triplets.
  • Develop a lightweight, scalable alternative to complex GAN-based negative sampling methods that avoids training additional generators.
  • Integrate automated machine learning to dynamically balance exploration and exploitation in cache sampling and updating.
  • Extend the method to skip-gram models for graph representation learning, enhancing generalization across diverse downstream tasks.

Proposed method

  • Maintain a dynamic cache of negative triplets with large gradients, which are most informative for model optimization.
  • Use a Bregman divergence-based optimization framework to ensure convergence and stability during training.
  • Apply automated machine learning (AutoML) to tune the exploration-exploitation trade-off in selecting and updating cache entries.
  • Formulate the sampling process as a stochastic optimization problem with adaptive sampling probabilities based on gradient magnitude.
  • Integrate NSCaching with various scoring functions (e.g., TransE, RotatE) and extend it to skip-gram models for node representation learning.
  • Theoretical analysis shows convergence under both convex and non-convex settings, justifying the method's effectiveness over fixed sampling schemes.

Experimental results

Research questions

  • RQ1How can negative sampling be made more effective in knowledge graph embedding without increasing model complexity?
  • RQ2Can a cache-based approach outperform GAN-based negative sampling while avoiding the need for training a generator?
  • RQ3What is the optimal balance between exploring new negative samples and exploiting high-gradient samples in the cache?
  • RQ4How does NSCaching generalize across different scoring functions and downstream tasks?
  • RQ5Can NSCaching be effectively extended to skip-gram models for graph representation learning?

Key findings

  • NSCaching achieves state-of-the-art performance on multiple benchmark knowledge graph datasets, outperforming both fixed and GAN-based negative sampling methods.
  • The method significantly improves link prediction and node classification accuracy, with Macro-F1 scores consistently higher than baseline methods like Node2vec and SeedNE.
  • On the node classification task, NSCaching-based skip-gram models achieve higher F1-scores than frequency-based methods, with improvements observed across 30%, 50%, and 70% labeled node splits.
  • The AutoML-driven balance of exploration and exploitation leads to more stable and effective sampling, reducing bias and gradient vanishing.
  • Theoretical analysis confirms convergence and effectiveness of NSCaching, with a formal justification of its superiority over fixed sampling schemes.
  • Extensive ablation shows that caching high-gradient samples leads to faster convergence and better generalization compared to uniform or Bernoulli sampling.

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.