SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.25750 · 2026

Invariant-Based Weight Sharing for Message Passing

Florian Seiffarth

arXiv · PDF · Open in the Atlas

Code that ran

10 of 17 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; 9 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2605.25750.json · badge: /api/ran/2605.25750.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
fseiffarth/SimpleGNN canonical (classifier label)
classifier basis: census
10 ran · 7 no recorded run
FunctionStatusWhere it lives
binary_roc_auc Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/framework/model_configuration.py
code served (permissive licence) · get_code("c1b5b4756884ae0b")
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 numpy as np

torch.manual_seed(0)

# Case 1: Binary classification with C=2 outputs and class indices labels
outputs = torch.randn(2, 2)
labels = torch.tensor([0, 1])

ARGS = {
    "outputs": outputs,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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
build_lrgb_splits Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/utils/lrgb_splits.py
code served (permissive licence) · get_code("bba69fc45f8d9813")
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
import numpy as np

# Set seed for reproducibility
torch.manual_seed(0)

# Define ARGS with valid arguments for build_lrgb_splits
ARGS = {
    "n_train": 100,
    "n_val": 20,
    "n_test": 30,
}
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
build_ogb_splits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fseiffarth/SimpleGNN/src/simplegnn/utils/ogb_splits.py
code served (permissive licence) · get_code("37524176764f4267")
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
import numpy as np
from pathlib import Path
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a mock dataset that mimics OGB's structure
class MockOGBDataset:
    def __init__(self):
        self.split_idx = {
            'train': torch.tensor([0, 1, 2, 3, 4]),
            'valid': torch.tensor([5, 6, 7]),
            'test': torch.tensor([8, 9, 10, 11])
        }
    
    def get_idx_split(self):
        return self.split_idx

# Mock the load_ogb_graphprop_dataset function
def mock_load_ogb_graphprop_dataset(db_name, root):
    return MockOGBDataset()

# Patch the import in the module
import sys
import types

# Create a mock module for simplegnn.datasets.graph_dataset_preprocessing
mock_module = types.ModuleType('simplegnn.datasets.graph_dataset_preprocessing')
mock_module.load_ogb_graphprop_dataset = mock_load_ogb_graphprop_dataset

# Add to sys.modules so the import works
sys.modules['simplegnn'] = types.ModuleType('simplegnn')
sys.modules['simplegnn.datasets'] = types.ModuleType('simplegnn.datasets')
sys.modules['simplegnn.datasets.graph_dataset_preprocessing'] = mock_module

ARGS = {
    'db_name': 'ogbg-molhiv',
    'root': Path('/tmp')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, simplegnn, 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
collect_paths Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/framework/core.py
code served (permissive licence) · get_code("465871547a9a1130")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from copy import deepcopy

# Create minimal configuration dictionaries

main_configuration = {
    'paths': {
        'data': '/data/main',
        'results': '/results/main/',
        'splits': '/splits/main/',
        'properties': '/props/main/',
        'labels': '/labels/main/'
    }
}

model_configuration = {
    'paths': {
        'data': '/data/model',
        'results': '/results/model/',
        'splits': '/splits/model/'
    },
    'models': [
        [
            {'layer_type': 'linear'},
            {'layer_type': 'conv'}
        ]
    ]
}

dataset_configuration = {
    'paths': {
        'data': '/data/dataset',
        'results': '/results/dataset/',
        'splits': '/splits/dataset/',
        'properties': '/props/dataset/',
        'labels': '/labels/dataset/'
    }
}

ARGS = {
    'main_configuration': main_configuration,
    'model_configuration': model_configuration,
    'dataset_configuration': dataset_configuration
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_parameter_summary Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/utils/param_count.py
code served (permissive licence) · get_code("1501ddb487484bdb")
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

torch.manual_seed(0)

# Create a simple GraphModel-like class with net_layers
class SimpleLayer(nn.Module):
    def __init__(self, in_features, out_features, name=None):
        super().__init__()
        self.in_features = in_features
        self.out_features = out_features
        self.name = name
        self.linear = nn.Linear(in_features, out_features)
    
    def forward(self, x):
        return self.linear(x)

class ConvLayer(nn.Module):
    def __init__(self, in_channels, out_channels, name=None):
        super().__init__()
        self.in_channels = in_channels
        self.out_channels = out_channels
        self.name = name
        self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=3)
    
    def forward(self, x):
        return self.conv(x)

class GraphModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.net_layers = nn.ModuleList([
            SimpleLayer(in_features=4, out_features=8, name="layer1"),
            ConvLayer(in_channels=8, out_channels=16, name="layer2"),
            SimpleLayer(in_features=16, out_features=3, name="layer3"),
        ])
    
    def forward(self, x):
        for layer in self.net_layers:
            x = layer(x)
        return x

# Create instance
net = GraphModel()

ARGS = {
    "net": net
}
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
generate_layer_options Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/framework/run_configuration.py
code served (permissive licence) · get_code("722badd044c74e83")
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.

def generate_layer_options(layer_dict):
    options = []
    for label_type in layer_dict['labels']:
        properties_dict = []
        base_dict = {}
        for key, value in layer_dict.items():
            if key != 'labels' and key != 'properties':
                base_dict[key] = value
        if layer_dict.get('properties', None) is not None:
            for prop_val in layer_dict['properties']:
                properties_dict.append(prop_val)
        key_list = list(label_type.keys())
        key_list.remove('label_type')
        for key in key_list:
            if label_type[key] is None or (type(label_type[key]) == list and len(label_type[key]) == 0):
                key_list.remove(key)
        if len(key_list) == 0:
            if properties_dict is None or len(properties_dict) == 0:
                options.append({'layer_type': layer_dict['layer_type'], 'channels': [{'labels': label_type}]})
            else:
                for prop_val in properties_dict:
                    options.append({'layer_type': layer_dict['layer_type'], 'channels': [{'labels': label_type, 'properties': prop_val.copy()}]})
        else:
            value_list = []
            for key in key_list:
                if type(label_type[key]) != list:
                    value_list.append([label_type[key]])
                else:
                    value_list.append(label_type[key])
            value_combinations = []
            for i in range(len(value_list)):
                if len(value_combinations) == 0:
                    for v in value_list[i]:
                        value_combinations.append([v])
                else:
                    new_combinations = []
                    for c in value_combinations:
                        for v in value_list[i]:
                            new_combinations.append(c + [v])
                    value_combinations = new_combinations
            for i, values in enumerate(value_combinations):
                if properties_dict is None or len(properties_dict) == 0:
                    curr_layer_dict = base_dict.copy()
                    channels_list = []
                    label_dict = {'label_type': label_type['label_type']}
                    for j, value in enumerate(values):
                        label_dict[key_list[j]] = value
                    channels_list.append({'labels': label_dict})
                    curr_layer_dict['channels'] = channels_list
                    options.append(curr_layer_dict)
                else:
                    for prop_val in properties_dict:
                        curr_layer_dict = base_dict.copy()
                        channels_list = []
                        label_dict = {'label_type': label_type['label_type']}
                        for j, value in enumerate(values):
                            label_dict[key_list[j]] = value
                        channels_list.append({'labels': label_dict, 'properties': prop_val.copy()})
                        curr_layer_dict['channels'] = channels_list
                        options.append(curr_layer_dict)
    return options


ARGS = {
    'layer_dict': {
        'layer_type': 'conv',
        'activation': 'relu',
        'labels': [
            {
                'label_type': 'classification',
                'kernel_size': [3, 5],
                'stride': 1
            }
        ],
        'properties': [
            {'dropout': 0.1},
            {'dropout': 0.2}
        ]
    }
}
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 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
loss_display_name Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/framework/model_configuration.py
code served (permissive licence) · get_code("084ff864580bf3a5")
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

torch.manual_seed(0)

# The function takes a single parameter 'loss' which is a string
# It converts it to string and looks it up in the dictionary
# If not found, returns the string unchanged

# Test with a known loss name
ARGS = {
    "loss": "CrossEntropyLoss"
}
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
parameter_summary Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/utils/param_count.py
code served (permissive licence) · get_code("0282c1b34bec6e29")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple GraphModel-like class with net_layers ModuleList
class SimpleLayer(nn.Module):
    def __init__(self, in_features, out_features, name=None):
        super().__init__()
        self.in_features = in_features
        self.out_features = out_features
        self.name = name
        self.linear = nn.Linear(in_features, out_features)
    
    def forward(self, x):
        return self.linear(x)

class GraphModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.net_layers = nn.ModuleList([
            SimpleLayer(4, 8, name="layer_0"),
            SimpleLayer(8, 16, name="layer_1"),
            nn.Linear(16, 3),
        ])
    
    def forward(self, x):
        for layer in self.net_layers:
            if isinstance(layer, SimpleLayer):
                x = layer(x)
            else:
                x = layer(x)
        return x

# Construct the model
net = GraphModel()

ARGS = {
    "net": net
}
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
parse_brec_name Ran
ran, honoured the contract we drafted
fseiffarth/SimpleGNN/src/simplegnn/datasets/graph_dataset_preprocessing.py
code served (permissive licence) · get_code("c2c5fc7ee1f79e85")
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 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

ARGS = {
    'name': 'BREC'
}
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 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
pooled_abs_error_stats Ran
ran; our contract draft was wrong, not the code
fseiffarth/SimpleGNN/src/simplegnn/framework/model_configuration.py
code served (permissive licence) · get_code("abd7b6474b3f1a16")
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 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)

# The function takes absolute errors as a tensor and computes mean and std
# It flattens the tensor internally and handles edge cases (empty, single element)
# We need to provide a tensor of absolute errors with any shape

# Create a small tensor of absolute errors (flattened internally by the function)
abs_err = torch.tensor([0.5, 1.2, 0.3, 2.1, 0.8], dtype=torch.float32)

ARGS = {
    "abs_err": abs_err,
}
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 float — 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
build_models Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/utils/param_count.py
code served (permissive licence) · get_code("1a9d768cdfaa2bdb")
How it ran

no invocation recorded.

generate_lrgb_splits Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/utils/lrgb_splits.py
code served (permissive licence) · get_code("a1f1e5703a4d8023")
How it ran

no invocation recorded.

generate_ogb_splits Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/utils/ogb_splits.py
code served (permissive licence) · get_code("672128eff7ca0b79")
How it ran

no invocation recorded.

load_qm9_dataset Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/datasets/graph_dataset_preprocessing.py
code served (permissive licence) · get_code("793971835564654a")
How it ran

no invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/utils/lrgb_splits.py
code served (permissive licence) · get_code("7ec64e6104befe90")
How it ran

no invocation recorded.

ogb_splits Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/utils/ogb_splits.py
code served (permissive licence) · get_code("d1bb6a94a9604cd6")
How it ran

no invocation recorded.

transform_data Not yet run
unverified (harvested, no recorded run)
fseiffarth/SimpleGNN/src/simplegnn/datasets/graph_dataset.py
code served (permissive licence) · get_code("86daa8f105b06423")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 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 17 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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Message-passing neural networks (MPNNs) are a powerful framework for learning representations of graph-structured domains. However, weights in MPNNs act on features only, limiting their ability to capture structural patterns. We introduce a novel structure-aware weight sharing principle that explicitly incorporates information inherent to the graph structure. Weights are indexed directly by user-chosen graph invariants, i.e., functions preserved under node permutations, enabling systematic reuse across structurally equivalent subgraphs. We present ShareGNNs, which instantiate this principle within a simple encoder-decoder architecture, resulting in an MPNN with learnable adjacency and transformer-like connectivity. We show that their expressivity is at least as strong as the discriminative power of the chosen invariants, providing explicit control over the model complexity. Experiments on synthetic and real-world data, as well as subgraph counting tasks, demonstrate consistent improvements over standard MPNNs, competitive expressivity beyond the 1-WL test, and scalability to large datasets.

For agents

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

get_harvested_code_for_paper("2605.25750")
get_code_for_paper("2605.25750")
have("2605.25750")

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

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

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

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

Connect an agent — have() is free.