SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.12457 · ICLR · 2025

MuseGNN: Forming Scalable, Convergent GNN Layers that Minimize a Sampling-Based Energy

David Wipf, Haitian Jiang, Renjie Liu, Zengfeng Hunag, Yichuan Wang, Xiao Yan, Zhenkun Cai, Minjie Wang

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2310.12457.json · badge: /api/ran/2310.12457.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
haitian-jiang/MuseGNN canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
D_power_X Ran
ran; our contract draft was wrong, not the code
haitian-jiang/MuseGNN/model/functions.py
code served (permissive licence) · get_code("c803023f2af568b2")
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)

class MockGraph:
    def __init__(self):
        self.ndata = {}
        # Create degree tensor for 2 nodes
        self.ndata['deg'] = torch.tensor([2.0, 3.0])

graph = MockGraph()
X = torch.randn(2, 4)
power = 0.5

ARGS = {
    'graph': graph,
    'X': X,
    'power': power
}
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
evaluate Ran
ran, honoured the contract we drafted
haitian-jiang/MuseGNN/batch.py
code served (permissive licence) · get_code("b1e2ea2b0220b753")
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, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Build a minimal model that has an eval() method and is callable
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)  # 4 input features, 3 output classes
    
    def forward(self, graph, features):
        # The function calls model(graph, graph.ndata['feat'])
        # So we need to accept graph and features as arguments
        return self.linear(features)

# Build a minimal graph object with required attributes
class MinimalGraph:
    def __init__(self):
        # split_idx should index into the node dimension
        self.split_idx = torch.tensor([0, 1])
        # ndata is a dict with 'feat' and 'label' keys
        self.ndata = {
            'feat': torch.randn(2, 4),  # 2 nodes, 4 features
            'label': torch.tensor([0, 2])  # 2 labels, values in [0, 3)
        }

model = MinimalModel()
graph = MinimalGraph()

ARGS = {
    'model': model,
    'graph': graph
}
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, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
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
index2mask Ran
ran; our contract draft was wrong, not the code
haitian-jiang/MuseGNN/gen_ppr_subg.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
preprocess_ogb_data Ran
ran; our contract draft was wrong, not the code
haitian-jiang/MuseGNN/gen_ppr_subg.py
code served (permissive licence) · get_code("e6b2306d71cab077")
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 Data. 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
from torch_geometric.data import Data, Dataset

torch.manual_seed(0)

class StandInDataset(Dataset):
    def __init__(self):
        super().__init__()
        self._data = None
    
    def __getitem__(self, idx):
        if self._data is None:
            edge_index = torch.tensor([
                [0, 1, 1, 2],
                [1, 0, 2, 1]
            ], dtype=torch.long)
            x = torch.randn(3, 4)
            y = torch.tensor([0.0, 1.0, 2.0])
            self._data = Data(x=x, edge_index=edge_index, y=y)
        return self._data
    
    def get_idx_split(self):
        return {
            'train': torch.tensor([0], dtype=torch.long),
            'valid': torch.tensor([1], dtype=torch.long),
            'test': torch.tensor([2], dtype=torch.long)
        }

class StandInArgs:
    def __init__(self, dataset='ogbn-arxiv'):
        self.dataset = dataset

dataset = StandInDataset()
args = StandInArgs(dataset='ogbn-arxiv')

ARGS = {
    'dataset': dataset,
    'args': args
}
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 Data — a Data 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
train Ran
ran, honoured the contract we drafted
haitian-jiang/MuseGNN/batch.py
code served (permissive licence) · get_code("3723770e898ccc30")
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 float, 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 as nn

torch.manual_seed(0)

# Create a minimal model that satisfies the function's usage
class MinimalGNNModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, graph, features):
        # The function calls model(graph, graph.ndata['feat'])
        # and indexes the result with [nodes]
        return self.linear(features)

# Create a minimal graph object with required attributes
class MinimalGraph:
    def __init__(self):
        # Create small feature tensor (2 nodes, 4 features)
        self.ndata = {
            'feat': torch.randn(2, 4),
            'label': torch.tensor([0, 1], dtype=torch.long)
        }
        # split_idx is used to index the output and labels
        self.split_idx = torch.tensor([0, 1])

# Build components
model = MinimalGNNModel(input_dim=4, output_dim=3)
graph = MinimalGraph()
loss_func = nn.CrossEntropyLoss()
optimizer = torch.optim.Adam(model.parameters(), lr=0.01)

ARGS = {
    'model': model,
    'graph': graph,
    'loss_func': loss_func,
    'optimizer': optimizer
}
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 float, 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
prepare_graph Not yet run
unverified (harvested, no recorded run)
haitian-jiang/MuseGNN/MAG240M/gen_subg.py
code served (permissive licence) · get_code("96f067056d5c474c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
index2mask 2 other papers
1 dated earlier, 1 later
2306.10759 (2023-06)
SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations
2405.16435 (2024-05)
Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning

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

Among the many variants of graph neural network (GNN) architectures capable of modeling data with cross-instance relations, an important subclass involves layers designed such that the forward pass iteratively reduces a graph-regularized energy function of interest. In this way, node embeddings produced at the output layer dually serve as both predictive features for solving downstream tasks (e.g., node classification) and energy function minimizers that inherit transparent, exploitable inductive biases and interpretability. However, scaling GNN architectures constructed in this way remains challenging, in part because the convergence of the forward pass may involve models with considerable depth. To tackle this limitation, we propose a sampling-based energy function and scalable GNN layers that iteratively reduce it, guided by convergence guarantees in certain settings. We also instantiate a full GNN architecture based on these designs, and the model achieves competitive accuracy and scalability when applied to the largest publicly-available node classification benchmark exceeding 1TB in size. Our source code is available at https://github.com/haitian-jiang/MuseGNN.

For agents

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

get_harvested_code_for_paper("2310.12457")
get_code_for_paper("2310.12457")
have("2310.12457")

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

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

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

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

Connect an agent — have() is free.