SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.04959 · ICML · 2025

Collapse-Proof NON-CONTRASTIVE SELF-SUPERVISED LEARNING

Tinne Tuytelaars, Emanuele Sansone, Tim Lebailly

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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 0 have no contract verdict; 7 failures of our instrument; 0 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/2410.04959.json · badge: /api/ran/2410.04959.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
emsansone/CPLearn canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
barlow_loss_func Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/solo/losses/barlow.py
code served (permissive licence) · get_code("132a949a804eb81e")
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 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for z1 and z2
# N=2 (batch size), D=4 (feature dimension)
z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

# Set standard hyperparameters
lamb = 0.005
scale_loss = 0.025

ARGS = {
    "z1": z1,
    "z2": z2,
    "lamb": lamb,
    "scale_loss": scale_loss,
}
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 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
cplearn_loss_func Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/solo/losses/cplearn.py
code served (permissive licence) · get_code("cc4b1d894a3b241e")
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 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 torch

torch.manual_seed(0)

# Create small tensors: batch size 2, feature dimension 4
z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

# beta parameter as specified
beta = 0.05

ARGS = {
    "z1": z1,
    "z2": z2,
    "beta": beta,
}
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 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
gedi_nogen_loss_func Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/solo/losses/gedi_nogen.py
code served (permissive licence) · get_code("f5286290dff8d9f5")
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 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 torch

torch.manual_seed(0)

# Create small tensors for z1 and z2
# z1: NxD where N=2 (batch size), D=4 (feature dimension)
z1 = torch.randn(2, 4)
# z2: NxD with same shape
z2 = torch.randn(2, 4)

# Beta parameter
beta = 0.05

ARGS = {
    "z1": z1,
    "z2": z2,
    "beta": beta,
}
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 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
get_ckpt_files Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/main_collapses.py
code served (permissive licence) · get_code("b137cb8b87c1836b")
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, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import shutil

# Create a temporary directory with some .ckpt files
temp_dir = tempfile.mkdtemp()

# Create some subdirectories and .ckpt files
os.makedirs(os.path.join(temp_dir, "subdir1"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "subdir2"), exist_ok=True)

# Create .ckpt files
open(os.path.join(temp_dir, "model1.ckpt"), 'w').close()
open(os.path.join(temp_dir, "subdir1", "model2.ckpt"), 'w').close()
open(os.path.join(temp_dir, "subdir2", "model3.ckpt"), 'w').close()

# Also create some non-.ckpt files to test filtering
open(os.path.join(temp_dir, "readme.txt"), 'w').close()
open(os.path.join(temp_dir, "subdir1", "config.json"), 'w').close()

ARGS = {
    "directory": temp_dir
}
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 tuple, ndim 2, dtype family float — a tuple 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
preprocessing Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/main_collapses.py
code served (permissive licence) · get_code("11b0a0980664894c")
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, 2048) 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)

# The function expects embeddings tensor with shape (n, d) where d <= DIM
# We'll create a small tensor with batch size 2 and dimension 4
embeddings = torch.randn(2, 4)

ARGS = {
    "embeddings": embeddings
}
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, 2048) — shape (2, 2048) 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
static_lr Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/solo/methods/base.py
pointer only (licence: MIT); the stored copy get_code serves, from hsouri/bayesiantransferlearning, is pointer only (licence: NONE) · get_code("c787a44e9ada6bfc")
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 hsouri/bayesiantransferlearning, 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.

swav_loss_func Ran
ran; our contract draft was wrong, not the code
emsansone/CPLearn/solo/losses/swav.py
code served (permissive licence) · get_code("6b191c39aa0c6668")
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 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 torch
import numpy as np

torch.manual_seed(0)

# Create sample predictions and assignments for SwAV loss
# The function expects lists of tensors where each tensor is NxC (batch_size x num_clusters)
batch_size = 2
num_clusters = 4
num_views = 3

# Create list of predictions (one per view)
preds = [
    torch.randn(batch_size, num_clusters),
    torch.randn(batch_size, num_clusters),
    torch.randn(batch_size, num_clusters),
]

# Create list of assignments (one per view)
# Assignments should be probability-like (sum to 1 along dim 1)
assignments = []
for _ in range(num_views):
    a = torch.rand(batch_size, num_clusters)
    a = a / a.sum(dim=1, keepdim=True)  # Normalize to sum to 1
    assignments.append(a)

temperature = 0.1

ARGS = {
    "preds": preds,
    "assignments": assignments,
    "temperature": temperature,
}
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 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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, 1 later) and 4 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
barlow_loss_func 12 other papers
11 dated earlier, 1 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
2112.15022 (2021-12)
Continually Learning Self-Supervised Representations with Projected Functional Regularization
and 9 more not named here
static_lr 2 other papers
2 dated earlier
2205.10279 (2022-05)
Pre-Train Your Loss: Easy Bayesian Transfer Learning with Informative Priors
2310.18555 (2023-10)
Group Robust Classification Without Any Group Information
swav_loss_func 1 other paper
1 dated earlier
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning

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

We present a principled and simplified design of the projector and loss function for non-contrastive self-supervised learning based on hyperdimensional computing. We theoretically demonstrate that this design introduces an inductive bias that encourages representations to be simultaneously decorrelated and clustered, without explicitly enforcing these properties. This bias provably enhances generalization and suffices to avoid known training failure modes, such as representation, dimensional, cluster, and intracluster collapses. We validate our theoretical findings on image datasets, including SVHN, CIFAR-10, CIFAR-100, and ImageNet-100. Our approach effectively combines the strengths of feature decorrelation and cluster-based self-supervised learning methods, overcoming training failure modes while achieving strong generalization in clustering and linear classification tasks. The code is publicly available at github.com/emsansone/CPLearn.

For agents

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

get_harvested_code_for_paper("2410.04959")
get_code_for_paper("2410.04959")
have("2410.04959")

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

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

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

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

Connect an agent — have() is free.