SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.11927 · 2023

Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2312.11927.json · badge: /api/ran/2312.11927.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
rocccyan/dgpm canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
cat_matching_loss Ran
ran; our contract draft was wrong, not the code
rocccyan/dgpm/pretrain/models.py
code served (permissive licence) · get_code("4ed73f40f210983b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - a: tensor with shape (m1, n1), gets unsqueezed and repeated
# - b: tensor with shape (m2, n2), gets unsqueezed and repeated
# - label: tensor of class indices for CrossEntropyLoss
# 
# After operations:
# a becomes (m1, m2, n1) then reshaped to (m1*m2, n1)
# b becomes (m2, m1, n2) then reshaped to (m1*m2, n2)
# c becomes (m1*m2, n1+n2)
# 
# CrossEntropyLoss expects:
# - input: (N, C) where N is batch size, C is number of classes
# - target: (N,) with class indices in range [0, C-1]
#
# So c.shape[0] = m1*m2 is the batch size
# c.shape[1] = n1+n2 is the number of classes
# label should be (m1*m2,) with values in [0, n1+n2-1]

m1 = 2
m2 = 3
n1 = 4
n2 = 5

# Create tensor a with shape (m1, n1) = (2, 4)
a = torch.randn(m1, n1)

# Create tensor b with shape (m2, n2) = (3, 5)
b = torch.randn(m2, n2)

# After concatenation, c will have shape (m1*m2, n1+n2) = (6, 9)
# So we need num_classes = 9, batch_size = 6
num_classes = n1 + n2
batch_size = m1 * m2

# Create label tensor with shape (batch_size,) and values in [0, num_classes-1]
label = torch.randint(0, num_classes, (batch_size,))

ARGS = {
    "a": a,
    "b": b,
    "label": label,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
freq_loss_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rocccyan/dgpm/MotiFiesta/src/distributed_sampling.py
code served (permissive licence) · get_code("2f3619ca3da06aa7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
embedding_dim = 4
num_steps = 3

# Create internals_pos: list of dicts with 'x_merged' key
internals_pos = []
for i in range(num_steps):
    internals_pos.append({
        'x_merged': torch.randn(batch_size, embedding_dim, dtype=torch.float32)
    })

# Create internals_neg: list of dicts with 'x_merged' key
internals_neg = []
for i in range(num_steps):
    internals_neg.append({
        'x_merged': torch.randn(batch_size, embedding_dim, dtype=torch.float32)
    })

# Create pp: list of tensors (scores/probabilities)
pp = []
for i in range(num_steps):
    pp.append(torch.rand(batch_size, dtype=torch.float32))

ARGS = {
    'internals_pos': internals_pos,
    'internals_neg': internals_neg,
    'pp': pp,
    'estimator': 'knn',
    'beta': 1.0,
    'lam': 1.0,
    'steps': num_steps,
    'volume': False,
    'k': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gnn_layer Ran
ran; our contract draft was wrong, not the code
rocccyan/dgpm/baselines/models.py
code served (permissive licence) · get_code("e4646fb743d40f78")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned GCNConv. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn
import torch_geometric.nn as gnn

torch.manual_seed(0)

ARGS = {
    'gnn_type': 'gcn',
    'embed_dim': 64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GCNConv — a GCNConv output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GCNConv output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
matching_loss Ran
ran; our contract draft was wrong, not the code
rocccyan/dgpm/pretrain/models.py
code served (permissive licence) · get_code("2784049bf98582f4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small embedding tensors
# a and b should have same embedding dimension (last dim)
# batch size can differ, but for matching_loss they're typically same
batch_size_a = 2
batch_size_b = 2
embedding_dim = 4

a = torch.randn(batch_size_a, embedding_dim)
b = torch.randn(batch_size_b, embedding_dim)

# label should be a long tensor with shape (batch_size_a,)
# containing class indices in range [0, batch_size_b)
label = torch.tensor([0, 1], dtype=torch.long)

ARGS = {
    'a': a,
    'b': b,
    'label': label
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
matrix_cosine Ran
ran; our contract draft was wrong, not the code
rocccyan/dgpm/MotiFiesta/src/distributed_sampling.py
code served (permissive licence) · get_code("ea1176be99c145cd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small embedding tensors
# a: shape (2, 4) - 2 embeddings of dimension 4
# b: shape (3, 4) - 3 embeddings of dimension 4
a = torch.randn(2, 4)
b = torch.randn(3, 4)

ARGS = {
    "a": a,
    "b": b,
    "eps": 1e-08
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
matrix_similarity Ran
ran; our contract draft was wrong, not the code
rocccyan/dgpm/pretrain/models.py
code served (permissive licence) · get_code("13b43956feca1602")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two batches of embeddings with the same embedding dimension
# Batch size: 2, Embedding dimension: 4
a = torch.randn(2, 4)
b = torch.randn(2, 4)

ARGS = {
    'a': a,
    'b': b
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Not yet run
unverified (harvested, no recorded run)
rocccyan/dgpm/MotiFiesta/src/loading.py
code served (permissive licence) · get_code("fef85146b508b2e7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 later) and 0 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
cat_matching_loss 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
collate_fn 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
freq_loss_fn 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
get_gnn_layer 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
matching_loss 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
matrix_cosine 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery
matrix_similarity 1 other paper
1 later
aaai_28774 (2024 (year only))
Empowering Dual-Level Graph Self-Supervised Pretraining with Motif Discovery

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-23.

Repositories linked to this paper

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

Abstract

While self-supervised graph pretraining techniques have shown promising results in various domains, their application still experiences challenges of limited topology learning, human knowledge dependency, and incompetent multi-level interactions. To address these issues, we propose a novel solution, Dual-level Graph self-supervised Pretraining with Motif discovery (DGPM), which introduces a unique dual-level pretraining structure that orchestrates node-level and subgraph-level pretext tasks. Unlike prior approaches, DGPM autonomously uncovers significant graph motifs through an edge pooling module, aligning learned motif similarities with graph kernel-based similarities. A cross-matching task enables sophisticated node-motif interactions and novel representation learning. Extensive experiments on 15 datasets validate DGPM's effectiveness and generalizability, outperforming state-of-the-art methods in unsupervised representation learning and transfer learning settings. The autonomously discovered motifs demonstrate the potential of DGPM to enhance robustness and interpretability.

For agents

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

get_harvested_code_for_paper("2312.11927")
get_code_for_paper("2312.11927")
have("2312.11927")

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

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

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

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

Connect an agent — have() is free.