SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.20280 · NeurIPS · 2025

Lorentz Local Canonicalization: How to Make Any Network Lorentz-Equivariant

Fred Hamprecht, Peter Lippmann, Jonas Spinner, Tilman Plehn, Gerrit Gerhartz, Luigi Favaro, Sebastian Pitz

arXiv · PDF · Open in the Atlas

Code that ran

20 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 15 failures of our instrument; 5 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/2505.20280.json · badge: /api/ran/2505.20280.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
heidelberg-hepml/lloca community
Papers with Code archive
16 ran · 3 no recorded run
heidelberg-hepml/lloca-experiments community
Papers with Code archive
4 ran · 2 no recorded run
FunctionStatusWhere it lives
Frames Ran
ran on a synthesized input · constructed an object; no result was computed
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("d9760bd31dc7752e")
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 an instance of its own class, Frames: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

# Test case 1: Initialize from matrices
matrices = torch.randn(2, 3, 4, 4)
det = torch.det(matrices)
inv = torch.linalg.inv(matrices)
parity = det.sign()

ARGS = {
    "matrices": matrices,
    "is_global": False,
    "det": det,
    "inv": inv,
    "parity": parity,
    "is_identity": False,
    "shape": None,
    "device": None,
    "dtype": torch.float32,
}
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 Frames — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Frames 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
FramesPredictor Ran
ran on a synthesized input · constructed an object; no result was computed
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("4e9c5fe85d7bd334")
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 an instance of its own class, FramesPredictor: the run constructed the object and did not call it, so no result was computed. 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)

# Define the arguments for FramesPredictor.__init__
ARGS = {
    'is_global': False,
    'is_identity': False,
}

# Optional: Create sample inputs for the forward method if needed for testing
# These would be used if calling forward() afterward
sample_fourmomenta = torch.randn(2, 4)  # batch size 2, 4-dimensional momenta
sample_scalars = torch.randn(2, 3)      # batch size 2, 3 scalar features
sample_ptr = torch.tensor([0, 0, 1, 1])  # pointer indices for graph batching
sample_return_tracker = 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 FramesPredictor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FramesPredictor 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
LearnedFrames Ran
ran on a synthesized input · constructed an object; no result was computed
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("c386a100004f9fc2")
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 an instance of its own class, LearnedFrames: the run constructed the object and did not call it, so no result was computed. 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)

class DummyEquivectors(nn.Module):
    """Minimal equivectors network that predicts vectors"""
    
    def __init__(self, n_vectors):
        super().__init__()
        self.n_vectors = n_vectors
        self.linear = nn.Linear(4, 4 * n_vectors)
    
    def forward(self, x):
        # x is expected to be fourmomenta of shape (batch, 4)
        batch_size = x.shape[0]
        out = self.linear(x)
        # Reshape to (batch, n_vectors, 4)
        return out.view(batch_size, self.n_vectors, 4)
    
    def reset_parameters(self):
        self.linear.reset_parameters()

# Create a callable that returns an instance of DummyEquivectors
def equivectors_factory(n_vectors):
    return DummyEquivectors(n_vectors=n_vectors)

