SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2104.09459 · 2021

A Practical Method for Constructing Equivariant Multilayer Perceptrons for Arbitrary Matrix Groups

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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 4 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-21; 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/2104.09459.json · badge: /api/ran/2104.09459.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
mfinzi/equivariant-MLP canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
LBface_swap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mfinzi/equivariant-MLP/emlp/datasets.py
code served (permissive licence) · get_code("7a51a150eb170ac2")
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 ndarray, ndim 2, dtype family float, shape (2, 34) 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 numpy as np

# The function takes a state parameter which is a numpy array
# It performs:
# 1. .copy() on state
# 2. Indexing with [:, L_B_center_top_faces] 
# 3. np.roll() on an array
# So state needs to be a 2D numpy array

# Create a small state array
# First dimension is batch (size 2), second dimension contains pieces (at least 33 elements for indices 33 and 25)
state = np.arange(2 * 34).reshape(2, 34).astype(np.float32)

ARGS = {
    "state": state
}
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 ndarray, ndim 2, dtype family float, shape (2, 34) — shape (2, 34) 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
UBedge_flip Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mfinzi/equivariant-MLP/emlp/datasets.py
code served (permissive licence) · get_code("d867e51e2ce022c2")
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 ndarray, ndim 2, dtype family int, shape (6, 48) 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 numpy as np

# Construct a valid state for the Rubik's cube
# The function expects shape (6, 48) based on the docstring
# 6 appears to be batch size, 48 appears to be edge positions

state = np.arange(6 * 48, dtype=np.int32).reshape(6, 48)

ARGS = {
    "state": state
}
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 ndarray, ndim 2, dtype family int, shape (6, 48) — shape (6, 48) 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
ULBcorner_rot Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mfinzi/equivariant-MLP/emlp/datasets.py
code served (permissive licence) · get_code("791a506bebdb19cf")
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 ndarray, ndim 2, dtype family float, shape (2, 33) 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 numpy as np

# Analyzing the function:
# - state: a numpy array that supports .copy() and indexing with [:, indices]
#   The function treats it as a 2D array where first dimension is batch, second is features
# - i: an integer for rotation amount (default=1)

# Create a small state array: shape (2, 32) - batch of 2, with 32 features (enough to cover indices 0, 4*8=32, 3*8+2=26)
state = np.random.randn(2, 33)  # 33 to safely cover all indices

ARGS = {
    "state": state,
    "i": 1
}
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 ndarray, ndim 2, dtype family float, shape (2, 33) — shape (2, 33) 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
export Ran
ran; our contract draft was wrong, not the code
mfinzi/equivariant-MLP/emlp/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from woriazzc/robust-pu, is pointer only (licence: NONE) · get_code("2660b9d52e1de712")
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 woriazzc/robust-pu, 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.

