cs.LGOct 27, 2026

How Many and How Much? Contrastive Learning with Negative Samples for Knowledge Graph Embedding

Authors: Sooho Moon, Yunyong Ko

Organizations: Chung-Ang University Seoul, Korea

Abstract

Knowledge graph embedding (KGE), a fundamental technique for knowledge-centric Web and KG-augmented AI applications, is commonly trained through contrastive learning with negative samples to learn discriminative representations. Despite its empirical success, two crucial questions regarding negative samples remain underexplored: (Q1) how many negative samples should be used for each positive sample and (Q2) how much should each negative sample contribute to learning? To answer these questions, we propose RADAR, a novel contrastive learning framework for KGE models with two effective strategies, respectively: (1) Risk-aware negative budget allocation quantifies false-negative sampling risk by modeling an open-world KG as a stochastic partial observation of its closed-world counterpart and adaptively assigns a negative budget to each positive sample based on its risk; (2) Distribution-calibrated negative weighting assigns negative weights by calibrating the weighting strength for each positive based on two complementary characteristics of the negative-score distribution: dispersion and concentration. Extensive experiments on 3 real-world KGs with 4 KGE models reveal that RADAR achieves the best KGE performance on average across all model--KG combinations and reduces sampled false negatives by over 90% compared with conventional fixed-budget methods.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FlowNeg: GFlowNet-Guided Diverse Hard Negative Sampling for Knowledge Graph Embedding

    Aug 24, 2026Ibne Farabi Shihab, Naoshin Anzum Hridi, Joyanta Jyoti MondalKG EmbeddingHard Negative Mining

  2. Boosting Knowledge Graph Foundation Models via Enhanced Negative Sampling

    May 26, 2026Yinan Liu, Wenjin Xu, Zhiyuan Zha +2KG EmbeddingGraph Foundation Models

  3. PyKEEN-NSX: A Modular Framework for Static, Dynamic and Schema-Aware Negative Sampling in PyKEEN

    Aug 31, 2026Ivan Diliso, Nicola Fanizzi, Claudia d'AmatoKG EmbeddingKG Completion