SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.09912 · NeurIPS · 2022

Do graph neural networks learn traditional jet substructure?

Raghav Kansal, Javier Duarte, Farouk Mokhtar

arXiv · PDF · Open in the Atlas

Code that ran

3 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; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 4 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/2211.09912.json · badge: /api/ran/2211.09912.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
farakiko/xai4hep canonical (classifier label)
classifier basis not recorded on the link
3 ran · 4 no recorded run
FunctionStatusWhere it lives
load_data Ran
ran on a synthesized input
farakiko/xai4hep/xai4hep/particlenet/utils.py
code served (permissive licence) · get_code("af357a8b2afbb169")
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 3, 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory structure to mock the dataset
tmpdir = tempfile.mkdtemp()
dataset_path = tmpdir

# Create the directory structure
os.makedirs(f'{dataset_path}/train/processed', exist_ok=True)
os.makedirs(f'{dataset_path}/test/processed', exist_ok=True)

# Create mock data files
for i in range(2):
    data_train = [torch.randn(4, 3) for _ in range(10)]
    torch.save(data_train, f'{dataset_path}/train/processed/data_{i}.pt')
    
    data_test = [torch.randn(4, 3) for _ in range(10)]
    torch.save(data_test, f'{dataset_path}/test/processed/data_{i}.pt')

ARGS = {
    'dataset_path': dataset_path,
    'flag': 'train',
    'n_files': 2,
    'quick': False
}
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 3, 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
train Ran
ran on a synthesized input
farakiko/xai4hep/xai4hep/particlenet/run_training.py
code served (permissive licence) · get_code("cf3c8bc0d441f955")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import time

torch.manual_seed(0)

# Define a simple model that returns predictions and targets
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, batch):
        # batch is a tensor of shape (batch_size, 4)
        # Return preds and targets
        preds = self.linear(batch)
        targets = torch.randint(0, 2, (batch.shape[0],)).float()
        return preds, targets

# Create a tiny data loader (list of batches)
# Each batch is a tensor of shape (2, 4)
loader = [
    torch.randn(2, 4),
    torch.randn(2, 4),
]

# Create model
model = SimpleModel()

# Create optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Device
device = 'cpu'

# Multi-GPU flag
multi_gpu = False

ARGS = {
    'multi_gpu': multi_gpu,
    'device': device,
    'model': model,
    'loader': loader,
    'optimizer': optimizer,
}
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 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
validation_run Ran
ran on a synthesized input
farakiko/xai4hep/xai4hep/particlenet/run_training.py
code served (permissive licence) · get_code("b2ee88f5d2fed3e0")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# Define a minimal model that satisfies the function's usage
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, batch):
        # batch should be a tensor, model returns (preds, targets)
        # preds: predictions for sigmoid + BCELoss
        # targets: ground truth labels
        preds = self.linear(batch[:, :4])
        targets = batch[:, 4:5]
        return preds, targets

# Create a minimal model
model = SimpleModel()

# Create a minimal loader (list of batches)
# Each batch needs to contain both features and targets
# Features: 4 dims, Targets: 1 dim
loader = [
    torch.cat([torch.randn(2, 4), torch.randint(0, 2, (2, 1)).float()], dim=1),
    torch.cat([torch.randn(2, 4), torch.randint(0, 2, (2, 1)).float()], dim=1),
]

# Set device to CPU
device = torch.device('cpu')

# multi_gpu flag (set to False since we're on CPU)
multi_gpu = False

ARGS = {
    'multi_gpu': multi_gpu,
    'device': device,
    'model': model,
    'loader': loader,
}
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 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
get_subjets Not yet run
unverified (harvested, no recorded run)
farakiko/xai4hep/xai4hep/particlenet/fastjet_utils.py
code served (permissive licence) · get_code("d8cd0de03b657cb5")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
farakiko/xai4hep/xai4hep/run_lrp_mlpf.py
code served (permissive licence) · get_code("abeff86539844fbf")
How it ran

no invocation recorded.

make_dr_Mij_plots Not yet run
unverified (harvested, no recorded run)
farakiko/xai4hep/xai4hep/particlenet/utils.py
code served (permissive licence) · get_code("5d1dd4cdc703a7a1")
How it ran

no invocation recorded.

quick_train Not yet run
unverified (harvested, no recorded run)
farakiko/xai4hep/xai4hep/run_lrp_fcn.py
code served (permissive licence) · get_code("0748301ac01f0a2a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

At the CERN LHC, the task of jet tagging, whose goal is to infer the origin of a jet given a set of final-state particles, is dominated by machine learning methods. Graph neural networks have been used to address this task by treating jets as point clouds with underlying, learnable, edge connections between the particles inside. We explore the decision-making process for one such state-of-the-art network, ParticleNet, by looking for relevant edge connections identified using the layerwiserelevance propagation technique. As the model is trained, we observe changes in the distribution of relevant edges connecting different intermediate clusters of particles, known as subjets. The resulting distribution of subjet connections is different for signal jets originating from top quarks, whose subjets typically correspond to its three decay products, and background jets originating from lighter quarks and gluons. This behavior indicates that the model is using traditional jet substructure observables, such as the number of prongs-energetic particle clusters-within a jet, when identifying jets.

For agents

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

get_harvested_code_for_paper("2211.09912")
get_code_for_paper("2211.09912")
have("2211.09912")

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

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

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

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

Connect an agent — have() is free.