SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.04234 · NeurIPS · 2024

Graph Convolutions Enrich the Self-Attention in Transformers!

Noseong Park, Jayoung Kim, Jeongwhan Choi, Hyowon Wi, Yehjin Shin, Kookjin Lee, Nathaniel Trask

arXiv · PDF · Open in the Atlas

Code that ran

22 of 29 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; 3 honoured the contract we drafted, 5 violated it and 0 have no contract verdict; 14 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/2312.04234.json · badge: /api/ran/2312.04234.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
XiaoxinHe/Graph-ViT-MLPMixer canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
rampasek/GraphGPS canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
jeongwhanchoi/gfsa canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
LapPE Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/data_utils/pe.py
pointer only (licence: MIT); the stored copy get_code serves, from LUMIA-Group/Cluster-wise-Graph-Transformer, is pointer only (licence: NONE) · get_code("2be5d5ffa7c2b792")
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 LUMIA-Group/Cluster-wise-Graph-Transformer, 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.

RWSE Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/data_utils/pe.py
pointer only (licence: MIT); the stored copy get_code serves, from LUMIA-Group/Cluster-wise-Graph-Transformer, is pointer only (licence: NONE) · get_code("e63f8bb61e55a99d")
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 LUMIA-Group/Cluster-wise-Graph-Transformer, 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.

add_lang_by_task Ran
ran; our contract draft was wrong, not the code
jeongwhanchoi/gfsa/Code/_utils.py
code served (permissive licence) · get_code("2e3e72e1e860afb2")
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

ARGS = {
    'target_str': 'This is a test string',
    'task': 'summarize',
    'sub_task': 'java-cs'
}
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
cal_coarsen_adj Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/transform.py
pointer only (licence: MIT); the stored copy get_code serves, from LUMIA-Group/Cluster-wise-Graph-Transformer, is pointer only (licence: NONE) · get_code("586551d992664067")
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 LUMIA-Group/Cluster-wise-Graph-Transformer, 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.

