SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.01927 · ICML · 2024

SlotGAT: Slot-based Message Passing for Heterogeneous Graph Neural Network

Qing Li, Ziang Zhou, Jieming Shi, Renchi Yang, Yuanhang Zou

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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 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/2405.01927.json · badge: /api/ran/2405.01927.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
scottjiao/slotgat_icml23 canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
config_study_name Ran
ran; our contract draft was wrong, not the code
scottjiao/slotgat_icml23/LP/methods/slotGAT/pipeline_utils.py
code served (permissive licence) · get_code("2c850c1d68175212")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - prefix: a string that starts the study_name
# - specified_args: an iterable (likely list) of keys to loop through
# - extract_dict: a dictionary to look up values for those keys

ARGS = {
    'prefix': 'experiment',
    'specified_args': ['learning_rate', 'batch_size', 'dropout'],
    'extract_dict': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'dropout': 0.5,
    }
}
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 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
expand_task Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
scottjiao/slotgat_icml23/NC/methods/SlotGAT/pipeline_utils.py
code served (permissive licence) · get_code("896d2736eaddff78")
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 list, ndim 1, dtype family float; 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 copy
import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - tasks: list of dicts (used with copy.deepcopy, indexed with [k])
# - k: string key (used with startswith, as dict key)
# - v: can be str, list, or other type (evaluated if str, iterated if list)

# Create sample tasks - list of dictionaries
tasks = [
    {'model_name': 'bert', 'learning_rate': 0.001},
    {'model_name': 'gpt', 'learning_rate': 0.002},
]

# Create a key (string)
k = 'batch_size'

# Create a value - test with a list
v = [16, 32, 64]

ARGS = {
    'tasks': tasks,
    'k': k,
    'v': v,
}
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 list, ndim 1, dtype family float — a list 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
get_command_from_argsDict Ran
ran; our contract draft was wrong, not the code
scottjiao/slotgat_icml23/LP/methods/slotGAT/pipeline_utils.py
code served (permissive licence) · get_code("26f59157fc466d35")
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 torch

# Create args_dict with typical hyperparameters for a distributed training setup
args_dict = {
    'study_name': 'test_study',
    'learning_rate': '0.001',
    'batch_size': '32',
    'num_epochs': '10',
    'model_type': 'transformer',
    'hidden_dim': '256',
    'seed': '42'
}

# Define other parameters
gpu = 0
idx = 0

# Construct ARGS dict with all parameters
ARGS = {
    'args_dict': args_dict,
    'gpu': gpu,
    'idx': idx
}
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 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
get_tasks_linear_around Ran
ran; our contract draft was wrong, not the code
scottjiao/slotgat_icml23/NC/methods/SlotGAT/pipeline_utils.py
code served (permissive licence) · get_code("a89821ae551d6061")
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 list, ndim 1, dtype family float; 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

torch.manual_seed(0)

# Construct task_space: a dict with parameter names as keys and lists of values
task_space = {
    'learning_rate': [0.001, 0.01, 0.1],
    'batch_size': [16, 32, 64],
}

# Construct best_hyper: a dict with parameter names and their best values
# Must include all keys from task_space, plus potentially 'search_' prefixed keys
best_hyper = {
    'learning_rate': 0.01,
    'batch_size': 32,
    'search_optimizer': 0.9,
    'search_momentum': 0.95,
    'hidden_dim': 128,
    'num_layers': 3,
}

ARGS = {
    'task_space': task_space,
    'best_hyper': best_hyper,
}
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 list, ndim 1, dtype family float — a list 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
mat2tensor Ran
ran, honoured the contract we drafted
scottjiao/slotgat_icml23/LP/methods/slotGAT/run_dist.py
code served (permissive licence) · get_code("4cbbc10fc3a6d07f")
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
import numpy as np
from scipy import sparse

torch.manual_seed(0)

# Create a small numpy array
numpy_mat = np.array([[1.0, 2.0, 0.0],
                      [0.0, 3.0, 4.0]], dtype=np.float32)

# Create a small sparse matrix
sparse_mat = sparse.csr_matrix(np.array([[1.0, 0.0, 2.0],
                                          [0.0, 3.0, 0.0]], dtype=np.float32))

# Test with numpy array
ARGS = {
    "mat": numpy_mat
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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
sp_to_spt Ran
ran; our contract draft was wrong, not the code
scottjiao/slotgat_icml23/LP/methods/slotGAT/run_dist.py
code served (permissive licence) · get_code("87cd53eb5e1558f1")
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. 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 numpy as np
from scipy import sparse

torch.manual_seed(0)

# Create a small sparse matrix in COO format
# The function expects mat to have a tocoo() method and to be a sparse matrix
row = np.array([0, 1, 2])
col = np.array([0, 1, 2])
data = np.array([1.0, 2.0, 3.0])
mat = sparse.coo_matrix((data, (row, col)), shape=(4, 3))
# Convert to a format that has tocoo() method (e.g., CSR or CSC)
mat = mat.tocsr()

ARGS = {
    "mat": mat
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor — no output shape is stated: observe_signature.py could not observe it (fixture:AttributeError)
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_tasks Not yet run
unverified (harvested, no recorded run)
scottjiao/slotgat_icml23/NC/methods/SlotGAT/pipeline_utils.py
code served (permissive licence) · get_code("cf2857ac006179c2")
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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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.

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

Heterogeneous graphs are ubiquitous to model complex data. There are urgent needs on powerful heterogeneous graph neural networks to effectively support important applications. We identify a potential semantic mixing issue in existing message passing processes, where the representations of the neighbors of a node v are forced to be transformed to the feature space of v for aggregation, though the neighbors are in different types. That is, the semantics in different node types are entangled together into node v's representation. To address the issue, we propose SlotGAT with separate message passing processes in slots, one for each node type, to maintain the representations in their own node-type feature spaces. Moreover, in a slot-based message passing layer, we design an attention mechanism for effective slot-wise message aggregation. Further, we develop a slot attention technique after the last layer of Slot-GAT, to learn the importance of different slots in downstream tasks. Our analysis indicates that the slots in SlotGAT can preserve different semantics in various feature spaces. The superiority of SlotGAT is evaluated against 13 baselines on 6 datasets for node classification and link prediction. Our code is at https://github.com/ scottjiao/SlotGAT_ICML23/.

For agents

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

get_harvested_code_for_paper("2405.01927")
get_code_for_paper("2405.01927")
have("2405.01927")

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

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

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

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

Connect an agent — have() is free.