SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.10295 · 2022

Evaluating generative models in high energy physics

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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 8 have no contract verdict; 1 failure 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/2211.10295.json · badge: /api/ran/2211.10295.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
rkansal47/MPGAN canonical (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
jet-net/jetnet canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
augment Ran
ran on a synthesized input
rkansal47/MPGAN/mpgan/augment.py
code served (permissive licence) · get_code("967cac1f884cedc4")
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
import numpy as np

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.device = 'cpu'
        self.num_hits = 3
        self.translate_ratio = 0.1
        self.scale_sd = 0.2
        self.aug_r90 = True
        self.aug_f = True
        self.aug_t = True
        self.aug_s = True

args = Args()

# Create sample data: batch_size=2, num_hits=3, coordinates=3 (x, y, z)
X = torch.randn(2, 3, 3)

# Mixing probability
p = 0.5

ARGS = {
    'args': args,
    'X': X,
    'p': p
}
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 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
get_gen_noise Ran
ran on a synthesized input
rkansal47/MPGAN/train_mnist.py
code served (permissive licence) · get_code("da3d543e3b015c7a")
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. 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 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.distributions.normal import Normal

torch.manual_seed(0)

# Build model_args dict with all required keys for different model types
model_args = {
    'lfc': False,
    'lfc_latent_size': 5,
    'latent_node_size': 6,
    'mask_learn_sep': False,
    'embed_dim': 7,
    'latent_dim': 8,
    'treegang_features': [9, 10],
    'pcgan_latent_dim': 11,
    'sample_points': True,
    'pcgan_z2_dim': 12,
}

ARGS = {
    'model_args': model_args,
    'num_samples': 2,
    'num_particles': 3,
    'model': 'mpgan',
    'device': 'cpu',
    'noise_std': 0.2,
}
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 tuple — a tuple 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
init_model_dirs Ran
ran on a synthesized input
rkansal47/MPGAN/setup_training.py
code served (permissive licence) · get_code("efa4637b9bbdee98")
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 objectview. 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 os
import tempfile
from os import listdir

class objectview(object):
    """converts a dict into an object"""
    def __init__(self, d):
        self.__dict__ = d

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create the args dict with all required parameters
ARGS = {
    'args': objectview({
        'dir_path': temp_dir,
        'name': 'test_model',
        'load_model': False,
        'override_load_check': False
    })
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type objectview — a objectview output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a objectview 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
init_project_dirs Ran
ran on a synthesized input
rkansal47/MPGAN/setup_training.py
code served (permissive licence) · get_code("41947e559b23deab")
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 Args. 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 os
import pathlib
from unittest.mock import MagicMock

class Args:
    def __init__(self):
        self.datasets_path = ''
        self.outputs_path = ''
        self.n = False
        self.dataset = 'jets'
        self.dir_path = ''
        self.lx = False

ARGS = {
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
l2normalize Ran
ran; our contract draft was wrong, not the code
rkansal47/MPGAN/mpgan/spectral_normalization.py
pointer only (licence: MIT); the stored copy get_code serves, from xxxliu95/RA_FA_Cardiac, is pointer only (licence: NONE) · get_code("bedff51745d2cf84")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xxxliu95/RA_FA_Cardiac, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mask_manual Ran
ran on a synthesized input
rkansal47/MPGAN/mpgan/mask_utils.py
code served (permissive licence) · get_code("61ec0d308dc1c0a0")
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, 4, 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 logging

torch.manual_seed(0)

# Set up logging to avoid issues
logging.basicConfig(level=logging.DEBUG)

# Create a minimal args object with required attributes
class Args:
    def __init__(self):
        self.mask_real_only = False
        self.mask_exp = False
        self.device = 'cpu'

args = Args()

# Create gen_data tensor: shape (batch=2, particles=4, features=3)
# The function expects gen_data[:, :, 2] to be pT values
gen_data = torch.tensor([
    [[1.0, 2.0, 5.0], [1.5, 2.5, 3.0], [2.0, 3.0, 7.0], [2.5, 3.5, 1.0]],
    [[1.2, 2.2, 6.0], [1.7, 2.7, 2.0], [2.2, 3.2, 8.0], [2.7, 3.7, 0.5]]
], dtype=torch.float32)

# pt_cutoff value
pt_cutoff = 4.0

ARGS = {
    'args': args,
    'gen_data': gen_data,
    'pt_cutoff': pt_cutoff
}
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, 4, 4) — shape (2, 4, 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
rand_flip Ran
ran on a synthesized input
rkansal47/MPGAN/mpgan/augment.py
code served (permissive licence) · get_code("afe8c4bee4c1b956")
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)

class Args:
    def __init__(self):
        self.device = 'cpu'
        self.num_hits = 3

X = torch.randn(2, 3, 3)

ARGS = {
    'args': Args(),
    'X': X
}
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
rand_mix Ran
ran on a synthesized input
rkansal47/MPGAN/mpgan/augment.py
code served (permissive licence) · get_code("bf08a7d9e640f1da")
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, 1, 1) 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 minimal args object with a device attribute
class Args:
    def __init__(self):
        self.device = 'cpu'

args = Args()

# Create two tensors with matching batch sizes (batch_size=2) and feature dimensions
# Using shape (2, 1, 1) to match what the function expects for mixing
X1 = torch.randn(2, 1, 1)
X2 = torch.randn(2, 1, 1)

# p is a probability parameter (float between 0 and 1)
p = 0.7

ARGS = {
    'args': args,
    'X1': X1,
    'X2': X2,
    '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 3, dtype family float, shape (2, 1, 1) — shape (2, 1, 1) 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
setup_losses Ran
ran on a synthesized input
rkansal47/MPGAN/train_mnist.py
code served (permissive licence) · get_code("6f168d1cadcbd744")
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. 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 numpy as np
import logging
from unittest.mock import patch, MagicMock
import tempfile
import os

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
losses_dir = os.path.join(temp_dir, 'losses')
outs_dir = os.path.join(temp_dir, 'outs')
os.makedirs(losses_dir, exist_ok=True)
os.makedirs(outs_dir, exist_ok=True)

# Create a minimal args object
class Args:
    def __init__(self):
        self.gp = True
        self.fpnd = True
        self.load_model = False
        self.losses_path = losses_dir
        self.outs_path = outs_dir
        self.start_epoch = 0
        self.save_epochs = 1

ARGS = {
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
process_args Not yet run
unverified (harvested, no recorded run)
rkansal47/MPGAN/setup_training.py
code served (permissive licence) · get_code("835caaadff00a915")
How it ran

no invocation recorded.

w1p Not yet run
unverified (harvested, no recorded run)
jet-net/jetnet/jetnet/evaluation/gen_metrics.py
code served (permissive licence) · get_code("4919d5ada22da86a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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, 1 later) and 10 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
l2normalize 27 other papers
16 dated earlier, 9 later, 2 same year, order not determinable · 2 only as an assembly brick
1703.09452 (2017-03)
SEGAN: Speech Enhancement Generative Adversarial Network
1802.05957 (2018-02)
Spectral Normalization for Generative Adversarial Networks
1806.03589 (2018-06)
Free-Form Image Inpainting with Gated Convolution
and 24 more not named here

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

There has been a recent explosion in research into machine-learning-based generative modeling to tackle computational challenges for simulations in high energy physics (HEP). In order to use such alternative simulators in practice, we need well-defined metrics to compare different generative models and evaluate their discrepancy from the true distributions. We present the first systematic review and investigation into evaluation metrics and their sensitivity to failure modes of generative models, using the framework of two-sample goodness-of-fit testing, and their relevance and viability for HEP. Inspired by previous work in both physics and computer vision, we propose two new metrics, the Fréchet and kernel physics distances (FPD and KPD, respectively), and perform a variety of experiments measuring their performance on simple Gaussian-distributed, and simulated high energy jet datasets. We find FPD, in particular, to be the most sensitive metric to all alternative jet distributions tested and recommend its adoption, along with the KPD and Wasserstein distances between individual feature distributions, for evaluating generative models in HEP. We finally demonstrate the efficacy of these proposed metrics in evaluating and comparing a novel attention-based generative adversarial particle transformer to the state-of-the-art message-passing generative adversarial network jet simulation model. The code for our proposed metrics is provided in the open source JetNet Python library.

For agents

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

get_harvested_code_for_paper("2211.10295")
get_code_for_paper("2211.10295")
have("2211.10295")

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

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

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

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

Connect an agent — have() is free.