SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.16121 · NeurIPS · 2023

9 Parameters Is All You Need: Tiny Neural Networks for Particle Physics

Alexander Bogatskiy, Timothy Hoffman, Jan Offermann

arXiv · PDF · Open in the Atlas

Code that ran

17 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; 2 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 13 failures of our instrument; 0 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/2310.16121.json · badge: /api/ran/2310.16121.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
abogatskiy/PELICAN-nano canonical (classifier label)
classifier basis: census
16 ran · 0 no recorded run
abogatskiy/pelican-nano reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
SDMultiplicity Ran
ran, honoured the contract we drafted
abogatskiy/PELICAN-nano/src/models/lorentz_metric.py
code served (permissive licence) · get_code("d4336cb577511c71")
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 1, dtype family int, shape (2,) 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)

# Build a simple binary tree structure for jets
# Each jet node is represented as: ((left_subjet, right_subjet), (z, theta_sq))
# Leaf nodes are represented as integers (e.g., 0)

def build_jet_tree(depth=2):
    """Build a simple binary tree structure representing a jet."""
    if depth == 0:
        return 0  # Leaf node
    else:
        left = build_jet_tree(depth - 1)
        right = build_jet_tree(depth - 1)
        z = torch.rand(1).item() * 0.5  # z value between 0 and 0.5
        theta_sq = torch.rand(1).item() * 0.1  # theta_sq between 0 and 0.1
        return ((left, right), (z, theta_sq))

# Create two events, each with one jet
jet0 = build_jet_tree(depth=3)
jet1 = build_jet_tree(depth=2)

jetsbatch = [
    [jet0],  # Event 0 with jet0
    [jet1],  # Event 1 with jet1
]