# Build the ARGS dictionary
ARGS = {
    'equivectors': equivectors_factory,
    'n_vectors': 3,
    'is_global': False,
    'random': False,
    'fix_params': False,
    'mass_reg': None,
    'ortho_kwargs': {'method': 'gramschmidt'}
}
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 LearnedFrames — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LearnedFrames 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
average_event Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("8b2465791078eb27")
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 (6, 3, 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
from torch_geometric.utils import scatter

torch.manual_seed(0)

# Create test data for average_event function
# vecs should have shape (..., n_vectors, 4) where last dim contains vectors
# We'll use shape (N, n_vectors, 4) where N is total number of items
n_items = 6
n_vectors = 3
vec_dim = 4

vecs = torch.randn(n_items, n_vectors, vec_dim)

# Create pointer tensor for batching
# ptr should have shape (B+1,) where B is number of batches
# ptr[-1] should equal n_items (total number of items)
# For example: ptr = [0, 3, 6] means 2 batches: first has 3 items, second has 3 items
ptr = torch.tensor([0, 3, 6], dtype=torch.long)

ARGS = {
    "vecs": vecs,
    "ptr": ptr,
}
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 Tensor, ndim 3, dtype family float, shape (6, 3, 4) — shape (6, 3, 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
clamp_boost Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("8e6bc106c5c2d370")
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 torch

torch.manual_seed(0)

# Create a small tensor of shape (2, 4) representing 4-vectors
# These should be valid Lorentz 4-vectors
x = torch.tensor([
    [10.0, 3.0, 4.0, 0.0],
    [15.0, 1.0, 2.0, 3.0]
], dtype=torch.float32)

gamma_max = 5.0
gamma_hardness = 1.0

ARGS = {
    "x": x,
    "gamma_max": gamma_max,
    "gamma_hardness": gamma_hardness
}
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
get_batch_from_ptr Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("2224b00e16bbe154")
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 (6,) 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 pointer tensor indicating batch starts/ends
# For 3 batches with sizes [2, 3, 1], ptr would be [0, 2, 5, 6]
ptr = torch.tensor([0, 2, 5, 6], dtype=torch.long)

# num_items is optional but if provided should equal ptr[-1]
num_items = ptr[-1].item()

ARGS = {
    "ptr": ptr,
    "num_items": num_items,
}
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 (6,) — shape (6,) 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
lorentz_eye Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("561041aa114a51e7")
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, 3, 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

torch.manual_seed(0)

ARGS = {
    "dims": (2, 3),
    "device": torch.device("cpu"),
    "dtype": torch.float32,
}
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, 3, 4, 4) — shape (2, 3, 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
lorentz_inner Ran
ran, honoured the contract we drafted
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("f24836afd028cc91")
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
import torch.nn as nn

torch.manual_seed(0)

# Construct valid arguments for lorentz_inner
# The function expects two tensors of shape (..., 4)
# We'll create tensors with batch size 2 and the last dimension of 4

v1 = torch.randn(2, 4)
v2 = torch.randn(2, 4)

ARGS = {
    "v1": v1,
    "v2": v2,
}
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
lorentz_squarednorm Ran
ran, honoured the contract we drafted
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("554ab60888910881")
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)

# Construct a small 4D tensor with batch size 2
# Shape: (2, 4) - batch of 2 vectors, each with 4 components (Lorentz space)
v = torch.randn(2, 4)

ARGS = {
    "v": v
}
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
masked_amax Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/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
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/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_mean Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/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
masked_var Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/perm_equiv_layers.py
code served (permissive licence) · get_code("e78c5ecf916dd19c")
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)

# Create a small tensor for x
# Shape: (2, 4) - batch size 2, feature dim 4
x = torch.randn(2, 4)

# Create nobj tensor
# nobj represents the number of objects, should be broadcastable
# Shape: (2,) - one count per batch element
nobj = torch.tensor([2, 3], dtype=torch.float32)

# dim parameter - can be None or int or tuple of ints
dim = 1

# keepdims parameter
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 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
orthogonalize_3d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("697077e10f833ced")
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 torch.nn.functional as F

torch.manual_seed(0)

# Create input tensor of shape (..., 2, 3)
# Using batch size 2, so shape is (2, 2, 3)
vecs = torch.randn(2, 2, 3)

