错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

DCNS: A Double-Cache Negative Sampling Method for Improving Knowledge Graph Embedding

  • Hao Zheng,
  • Donghai Guan,
  • Shuai Xu,
  • Weiwei Yuan

摘要

Negative sampling plays an important role in knowledge graph embedding. A high-quality negative sample can push the model training to the limit. Most negative triples generated by simple uniform sampling are low-quality negative samples, which will lead to the problem of vanishing gradients in the training process. Generative Adversarial Network (GAN) has been used in the study of negative sampling methods. However, the training for the GAN-based negative sampling method is more complicated. To solve these issues, we propose DCNS. DCNS designs two caches containing high-quality negative triples, samples from the cache and updates the cache. In addition, in order to generate harder negative samples that have a greater impact on training, DCNS adopts a mixing operation. Finally, we evaluated the results of the link prediction model using DCNS on four standard datasets. The extensive experiments show that our method can gain significant improvement on various KG embedding models, and outperform the state-of-the-art negative sampling methods.