Lune

ICML2022Top-tier venue

Comprehensive Analysis of Negative Sampling in Knowledge Graph Representation Learning

Hidetaka Kamigaito, Katsuhiko Hayashi

Abstract

Negative sampling (NS) loss plays an important role in learning knowledge graph embedding (KGE) to handle a huge number of entities. However, the performance of KGE degrades without hyperparameters such as the margin term and number of negative samples in NS loss being appropriately selected. Currently, empirical hyperparameter tuning addresses this problem at the cost of computational time. To solve this problem, we theoretically analyzed NS loss to assist hyperparameter tuning and understand the better use of the NS loss in KGE learning. Our theoretical analysis showed that scoring methods with restricted value ranges, such as TransE and RotatE, require appropriate adjustment of the margin term or the number of negative samples different from those without restricted value ranges, such as RESCAL, ComplEx, and DistMult. We also propose subsampling methods specialized for the NS loss in KGE studied from a theoretical aspect. Our empirical analysis on the FB15k-237, WN18RR, and YAGO3-10 datasets showed that the results of actually trained models agree with our theoretical findings.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unified Interpretation of Softmax Cross-Entropy and Negative Sampling: With Case Study for Knowledge Graph Embedding cites You CAN Teach an Old Dog New Tricks! On Training Knowledge Graph Embeddings
  • Efficient Hyper-parameter Search for Knowledge Graph Embedding cites You CAN Teach an Old Dog New Tricks! On Training Knowledge Graph Embeddings
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Combating Bilateral Edge Noise for Robust Link PredictionZhanke Zhou, Jiangchao Yao, Jiaxu Liu, Xiawei Guo et al.NeurIPS 2023 · 28 citations
  2. Learning Representations for Hierarchies with Minimal SupportBenjamin Rozonoyer, Michael Boratko, Dhruvesh Patel, Wenlong Zhao et al.NeurIPS 2024 · 1 citation
  3. Towards Pattern-aware Data Augmentation for Temporal Knowledge Graph CompletionJiasheng Zhang, Deqiang Ouyang, Shuang Liang, Jie ShaoVLDB 2025

Builds on4

  1. Learning Hierarchy-Aware Knowledge Graph Embeddings for Link PredictionZhanqiu Zhang, Jianyu Cai, Yongdong Zhang, Jie WangAAAI 2020 · 481 citations
  2. You CAN Teach an Old Dog New Tricks! On Training Knowledge Graph EmbeddingsDaniel Ruffinelli, Samuel Broscheit, Rainer GemullaICLR 2020 · 238 citations
  3. Efficient Hyper-parameter Search for Knowledge Graph EmbeddingYongqi Zhang, Zhanke Zhou, Quanming Yao, Yong LiACL 2022 · 2 citations
  4. Unified Interpretation of Softmax Cross-Entropy and Negative Sampling: With Case Study for Knowledge Graph EmbeddingHidetaka Kamigaito, Katsuhiko HayashiACL 2021

Related papers

  1. Efficient Non-Sampling Knowledge Graph EmbeddingZelong Li, Jianchao Ji, Zuohui Fu, Yingqiang Ge et al.WWW 2021 · 41 citations
  2. Knowledge Graph Embedding by Adaptive Limit Scoring Loss Using Dynamic Weighting StrategyJinfa Yang, Xianghua Ying, Yongjie Shi, Xin Tong et al.ACL Findings 2022 · 5 citations
  3. Improving Knowledge Graph Embedding Using Affine Transformations of Entities Corresponding to Each RelationJinfa Yang, Yongjie Shi, Xin Tong, Robin Wang et al.EMNLP Findings 2021 · 5 citations
  4. TranS: Transition-based Knowledge Graph Embedding with Synthetic Relation RepresentationXuanyu Zhang, Qing Yang, Dongliang XuEMNLP Findings 2022 · 14 citations
  5. HaSa: Hardness and Structure-Aware Contrastive Knowledge Graph EmbeddingHonggen Zhang, June Zhang, Igor MolybogWWW 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines