SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper · CVPR · 2022

Self-Supervised Models are Continual Learners

Elisa Ricci, Fondazione Kessler, Julien Mairal, Karteek Alahari, Enrico Fini, Xavier Alameda-Pineda, Victor Turrisi Da Costa

Open in the Atlas

Code that ran

14 of 15 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 9 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper.json · badge: /api/ran/Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper.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
DonkeyShot21/cassle canonical (classifier label)
classifier basis: census
14 ran · 1 no recorded run
FunctionStatusWhere it lives
barlow_loss_func Ran
ran; our contract draft was wrong, not the code
DonkeyShot21/cassle/cassle/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
byol_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DonkeyShot21/cassle/cassle/losses/byol.py
code served (permissive licence) · get_code("33aef221912d8415")
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.functional as F

torch.manual_seed(0)

# Create small tensors for testing
# p: predicted features from view 1, shape NxD where N=batch size, D=feature dim
batch_size = 2
feature_dim = 4

p = torch.randn(batch_size, feature_dim)
z = torch.randn(batch_size, feature_dim)

# Test both simplified=True and simplified=False cases
ARGS = {
    "p": p,
    "z": z,
    "simplified": True
}
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
covariance_loss Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/vicreg.py
code served (permissive licence) · get_code("eb2a88b5318d39ff")
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 N=2, feature dimension D=4
N = 2
D = 4

# z1: NxD tensor of projected features from view 1
z1 = torch.randn(N, D)

# z2: NxD tensor of projected features from view 2
z2 = torch.randn(N, D)

ARGS = {
    "z1": z1,
    "z2": z2,
}
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
invariance_loss Ran
ran; our contract draft was wrong, not the code
DonkeyShot21/cassle/cassle/losses/vicreg.py
code served (permissive licence) · get_code("1afb119bcba5b90d")
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.functional as F

torch.manual_seed(0)

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

ARGS = {
    "z1": z1,
    "z2": z2,
}
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
manual_simclr_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/simclr.py
code served (permissive licence) · get_code("b59684d8c72683c0")
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.functional as F

torch.manual_seed(0)

# Create small tensors for SimCLR loss computation
# z should be NxViewsxD where N is batch size, Views is number of views, D is feature dimension
batch_size = 2
num_views = 2
feature_dim = 4

# Create normalized features: (N*Views) x D tensor
# We have 2 samples, each with 2 views, so total 4 feature vectors
z = torch.randn(batch_size * num_views, feature_dim)

# Create positive mask: boolean mask for positive pairs
# In SimCLR, positive pairs are the same sample from different views
# Shape: (N*Views) x (N*Views)
pos_mask = torch.zeros(batch_size * num_views, batch_size * num_views, dtype=torch.bool)
# Sample 0 view 0 is positive with sample 0 view 1
pos_mask[0, 1] = True
pos_mask[1, 0] = True
# Sample 1 view 0 is positive with sample 1 view 1
pos_mask[2, 3] = True
pos_mask[3, 2] = True

# Create negative mask: boolean mask for negative pairs
# All other pairs are negatives (different samples)
neg_mask = torch.ones(batch_size * num_views, batch_size * num_views, dtype=torch.bool)
# Remove diagonal (self-pairs)
neg_mask.fill_diagonal_(False)
# Remove positive pairs
neg_mask = neg_mask & ~pos_mask

temperature = 0.1

ARGS = {
    "z": z,
    "pos_mask": pos_mask,
    "neg_mask": neg_mask,
    "temperature": temperature,
}
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
moco_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DonkeyShot21/cassle/cassle/losses/moco.py
pointer only (licence: MIT); the stored copy get_code serves, from pantheon5100/deacl, is pointer only (licence: NONE) · get_code("2ade5ee5636e4e1e")
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 pantheon5100/deacl, 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.

nnclr_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/nnclr.py
code served (permissive licence) · get_code("510ce8dfc2a8228d")
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.functional as F

torch.manual_seed(0)

# Create small tensors for testing
# nn: NxD tensor of nearest neighbors' features from view 1
batch_size = 2
feature_dim = 4
nn = torch.randn(batch_size, feature_dim)

# p: NxD tensor of predicted features from view 2
p = torch.randn(batch_size, feature_dim)

# temperature: float for softmax temperature
temperature = 0.1

ARGS = {
    "nn": nn,
    "p": p,
    "temperature": temperature,
}
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
ressl_loss_func Ran
ran, honoured the contract we drafted
DonkeyShot21/cassle/cassle/losses/ressl.py
code served (permissive licence) · get_code("779f0ded23fd8106")
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.functional as F

torch.manual_seed(0)

# Create tiny tensors for the function
batch_size = 2
embedding_dim = 4
queue_size = 3

# q: NxD tensor (queries from view 1)
q = torch.randn(batch_size, embedding_dim)

# k: NxD tensor (keys from view 2)
k = torch.randn(batch_size, embedding_dim)

# queue: KxD tensor (past elements for contrastive loss)
queue = torch.randn(queue_size, embedding_dim)

# Temperature parameters
temperature_q = 0.1
temperature_k = 0.04

ARGS = {
    "q": q,
    "k": k,
    "queue": queue,
    "temperature_q": temperature_q,
    "temperature_k": temperature_k,
}
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
simclr_distill_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/simclr.py
code served (permissive licence) · get_code("b3777d5036d64836")
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.functional as F

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
feature_dim = 4

p1 = torch.randn(batch_size, feature_dim)
p2 = torch.randn(batch_size, feature_dim)
z1 = torch.randn(batch_size, feature_dim)
z2 = torch.randn(batch_size, feature_dim)
temperature = 0.1