combine_subgraphs Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/transform.py
code served (permissive licence) · get_code("6466f9f70510811c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family int, shape (2, 6) 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)

# Define graph structure
# Let's say we have a graph with 5 nodes and 8 edges
num_nodes = 5
num_edges = 8
num_selected = 3  # number of subgraphs

# edge_index: [2, num_edges] - standard graph edge representation
edge_index = torch.tensor([
    [0, 1, 1, 2, 2, 3, 3, 4],  # source nodes
    [1, 0, 2, 1, 3, 2, 4, 3]   # target nodes
], dtype=torch.long)

# subgraphs_nodes: [2, num_subgraph_nodes] 
# First row: which subgraph each node belongs to
# Second row: the actual node ID in the original graph
subgraphs_nodes = torch.tensor([
    [0, 0, 0, 1, 1, 1, 2, 2, 2],  # subgraph indices
    [0, 1, 2, 1, 2, 3, 2, 3, 4]   # node IDs
], dtype=torch.long)

# subgraphs_edges: [2, num_subgraph_edges]
# First row: which subgraph each edge belongs to
# Second row: the edge index in the original edge_index
subgraphs_edges = torch.tensor([
    [0, 0, 1, 1, 2, 2],  # subgraph indices
    [0, 2, 2, 4, 4, 6]   # edge indices
], dtype=torch.long)

ARGS = {
    'edge_index': edge_index,
    'subgraphs_nodes': subgraphs_nodes,
    'subgraphs_edges': subgraphs_edges,
    'num_selected': num_selected,
    'num_nodes': num_nodes
}
Setup block drafted by
a language model, Claude Sonnet 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 int, shape (2, 6) — shape (2, 6) 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
convert_clone_examples_to_features Ran
ran; our contract draft was wrong, not the code
jeongwhanchoi/gfsa/Code/_utils.py
code served (permissive licence) · get_code("08ffc47da0ae6767")
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 CloneInputFeatures. 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 transformers import AutoTokenizer

torch.manual_seed(0)

class MockExample:
    def __init__(self, source, target, label, url1, url2):
        self.source = source
        self.target = target
        self.label = label
        self.url1 = url1
        self.url2 = url2

class MockArgs:
    def __init__(self):
        self.model_type = 'codet5'
        self.add_task_prefix = True
        self.task = 'clone_detection'
        self.max_source_length = 16

class MockTokenizer:
    def encode(self, text, max_length=None, padding=None, truncation=None):
        tokens = [101] + [i % 100 + 1000 for i in range(min(len(text), max_length - 2 if max_length else len(text)))] + [102]
        if max_length:
            if len(tokens) < max_length:
                tokens = tokens + [0] * (max_length - len(tokens))
            else:
                tokens = tokens[:max_length]
        return tokens

example = MockExample(
    source="int foo(int x) { return x + 1; }",
    target="int bar(int y) { return y + 1; }",
    label=1,
    url1="http://example.com/code1",
    url2="http://example.com/code2"
)

example_index = 0
tokenizer = MockTokenizer()
args = MockArgs()

item = (example, example_index, tokenizer, args)

ARGS = {
    'item': item
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CloneInputFeatures — a CloneInputFeatures output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CloneInputFeatures 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
convert_examples_to_features Ran
ran; our contract draft was wrong, not the code
jeongwhanchoi/gfsa/Code/_utils.py
code served (permissive licence) · get_code("70674cae33ae9c61")
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 InputFeatures. 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 transformers import T5Tokenizer

# Create a minimal example class
class Example:
    def __init__(self, source, target, url=None):
        self.source = source
        self.target = target
        self.url = url

# Create a minimal args class
class Args:
    def __init__(self):
        self.model_type = 't5'
        self.add_task_prefix = True
        self.task = 'summarize'
        self.sub_task = 'none'
        self.max_source_length = 128
        self.max_target_length = 64
        self.add_lang_ids = True

# Create a minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.eos_token_id = 1
        self.pad_token_id = 0
    
    def encode(self, text, max_length=128, padding='max_length', truncation=True):
        # Return a list of token ids with exactly one eos_token_id at the end
        tokens = [2] * (max_length - 1) + [self.eos_token_id]
        return tokens

# Create example instance
example = Example(
    source="def hello(): pass",
    target="This function says hello",
    url="http://example.com"
)

# Create args instance
args = Args()

# Create tokenizer
tokenizer = MinimalTokenizer()

ARGS = {
    'item': (
        example,
        0,
        tokenizer,
        args,
        'train'
    )
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type InputFeatures — a InputFeatures output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a InputFeatures 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
count_parameters Ran
ran, honoured the contract we drafted
XiaoxinHe/Graph-ViT-MLPMixer/core/train_helper.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
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 int, ndim 0, dtype family int, 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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
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 int, ndim 0, dtype family int, 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
default Ran
ran, violated the contract we drafted
rampasek/GraphGPS/graphgps/layer/performer_layer.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.

empty Ran
ran; our contract draft was wrong, not the code
rampasek/GraphGPS/graphgps/layer/performer_layer.py
code served (permissive licence) · get_code("19925529d217754e")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function 'empty' checks if a tensor has zero elements by calling tensor.numel()
# It returns True if numel() == 0, False otherwise
# We need to provide a tensor argument

# Create a small non-empty tensor for testing
tensor_nonempty = torch.randn(2, 4)

# Also create an empty tensor to test the function
tensor_empty = torch.tensor([])

ARGS = {
    "tensor": tensor_nonempty
}
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 bool, 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
exists Ran
ran, violated the contract we drafted
rampasek/GraphGPS/graphgps/layer/performer_layer.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
rampasek/GraphGPS/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
get_key_padding_mask Ran
ran; our contract draft was wrong, not the code
jeongwhanchoi/gfsa/Speech/gfsa/Transformer.py
code served (permissive licence) · get_code("a0f4361e32b5e060")
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

torch.manual_seed(0)

# Create a small padded input tensor
# Shape: (batch_size=2, time_steps=4, channels=3)
padded_input = torch.LongTensor([
    [1, 1, 1, 0],
    [2, 3, 4, 0]
])

# Padding index
pad_idx = 0

ARGS = {
    "padded_input": padded_input,
    "pad_idx": pad_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 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
get_lookahead_mask Ran
ran, violated the contract we drafted
jeongwhanchoi/gfsa/Speech/gfsa/Transformer.py
code served (permissive licence) · get_code("15e543ee1a31804e")
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 (4, 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)

# Create a small padded input tensor
# Shape: (batch_size=2, seq_len=4)
padded_input = torch.LongTensor([[1, 1, 0, 2], [2, 3, 0, 4]])

ARGS = {
    "padded_input": padded_input
}
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 (4, 4) — shape (4, 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
get_model_size Ran
ran; our contract draft was wrong, not the code
jeongwhanchoi/gfsa/Code/models.py
code served (permissive licence) · get_code("8cfe38019e9d6a49")
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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal model with some trainable parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
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
is_seed Ran
ran, violated the contract we drafted
rampasek/GraphGPS/graphgps/agg_runs.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("c98a702be0660ac9")
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 sunjss/over-aggregating, 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.

is_split Ran
ran, violated the contract we drafted
rampasek/GraphGPS/graphgps/agg_runs.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("438635c08adfe2aa")
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 sunjss/over-aggregating, 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.

join_list Ran
ran, honoured the contract we drafted
rampasek/GraphGPS/graphgps/agg_runs.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("40e98e1ecbf39f34")
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 sunjss/over-aggregating, 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.

k_fold Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/train_helper.py
code served (permissive licence) · get_code("3f97bfae7118b1d2")
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_geometric.data import Data, InMemoryDataset

torch.manual_seed(0)

class SimpleDataset(InMemoryDataset):
    def __init__(self):
        super().__init__(root=None)
        # Create a simple dataset with labels for stratification
        x = torch.randn(10, 4)  # 10 samples, 4 features
        y = torch.tensor([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=torch.long)
        self.data = Data(x=x, y=y)
    
    def len(self):
        return 10
    
    def get(self, idx):
        return self.data

dataset = SimpleDataset()

ARGS = {
    "dataset": dataset,
    "folds": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch, torch_geometric — 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
random_walk Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/data_utils/pe.py
pointer only (licence: MIT); the stored copy get_code serves, from LUMIA-Group/Cluster-wise-Graph-Transformer, is pointer only (licence: NONE) · get_code("2d2ee0ffa615ecaf")
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 LUMIA-Group/Cluster-wise-Graph-Transformer, 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.

to_sparse Ran
ran, honoured the contract we drafted
XiaoxinHe/Graph-ViT-MLPMixer/core/transform.py
code served (permissive licence) · get_code("8039d4f24f678f0b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple, ndim 3, 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

torch.manual_seed(0)

# node_mask: a boolean or binary tensor indicating which nodes are selected
# edge_mask: a boolean or binary tensor indicating which edges are selected
# The function calls .nonzero().T on both, so they should be tensors

# Create a small node mask (e.g., for 5 nodes across 2 subgraphs or similar structure)
node_mask = torch.tensor([
    [1, 0, 1, 0, 1],
    [0, 1, 1, 0, 0]
], dtype=torch.bool)

# Create a small edge mask (e.g., for 6 edges across 2 subgraphs or similar structure)
edge_mask = torch.tensor([
    [1, 0, 0, 1, 0, 1],
    [0, 1, 1, 0, 0, 0]
], dtype=torch.bool)

ARGS = {
    'node_mask': node_mask,
    'edge_mask': edge_mask
}
Setup block drafted by
a language model, Claude Sonnet 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 tuple, ndim 3, 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
update_cfg Ran
ran; our contract draft was wrong, not the code
XiaoxinHe/Graph-ViT-MLPMixer/core/config.py
code served (permissive licence) · get_code("e0a50ba59ec13709")
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 CfgNode. 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.

from yacs.config import CfgNode as CN
import argparse
import os

torch_imported = False
try:
    import torch
    torch_imported = True
except ImportError:
    pass

def set_cfg(cfg):
    cfg.dataset = 'ZINC'
    cfg.num_workers = 8
    cfg.device = 0
    cfg.seed = None
    cfg.logfile = None
    cfg.depth = -1
    cfg.train = CN()
    cfg.train.batch_size = 128
    cfg.train.epochs = 1000
    cfg.train.runs = 4
    cfg.train.lr = 0.001
    cfg.train.lr_patience = 20
    cfg.train.lr_decay = 0.5
    cfg.train.wd = 0.0
    cfg.train.dropout = 0.0
    cfg.train.mlpmixer_dropout = 0.0
    cfg.train.min_lr = 1e-05
    cfg.train.optimizer = 'Adam'
    cfg.model = CN()
    cfg.model.gnn_type = 'GINEConv'
    cfg.model.gMHA_type = 'MLPMixer'
    cfg.model.hidden_size = 128
    cfg.model.nlayer_gnn = 4
    cfg.model.nlayer_mlpmixer = 4
    cfg.model.pool = 'mean'
    cfg.model.residual = True
    cfg.pos_enc = CN()
    cfg.pos_enc.rw_dim = 0
    cfg.pos_enc.lap_dim = 0
    cfg.pos_enc.patch_rw_dim = 8
    cfg.pos_enc.patch_num_diff = -1
    cfg.metis = CN()
    cfg.metis.enable = True
    cfg.metis.online = True
    cfg.metis.n_patches = 32
    cfg.metis.drop_rate = 0.3
    cfg.metis.num_hops = 1
    return cfg

base_cfg = set_cfg(CN())

ARGS = {
    'cfg': base_cfg,
    'args_str': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yacs — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CfgNode — a CfgNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CfgNode 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
add_args Not yet run
unverified (harvested, no recorded run)
jeongwhanchoi/gfsa/Code/configs.py
code served (permissive licence) · get_code("ff8bffb7326ca0bc")
How it ran

no invocation recorded.

apply_chunking_to_forward Not yet run
unverified (harvested, no recorded run)
rampasek/GraphGPS/graphgps/layer/bigbird_layer.py
pointer only (licence: MIT); the stored copy get_code serves, from sunjss/over-aggregating, is pointer only (licence: NONE) · get_code("ae56bcfaae96da3c")
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 sunjss/over-aggregating, 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.

build_or_load_gen_model Not yet run
unverified (harvested, no recorded run)
jeongwhanchoi/gfsa/Code/models.py
code served (permissive licence) · get_code("eb4f6d081f695b86")
How it ran

no invocation recorded.

config_logger Not yet run
unverified (harvested, no recorded run)
XiaoxinHe/Graph-ViT-MLPMixer/core/log.py
code served (permissive licence) · get_code("7a15a3fa5bfa6eab")
How it ran

no invocation recorded.

create_model Not yet run
unverified (harvested, no recorded run)
XiaoxinHe/Graph-ViT-MLPMixer/core/get_model.py
code served (permissive licence) · get_code("6834e2f9136e40db")
How it ran

no invocation recorded.

init_model_from_pretrained Not yet run
unverified (harvested, no recorded run)
rampasek/GraphGPS/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)
rampasek/GraphGPS/graphgps/finetuning.py
code served (permissive licence) · get_code("d796cdea5889c847")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 29 distinct functions with an identity, 25 are also present in other papers whose code we hold (25 with at least one paper dated earlier, 3 the same month, 18 later) and 4 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
262 dated earlier, 16 the same month, 202 later, 4 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
count_parameters 180 other papers
107 dated earlier, 2 the same month, 67 later, 4 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
default 163 other papers
107 dated earlier, 3 the same month, 51 later, 1 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
10 dated earlier, 17 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
apply_chunking_to_forward 21 other papers
9 dated earlier, 12 later
2002.01685 (2020-02)
Parsing as Pretraining
2210.09545 (2022-10)
Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models
2302.04181 (2023-02)
Attending to Graph Transformers
and 18 more not named here
is_seed 15 other papers
3 dated earlier, 12 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2310.19285 (2023-10)
Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes
and 12 more not named here
is_split 15 other papers
3 dated earlier, 12 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2310.19285 (2023-10)
Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes
and 12 more not named here
join_list 15 other papers
3 dated earlier, 12 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2310.19285 (2023-10)
Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes
and 12 more not named here
init_model_from_pretrained 10 other papers
2 dated earlier, 8 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2402.02005 (2024-02)
Topology-Informed Graph Transformer
and 7 more not named here
load_pretrained_model_cfg 9 other papers
2 dated earlier, 7 later
2302.04181 (2023-02)
Attending to Graph Transformers
2309.00367 (2023-09)
Where Did the Gap Go? Reassessing the Long-Range Graph Benchmark
2402.02005 (2024-02)
Topology-Informed Graph Transformer
and 6 more not named here
update_cfg 8 other papers
5 dated earlier, 3 later
2110.03753 (2021-10)
From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness
2304.07702 (2023-04)
An Empirical Study of Realized GNN Expressiveness
2305.19523 (2023-05)
Harnessing Explanations: LLM-to-LM Interpreter for Enhanced Text-Attributed Graph Representation Learning
and 5 more not named here
empty 7 other papers
4 dated earlier, 3 later
2207.02505 (2022-07)
Pure Transformers are Powerful Graph Learners
2305.12322 (2023-05)
Learning Large Graph Property Prediction via Graph Segment Training
2307.10802 (2023-07)
Meta-Transformer: A Unified Framework for Multimodal Learning
and 4 more not named here
get_model_size 6 other papers
6 dated earlier
1909.09436 (2019-09)
CodeSearchNet Challenge: Evaluating the State of Semantic Code Search
2206.07796 (2022-06)
FixEval: Execution-based Evaluation of Program Fixes for Programming Problems
2207.11680 (2022-07)
No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence
and 3 more not named here
add_lang_by_task 4 other papers
4 dated earlier
1909.09436 (2019-09)
CodeSearchNet Challenge: Evaluating the State of Semantic Code Search
2206.07796 (2022-06)
FixEval: Execution-based Evaluation of Program Fixes for Programming Problems
2207.11680 (2022-07)
No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence
and 1 more not named here
combine_subgraphs 3 other papers
2 dated earlier, 1 later
2210.09521 (2022-10)
A Practical, Progressively-Expressive GNN
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2410.06746 (2024-10)
Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention
convert_examples_to_features 3 other papers
3 dated earlier
2206.07796 (2022-06)
FixEval: Execution-based Evaluation of Program Fixes for Programming Problems
2207.11680 (2022-07)
No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence
2311.00317 (2023-11)
Data Augmentation for Code Translation with Comparable Corpora and Multiple References
to_sparse 3 other papers
2 dated earlier, 1 later
2210.09521 (2022-10)
A Practical, Progressively-Expressive GNN
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2410.06746 (2024-10)
Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention
LapPE 2 other papers
1 dated earlier, 1 later
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2410.06746 (2024-10)
Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention
RWSE 2 other papers
1 dated earlier, 1 later
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2410.06746 (2024-10)
Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention
cal_coarsen_adj 2 other papers
1 dated earlier, 1 later
2309.16014 (2023-09)
Graph-level Representation Learning with Joint-Embedding Predictive Architectures
2410.06746 (2024-10)
Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention

Shown: the 20 functions present in the most other papers. 5 more shared functions are not listed here.

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

Transformers, renowned for their self-attention mechanism, have achieved state-ofthe-art performance across various tasks in natural language processing, computer vision, time-series modeling, etc. However, one of the challenges with deep Transformer models is the oversmoothing problem, where representations across layers converge to indistinguishable values, leading to significant performance degradation. We interpret the original self-attention as a simple graph filter and redesign it from a graph signal processing (GSP) perspective. We propose a graph-filter-based self-attention (GFSA) 1 to learn a general yet effective one, whose complexity, however, is slightly larger than that of the original self-attention mechanism. We demonstrate that GFSA improves the performance of Transformers in various fields, including computer vision, natural language processing, graph-level tasks, speech recognition, and code classification.

For agents

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

get_harvested_code_for_paper("2312.04234")
get_code_for_paper("2312.04234")
have("2312.04234")

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

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

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

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

Connect an agent — have() is free.