SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.12223 · 2023

Self-Supervised Detection of Perfect and Partial Input-Dependent Symmetries

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures 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/2312.12223.json · badge: /api/ran/2312.12223.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
aurban0/ssl-sym canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
PartialMNIST_AE_Dataloader Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aurban0/ssl-sym/src/data_loading_sym.py
code served (permissive licence) · get_code("a247f2e1cd98b2be")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import pandas as pd
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a mock config object with required attributes
class MockConfig:
    def __init__(self):
        self.customdata_train_path = "train_data.pkl"
        self.customdata_test_path = "test_data.pkl"
        self.dataloader_batch_sz = 2

# Create mock pickle data files in memory
# We'll mock pd.read_pickle to return our test data
train_data = np.random.rand(10, 785)  # 10 samples, 784 pixels + 1 label
test_data = np.random.rand(8, 785)    # 8 samples, 784 pixels + 1 label

train_df = pd.DataFrame(train_data)
test_df = pd.DataFrame(test_data)

# Mock the pd.read_pickle function
original_read_pickle = pd.read_pickle
def mock_read_pickle(path):
    if "train" in path:
        return train_df
    else:
        return test_df

pd.read_pickle = mock_read_pickle

# Create pseudolabels if needed (tensor of shape matching dataset)
pseudolabels = torch.rand(10, 5)  # 10 samples, 5-dimensional pseudo labels

config = MockConfig()

ARGS = {
    "config": config,
    "train": True,
    "test": False,
    "shuffle": False,
    "custom_batchsize": 0,
    "theta": False,
    "pseudolabels": pseudolabels,
    "return_index": False,
    "no_val_split": False,
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
RotMNIST_AE_Dataloader Ran
ran on a synthesized input
aurban0/ssl-sym/src/data_loading_sym.py
code served (permissive licence) · get_code("f22c5e8455bee1bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch
from torch.utils.data import Dataset

torch.manual_seed(0)

# Create a minimal config class with required attributes
class Config:
    def __init__(self):
        self.customdata_train_path = None
        self.customdata_test_path = None
        self.dataloader_batch_sz = 2

# Create mock data files by monkey-patching np.loadtxt
original_loadtxt = np.loadtxt

def mock_loadtxt(path):
    # Return mock MNIST-like data: (28*28 + 1) = 785 columns
    # First 784 columns are pixel values, last column is label
    num_samples = 16
    data = np.random.randn(num_samples, 785).astype(np.float32)
    data[:, -1] = np.random.randint(0, 10, num_samples)  # labels 0-9
    return data

np.loadtxt = mock_loadtxt

config = Config()
config.customdata_train_path = "mock_train_path"
config.customdata_test_path = "mock_test_path"
config.dataloader_batch_sz = 2

# Create pseudolabels if needed (optional tensor)
pseudolabels = torch.randn(16, 4)

ARGS = {
    "config": config,
    "train": True,
    "test": False,
    "custom_batchsize": 0,
    "shuffle": False,
    "theta": False,
    "pseudolabels": pseudolabels,
    "return_index": False,
    "no_val_split": False,
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
config_to_str Ran
ran; our contract draft was wrong, not the code
aurban0/ssl-sym/src/utils.py
code served (permissive licence) · get_code("352b920a6d28e7e3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from types import SimpleNamespace

# Create a minimal config object with some attributes
config = SimpleNamespace(
    learning_rate=0.001,
    batch_size=32,
    num_epochs=10,
    model_name="test_model",
    hidden_dim=256,
    dropout=0.1,
    seed=42
)

ARGS = {
    'config': config
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_scheduler Ran
ran; our contract draft was wrong, not the code
aurban0/ssl-sym/src/schedulers.py
code served (permissive licence) · get_code("976521195b06b2e1")
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 ChainedScheduler. 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
import argparse

torch.manual_seed(0)

# Create a simple model with parameters to optimize
model = nn.Linear(4, 3)
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)

# Create a config namespace with all required attributes
config = argparse.Namespace(
    scheduler_type='cosine',
    scheduler_factor=-1,  # not used for cosine
    scheduler_warmup_epochs=2,
    iters_per_train_epoch=10,
    total_train_iters=100
)

ARGS = {
    'optimizer': optimizer,
    'config': config
}
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 ChainedScheduler — a ChainedScheduler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ChainedScheduler 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
create_cyclic_group_distribution Ran
ran, honoured the contract we drafted
aurban0/ssl-sym/src/cyclic_distributions.py
code served (permissive licence) · get_code("95bf11eff327afe8")
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 (360,) 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 = {
    "group_number": 4,
    "bin_size": 360,
}
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 (360,) — shape (360,) 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
cyclic_classifier Ran
ran; our contract draft was wrong, not the code
aurban0/ssl-sym/src/cyclic_distributions.py
code served (permissive licence) · get_code("c2851a967a41bd13")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (2,) as a later run recorded it. The image it ran in was not recorded. 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, 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 target_rots tensor: batch_size=2, n_rotations=4
# Values should be in range [-180, 180] for histc to work properly
target_rots = torch.tensor([
    [-45.0, 30.0, 90.0, -120.0],
    [60.0, -90.0, 0.0, 150.0]
])

ARGS = {
    "target_rots": target_rots,
    "bin_size": 360,
    "epsilon": 1e-10,
    "n_cyclic_groups": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_batch_norm Not yet run
unverified (harvested, no recorded run)
aurban0/ssl-sym/src/modules_sym.py
code served (permissive licence) · get_code("489c69bf2f1e2198")
How it ran

no invocation recorded.

get_non_linearity Not yet run
unverified (harvested, no recorded run)
aurban0/ssl-sym/src/modules_sym.py
code served (permissive licence) · get_code("13aa7ec54fbcac9a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_non_linearity 1 other paper
1 dated earlier
2202.07559 (2022-02)
Unsupervised Learning of Group Invariant and Equivariant Representations

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

Group equivariance can overly constrain models if the symmetries in the group differ from those observed in data. While common methods address this by determining the appropriate level of symmetry at the dataset level, they are limited to supervised settings and ignore scenarios in which multiple levels of symmetry co-exist in the same dataset. In this paper, we propose a method able to detect the level of symmetry of each input without the need for labels. Our framework is general enough to accommodate different families of both continuous and discrete symmetry distributions, such as arbitrary unimodal, symmetric distributions and discrete groups. We validate the effectiveness of our approach on synthetic datasets with different per-class levels of symmetries, and demonstrate practical applications such as the detection of out-of-distribution symmetries. Our code is publicly available at https://github.com/aurban0/ssl-sym.

For agents

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

get_harvested_code_for_paper("2312.12223")
get_code_for_paper("2312.12223")
have("2312.12223")

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

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

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

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

Connect an agent — have() is free.