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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 4f66fc32-18c7-4d73-b9d9-c7ef638cf635Cited by top-tier papers3
- Combating Bilateral Edge Noise for Robust Link PredictionZhanke Zhou, Jiangchao Yao, Jiaxu Liu, Xiawei Guo et al.NeurIPS 2023 · 28 citations
- Learning Representations for Hierarchies with Minimal SupportBenjamin Rozonoyer, Michael Boratko, Dhruvesh Patel, Wenlong Zhao et al.NeurIPS 2024 · 1 citation
- Towards Pattern-aware Data Augmentation for Temporal Knowledge Graph CompletionJiasheng Zhang, Deqiang Ouyang, Shuang Liang, Jie ShaoVLDB 2025
Builds on4
- Learning Hierarchy-Aware Knowledge Graph Embeddings for Link PredictionZhanqiu Zhang, Jianyu Cai, Yongdong Zhang, Jie WangAAAI 2020 · 481 citations
- You CAN Teach an Old Dog New Tricks! On Training Knowledge Graph EmbeddingsDaniel Ruffinelli, Samuel Broscheit, Rainer GemullaICLR 2020 · 238 citations
- Efficient Hyper-parameter Search for Knowledge Graph EmbeddingYongqi Zhang, Zhanke Zhou, Quanming Yao, Yong LiACL 2022 · 2 citations
- Unified Interpretation of Softmax Cross-Entropy and Negative Sampling: With Case Study for Knowledge Graph EmbeddingHidetaka Kamigaito, Katsuhiko HayashiACL 2021
Related papers
- Efficient Non-Sampling Knowledge Graph EmbeddingZelong Li, Jianchao Ji, Zuohui Fu, Yingqiang Ge et al.WWW 2021 · 41 citations
- HaSa: Hardness and Structure-Aware Contrastive Knowledge Graph EmbeddingHonggen Zhang, June Zhang, Igor MolybogWWW 2024 · 13 citations
- SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language ModelsLiang Wang, Wei Zhao, Zhuoyu Wei, Jingming LiuACL 2022
- ParamE: Regarding Neural Network Parameters as Relation Embeddings for Knowledge Graph CompletionFeihu Che, Dawei Zhang, Jianhua Tao, Mingyue Niu et al.AAAI 2020 · 54 citations
- Orthogonal Relation Transforms with Graph Context Modeling for Knowledge Graph EmbeddingYun Tang, Jing Huang, Guangtao Wang, Xiaodong He et al.ACL 2020 · 92 citations
