Efficient, Simple and Automated Negative Sampling for Knowledge Graph Embedding
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.
Code (1)
Tasks
Generative Adversarial NetworkGraph EmbeddingKnowledge Graph EmbeddingSimilar Papers 제목 키워드 기반
Stay Positive: Knowledge Graph Embedding Without Negative Sampling
Knowledge graphs (KGs) are typically incomplete and we often wish to infer new facts given the existing ones. This can be thought of as a binary classification problem; we aim to predict if new facts are true or false. U…
Binary ClassificationGraph EmbeddingKnowledge Graph EmbeddingKnowledge GraphsStructure Aware Negative Sampling in Knowledge Graphs
Learning low-dimensional representations for entities and relations in knowledge graphs using contrastive estimation represents a scalable and effective method for inferring connectivity patterns. A crucial aspect of con…
Contrastive LearningKnowledge GraphsMixKG: Mixing for harder negative samples in knowledge graph
Knowledge graph embedding~(KGE) aims to represent entities and relations into low-dimensional vectors for many real-world applications. The representations of entities and relations are learned via contrasting the positi…
Graph EmbeddingKnowledge Graph EmbeddingKnowledge GraphsNSCaching: Simple and Efficient Negative Sampling for Knowledge Graph Embedding
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…
Generative Adversarial NetworkGraph EmbeddingKnowledge Graph EmbeddingLink Prediction+1Boosting Knowledge Graph Foundation Models via Enhanced Negative Sampling
Knowledge graphs (KGs) have become the core backbone of numerous downstream tasks such as question answering and recommender systems. However, despite all this, KGs are often very incomplete. To perform zero-shot knowled…
Knowledge Graph CompletionQuestion AnsweringKnowledge Graphs