SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.06070 · NeurIPS · 2024

GFT: Graph Foundation Model with Transferable Tree Vocabulary

Chuxu Zhang, Nitesh Chawla, Yanfang Ye, Zheyuan Zhang, Zehong Wang

arXiv · PDF · Open in the Atlas

Code that ran

18 of 25 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; 15 failures of our instrument; 7 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/2411.06070.json · badge: /api/ran/2411.06070.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
Zehong-Wang/GFT canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
thu-ml/GFT canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
zehong-wang/gft community
Papers with Code archive
7 ran · 6 no recorded run
FunctionStatusWhere it lives
ArxivFSSplitter Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/task_constructor.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("5f925b34de0a38cb")
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 GXG-CS/STEM-GNN, 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.

CiteSplitter Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/task_constructor.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("840cce4bf1e34557")
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 GXG-CS/STEM-GNN, 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.

batched_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("4dc1339e961ab500")
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 4, dtype family float, shape (2, 2, 3, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Analyze function usage:
# - indices: used with .shape[1] to get batch dimension, then repeat with pattern 'h b n -> h b n d'
#   So indices should be 3D tensor with shape (h, b, n)
# - embeds: used with .shape[-1] to get dim, then repeat with pattern 'h c d -> h b c d'
#   So embeds should be 3D tensor with shape (h, c, d)
# - The gather operation requires indices and embeds to be broadcastable after repeat
# - gather(2, indices) means gathering along dimension 2

# Create indices tensor: shape (h, b, n) where h=2, b=2, n=3
# After repeat: (h, b, n, d) = (2, 2, 3, 4)
indices = torch.randint(0, 5, (2, 2, 3))  # h=2, b=2, n=3, values in [0, 5) for valid gather

# Create embeds tensor: shape (h, c, d) where h=2, c=5, d=4
# After repeat: (h, b, c, d) = (2, 2, 5, 4)
# c=5 because indices max value is < 5, so valid for gathering on dimension 2
embeds = torch.randn(2, 5, 4)  # h=2, c=5, d=4

ARGS = {
    'indices': indices,
    'embeds': embeds,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 2, 3, 4) — shape (2, 2, 3, 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
binary_apr_func Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("352a58f5914509ef")
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 GXG-CS/STEM-GNN, 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.

binary_single_auc_func Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("c06eaa1bc9d830c1")
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 GXG-CS/STEM-GNN, 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.

cdist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("4b4182a1077e1685")
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 3, dtype family float, shape (2, 3, 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 torch
from torch import nn
import numpy as np

torch.manual_seed(0)

# Create small tensors for x and y
# x and y are used with shape expectations: b (batch), n (num points), d (dimension)
# The function performs operations like einsum('b i d, b j d -> b i j', x, y)
# So we need:
# - x: (batch_size, n_points_x, dimension)
# - y: (batch_size, n_points_y, dimension)

batch_size = 2
n_points_x = 3
n_points_y = 4
dim = 5

x = torch.randn(batch_size, n_points_x, dim)
y = torch.randn(batch_size, n_points_y, dim)

ARGS = {
    "x": x,
    "y": y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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
creat_optimizer Ran
ran; our contract draft was wrong, not the code
thu-ml/GFT/LlamaGen/autoregressive/train/GFT_c2i.py
code served (permissive licence) · get_code("ba65976c1d96a7cb")
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) and returned AdamW. 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
import logging

torch.manual_seed(0)

# Create a simple logger
logger = logging.getLogger("test_logger")
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

# Create a simple model with parameters of different dimensions
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # 2D parameter (will be in decay_params)
        self.linear1 = nn.Linear(4, 3)
        # 1D parameter (will be in nodecay_params)
        self.bias_only = nn.Parameter(torch.randn(2))
        # Another 2D parameter (will be in decay_params)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Ensure all parameters require gradients
for param in model.parameters():
    param.requires_grad = True

weight_decay = 0.01
learning_rate = 0.001
betas = (0.9, 0.999)

ARGS = {
    "model": model,
    "weight_decay": weight_decay,
    "learning_rate": learning_rate,
    "betas": betas,
    "logger": logger,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AdamW — a AdamW output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AdamW 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
default Ran
ran, violated the contract we drafted
Zehong-Wang/GFT/GFT/model/ft_model.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.

exists Ran
ran, violated the contract we drafted
Zehong-Wang/GFT/GFT/model/ft_model.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.

filter_unnecessary_attrs Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/process_datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("6aa000a9e1b10057")
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 GXG-CS/STEM-GNN, 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.

gumbel_sample Ran
ran; our contract draft was wrong, not the code
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("4755d07ad4a639cb")
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.functional as F

torch.manual_seed(0)

# Construct the logits tensor
# Shape: (batch_size=2, num_classes=4)
logits = torch.randn(2, 4)

# Define ARGS with all parameters for gumbel_sample
ARGS = {
    'logits': logits,
    'temperature': 1.0,
    'stochastic': True,
    'straight_through': False,
    'reinmax': False,
    'dim': -1,
    'training': 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
identity Ran
ran, honoured the contract we drafted
Zehong-Wang/GFT/GFT/model/vq.py
code served (permissive licence) · get_code("f3232418205f7cbd")
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) 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 torch

torch.manual_seed(0)

# The identity function takes a single parameter 't' and returns it unchanged
# We'll provide a simple tensor as the argument
t = torch.randn(2, 4)

ARGS = {
    "t": t
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 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
kmeans Ran
ran; our contract draft was wrong, not the code
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("31974aebdb92319d")
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
from torch import nn
import torch.nn.functional as F
from einops import rearrange, repeat, reduce, pack, unpack

torch.manual_seed(0)

# Define the helper functions that kmeans uses
def batched_bincount(x, *, minlength):
    batch, dtype, device = (x.shape[0], x.dtype, x.device)
    target = torch.zeros(batch, minlength, dtype=dtype, device=device)
    values = torch.ones_like(x)
    target.scatter_add_(-1, x, values)
    return target

def sample_vectors(samples, num):
    num_samples, device = (samples.shape[0], samples.device)
    if num_samples >= num:
        indices = torch.randperm(num_samples, device=device)[:num]
    else:
        indices = torch.randint(0, num_samples, (num,), device=device)
    return samples[indices]

def batched_sample_vectors(samples, num):
    return torch.stack([sample_vectors(sample, num) for sample in samples.unbind(dim=0)], dim=0)

def cdist(x, y):
    x2 = reduce(x ** 2, 'b n d -> b n', 'sum')
    y2 = reduce(y ** 2, 'b n d -> b n', 'sum')
    xy = einsum('b i d, b j d -> b i j', x, y) * -2
    return (rearrange(x2, 'b i -> b i 1') + rearrange(y2, 'b j -> b 1 j') + xy).clamp(min=0).sqrt()

def l2norm(t):
    return F.normalize(t, p=2, dim=-1)

def noop(*args, **kwargs):
    pass

def einsum(eq, *args, **kwargs):
    return torch.einsum(eq, *args, **kwargs)

# Create sample tensors
# samples: shape (num_codebooks, num_samples, dim)
# Using distinct sizes: 2 codebooks, 5 samples, 4 dimensions
samples = torch.randn(2, 5, 4)

# num_clusters: integer for number of clusters
num_clusters = 3

ARGS = {
    'samples': samples,
    'num_clusters': num_clusters,
    'num_iters': 2,
    'use_cosine_sim': False,
    'sample_fn': batched_sample_vectors,
    'all_reduce_fn': noop,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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
laplace_smoothing Ran
ran; our contract draft was wrong, not the code
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("702d64c397294ae2")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function laplace_smoothing expects:
# - x: a tensor with numerical values (logits, counts, probabilities, etc.)
# - n_categories: an integer representing number of categories
# - eps: a small float for numerical stability (has default)
# - dim: dimension along which to sum (has default)

# Create a small tensor with shape (2, 4) to represent batch of 2, 4 categories
x = torch.randn(2, 4)

# Number of categories
n_categories = 4

# eps has a default value, but we can override it
eps = 1e-05

# dim has a default value of -1, which sums along the last dimension
dim = -1

ARGS = {
    "x": x,
    "n_categories": n_categories,
    "eps": eps,
    "dim": dim
}
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, 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
orthogonal_loss_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("690fb00cdadafe62")
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 torch.nn.functional as F

torch.manual_seed(0)

# The function orthogonal_loss_fn takes a single parameter 't'
# Looking at the function body:
# - t.shape[:2] extracts first two dimensions (h, n)
# - t is passed to l2norm which normalizes over dim=-1
# - einsum uses 'h i d -> h i j' pattern, so t needs shape (h, i, d)
# where h=batch, i=num_codes, d=embedding_dim

# Create a small tensor with distinct dimensions:
# h=2 (batch/heads), i=3 (num_codes), d=4 (embedding_dim)
t = torch.randn(2, 3, 4)

ARGS = {
    't': t
}
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
refine_dataset Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/process_datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("58d48991c9718144")
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 GXG-CS/STEM-GNN, 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.

sample_vectors_distributed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("ecf368eff22730c4")
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 3, dtype family float, shape (1, 3, 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 torch
import torch.distributed as distributed
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# Mock distributed functions since we're running CPU-only without actual distributed setup
def mock_get_rank():
    return 0

def mock_get_world_size():
    return 1

def mock_all_gather(all_sizes, size):
    all_sizes[0].copy_(size)

def mock_broadcast(t, src, async_op=False):
    pass

def mock_barrier():
    pass

# Patch the distributed module functions
distributed.get_rank = mock_get_rank
distributed.get_world_size = mock_get_world_size
distributed.all_gather = mock_all_gather
distributed.broadcast = mock_broadcast
distributed.barrier = mock_barrier

# Create test data
# local_samples should be a tensor of shape (1, num_samples, feature_dim)
# Using shape (1, 5, 4) where 5 is number of samples and 4 is feature dimension
local_samples = torch.randn(1, 5, 4)

# num is an integer specifying how many samples to select
num = 3

ARGS = {
    'local_samples': local_samples,
    'num': num,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 3, 4) — shape (1, 3, 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
span_node_and_edge_idx Ran
ran; our contract draft was wrong, not the code
Zehong-Wang/GFT/GFT/dataset/process_datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("fe5ac93ea96ea352")
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 GXG-CS/STEM-GNN, 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.

CosineSimCodebook Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("d8a07f536f522526")
How it ran

no invocation recorded.

EuclideanCodebook Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("74f95d115c4d707c")
How it ran

no invocation recorded.

VectorQuantize Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("33b21e2fd12163eb")
How it ran

no invocation recorded.

ema_inplace Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("fda38ab65bb996a9")
How it ran

no invocation recorded.

flat_auc Not yet run
unverified (harvested, no recorded run)
Zehong-Wang/GFT/GFT/dataset/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from GXG-CS/STEM-GNN, is pointer only (licence: NONE) · get_code("1ae9c9bd82345553")
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 GXG-CS/STEM-GNN, 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. No invocation recorded.

pack_one Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("9adcac32b9f87dfb")
How it ran

no invocation recorded.

unpack_one Not yet run
unverified (harvested, no recorded run)
zehong-wang/gft/GFT/model/vq.py
code served (permissive licence) · get_code("95a567bd7c1ffdce")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 20 are also present in other papers whose code we hold (16 with at least one paper dated earlier, 5 the same month, 20 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
brick of this paper's assembly: helper
486 other papers
397 dated earlier, 14 the same month, 64 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
brick of this paper's assembly: helper
163 other papers
141 dated earlier, 3 the same month, 16 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
identity
brick of this paper's assembly: helper
21 other papers
10 dated earlier, 1 the same month, 9 later, 1 undated · 2 only as an assembly brick
2011.10043 (2020-11)
Propagate Yourself: Exploring Pixel-Level Consistency for Unsupervised Visual Representation Learning
2203.08913 (2022-03)
Memorizing Transformers
2302.04761 (2023-02)
Toolformer: Language Models Can Teach Themselves to Use Tools
and 18 more not named here
pack_one
brick of this paper's assembly: helper
16 other papers
11 dated earlier, 1 the same month, 3 later, 1 same year, order not determinable · 4 only as an assembly brick
2203.07852 (2022-03)
Block-Recurrent Transformers
2205.14135 (2022-05)
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
2206.11990 (2022-06)
Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs
and 13 more not named here
unpack_one
brick of this paper's assembly: helper
11 other papers
6 dated earlier, 1 the same month, 3 later, 1 same year, order not determinable · 4 only as an assembly brick
2203.07852 (2022-03)
Block-Recurrent Transformers
2205.14135 (2022-05)
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
2206.11990 (2022-06)
Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs
and 8 more not named here
batched_embedding
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later · 2 only as an assembly brick
2308.02117 (2023-08)
VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs
2311.17245 (2023-11)
LightGaussian: Unbounded 3D Gaussian Compression with 15x Reduction and 200+ FPS
2402.16321 (2024-02)
Self-Supervised Speech Quality Estimation and Enhancement Using Only Clean Speech
and 1 more not named here
creat_optimizer 4 other papers
1 dated earlier, 3 later
2410.09347 (2024-10)
Toward Guidance-Free AR Visual Generation via Condition Contrastive Alignment
2501.15420 (2025-01)
Visual Generation Without Guidance
2502.20321 (2025-02)
UniTok: A Unified Tokenizer for Visual Generation and Understanding
and 1 more not named here
orthogonal_loss_fn
brick of this paper's assembly: loss
3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
2308.02117 (2023-08)
VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs
2402.16321 (2024-02)
Self-Supervised Speech Quality Estimation and Enhancement Using Only Clean Speech
2605.23402 (2026-05)
Parametric Prior Mapping Framework for Non-stationary Probabilistic Time Series Forecasting
sample_vectors_distributed
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
2308.02117 (2023-08)
VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs
2402.16321 (2024-02)
Self-Supervised Speech Quality Estimation and Enhancement Using Only Clean Speech
2605.23402 (2026-05)
Parametric Prior Mapping Framework for Non-stationary Probabilistic Time Series Forecasting
ArxivFSSplitter 2 other papers
1 dated earlier, 1 later
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
CiteSplitter 2 other papers
1 dated earlier, 1 later
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
binary_apr_func 2 other papers
1 dated earlier, 1 later
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
binary_single_auc_func 2 other papers
1 dated earlier, 1 later
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
ema_inplace
brick of this paper's assembly: update_rule
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2402.16321 (2024-02)
Self-Supervised Speech Quality Estimation and Enhancement Using Only Clean Speech
2605.23402 (2026-05)
Parametric Prior Mapping Framework for Non-stationary Probabilistic Time Series Forecasting
flat_auc 2 other papers
1 dated earlier, 1 later
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
laplace_smoothing
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2402.16321 (2024-02)
Self-Supervised Speech Quality Estimation and Enhancement Using Only Clean Speech
2605.23402 (2026-05)
Parametric Prior Mapping Framework for Non-stationary Probabilistic Time Series Forecasting
filter_unnecessary_attrs 1 other paper
1 later
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
gumbel_sample
brick of this paper's assembly: sampler
1 other paper
1 later
2605.23402 (2026-05)
Parametric Prior Mapping Framework for Non-stationary Probabilistic Time Series Forecasting
refine_dataset 1 other paper
1 later
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts
span_node_and_edge_idx 1 other paper
1 later
2602.09258 (2026-02)
Generalizing GNNs with Tokenized Mixture of Experts

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

Inspired by the success of foundation models in applications such as ChatGPT, as graph data has been ubiquitous, one can envision the far-reaching impacts that can be brought by Graph Foundation Models (GFMs) with broader applications in the areas such as scientific research, social network analysis, drug discovery, and e-commerce. Despite the significant progress of pre-trained graph neural networks, there haven't been GFMs that can achieve desired performance on various graph-learning-related tasks. Building GFMs may rely on a vocabulary that encodes transferable patterns shared among different tasks and domains. Unlike image and text, defining such transferable patterns for graphs remains an open question. In this paper, we aim to bridge this gap by rethinking the transferable patterns on graphs as computation trees -i.e., tree structures derived from the message-passing process. Based on this insight, we propose a cross-task, crossdomain graph foundation model named GFT, short for Graph Foundation model with transferable Tree vocabulary. By treating computation trees as tokens within the transferable vocabulary, GFT improves model generalization and reduces the risk of negative transfer. The theoretical analyses and extensive experimental studies have demonstrated the transferability of computation trees and shown the effectiveness of GFT across diverse tasks and domains in graph learning. The open source code and data are available at https://github.com/Zehong-Wang/GFT.

For agents

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

get_harvested_code_for_paper("2411.06070")
get_code_for_paper("2411.06070")
have("2411.06070")

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

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

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

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

Connect an agent — have() is free.