SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.07106 · 2024

Covered Forest: Fine-grained generalization analysis of graph neural networks

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 2 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/2412.07106.json · badge: /api/ran/2412.07106.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
benfinkelshtein/CoveredForests canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
TMD Ran
ran on a synthesized input
benfinkelshtein/CoveredForests/utils/tmd.py
code served (permissive licence) · get_code("5a204f951431b873")
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
import torch_geometric
from torch_geometric.data import Data

torch.manual_seed(0)

# Create two small torch_geometric graphs
# Graph 1: 3 nodes, some edges
node_features_1 = torch.randn(3, 4)  # 3 nodes, 4 features
edge_index_1 = torch.tensor([
    [0, 1, 2],
    [1, 2, 0]
], dtype=torch.long)
g1 = Data(x=node_features_1, edge_index=edge_index_1)

# Graph 2: 2 nodes, some edges
node_features_2 = torch.randn(2, 4)  # 2 nodes, 4 features
edge_index_2 = torch.tensor([
    [0, 1],
    [1, 0]
], dtype=torch.long)
g2 = Data(x=node_features_2, edge_index=edge_index_2)

# Weighting constant - can be a float or list of floats
w = 0.5

# Depth of computation trees
L = 4

ARGS = {
    "g1": g1,
    "g2": g2,
    "w": w,
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ot, torch, torch_geometric — 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
generate_per_n_disjoint_paths Ran
ran, honoured the contract we drafted
benfinkelshtein/CoveredForests/utils/graph_classes.py
code served (permissive licence) · get_code("91114276dd0cec20")
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 2, 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 numpy as np
import networkx as nx
from itertools import combinations
from networkx.classes.graph import Graph
from typing import List, Optional, Dict

# Construct arguments for generate_per_n_disjoint_paths
ARGS = {
    "n": 5,
    "k": 3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — 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_neighbors Ran
ran; our contract draft was wrong, not the code
benfinkelshtein/CoveredForests/utils/tmd.py
code served (permissive licence) · get_code("e7914319fc8435a7")
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
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a simple torch_geometric graph with edge_index
# edge_index is a 2 x num_edges tensor where:
# - first row contains source node indices
# - second row contains target node indices

edge_index = torch.tensor([
    [0, 1, 2, 0],  # source nodes
    [1, 2, 0, 2]   # target nodes
], dtype=torch.long)

# Create a minimal torch_geometric Data object
g = Data(edge_index=edge_index, num_nodes=3)

ARGS = {
    "g": g
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
nx_add_features Ran
ran; our contract draft was wrong, not the code
benfinkelshtein/CoveredForests/utils/helpers.py
code served (permissive licence) · get_code("5741a9f02841f84b")
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 Graph. 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 networkx as nx

torch.manual_seed(0)

# Create a small networkx graph with 3 nodes
nx_graph = nx.Graph()
nx_graph.add_nodes_from([0, 1, 2])
nx_graph.add_edges_from([(0, 1), (1, 2)])

# Create a small feature tensor (3 nodes, 4 features)
features = torch.randn(3, 4)

ARGS = {
    'nx_graph': nx_graph,
    'features': features
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
solve_set_cover Ran
ran, honoured the contract we drafted
benfinkelshtein/CoveredForests/utils/set_cover.py
code served (permissive licence) · get_code("7067f2ae2cf922ca")
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 float64, ndim 0, 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 numpy as np
import cvxpy as cp

# Construct a small distance matrix (5 points, with 4 potential centers/sets)
# Shape: (5, 4) - 5 universe elements (rows), 4 potential sets (columns)
dist_mat = np.array([
    [0.1, 2.5, 1.2, 3.0],
    [0.5, 2.1, 1.8, 2.9],
    [2.2, 0.3, 2.8, 1.5],
    [3.1, 1.9, 0.2, 2.0],
    [2.8, 3.2, 1.1, 0.4]
], dtype=float)

# Set radius such that some coverage is needed
radius = 1.5

ARGS = {
    "dist_mat": dist_mat,
    "radius": radius
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cvxpy, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
test Not yet run
unverified (harvested, no recorded run)
benfinkelshtein/CoveredForests/utils/trainer.py
code served (permissive licence) · get_code("c691d4509645b00a")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
benfinkelshtein/CoveredForests/utils/trainer.py
code served (permissive licence) · get_code("184919a11c57d04d")
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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
get_neighbors 1 other paper
1 dated earlier
2210.01906 (2022-10)
Tree Mover's Distance: Bridging Graph Metrics and Stability of Graph Neural Networks

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

The expressive power of message-passing graph neural networks (MPNNs) is reasonably well understood, primarily through combinatorial techniques from graph isomorphism testing. However, MPNNs' generalization abilities -- making meaningful predictions beyond the training set -- remain less explored. Current generalization analyses often overlook graph structure, limit the focus to specific aggregation functions, and assume the impractical, hard-to-optimize $0$-$1$ loss function. Here, we extend recent advances in graph similarity theory to assess the influence of graph structure, aggregation, and loss functions on MPNNs' generalization abilities. Our empirical study supports our theoretical insights, improving our understanding of MPNNs' generalization properties.

For agents

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

get_harvested_code_for_paper("2412.07106")
get_code_for_paper("2412.07106")
have("2412.07106")

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

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

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

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

Connect an agent — have() is free.