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

Sooho Moon, Yunyong KoarXiv 2026 · arXiv

TL;DR

RADAR is a novel framework that optimizes contrastive learning for Knowledge Graph Embeddings (KGE) by adaptively managing negative samples. It introduces a risk-aware budget allocation to minimize "false negatives" and a dual-metric weighting scheme that considers both score dispersion and concentration, leading to superior accuracy and significantly improved training efficiency.

What Problem Does This Paper Address?

Knowledge Graph Embedding (KGE) is the backbone of modern AI applications like recommendation engines and question-answering systems. These models learn by contrasting "true" facts (positive triples) against "fake" ones (negative triples).

However, two major hurdles persist:

  1. The False Negative Trap: Real-world KGs follow the Open-World Assumption (OWA)—just because a fact isn't in the database doesn't mean it's false. When we randomly "corrupt" a positive triple to create a negative one, we might accidentally create a fact that is actually true but unobserved. These "false negatives" (FNs) provide harmful supervision, confusing the model.
  2. Inefficient Weighting: Not all negative samples are created equal. Some are "easy" to distinguish, while others are "hard." Existing methods like Self-Adversarial weighting (Self-Adv) only look at the dispersion (spread) of negative scores. The authors argue this ignores concentration—how much the model's "suspicion" is focused on just a few specific samples.

Methods

The authors propose RADAR (Risk-Aware negative budget allocation and Distribution-cAlibRated negative weighting) to solve these issues.

1. Risk-Aware Negative Budget Allocation

Instead of giving every positive triple a fixed number of negatives (e.g., 128), RADAR calculates a "risk" for each triple. By modeling the KG as a stochastic partial observation of a perfect "closed-world" KG, they discovered that an entity's degree (how many connections it has) is a reliable proxy for false-negative risk.

  • High-degree entities have a higher risk of hitting a false negative, so RADAR assigns them a smaller negative budget.
  • Low-degree entities are safer, so they get a larger budget to maximize learning signals.

2. Distribution-Calibrated Negative Weighting

RADAR determines how much each negative sample should contribute to the loss function by looking at two characteristics of the score distribution:

  • Dispersion ($\sigma$): How spread out the scores are.
  • Concentration ($C$): An entropy-based measure of whether high scores are clustered on a few samples.
Figure 3: Overview of RADAR. RADAR addresses (C1) “how many negatives to sample” through risk-aware negative budget allocation and (C2) “how much should each negative contribute” through distribution-calibrated negative weighting.

Datasets

The researchers evaluated RADAR using four different KGE models (TransE, RotatE, DistMult, and ComplEx) across three standard benchmarks:

  • FB15k237: A subset of Freebase containing diverse real-world facts.
  • WN18RR: A subset of WordNet focused on semantic relationships.
  • YAGO3-10: A large-scale KG derived from Wikipedia.

Key Insights and Ideas

  • The Degree-Risk Connection: The mathematical proof that anchor degree serves as a proxy for false-negative risk is a major "aha" moment. It allows for risk mitigation without needing to know the "ground truth" of unobserved facts.
  • Dispersion vs. Concentration: The authors show that these two metrics are not strongly correlated. A distribution can have low dispersion but high concentration (where the model is very sure about a few specific "hard" negatives). Ignoring concentration, as previous models did, leads to suboptimal weighting.
Figure 4: Relationship between dispersion (𝜎x) and concentra- tion (𝐶x) of negative-score distributions during training with Self-Adv on FB15k237. Each color represents the evolution of the negative-score distribution for the same positive.
  • Efficiency as a Side Effect: By reducing the budget for high-risk triples, RADAR naturally processes fewer samples. This leads to a "win-win" where the model is both more accurate and faster to train.

Key Results

RADAR consistently outperformed 15 baseline methods across all datasets and models.

  • Accuracy: It achieved the best average rank (A.R. 1.0 on WN18RR) for Mean Reciprocal Rank (MRR) and Hits@10.
  • False Negative Reduction: RADAR reduced the number of sampled false negatives by over 90% compared to fixed-budget methods.
  • Efficiency: For the RotatE model on FB15k237, RADAR reduced training time by 30% and GPU memory consumption by 34.2% compared to standard Self-Adv.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Uniform Observability Assumption: The current risk model assumes every fact has an equal chance of being observed in the KG. In reality, some types of facts might be more likely to be missing than others (heterogeneous observability).
  • Inductive Settings: The framework is currently designed for "transductive" KGs, where all entities are known during training. Extending this to "inductive" settings (handling new entities at test time) is a future goal.
  • Sampling Strategy: While RADAR optimizes the budget and weighting, it still relies on random sampling. Combining RADAR with more sophisticated negative selection strategies could yield even better results.

Summary updated

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.
BibTeX
@misc{moon2026how,
  author = {Sooho Moon and Yunyong Ko},
  title = {{How Many and How Much? Contrastive Learning with Negative Samples for Knowledge Graph Embedding}},
  year = {2026},
  eprint = {2610.37389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.37389},
}
Figure