SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.11212 · 2018

Self-Supervised GANs via Auxiliary Rotation Loss

arXiv · PDF · Open in the Atlas

Code that ran

3 of 11 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 3 have no contract verdict; 0 failures of our instrument; 8 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/1811.11212.json · badge: /api/ran/1811.11212.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
vandit15/Self-Supervised-Gans-Pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 4 no recorded run
zhangqianhui/Self-Supervised-GANs community (classifier label)
classifier basis not recorded on the link
1 ran · 4 no recorded run
FunctionStatusWhere it lives
get_lsun_dataloader Ran
ran on a synthesized input
vandit15/Self-Supervised-Gans-Pytorch/dataloaders.py
code served (permissive licence) · get_code("9b3691aa74ecac7d")
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 MockDataLoader. 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 tempfile
import os
from unittest.mock import Mock, MagicMock
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)

# Create a minimal mock LSUN dataset class
class MockLSUNDataset(Dataset):
    def __init__(self, db_path, classes, transform=None):
        self.db_path = db_path
        self.classes = classes
        self.transform = transform
        self.length = 2
    
    def __len__(self):
        return self.length
    
    def __getitem__(self, idx):
        # Return a small tensor and a label
        img = torch.randn(3, 128, 128)
        label = idx
        if self.transform:
            img = self.transform(img)
        return img, label

# Monkey-patch the LSUN dataset to use our mock
import torchvision.datasets
original_lsun = torchvision.datasets.LSUN
torchvision.datasets.LSUN = MockLSUNDataset

# Create a temporary directory for the mock data path
temp_dir = tempfile.mkdtemp()

ARGS = {
    'path_to_data': temp_dir,
    'dataset': 'bedroom_train',
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockDataLoader — a MockDataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataLoader 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
lrelu Ran
ran on a synthesized input
zhangqianhui/Self-Supervised-GANs/ops.py
code served (permissive licence) · get_code("207527695edefd17")
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 EagerTensor, ndim 2, dtype family float, shape (2, 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 tensorflow as tf
import numpy as np

def lrelu(x, alpha=0.1):
    return tf.maximum(x, alpha * x)

# Create a small TensorFlow tensor for testing
x_tensor = tf.constant([[-2.0, -1.0, 0.5, 1.5], [2.0, -0.5, 0.0, -3.0]], dtype=tf.float32)

ARGS = {
    "x": x_tensor,
    "alpha": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
spectral_norm Ran
ran on a synthesized input
vandit15/Self-Supervised-Gans-Pytorch/ops.py
code served (permissive licence) · get_code("ba12c98b75e5b17a")
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 SimpleModule. 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 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
from torch.autograd import Variable

torch.manual_seed(0)

# Create a simple module with a weight parameter
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.weight = nn.Parameter(torch.randn(4, 3))
    
    def forward(self, x):
        return x @ self.weight.t()

module = SimpleModule()

ARGS = {
    'module': module,
    'name': 'weight'
}
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 SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule 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
conv2d Not yet run
unverified (harvested, no recorded run)
zhangqianhui/Self-Supervised-GANs/ops.py
code served (permissive licence) · get_code("8f6578938a03667d")
How it ran

no invocation recorded.

conv_cond_concat Not yet run
unverified (harvested, no recorded run)
vandit15/Self-Supervised-Gans-Pytorch/ops.py
code served (permissive licence) · get_code("bc3f0c5701ef3b57")
How it ran

no invocation recorded.

download_cifar10 Not yet run
unverified (harvested, no recorded run)
zhangqianhui/Self-Supervised-GANs/download.py
code served (permissive licence) · get_code("800619dde7521a77")
How it ran

no invocation recorded.

download_svhn Not yet run
unverified (harvested, no recorded run)
zhangqianhui/Self-Supervised-GANs/download.py
code served (permissive licence) · get_code("bf9ecbd77cd2d059")
How it ran

no invocation recorded.

get_fashion_mnist_dataloaders Not yet run
unverified (harvested, no recorded run)
vandit15/Self-Supervised-Gans-Pytorch/dataloaders.py
code served (permissive licence) · get_code("2e236e0534c38e3b")
How it ran

no invocation recorded.

get_mnist_dataloaders Not yet run
unverified (harvested, no recorded run)
vandit15/Self-Supervised-Gans-Pytorch/dataloaders.py
code served (permissive licence) · get_code("e2092604fc016e70")
How it ran

no invocation recorded.

log_sum_exp Not yet run
unverified (harvested, no recorded run)
vandit15/Self-Supervised-Gans-Pytorch/ops.py
code served (permissive licence) · get_code("6a0d455dcdcf2ec5")
How it ran

no invocation recorded.

log_sum_exp Not yet run
unverified (harvested, no recorded run)
zhangqianhui/Self-Supervised-GANs/ops.py
code served (permissive licence) · get_code("dffe333c7a3624a0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 10 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
spectral_norm 2 other papers
2 dated earlier
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1805.08318 (2018-05)
Self-Attention Generative Adversarial 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-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

Conditional GANs are at the forefront of natural image synthesis. The main drawback of such models is the necessity for labeled data. In this work we exploit two popular unsupervised learning techniques, adversarial training and self-supervision, and take a step towards bridging the gap between conditional and unconditional GANs. In particular, we allow the networks to collaborate on the task of representation learning, while being adversarial with respect to the classic GAN game. The role of self-supervision is to encourage the discriminator to learn meaningful feature representations which are not forgotten during training. We test empirically both the quality of the learned image representations, and the quality of the synthesized images. Under the same conditions, the self-supervised GAN attains a similar performance to state-of-the-art conditional counterparts. Finally, we show that this approach to fully unsupervised learning can be scaled to attain an FID of 23.4 on unconditional ImageNet generation.

For agents

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

get_harvested_code_for_paper("1811.11212")
get_code_for_paper("1811.11212")
have("1811.11212")

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

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

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

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

Connect an agent — have() is free.