SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.04619 · NeurIPS · 2021

Self-Supervised Learning with Data Augmentations Provably Isolates Content from Style

Francesco Locatello, Bernhard Schölkopf, Luigi Gresele, Julius Von Kügelgen, Michel Besserve, Yash Sharma, Wieland Brendel

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 3 failures of our instrument; 0 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/2106.04619.json · badge: /api/ran/2106.04619.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
ysharma1126/ssl_identifiability canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_exp_name Ran
ran; our contract draft was wrong, not the code
ysharma1126/ssl_identifiability/main_mlp.py
code served (permissive licence) · get_code("b7c99fad0c328715")
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 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 argparse
import string

class Args:
    def __init__(self):
        self.learning_rate = 0.001
        self.batch_size = 32
        self.epochs = 10
        self.model_name = "bert"
        self.use_dropout = True
        self.evaluate = False
        self.num_train_batches = 100
        self.num_eval_batches = 50
        self.evaluate_iter = 5
        self.hidden_dim = 256
        self.seed = 42

class SimpleParser:
    def __init__(self):
        self.defaults = {
            'learning_rate': 0.01,
            'batch_size': 16,
            'epochs': 5,
            'model_name': "gpt",
            'use_dropout': False,
            'evaluate': False,
            'num_train_batches': 100,
            'num_eval_batches': 50,
            'evaluate_iter': 5,
            'hidden_dim': 128,
            'seed': 0
        }
    
    def get_default(self, key):
        return self.defaults.get(key, None)

args = Args()
parser = SimpleParser()

ARGS = {
    'args': args,
    'parser': parser,
    'blacklist': ['evaluate', 'num_train_batches', 'num_eval_batches', 'evaluate_iter']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
get_exp_name Ran
ran; our contract draft was wrong, not the code
ysharma1126/ssl_identifiability/main_3dident.py
code served (permissive licence) · get_code("def79ba06f792d6f")
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 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 argparse
import string

torch_imported = False
try:
    import torch
    torch.manual_seed(0)
    torch_imported = True
except ImportError:
    pass

# Create a minimal args object with various parameter types
class Args:
    def __init__(self):
        self.learning_rate = 0.001
        self.batch_size = 32
        self.num_epochs = 10
        self.model_name = "bert"
        self.use_dropout = True
        self.use_batch_norm = False
        self.hidden_dim = 128
        self.evaluate = False
        self.num_train_batches = 100
        self.num_eval_batches = 20
        self.offline_dataset = "dataset.pkl"
        self.evaluate_iter = 5
        self.n_eval_samples = 1000
        self.seed = 42
        self.optimizer = "adam"
        self.weight_decay = 1e-5

# Create a minimal parser with defaults
parser = argparse.ArgumentParser()
parser.add_argument('--learning_rate', type=float, default=0.001)
parser.add_argument('--batch_size', type=int, default=32)
parser.add_argument('--num_epochs', type=int, default=10)
parser.add_argument('--model_name', type=str, default="bert")
parser.add_argument('--use_dropout', type=bool, default=True)
parser.add_argument('--use_batch_norm', type=bool, default=False)
parser.add_argument('--hidden_dim', type=int, default=128)
parser.add_argument('--evaluate', type=bool, default=False)
parser.add_argument('--num_train_batches', type=int, default=100)
parser.add_argument('--num_eval_batches', type=int, default=20)
parser.add_argument('--offline_dataset', type=str, default="dataset.pkl")
parser.add_argument('--evaluate_iter', type=int, default=5)
parser.add_argument('--n_eval_samples', type=int, default=1000)
parser.add_argument('--seed', type=int, default=42)
parser.add_argument('--optimizer', type=str, default="adam")
parser.add_argument('--weight_decay', type=float, default=1e-5)

args = Args()

ARGS = {
    'args': args,
    'parser': parser,
    'blacklist': ['evaluate', 'num_train_batches', 'num_eval_batches', 'offline_dataset', 'evaluate_iter', 'n_eval_samples']
}
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 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
valid_str Ran
ran; our contract draft was wrong, not the code
ysharma1126/ssl_identifiability/main_mlp.py
code served (permissive licence) · get_code("38f4245139bfc92d")
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 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 string

def valid_str(v):
    if hasattr(v, '__name__'):
        return valid_str(v.__name__)
    if isinstance(v, tuple) or isinstance(v, list):
        return '-'.join([valid_str(x) for x in v])
    str_v = str(v).lower()
    valid_chars = '-_%s%s' % (string.ascii_letters, string.digits)
    str_v = ''.join((c if c in valid_chars else '-' for c in str_v))
    return str_v


# Test cases for the function
ARGS = {
    'v': 'test_string_123'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 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
valid_str 4 other papers
2 dated earlier, 1 the same month, 1 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2106.09110 (2021-06)
Safe Reinforcement Learning Using Advantage-Based Intervention
and 1 more not named here

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

Self-supervised representation learning has shown remarkable success in a number of domains. A common practice is to perform data augmentation via hand-crafted transformations intended to leave the semantics of the data invariant. We seek to understand the empirical success of this approach from a theoretical perspective. We formulate the augmentation process as a latent variable model by postulating a partition of the latent representation into a content component, which is assumed invariant to augmentation, and a style component, which is allowed to change. Unlike prior work on disentanglement and independent component analysis, we allow for both nontrivial statistical and causal dependencies in the latent space. We study the identifiability of the latent representation based on pairs of views of the observations and prove sufficient conditions that allow us to identify the invariant content partition up to an invertible mapping in both generative and discriminative settings. We find numerical simulations with dependent latent variables are consistent with our theory. Lastly, we introduce Causal3DIdent, a dataset of high-dimensional, visually complex images with rich causal dependencies, which we use to study the effect of data augmentations performed in practice.

For agents

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

get_harvested_code_for_paper("2106.04619")
get_code_for_paper("2106.04619")
have("2106.04619")

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

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

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

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

Connect an agent — have() is free.