SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.00810 · 2021

Punzi-loss: A non-differentiable metric approximation for sensitivity optimisation in the search for new particles

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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 5 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2110.00810.json · badge: /api/ran/2110.00810.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
feichtip/punzinet canonical (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
FunctionStatusWhere it lives
bin_widths Ran
ran on a synthesized input
feichtip/punzinet/src/punzinet/prepare.py
code served (permissive licence) · get_code("ab9180d6fece88b8")
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 DataFrame. 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 pandas as pd
import io
import tempfile
import os

# Create a temporary TSV file with sample data
tsv_data = "m\tw\te\n1\t0.5\t0.1\n2\t0.7\t0.2\n3\t0.9\t0.15\n"

# Write to a temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.tsv', delete=False)
temp_file.write(tsv_data)
temp_file.close()

ARGS = {
    'file': temp_file.name
}

# Clean up after defining ARGS
import atexit
atexit.register(lambda: os.unlink(temp_file.name))
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
catlist Ran
ran on a synthesized input
feichtip/punzinet/src/punzinet/plot.py
code served (permissive licence) · get_code("86aeef984faeb0e6")
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 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 pandas as pd
import numpy as np

# Create a simple DataFrame with category and variable columns
df = pd.DataFrame({
    'category': ['A', 'B', 'C', 'A', 'B', 'C'],
    'var': [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
})

# Define the arguments for catlist function
ARGS = {
    'df': df,
    'var': 'var',
    'cats': ['A', 'B', 'C'],
    'scale': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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 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
check_type Ran
ran on a synthesized input
feichtip/punzinet/src/punzinet/fom.py
code served (permissive licence) · get_code("4b0ea1c0693e9e94")
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 (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
import pandas as pd

torch.manual_seed(0)

# The function check_type takes a single parameter 'input'
# and returns a torch tensor based on the input type:
# - pd.Series -> convert via numpy
# - np.ndarray -> convert directly
# - anything else -> return as-is

# Create test inputs for different branches
series_input = pd.Series([1.0, 2.0, 3.0, 4.0])
ndarray_input = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
tensor_input = torch.randn(2, 4)
other_input = "string_input"

# We'll test with a pandas Series as the primary input
ARGS = {
    "input": series_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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 (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
punzi_sensitivity Ran
ran on a synthesized input
feichtip/punzinet/src/punzinet/fom.py
code served (permissive licence) · get_code("451ad4c107e5f287")
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
import numpy as np

torch.manual_seed(0)

# sig_eff is used in: sig_eff[sig_eff == 0] = 1e-06 and division by sig_eff
# This means it needs to be a tensor that supports indexing and comparison
# bkg_eve is used in: sqrt(bkg_eve) operations
# Both should be small tensors

sig_eff = torch.tensor([[0.5, 0.0, 0.3, 0.8],
                        [0.1, 0.2, 0.0, 0.6]], dtype=torch.float32)

bkg_eve = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                        [0.5, 1.5, 2.5, 3.5]], dtype=torch.float32)

a = 3
b = 1.28155
lumi = 50
numpy_flag = False

ARGS = {
    "sig_eff": sig_eff,
    "bkg_eve": bkg_eve,
    "a": a,
    "b": b,
    "lumi": lumi,
    "numpy": numpy_flag
}
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 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
punziloss Ran
ran on a synthesized input
feichtip/punzinet/src/punzinet/fom.py
code served (permissive licence) · get_code("6cdb0deef2be2f23")
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 (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 numpy as np
import pandas as pd
import scipy.sparse as sp

torch.manual_seed(0)

# Create small sparse matrices
# sig_sparse: sparse matrix that will be multiplied with outputs
# Shape: (n_features, n_samples) @ (n_samples, 1) -> (n_features, 1)
sig_sparse = sp.csr_matrix(np.array([[1.0, 0.5], [0.3, 0.8], [0.2, 0.6]]), dtype=np.float32)
sig_sparse = torch.from_numpy(sig_sparse.toarray())

# bkg_sparse: sparse matrix for background
bkg_sparse = sp.csr_matrix(np.array([[0.4, 0.9], [0.7, 0.2], [0.5, 0.3]]), dtype=np.float32)
bkg_sparse = torch.from_numpy(bkg_sparse.toarray())

# outputs: model predictions, small tensor
outputs = torch.randn(2, dtype=torch.float32)

# weights: can be pandas Series, numpy array, or tensor
weights = np.array([0.5, 1.5], dtype=np.float32)

# n_gen_signal: total number of generated signal events
n_gen_signal = 1000

# target_lumi: target luminosity
target_lumi = 50

# scaling: scaling factor
scaling = 1

ARGS = {
    'sig_sparse': sig_sparse,
    'bkg_sparse': bkg_sparse,
    'outputs': outputs,
    'weights': weights,
    'n_gen_signal': n_gen_signal,
    'target_lumi': target_lumi,
    'scaling': scaling
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy, 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 (3,) — shape (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

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

We present the novel implementation of a non-differentiable metric approximation and a corresponding loss-scheduling aimed at the search for new particles of unknown mass in high energy physics experiments. We call the loss-scheduling, based on the minimisation of a figure-of-merit related function typical of particle physics, a Punzi-loss function, and the neural network that utilises this loss function a Punzi-net. We show that the Punzi-net outperforms standard multivariate analysis techniques and generalises well to mass hypotheses for which it was not trained. This is achieved by training a single classifier that provides a coherent and optimal classification of all signal hypotheses over the whole search space. Our result constitutes a complementary approach to fully differentiable analyses in particle physics. We implemented this work using PyTorch and provide users full access to a public repository containing all the codes and a training example.

For agents

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

get_harvested_code_for_paper("2110.00810")
get_code_for_paper("2110.00810")
have("2110.00810")

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

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

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

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

Connect an agent — have() is free.