Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

NSCaching: Simple and Efficient Negative Sampling for Knowledge Graph Embedding

About

Knowledge Graph (KG) embedding is a fundamental problem in data mining research with many real-world applications. It aims to encode the entities and relations in the graph into low dimensional vector space, which can be used for subsequent algorithms. Negative sampling, which samples negative triplets from non-observed ones in the training data, is an important step in KG embedding. Recently, generative adversarial network (GAN), has been introduced in negative sampling. By sampling negative triplets with large scores, these methods avoid the problem of vanishing gradient and thus obtain better performance. However, using GAN makes the original model more complex and hard to train, where reinforcement learning must be used. In this paper, motivated by the observation that negative triplets with large scores are important but rare, we propose to directly keep track of them with the cache. However, how to sample from and update the cache are two important questions. We carefully design the solutions, which are not only efficient but also achieve a good balance between exploration and exploitation. In this way, our method acts as a "distilled" version of previous GA-based methods, which does not waste training time on additional parameters to fit the full distribution of negative triplets. The extensive experiments show that our method can gain significant improvement in various KG embedding models, and outperform the state-of-the-art negative sampling methods based on GAN.

Yongqi Zhang, Quanming Yao, Yingxia Shao, Lei Chen• 2018

Related benchmarks

TaskDatasetResultRank
Knowledge Graph ReasoningFB15k-237 (test)
HITS@3 (Avg)0.167
29
Link PredictionTwitter ptb_rate = 0.3 (noisy and incomplete)
MRR1.2
13
Knowledge Graph ReasoningFB15K-237 ptb_rate=0.7 (test)
MRR0.157
12
Knowledge Graph ReasoningFB15K-237 ptb_rate = 0.5 (test)
MRR0.176
12
Knowledge Graph ReasoningWN18
MRR0.306
12
Knowledge Graph ReasoningFB15K ptb_rate = 0.5 (test)
MRR0.272
12
Knowledge Graph ReasoningWN18 (test)
MRR0.434
12
Knowledge Graph ReasoningFB15K ptb_rate=0.7 (test)
MRR17.4
12
Knowledge Graph ReasoningWN18 ptb_rate=0.7 (test)
MRR0.057
12
Knowledge Graph ReasoningWN18 ptb_rate = 0.5 (test)
MRR0.115
12
Showing 10 of 10 rows

Other info

Follow for update