matrix_power_simple Ran
ran on a synthesized input
mfinzi/equivariant-MLP/emlp/groups.py
code served (permissive licence) · get_code("ac065ea6ecd18125")
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 ArrayImpl, ndim 2, dtype family float, shape (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 jax
import jax.numpy as jnp
from jax import jit, vmap

# Create a simple square matrix for matrix power computation
M = jnp.array([
    [2.0, 0.5, 0.1, 0.2],
    [0.3, 1.5, 0.2, 0.1],
    [0.1, 0.2, 1.8, 0.3],
    [0.2, 0.1, 0.4, 2.0]
], dtype=jnp.float32)

# Test with positive integer power
n = 3

ARGS = {
    "M": M,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (4, 4) — shape (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
noise2sample Ran
ran; our contract draft was wrong, not the code
mfinzi/equivariant-MLP/emlp/groups.py
code served (permissive licence) · get_code("58568c4f4e25b94a")
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 ArrayImpl, ndim 2, dtype family float, shape (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 jax
import jax.numpy as jnp
import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Define dimensions
D = 4  # noise dimension
d = 3  # matrix dimension for lie algebra and discrete generators
M = 2  # number of discrete generators
K = 2  # number of repeats for each discrete generator

# z: noise vector of shape (D,)
z = jnp.array([0.1, 0.2, 0.3, 0.4])

# ks: shape (M, K) - integers specifying powers for discrete generators
ks = jnp.array([[2, 1], [1, 3]], dtype=jnp.int32)

# lie_algebra: shape (D, d, d) - D matrices of size d x d
lie_algebra = jnp.array(np.random.randn(D, d, d), dtype=jnp.float32)

# discrete_generators: shape (M, d, d) - M matrices of size d x d
discrete_generators = jnp.array(np.random.randn(M, d, d), dtype=jnp.float32)

# seed: integer
seed = 42

ARGS = {
    "z": z,
    "ks": ks,
    "lie_algebra": lie_algebra,
    "discrete_generators": discrete_generators,
    "seed": seed
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (3, 3) — shape (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
rel_err Ran
ran on a synthesized input
mfinzi/equivariant-MLP/emlp/groups.py
code served (permissive licence) · get_code("b9e669d60e5fb206")
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 ArrayImpl, ndim 0, dtype family float, shape () 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 jax.numpy as jnp
import numpy as np

# Create two small JAX arrays for testing the relative error function
# Using distinct shapes to make dimensions unambiguous
A = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])

B = jnp.array([[1.1, 2.1, 2.9, 4.2],
               [5.2, 5.9, 7.1, 7.8]])

ARGS = {
    "A": A,
    "B": B,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rel_err Ran
ran on a synthesized input
mfinzi/equivariant-MLP/experiments/trainer/model_trainer.py
code served (permissive licence) · get_code("f1110180942acd6b")
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 ArrayImpl, ndim 0, dtype family float, shape () 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 jax.numpy as jnp
import numpy as np

# Create two small JAX arrays for comparison
a = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])

b = jnp.array([[1.1, 2.1, 2.9, 4.1],
               [5.1, 5.9, 7.1, 7.9]])

ARGS = {
    'a': a,
    'b': b
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
scale_adjusted_rel_err Ran
ran on a synthesized input
mfinzi/equivariant-MLP/experiments/trainer/model_trainer.py
code served (permissive licence) · get_code("1c0546beb8cb8de2")
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 ArrayImpl, ndim 0, dtype family float, shape () 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 jax.numpy as jnp
import numpy as np

# Construct small valid arrays for the function
a = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]])

b = jnp.array([[1.1, 2.1, 3.1, 4.1],
                [5.1, 6.1, 7.1, 8.1]])

g = jnp.array([[0.9, 0.1, 0.0, 0.0],
                [0.1, 0.95, 0.05, 0.0],
                [0.0, 0.05, 1.0, 0.0],
                [0.0, 0.0, 0.0, 1.05]])

ARGS = {
    "a": a,
    "b": b,
    "g": g
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
equivariance_err Not yet run
unverified (harvested, no recorded run)
mfinzi/equivariant-MLP/experiments/trainer/model_trainer.py
code served (permissive licence) · get_code("7e78a86dc6fd9ae6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 8 later) and 2 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
export 6 other papers
1 dated earlier, 5 later
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
and 3 more not named here
LBface_swap 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
UBedge_flip 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
ULBcorner_rot 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
matrix_power_simple 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
noise2sample 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
rel_err 3 other papers
3 later
2106.06610 (2021-06)
Scalars are universal: Equivariant machine learning, structured like classical physics
2204.00887 (2022-04)
Dimensionless machine learning: Imposing exact units equivariance
2306.06327 (2023-06)
Any-dimensional equivariant neural networks
scale_adjusted_rel_err 1 other paper
1 later
2306.06327 (2023-06)
Any-dimensional equivariant neural networks

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-21.

Repositories linked to this paper

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

Abstract

Symmetries and equivariance are fundamental to the generalization of neural networks on domains such as images, graphs, and point clouds. Existing work has primarily focused on a small number of groups, such as the translation, rotation, and permutation groups. In this work we provide a completely general algorithm for solving for the equivariant layers of matrix groups. In addition to recovering solutions from other works as special cases, we construct multilayer perceptrons equivariant to multiple groups that have never been tackled before, including $\mathrm{O}(1,3)$, $\mathrm{O}(5)$, $\mathrm{Sp}(n)$, and the Rubik's cube group. Our approach outperforms non-equivariant baselines, with applications to particle physics and dynamical systems. We release our software library to enable researchers to construct equivariant layers for arbitrary matrix groups.

For agents

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

get_harvested_code_for_paper("2104.09459")
get_code_for_paper("2104.09459")
have("2104.09459")

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

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

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

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

Connect an agent — have() is free.