ARGS = {
    'jetsbatch': jetsbatch,
    'zcut': 0.005,
    'thetacut': 0.0,
    'R0': 0.8,
    'beta': -1.0,
}
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 1, dtype family int, shape (2,) — shape (2,) 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
batch_stack Ran
ran, honoured the contract we drafted
abogatskiy/PELICAN-nano/src/dataloaders/collate.py
code served (permissive licence) · get_code("24e331d34e433ea7")
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 (2, 5, 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
import torch.nn

torch.manual_seed(0)

# Case 1: Regular tensor stacking (non-edge matrix)
# Create a list of 2D tensors with different lengths
tensor1 = torch.randn(3, 4)  # shape (3, 4)
tensor2 = torch.randn(5, 4)  # shape (5, 4)
props_regular = [tensor1, tensor2]

# Case 2: Edge matrix stacking
# Create a list of 3D tensors representing edge matrices
edge_tensor1 = torch.randn(2, 2, 3)  # shape (2, 2, 3) - 2 particles, edge features dim 3
edge_tensor2 = torch.randn(3, 3, 3)  # shape (3, 3, 3) - 3 particles, edge features dim 3
props_edge = [edge_tensor1, edge_tensor2]

# We'll test the non-edge case as the primary example
ARGS = {
    "props": props_regular,
    "edge_mat": False,
    "nobj": None,
}
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 (2, 5, 4) — shape (2, 5, 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
batch_stack_general Ran
ran, violated the contract we drafted
abogatskiy/PELICAN-nano/src/dataloaders/collate.py
code served (permissive licence) · get_code("10a3df87d5f15661")
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 1, dtype family int, shape (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
import numpy as np

torch.manual_seed(0)

# Test case 1: List of scalars (int/float)
props_scalars = [1, 2, 3, 4]

# Test case 2: List of numpy arrays
props_numpy = [np.array([[1, 2], [3, 4]]), np.array([[5, 6], [7, 8]])]

# Test case 3: List of 1D tensors with same shape
props_same_1d = [torch.randn(4), torch.randn(4)]

# Test case 4: List of 2D tensors with different first dim, same rest
props_padded_2d = [torch.randn(3, 4), torch.randn(5, 4)]

# Test case 5: List of 3D matrices with matching square dims
props_matrices = [
    torch.randn(2, 2, 4),
    torch.randn(3, 3, 4)
]

ARGS = {
    "props": props_scalars
}
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 Tensor, ndim 1, dtype family int, shape (4,) — shape (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
dot4 Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/models/lorentz_metric.py
code served (permissive licence) · get_code("694761f75d833a17")
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 1, dtype family float, shape (2,) 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 dot4 takes two parameters p1 and p2
# It performs element-wise multiplication, then computes:
# 2 * prod[..., 0] - prod.sum(dim=-1)
# This means p1 and p2 should be tensors with a last dimension

# Create two small tensors with shape (2, 4)
# batch size 2, last dimension 4
p1 = torch.randn(2, 4)
p2 = torch.randn(2, 4)

ARGS = {
    "p1": p1,
    "p2": p2,
}
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 1, dtype family float, shape (2,) — shape (2,) 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
drop_zeros Ran
ran, violated the contract we drafted
abogatskiy/PELICAN-nano/src/dataloaders/collate.py
code served (permissive licence) · get_code("722a984c73411427")
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 (2, 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)

# Create a tensor with shape (batch=2, features=4, extra_dim=3)
# This represents a padded dataset where we want to drop some zero columns
props = torch.randn(2, 4, 3)

# Create a boolean mask or indices for which features to keep
# to_keep should be indexable and used as props[:, to_keep, ...]
to_keep = torch.tensor([0, 2, 3])  # Keep features 0, 2, 3 (drop feature 1)

ARGS = {
    "props": props,
    "to_keep": to_keep,
}
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 (2, 3, 3) — shape (2, 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
expand_var_list Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
abogatskiy/pelican-nano/src/models/pelican_nano.py
code served (permissive licence) · get_code("d9fc2929e852c9fa")
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 list, ndim 1, 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
import numpy as np

# The function expects a list as input
# It checks if the input is a list type and returns it
# If not a list, it raises a ValueError

# Create a simple list to pass as the 'var' parameter
var_input = [1, 2, 3, 4, 5]

ARGS = {
    'var': var_input
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 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_activation_fn Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/layers/generic_layers.py
code served (permissive licence) · get_code("c3b4e5ac5f9963cc")
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 ReLU. 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 get_activation_fn takes a single parameter: activation (a string)
# It returns an nn.Module based on the activation name
# Let's test with a common activation function

ARGS = {
    'activation': 'relu'
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
initialize_datasets Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/dataloaders/utils.py
code served (permissive licence) · get_code("d71bfe5bc17f1e7d")
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
import numpy as np
import logging
import tempfile
import h5py
import os
from torch.utils.data import Dataset, ConcatDataset

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

torch.manual_seed(0)

class JetDataset(Dataset):
    def __init__(self, data, num_pts=None, shuffle=False, balance=True):
        self.data = data
        self.num_pts = num_pts
        self.shuffle = shuffle
        self.balance = balance
        
        first_key = list(data.keys())[0]
        self.length = data[first_key].shape[0]
        
        if num_pts is not None and num_pts != -1:
            self.length = min(num_pts, self.length)
    
    def __len__(self):
        return self.length
    
    def __getitem__(self, idx):
        return {key: val[idx] for key, val in self.data.items()}

class Args:
    def __init__(self):
        self.num_train = 4
        self.num_test = 2
        self.num_valid = 2

with tempfile.TemporaryDirectory() as tmpdir:
    train_file = os.path.join(tmpdir, 'train_001.h5')
    test_file = os.path.join(tmpdir, 'test_001.h5')
    valid_file = os.path.join(tmpdir, 'valid_001.h5')
    
    with h5py.File(train_file, 'w') as f:
        f.create_dataset('features', data=np.random.randn(4, 3))
        f.create_dataset('labels', data=np.random.randint(0, 2, (4, 1)))
    
    with h5py.File(test_file, 'w') as f:
        f.create_dataset('features', data=np.random.randn(2, 3))
        f.create_dataset('labels', data=np.random.randint(0, 2, (2, 1)))
    
    with h5py.File(valid_file, 'w') as f:
        f.create_dataset('features', data=np.random.randn(2, 3))
        f.create_dataset('labels', data=np.random.randint(0, 2, (2, 1)))
    
    ARGS = {
        'args': Args(),
        'datadir': tmpdir,
        'num_pts': None,
        'testfile': '',
        'balance': True
    }
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy, 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
masked_amax Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/layers/perm_equiv_layers.py
code served (permissive licence) · get_code("929d148f424ed441")
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 Tensor, ndim 1, dtype family float, shape (2,) 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:
# - x: used with torch.amax(x, dim=dim, keepdims=keepdims) -> needs to be a tensor
# - nobj: used with nobj.log().view([-1] + [1] * (len(x.shape) - 1)) 
#         -> needs .log() method and .view() method -> tensor
#         -> nobj.log() result is viewed to shape [-1] + [1]*(len(x.shape)-1)
#         -> if x is 3D after amax, nobj.log() should be 1D to reshape to [-1, 1, 1]

# Create x as a 3D tensor (batch=2, height=4, width=3)
x = torch.randn(2, 4, 3)

# Create nobj as a 1D tensor with 2 elements (matching batch dimension)
nobj = torch.tensor([1.0, 2.0])

ARGS = {
    "x": x,
    "nobj": nobj,
    "dim": None,
    "keepdims": False,
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
masked_amin Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/layers/perm_equiv_layers.py
code served (permissive licence) · get_code("05d2b345937f3224")
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 Tensor, ndim 2, dtype family float, shape (2, 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:
# - x: used with torch.amin(), needs to be a tensor
# - nobj: has .log() method, so it's a tensor
# - dim: optional dimension parameter
# - keepdims: boolean flag

# Create a small tensor for x (batch=2, features=4)
x = torch.randn(2, 4, 3)

# Create nobj as a tensor (needs .log() method)
# It gets reshaped to [-1] + [1] * (len(x.shape) - 1)
# After amin with keepdims=False, x will have shape (2, 3)
# So nobj needs to be broadcastable, typically a 1D tensor
nobj = torch.tensor([2.0, 3.0])

ARGS = {
    "x": x,
    "nobj": nobj,
    "dim": 1,
    "keepdims": False,
}
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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
masked_instance_norm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
abogatskiy/PELICAN-nano/src/layers/masked_instancenorm.py
code served (permissive licence) · get_code("f12ea3d97a516441")
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 4, dtype family float, shape (2, 4, 3, 5) 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)

# Build tensors for a 2D case (batch=2, channels=4, height=3, width=5)
batch_size = 2
channels = 4
height = 3
width = 5

# Input tensor: (batch, channels, height, width)
input_tensor = torch.randn(batch_size, channels, height, width)

# Mask tensor: same shape as input, binary values (0 or 1)
mask_tensor = torch.ones(batch_size, channels, height, width)
mask_tensor[0, 0, :, :] = 0  # mask out some values

# Weight and bias for affine transformation (per channel)
weight_tensor = torch.randn(channels)
bias_tensor = torch.randn(channels)

# Running mean and variance (per channel)
running_mean_tensor = torch.zeros(channels)
running_var_tensor = torch.ones(channels)

ARGS = {
    "input": input_tensor,
    "mask": mask_tensor,
    "weight": weight_tensor,
    "bias": bias_tensor,
    "running_mean": running_mean_tensor,
    "running_var": running_var_tensor,
    "use_input_stats": True,
    "momentum": 0.1,
    "eps": 1e-05,
}
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 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) 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
masked_mean Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/layers/perm_equiv_layers.py
code served (permissive licence) · get_code("306f4b58319c02bc")
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 Tensor, ndim 2, dtype family float, shape (2, 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)

# Construct arguments for masked_mean
# x: a tensor to be summed
# nobj: a tensor of object counts (used for normalization)
# dim: dimension(s) to sum over
# keepdims: whether to keep dimensions

x = torch.randn(2, 4, 3)  # batch=2, feature=4, spatial=3
nobj = torch.tensor([2, 2])  # object counts for each batch element
dim = 1  # sum over feature dimension
keepdims = False

ARGS = {
    "x": x,
    "nobj": nobj,
    "dim": dim,
    "keepdims": keepdims,
}
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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
metrics Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/models/metrics_classifier.py
code served (permissive licence) · get_code("816d22ea559f0e81")
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
import torch.nn as nn
import numpy as np
from pathlib import Path
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for file output
temp_dir = tempfile.gettempdir()
prefix = os.path.join(temp_dir, "test_metrics")

# Build predict tensor: batch_size=2, num_classes=3
# Shape (2, 3) - logits for binary classification (2 samples, 2 classes minimum for AUCScore)
predict = torch.randn(2, 2)

# Build targets tensor: batch_size=2, with mixed labels (0 and 1)
targets = torch.tensor([0, 1], dtype=torch.float32)

# Build loss function - CrossEntropyLoss expects long targets
loss_fn = nn.CrossEntropyLoss()

# Define prefix for file saving
prefix_str = prefix

# Define logger as None (optional parameter)
logger = None

ARGS = {
    "predict": predict,
    "targets": targets,
    "loss_fn": loss_fn,
    "prefix": prefix_str,
    "logger": logger,
}
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 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
minibatch_metrics Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/models/metrics_classifier.py
code served (permissive licence) · get_code("1ca700b9f75a9219")
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
from sklearn.metrics import confusion_matrix, roc_auc_score, roc_curve

torch.manual_seed(0)

# Create predict: logits for binary classification with batch size 2
predict = torch.randn(2, 2)  # batch_size=2, num_classes=2

# Create targets: binary labels
targets = torch.tensor([0, 1])

# Create loss: a scalar float value
loss = 0.5

ARGS = {
    "predict": predict,
    "targets": targets,
    "loss": loss
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, 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
minibatch_metrics_string Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/models/metrics_classifier.py
code served (permissive licence) · get_code("c90a0d9460b3c822")
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 numpy as np

torch.manual_seed(0)

# Construct small tensors for a binary classification task
batch_size = 2
num_classes = 2

# Predictions: logits for binary classification (batch_size x num_classes)
predict = torch.randn(batch_size, num_classes)

# Targets: binary labels (0 or 1)
targets = torch.tensor([0, 1], dtype=torch.long)

# Loss function
loss_fn = torch.nn.CrossEntropyLoss(reduction='mean')

# Prefix for file output
prefix = '/tmp/test_metrics'

# Logger (optional, can be None)
logger = None

# Test the metrics function to generate sample output
from sklearn.metrics import confusion_matrix, roc_auc_score, roc_curve

def Accuracy(predict, targets):
    return (predict.argmax(dim=1) == targets.long()).float().mean()

def AUCScore(predict, targets):
    if torch.equal(targets, torch.ones_like(targets)) or torch.equal(targets, torch.zeros_like(targets)):
        return 0
    else:
        return roc_auc_score(targets.numpy(), predict[:, 1].detach().numpy())

def BR(curve, at_eS):
    idx = np.argmin(np.abs(curve[1] - at_eS))
    if curve[0][idx] > 0.0:
        eB, eS = (curve[0][idx], curve[1][idx])
    else:
        idx = np.where(curve[0] > 0)[0]
        if len(idx) > 0:
            idx = idx[0]
            eB, eS = (curve[0][idx], curve[1][idx])
        else:
            eB, eS = (1.0, 1.0)
    return (eB, eS)

def ROC(predict, targets):
    if torch.equal(targets, torch.ones_like(targets)) or torch.equal(targets, torch.zeros_like(targets)):
        return (None, 0.0, 0.0, 0.0, 0.0)
    else:
        curve = roc_curve(targets.numpy(), predict[:, 1].detach().numpy())
        eB03, eS03 = BR(curve, at_eS=0.3)
        eB05, eS05 = BR(curve, at_eS=0.5)
        return (curve, eB03, eS03, eB05, eS05)

# Generate metrics to pass to minibatch_metrics_string
loss = loss_fn(predict, targets).item()
accuracy = Accuracy(predict, targets).item()
auc_score = AUCScore(predict, targets)

sample_metrics = (loss, accuracy, auc_score)

ARGS = {
    'metrics': sample_metrics
}
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 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
normsq4 Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/models/lorentz_metric.py
code served (permissive licence) · get_code("e40b68c9f5ebd17b")
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 1, dtype family float, shape (2,) 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 normsq4 takes a tensor p and performs operations on it
# It uses torch.pow and indexing operations on the last dimension
# p needs to be a tensor with at least 1 dimension (the last dimension is accessed)

# Create a small tensor with batch size 2 and feature dimension 4
p = torch.randn(2, 4)

ARGS = {
    "p": p
}
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 1, dtype family float, shape (2,) — shape (2,) 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
silu Ran
ran; our contract draft was wrong, not the code
abogatskiy/PELICAN-nano/src/layers/generic_layers.py
code served (permissive licence) · get_code("f1b30721af3f5563")
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)

ARGS = {
    "input": torch.randn(2, 4)
}
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

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, 10 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 3 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.

FunctionAlso present inEarliest-datedOthers named
batch_stack 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
batch_stack_general 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
dot4 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
drop_zeros 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
expand_var_list 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
get_activation_fn 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics
masked_amax 1 other paper
1 later
2505.20280 (2025-05)
Lorentz Local Canonicalization: How to Make Any Network Lorentz-Equivariant
masked_amin 1 other paper
1 later
2505.20280 (2025-05)
Lorentz Local Canonicalization: How to Make Any Network Lorentz-Equivariant
masked_mean 1 other paper
1 later
2505.20280 (2025-05)
Lorentz Local Canonicalization: How to Make Any Network Lorentz-Equivariant
silu 1 other paper
1 dated earlier
2211.00454 (2022-11)
PELICAN: Permutation Equivariant and Lorentz Invariant or Covariant Aggregator Network for Particle Physics

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

As particle accelerators increase their collision rates, and deep learning solutions prove their viability, there is a growing need for lightweight and fast neural network architectures for low-latency tasks such as triggering. We examine the potential of one recent Lorentz-and permutation-symmetric architecture, PELICAN, and present its instances with as few as 19 trainable parameters that outperform generic architectures with tens of thousands of parameters when compared on the binary classification task of top quark jet tagging.

For agents

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

get_harvested_code_for_paper("2310.16121")
get_code_for_paper("2310.16121")
have("2310.16121")

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

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

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

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

Connect an agent — have() is free.