SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.03824 · NeurIPS · 2025

Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks

Henry Hoffmann, Rebecca Willett, Ryien Hosseini, Filippo Simini, Venkatram Vishwanath

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 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; 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/2511.03824.json · badge: /api/ran/2511.03824.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
ryienh/sketched-random-features canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
bern_filter Ran
ran; our contract draft was wrong, not the code
ryienh/sketched-random-features/experiments/molecules-pe/src/pe.py
code served (permissive licence) · get_code("18af3197c6356a2f")
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 3, dtype family float, shape (4, 3, 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 math

torch.manual_seed(0)

# S is used with:
# - .shape[0] to get first dimension
# - .device to get device
# - matrix operations (linalg.matrix_power, multiplication with eye)
# So S should be a square tensor

# W is used with:
# - .unsqueeze(-1) to add a dimension
# - matrix multiplication (@) with L
# So W should be a 2D tensor compatible with matrix ops

# k is used with:
# - range(1, k) for iteration
# - math.comb(k, i) for binomial coefficient
# So k should be a small positive integer

# Create S as a 4x4 square matrix (symmetric for matrix power operations)
S = torch.randn(4, 4)
S = (S + S.T) / 2  # make symmetric

# Create W as a 4x3 matrix (different dimensions for clarity)
W = torch.randn(4, 3)

# k as a small positive integer
k = 3

ARGS = {
    "S": S,
    "W": W,
    "k": k
}
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 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 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
compute_dirichlet_energy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ryienh/sketched-random-features/srf/oversmoothing.py
code served (permissive licence) · get_code("6f23a3b58e8558cd")
How it ran

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

import torch
import torch_geometric
from torch_geometric.utils import k_hop_subgraph

torch.manual_seed(0)

# Create node embeddings: 4 nodes, 3-dimensional embeddings
node_embeddings = torch.randn(4, 3, dtype=torch.float32)

# Create edge_index for a simple graph
# Connect nodes in a chain: 0-1, 1-2, 2-3
edge_index = torch.tensor([
    [0, 1, 2],
    [1, 2, 3]
], dtype=torch.long)

ARGS = {
    "node_embeddings": node_embeddings,
    "edge_index": edge_index
}
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 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
create_grid_dataset Ran
ran; our contract draft was wrong, not the code
ryienh/sketched-random-features/srf/oversmoothing.py
code served (permissive licence) · get_code("9b53dc1ba08e4915")
How it ran

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

import torch
import torch_geometric

torch.manual_seed(0)

ARGS = {
    "grid_size": 4,
    "feat_dim": 3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter Ran
ran; our contract draft was wrong, not the code
ryienh/sketched-random-features/experiments/molecules-pe/src/pe.py
code served (permissive licence) · get_code("0bb4e54d5a247147")
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 3, dtype family float, shape (4, 3, 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

torch.manual_seed(0)

# Analyze the function:
# - S is used with @ operator (matrix multiplication), so it should be a square matrix
# - W is used with @ operator and unsqueeze, so it should be a vector or matrix
# - k is used in range(k-1), so it should be an integer >= 1
# - The function performs k iterations of S @ out, building a list of results

# Create small tensors with distinct dimensions
# Let S be a 4x4 matrix (square for matrix multiplication)
S = torch.randn(4, 4)

# Let W be a 4x3 matrix (different dimensions to distinguish from S)
W = torch.randn(4, 3)

# k is the number of iterations
k = 3

ARGS = {
    "S": S,
    "W": W,
    "k": k
}
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 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 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
update_cfg Ran
ran; our contract draft was wrong, not the code
ryienh/sketched-random-features/experiments/reddit-pe/core/config.py
code served (permissive licence) · get_code("38df535e6661ac1e")
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
import tempfile

def set_cfg(cfg):
    cfg.dataset = 'ZINC'
    cfg.num_workers = 8
    cfg.device = 0
    cfg.handtune = ''
    cfg.seed = None
    cfg.downsample = False
    cfg.version = 'final'
    cfg.task = -1
    cfg.wandb = False
    cfg.run_name = None
    cfg.project_name = None
    cfg.train = CN()
    cfg.train.batch_size = 128
    cfg.train.epochs = 100
    cfg.train.runs = 3
    cfg.train.lr = 0.001
    cfg.train.lr_patience = 50
    cfg.train.lr_decay = 0.5
    cfg.train.wd = 0.0
    cfg.train.dropout = 0.0
    cfg.model = CN()
    cfg.model.hidden_size = 128
    cfg.model.num_layers = 4
    cfg.model.num_layers_pe = 4
    cfg.model.pool = 'add'
    cfg.model.hidden_size_3d = 128
    cfg.model.n_out = 1
    cfg.num_samples = 30
    cfg.test_samples = 200
    cfg.runs = None
    cfg.model.method = 'override_me'
    cfg.model.sketch_type = 'override_me'
    cfg.sketch_width = 32
    cfg.sketch_k = 16
    return cfg

def update_cfg(cfg, args_str=None):
    parser = argparse.ArgumentParser()
    parser.add_argument('--config', default='', metavar='FILE', help='Path to config file')
    parser.add_argument('--gpu_id', default='1')
    parser.add_argument('opts', default=[], nargs=argparse.REMAINDER, help='Modify config options using the command-line')
    if isinstance(args_str, str):
        args = parser.parse_args(args_str.split())
    else:
        args = parser.parse_args([])
    cfg = cfg.clone()
    if os.path.isfile(args.config):
        cfg.merge_from_file(args.config)
    cfg.merge_from_list(args.opts)
    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
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
evaluate_model Not yet run
unverified (harvested, no recorded run)
ryienh/sketched-random-features/srf/oversmoothing.py
code served (permissive licence) · get_code("e430efc7cb3c7a13")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Graph Neural Networks learn on graph-structured data by iteratively aggregating local neighborhood information. While this local message passing paradigm imparts a powerful inductive bias and exploits graph sparsity, it also yields three key challenges: (i) oversquashing of long-range information, (ii) oversmoothing of node representations, and (iii) limited expressive power. In this work we inject randomized global embeddings of node features, which we term Sketched Random Features, into standard GNNs, enabling them to efficiently capture long-range dependencies. The embeddings are unique, distancesensitive, and topology-agnostic-properties which we analytically and empirically show alleviate the aforementioned limitations when injected into GNNs. Experimental results on real-world graph learning tasks confirm that this strategy consistently improves performance over baseline GNNs, offering both a standalone solution and a complementary enhancement to existing techniques such as graph positional encodings. Our source code is available at https://github.com/ryienh/sketched-random-features.

For agents

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

get_harvested_code_for_paper("2511.03824")
get_code_for_paper("2511.03824")
have("2511.03824")

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

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

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

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

Connect an agent — have() is free.