SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.17259 · 2024

Diffusion-based Negative Sampling on Graphs for Link Prediction

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.17259.json · badge: /api/ran/2403.17259.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ntkien1904/dmns canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
cosine_beta_schedule Ran
ran, honoured the contract we drafted
ntkien1904/dmns/model/model.py
pointer only (licence: NONE); the stored copy get_code serves, from maowenyu-11/TDM, is pointer only (licence: NONE) · get_code("3a6233722b4f0cd6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ntkien1904/dmns/model/model.py
pointer only (licence: NONE); the stored copy get_code serves, from maowenyu-11/TDM, is pointer only (licence: NONE) · get_code("df116dde4bb6ab3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

linear_beta_schedule Ran
ran, honoured the contract we drafted
ntkien1904/dmns/model/model.py
pointer only (licence: NONE); the stored copy get_code serves, from iit-pavis/diffassemble, is pointer only (licence: NONE) · get_code("37a36e71b86103ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

negative_sampling Ran
ran; our contract draft was wrong, not the code
ntkien1904/dmns/utils.py
pointer only (licence: NONE) · get_code("9d27e6104040d510")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_adj Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ntkien1904/dmns/utils.py
pointer only (licence: NONE) · get_code("28558e82fd389184")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_saved_path Ran
ran; our contract draft was wrong, not the code
ntkien1904/dmns/utils.py
pointer only (licence: NONE) · get_code("02e80a6690fd5a05")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_features Ran
ran, honoured the contract we drafted
ntkien1904/dmns/data_process.py
pointer only (licence: NONE) · get_code("93516a1ce7a5079f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

quadratic_beta_schedule Ran
ran, honoured the contract we drafted
ntkien1904/dmns/model/model_cond.py
pointer only (licence: NONE) · get_code("496165266c2eceff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
ntkien1904/dmns/main_cond.py
pointer only (licence: NONE) · get_code("9fa2bfe219927696")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
ntkien1904/dmns/data_process.py
pointer only (licence: NONE) · get_code("8809d11195f7db74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

mean_trials Not yet run
unverified (harvested, no recorded run)
ntkien1904/dmns/main_cond.py
pointer only (licence: NONE) · get_code("54e83a1eefd1da9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
ntkien1904/dmns/main_cond.py
pointer only (licence: NONE) · get_code("3e6411872baeb77b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ntkien1904/dmns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
cosine_beta_schedule 9 other papers
4 dated earlier, 5 later
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
2307.11494 (2023-07)
Predict, Refine, Synthesize: Self-Guiding Diffusion Models for Probabilistic Time Series Forecasting
2309.01745 (2023-09)
Benchmarking Autoregressive Conditional Diffusion Models for Turbulent Flow Simulation
and 6 more not named here
extract 9 other papers
3 dated earlier, 5 later, 1 same year, order not determinable · 1 only as an assembly brick
2303.17839 (2023-03)
Learning Procedure-aware Video Representation from Instructional Videos and Their Narrations
2307.11494 (2023-07)
Predict, Refine, Synthesize: Self-Guiding Diffusion Models for Probabilistic Time Series Forecasting
2310.20487 (2023-10)
Large Language Model Can Interpret Latent Space of Sequential Recommender
and 6 more not named here
linear_beta_schedule 6 other papers
3 dated earlier, 3 later · 1 only as an assembly brick
2303.17839 (2023-03)
Learning Procedure-aware Video Representation from Instructional Videos and Their Narrations
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
2402.19302 (2024-02)
DiffAssemble: A Unified Graph-Diffusion Model for 2D and 3D Reassembly
and 3 more not named here
quadratic_beta_schedule 2 other papers
1 dated earlier, 1 later
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Link prediction is a fundamental task for graph analysis with important applications on the Web, such as social network analysis and recommendation systems, etc. Modern graph link prediction methods often employ a contrastive approach to learn robust node representations, where negative sampling is pivotal. Typical negative sampling methods aim to retrieve hard examples based on either predefined heuristics or automatic adversarial approaches, which might be inflexible or difficult to control. Furthermore, in the context of link prediction, most previous methods sample negative nodes from existing substructures of the graph, missing out on potentially more optimal samples in the latent space. To address these issues, we investigate a novel strategy of multi-level negative sampling that enables negative node generation with flexible and controllable ``hardness'' levels from the latent space. Our method, called Conditional Diffusion-based Multi-level Negative Sampling (DMNS), leverages the Markov chain property of diffusion models to generate negative nodes in multiple levels of variable hardness and reconcile them for effective graph link prediction. We further demonstrate that DMNS follows the sub-linear positivity principle for robust negative sampling. Extensive experiments on several benchmark datasets demonstrate the effectiveness of DMNS.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.17259")
get_code_for_paper("2403.17259")
have("2403.17259")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.17259.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.17259.svg)](https://syntology.ai/paper/2403.17259)

Connect an agent — have() is free.