ARGS = {
    "p1": p1,
    "p2": p2,
    "z1": z1,
    "z2": z2,
    "temperature": temperature,
}
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
simclr_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/simclr.py
code served (permissive licence) · get_code("0e23acbdf4aa6d11")
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.functional as F

torch.manual_seed(0)

# Create small tensors for z1 and z2
# z1 and z2 should be NxD where N is batch size and D is feature dimension
batch_size = 2
feature_dim = 4

z1 = torch.randn(batch_size, feature_dim)
z2 = torch.randn(batch_size, feature_dim)

# temperature parameter
temperature = 0.1

# extra_pos_mask: optional boolean mask of shape (2*N, 2*N)
# For this example, we'll set it to None, but we could also create one
extra_pos_mask = None

ARGS = {
    "z1": z1,
    "z2": z2,
    "temperature": temperature,
    "extra_pos_mask": extra_pos_mask,
}
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
simsiam_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/simsiam.py
code served (permissive licence) · get_code("152bc8b1661df90c")
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.functional as F

torch.manual_seed(0)

# Create small tensors for p and z
# p: predicted features from view 1, shape (batch_size, feature_dim)
# z: projected features from view 2, shape (batch_size, feature_dim)
batch_size = 2
feature_dim = 4

p = torch.randn(batch_size, feature_dim)
z = torch.randn(batch_size, feature_dim)

ARGS = {
    "p": p,
    "z": z,
    "simplified": True
}
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
swav_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/swav.py
code served (permissive licence) · get_code("43f3defda2392a6a")
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)

# SwAV loss expects:
# - preds: List[torch.Tensor] where each tensor is NxC (batch_size x num_clusters)
# - assignments: List[torch.Tensor] where each tensor is NxC (batch_size x num_clusters)
# - temperature: float for softmax scaling

# Create small tensors: batch_size=2, num_clusters=4
batch_size = 2
num_clusters = 4

# Create list of predictions (2 views)
preds = [
    torch.randn(batch_size, num_clusters),
    torch.randn(batch_size, num_clusters)
]

# Create list of assignments (2 views) - should be normalized probabilities
assignments = [
    torch.softmax(torch.randn(batch_size, num_clusters), dim=1),
    torch.softmax(torch.randn(batch_size, num_clusters), dim=1)
]

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
variance_loss Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/vicreg.py
code served (permissive licence) · get_code("325b2194ae85f2bc")
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.functional as F

torch.manual_seed(0)

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

ARGS = {
    "z1": z1,
    "z2": z2,
}
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
wmse_loss_func Ran
ran on a synthesized input
DonkeyShot21/cassle/cassle/losses/wmse.py
code served (permissive licence) · get_code("905df065acb3b352")
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.functional as F

torch.manual_seed(0)

# Create two small batches of whitened features
# N=2 (batch size), D=4 (feature dimension)
z1 = torch.randn(2, 4)
z2 = torch.randn(2, 4)

ARGS = {
    "z1": z1,
    "z2": z2,
    "simplified": True,
}
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
deepclusterv2_loss_func Not yet run
unverified (harvested, no recorded run)
DonkeyShot21/cassle/cassle/losses/deepclusterv2.py
pointer only (licence: MIT); the stored copy get_code serves, from PKU-ML/nlb, is pointer only (licence: NONE) · get_code("ce432f2e9653c7a3")
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 PKU-ML/nlb, 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. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 5 later) and 5 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
3 dated earlier, 8 later, 1 same year, order not determinable
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
deepclusterv2_loss_func 10 other papers
3 dated earlier, 6 later, 1 same year, order not determinable
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 7 more not named here
ressl_loss_func 5 other papers
4 dated earlier, 1 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2107.09282 (2021-07)
ReSSL: Relational Self-Supervised Learning with Weak Augmentation
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
and 2 more not named here
moco_loss_func 4 other papers
2 dated earlier, 2 same year, order not determinable
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
2203.17248 (2022-03)
Dual Temperature Helps Contrastive Learning Without Many Negative Samples: Towards Understanding and Simplifying MoCo
and 1 more not named here
byol_loss_func 3 other papers
2 dated earlier, 1 later
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
2311.13321 (2023-11)
Revisiting Supervision for Continual Representation Learning
nnclr_loss_func 3 other papers
2 dated earlier, 1 same year, order not determinable
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
2204.00616 (2022-04)
Simplicial Embeddings in Self-Supervised Learning and Downstream Classification
invariance_loss 1 other paper
1 later
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
manual_simclr_loss_func 1 other paper
1 dated earlier
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
simclr_loss_func 1 other paper
1 dated earlier
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
simsiam_loss_func 1 other paper
1 dated earlier
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual 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-24.

Repositories linked to this paper

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

Abstract

Self-supervised models have been shown to produce comparable or better visual representations than their supervised counterparts when trained offline on unlabeled data at scale. However, their efficacy is catastrophically reduced in a Continual Learning (CL) scenario where data is presented to the model sequentially. In this paper, we show that self-supervised loss functions can be seamlessly converted into distillation mechanisms for CL by adding a predictor network that maps the current state of the representations to their past state. This enables us to devise a framework for Continual self-supervised visual representation Learning that (i) significantly improves the quality of the learned representations, (ii) is compatible with several state-of-the-art self-supervised objectives, and (iii) needs little to no hyperparameter tuning. We demonstrate the effectiveness of our approach empirically by training six popular self-supervised models in various CL settings. Code: github.com/DonkeyShot21/cassle.

For agents

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

get_harvested_code_for_paper("Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper")
get_code_for_paper("Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper")
have("Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper")

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

curl https://syntology.ai/api/ran/Fini_Self-Supervised_Models_Are_Continual_Learners_CVPR_2022_paper.json

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

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

Connect an agent — have() is free.