# Structure Aware Negative Sampling in Knowledge Graphs

Source: [Structure Aware Negative Sampling in Knowledge Graphs](<https://www.sota2.com/research/paper/68fa686c1e209131cea1c112>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:37:00.137Z

Authors: Kian Ahrabian, Aarash Feizi, Yasmin Salehi, William L. Hamilton, Avishek Joey Bose

Published: 2020-09-23T19:57:00.000Z

## Abstract

Learning low-dimensional representations for entities and relations in knowledge graphs using contrastive estimation represents a scalable and effective method for inferring connectivity patterns. A crucial aspect of contrastive learning approaches is the choice of corruption distribution that generates hard negative samples, which force the embedding model to learn discriminative representations and find critical characteristics of observed data. While earlier methods either employ too simple corruption distributions, i.e. uniform, yielding easy uninformative negatives or sophisticated adversarial distributions with challenging optimization schemes, they do not explicitly incorporate known graph structure resulting in suboptimal negatives. In this paper, we propose Structure Aware Negative Sampling (SANS), an inexpensive negative sampling strategy that utilizes the rich graph structure by selecting negative samples from a node's k-hop neighborhood. Empirically, we demonstrate that SANS finds semantically meaningful negatives and is competitive with SOTA approaches while requires no additional parameters nor difficult adversarial optimization.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Knowledge Graph Reasoning on FB15K-237 ptb\_rate=0.7 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-237-ptb_rate-0-7-test.md>): Knowledge Graph Reasoning; FB15K-237 ptb\_rate=0.7 (test); MRR: 0.201.

- [Knowledge Graph Reasoning on WN18](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-wn18.md>): Knowledge Graph Reasoning; WN18; MRR: 0.453.

- [Knowledge Graph Reasoning on WN18 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-wn18-test.md>): Knowledge Graph Reasoning; WN18 (test); MRR: 0.619.

- [Knowledge Graph Reasoning on FB15K ptb\_rate=0.7 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-ptb_rate-0-7-test.md>): Knowledge Graph Reasoning; FB15K ptb\_rate=0.7 (test); MRR: 29.2.

- [Knowledge Graph Reasoning on FB15K-237 ptb\_rate=0.5 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-237-ptb_rate-0-5-test.md>): Knowledge Graph Reasoning; FB15K-237 ptb\_rate = 0.5 (test); MRR: 0.225.

- [Knowledge Graph Reasoning on WN18 ptb\_rate=0.7 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-wn18-ptb_rate-0-7-test.md>): Knowledge Graph Reasoning; WN18 ptb\_rate=0.7 (test); MRR: 0.202.

- [Knowledge Graph Reasoning on FB15K ptb\_rate=0.5 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-ptb_rate-0-5-test.md>): Knowledge Graph Reasoning; FB15K ptb\_rate = 0.5 (test); MRR: 0.335.

- [Knowledge Graph Reasoning on WN18 ptb\_rate = 0.5 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-wn18-ptb_rate-0-5-test.md>): Knowledge Graph Reasoning; WN18 ptb\_rate = 0.5 (test); MRR: 0.313.

- [Link Prediction on Twitter ptb\_rate = 0.3 (noisy and incomplete)](<https://www.sota2.com/research/sota/link-prediction-on-twitter-ptb_rate-0-3-noisy-and-incomplete.md>): Link Prediction; Twitter ptb\_rate = 0.3 (noisy and incomplete); MRR: 1.9.

- [Knowledge Graph Reasoning on FB15k-237 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-237-test.md>): Knowledge Graph Reasoning; FB15k-237 (test); HITS@3 (Avg): 0.301.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2009.11355>)

[PDF](<https://arxiv.org/pdf/2009.11355.pdf>)