# Define ARGS dict with all parameters for orthogonalize_3d
ARGS = {
    'vecs': vecs,
    'method': 'gramschmidt',
    'eps_norm': None,
    'eps_reg': None,
    'return_reg': 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 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
orthogonalize_cross_3d Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("726bd4ff43d9e192")
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 torch.nn.functional as F

torch.manual_seed(0)

# The function expects:
# - vecs: torch.Tensor of shape (..., 2, 3) containing two 3D vectors
# - eps_norm: float or None for numerical regularization

# Create a small tensor with shape (2, 2, 3)
# This represents a batch of 2 samples, each with 2 vectors of 3D coordinates
vecs = torch.randn(2, 2, 3)

# eps_norm is optional - use a small float value for numerical stability
eps_norm = 1e-8

ARGS = {
    "vecs": vecs,
    "eps_norm": eps_norm,
}
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
orthogonalize_gramschmidt_3d Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("1d5a418fa625e241")
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 torch.nn.functional as F

torch.manual_seed(0)

# The function takes two vectors of shape (..., 2, 3)
# We'll create a batch of 2 pairs of 3D vectors
# Shape: (2, 2, 3) means batch_size=2, num_vectors=2, vec_dim=3

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

# eps_norm is optional float or None for numerical regularization
eps_norm = 1e-8

ARGS = {
    "vecs": vecs,
    "eps_norm": eps_norm,
}
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
regularize_collinear Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("7aa03617c50934b3")
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 torch

torch.manual_seed(0)

# Create a tensor with shape (2, 4, 3) - batch of 2, 4 samples, 3D vectors
# Shape: (batch, num_vectors=2, spatial_dim=3) where num_vectors=2 via unbind on dim=-2
vecs = torch.randn(4, 2, 3, dtype=torch.float32)

# eps_reg can be None (will use machine epsilon) or a small float
eps_reg = 1e-6

ARGS = {
    "vecs": vecs,
    "eps_reg": eps_reg,
}
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
regularize_lightlike Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("32067fd659ce2f54")
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 torch

torch.manual_seed(0)

# The function regularize_lightlike expects:
# - vecs: torch.Tensor of shape (..., 3, 4) - list of three Minkowski vectors
# - eps_reg_lightlike: float or None

# Create a small tensor with shape (2, 3, 4)
# First dimension is batch size 2
# Second dimension is 3 vectors
# Third dimension is 4 components (Minkowski space)
vecs = torch.randn(2, 3, 4, dtype=torch.float32)

# eps_reg_lightlike can be None or a small float value
eps_reg_lightlike = 1e-6

ARGS = {
    "vecs": vecs,
    "eps_reg_lightlike": eps_reg_lightlike,
}
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
restframe_boost Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("e55be85122fab627")
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

torch.manual_seed(0)

# Create a small batch of four-momenta
# Shape: (batch_size, 4) where 4 represents (t, x, y, z)
# Using timelike vectors (positive mass squared)
fourmomenta = torch.tensor([
    [5.0, 3.0, 1.0, 2.0],    # timelike vector
    [7.0, 2.0, 4.0, 1.0]     # another timelike vector
], dtype=torch.float32)

ARGS = {
    "fourmomenta": fourmomenta,
    "checks": 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 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
soft_clamp Ran
ran; our contract draft was wrong, not the code
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("487d397c3b78bbc5")
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)

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

# Define arguments for soft_clamp function
ARGS = {
    'x': x,
    'max': 1.5,
    'min': -1.5,
    'hardness': 2.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 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
LearnedPDFrames Not yet run
unverified (harvested, no recorded run)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("e47ba51e75bbe3ea")
How it ran

no invocation recorded.

eops_2_to_2 Not yet run
unverified (harvested, no recorded run)
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/perm_equiv_layers.py
code served (permissive licence) · get_code("8a057e4cfe7ae8be")
How it ran

no invocation recorded.

init_weights Not yet run
unverified (harvested, no recorded run)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("6485be02f14e0651")
How it ran

no invocation recorded.

masked_sum Not yet run
unverified (harvested, no recorded run)
heidelberg-hepml/lloca-experiments/experiments/baselines/pelican/perm_equiv_layers.py
code served (permissive licence) · get_code("b6fc95bee01e3fa3")
How it ran

no invocation recorded.

polar_decomposition Not yet run
unverified (harvested, no recorded run)
heidelberg-hepml/lloca/lloca/framesnet/equi_frames.py
code served (permissive licence) · get_code("3c5498211f0d4594")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 22 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
masked_amax
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2310.16121 (2023-10)
9 Parameters Is All You Need: Tiny Neural Networks for Particle Physics
masked_amin
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2310.16121 (2023-10)
9 Parameters Is All You Need: Tiny Neural Networks for Particle Physics
masked_mean
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2310.16121 (2023-10)
9 Parameters Is All You Need: Tiny Neural Networks 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

Lorentz-equivariant neural networks are becoming the leading architectures for high-energy physics. Current implementations rely on specialized layers, limiting architectural choices. We introduce Lorentz Local Canonicalization (LLoCa), a general framework that renders any backbone network exactly Lorentz-equivariant. Using equivariantly predicted local reference frames, we construct LLoCatransformers and graph networks. We adapt a recent approach for geometric message passing to the non-compact Lorentz group, allowing propagation of space-time tensorial features. Data augmentation emerges from LLoCa as a special choice of reference frame. Our models achieve competitive and state-of-the-art accuracy on relevant particle physics tasks, while being 4× faster and using 10× fewer FLOPs.

For agents

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

get_harvested_code_for_paper("2505.20280")
get_code_for_paper("2505.20280")
have("2505.20280")

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

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

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

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

Connect an agent — have() is free.