SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16435 · 2024

Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 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/2405.16435.json · badge: /api/ran/2405.16435.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
LUOyk1999/NodeID canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LUOyk1999/NodeID/SL/Graph_Classification/ID_MLP_f.py
code served (permissive licence) · get_code("135fdcc9a2764c3c")
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 tuple. 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
import torch.nn as nn

torch.manual_seed(0)

# Case 1: Binary classification with logits (1D or squeezable to 1D)
# pred: unnormalized predictions (logits)
# true: binary labels

# Scenario 1: Simple binary case
pred_binary = torch.randn(2)
true_binary = torch.randint(0, 2, (2,)).float()

ARGS = {
    "pred": pred_binary,
    "true": true_binary,
}
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 tuple — a tuple output has no array shape of its own; none is 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
default Ran
ran, violated the contract we drafted
LUOyk1999/NodeID/SL/Link_Prediction/vq.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("60fff7c3c400d7ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository 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.

eval_spearmanr Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Graph_Classification/ID_MLP_s.py
code served (permissive licence) · get_code("cca15e2cb74d7749")
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 dict. 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 numpy as np
from scipy.stats import stats

# Create test data for eval_spearmanr
# The function handles both 1D and 2D cases

# Case 1: 1D arrays (single task)
y_true_1d = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y_pred_1d = np.array([1.1, 2.2, 2.9, 4.1, 4.8])

# Case 2: 2D arrays (multiple tasks) with some NaN values
y_true_2d = np.array([
    [1.0, 2.0, 3.0],
    [2.0, np.nan, 4.0],
    [3.0, 5.0, np.nan],
    [4.0, 6.0, 2.0]
])
y_pred_2d = np.array([
    [1.1, 2.1, 3.1],
    [2.1, 1.9, 4.1],
    [3.1, 5.1, 2.1],
    [4.1, 6.1, 2.1]
])

# Use the 2D case with NaN handling as it tests more of the function
ARGS = {
    'y_true': y_true_2d,
    'y_pred': y_pred_2d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
exists Ran
ran, violated the contract we drafted
LUOyk1999/NodeID/SL/Link_Prediction/vq.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository 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.

get_final_pretrained_ckpt Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Graph_Classification/graphgps/finetuning.py
code served (permissive licence) · get_code("1bb331bf70a78136")
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 str. 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 os
import tempfile
import shutil

# Create a temporary directory with checkpoint files
temp_dir = tempfile.mkdtemp()

# Create some checkpoint files with epoch numbers
checkpoint_files = ['1.ckpt', '2.ckpt', '5.ckpt', '3.ckpt']
for ckpt_file in checkpoint_files:
    filepath = os.path.join(temp_dir, ckpt_file)
    with open(filepath, 'w') as f:
        f.write('dummy checkpoint data')

# Define arguments for the function
ARGS = {
    'ckpt_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
index2mask Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Graph_Classification/ID_MLP_f.py
code served (permissive licence) · get_code("10e5b33e372f7d10")
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 1, dtype family float, shape (5,) 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)

# idx: a tensor of indices that will be used to index into a mask
# These indices should be valid for the given size
idx = torch.tensor([0, 2, 4], dtype=torch.long)

# size: the total size of the mask to create
size = 5

ARGS = {
    "idx": idx,
    "size": size,
}
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 1, dtype family float, shape (5,) — shape (5,) 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
l1_losses Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Graph_Classification/ID_MLP_s.py
code served (permissive licence) · get_code("834eb82b9c7d878b")
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 tuple. 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
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors with distinct dimensions for pred and true
# Both need to be compatible with L1Loss
pred = torch.randn(2, 4)
true = torch.randn(2, 4)

ARGS = {
    "pred": pred,
    "true": true,
}
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 tuple — a tuple output has no array shape of its own; none is 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
l2norm Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Link_Prediction/vq.py
pointer only (licence: MIT); the stored copy get_code serves, from jy0205/LaVIT, is pointer only (licence: NOASSERTION) · get_code("eca6cdf05972a95e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jy0205/LaVIT, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

load_out_t Ran
ran, honoured the contract we drafted
LUOyk1999/NodeID/SL/Link_Prediction/ID_MLP.py
code served (permissive licence) · get_code("372636b338d97593")
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, 4) 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 numpy as np
import torch
import tempfile
import os

torch.manual_seed(0)

# Create a temporary .npz file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.npz")

# Create sample numpy array and save it
sample_array = np.random.randn(2, 4).astype(np.float32)
np.savez(temp_file, sample_array)

ARGS = {
    "name": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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, 4) — shape (2, 4) 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
randomsplit Ran
ran; our contract draft was wrong, not the code
LUOyk1999/NodeID/SL/Link_Prediction/ogbdataset.py
code served (permissive licence) · get_code("7889dfc69061e8f0")
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 dict. 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_geometric.data import Data

torch.manual_seed(0)

# Create a minimal dataset with required attributes
num_nodes = 8
num_edges = 12

# Create edge index (2 x num_edges)
edge_index = torch.tensor([
    [0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3],
    [1, 2, 3, 4, 5, 6, 7, 0, 3, 4, 5, 6]
], dtype=torch.long)

# Create node features (num_nodes x feature_dim)
x = torch.randn(num_nodes, 4)

# Create a Data object
data = Data(x=x, edge_index=edge_index)

# Wrap in a list to simulate a dataset
class MinimalDataset:
    def __init__(self, data):
        self._data = data
    
    def __getitem__(self, idx):
        return self._data

dataset = MinimalDataset(data)

ARGS = {
    'dataset': dataset,
    'val_ratio': 0.1,
    'test_ratio': 0.2
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
init_model_from_pretrained Not yet run
unverified (harvested, no recorded run)
LUOyk1999/NodeID/SL/Graph_Classification/graphgps/finetuning.py
code served (permissive licence) · get_code("3db4474abe13fdee")
How it ran

no invocation recorded.

load_pretrained_model_cfg Not yet run
unverified (harvested, no recorded run)
LUOyk1999/NodeID/SL/Graph_Classification/graphgps/finetuning.py
code served (permissive licence) · get_code("d796cdea5889c847")
How it ran

no invocation recorded.

regression Not yet run
unverified (harvested, no recorded run)
LUOyk1999/NodeID/SL/Graph_Classification/ID_MLP_s.py
code served (permissive licence) · get_code("81102467886bdbff")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 7 the same month, 7 later) and 5 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
exists 486 other papers
336 dated earlier, 11 the same month, 128 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 163 other papers
124 dated earlier, 3 the same month, 33 later, 2 same year, order not determinable, 1 undated · 27 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1810.00825 (2018-10)
Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
and 160 more not named here
get_final_pretrained_ckpt 27 other papers
16 dated earlier, 5 the same month, 6 later
2302.04181 (2023-02)
Attending to Graph Transformers
2302.08647 (2023-02)
Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures
2305.08018 (2023-05)
DRew: Dynamically Rewired Message Passing with Delay
and 24 more not named here
l2norm 24 other papers
12 dated earlier, 2 the same month, 10 later · 6 only as an assembly brick
2212.09058 (2022-12)
BEATs: Audio Pre-Training with Acoustic Tokenizers
2303.04341 (2023-03)
Neural Vector Fields: Implicit Representation by Explicit Learning
2303.04743 (2023-03)
Vector Quantized Time Series Generation with a Bidirectional Prior Model
and 21 more not named here
init_model_from_pretrained 10 other papers
5 dated earlier, 3 the same month, 2 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2312.04234 (2023-12)
Graph Convolutions Enrich the Self-Attention in Transformers!
and 7 more not named here
load_pretrained_model_cfg 9 other papers
5 dated earlier, 2 the same month, 2 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2312.04234 (2023-12)
Graph Convolutions Enrich the Self-Attention in Transformers!
and 6 more not named here
eval_spearmanr 6 other papers
2 dated earlier, 1 the same month, 3 later
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2405.13806 (2024-05)
A General Graph Spectral Wavelet Convolution via Chebyshev Order Decomposition
and 3 more not named here
index2mask 2 other papers
2 dated earlier
2306.10759 (2023-06)
SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations
2310.12457 (2023-10)
MuseGNN: Forming Scalable, Convergent GNN Layers that Minimize a Sampling-Based Energy

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

We present a novel end-to-end framework that generates highly compact (typically 6-15 dimensions), discrete (int4 type), and interpretable node representations, termed node identifiers (node IDs), to tackle inference challenges on large-scale graphs. By employing vector quantization, we compress continuous node embeddings from multiple layers of a Graph Neural Network (GNN) into discrete codes, applicable under both self-supervised and supervised learning paradigms. These node IDs capture high-level abstractions of graph data and offer interpretability that traditional GNN embeddings lack. Extensive experiments on 34 datasets, encompassing node classification, graph classification, link prediction, and attributed graph clustering tasks, demonstrate that the generated node IDs significantly enhance speed and memory efficiency while achieving competitive performance compared to current state-of-the-art methods.

For agents

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

get_harvested_code_for_paper("2405.16435")
get_code_for_paper("2405.16435")
have("2405.16435")

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

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

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

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

Connect an agent — have() is free.