SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.07728 · 2018

Unsupervised Representation Learning by Predicting Image Rotations

Praveer Singh, Spyros Gidaris, Nikos Komodakis

arXiv · PDF · Open in the Atlas

Code that ran

16 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 3 failures of our instrument; 6 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/1803.07728.json · badge: /api/ran/1803.07728.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
gidariss/FeatureLearningRotNet canonical (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
moabitcoin/ssvr community
Papers with Code archive
3 ran · 0 no recorded run
Dylan-get/Feature-Learning-RotNet community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
nab-126/resnet community
Papers with Code archive
2 ran · 1 no recorded run
rahuldesai1/NMEP_HW5 community
Papers with Code archive
2 ran · 1 no recorded run
Blimeo/rotnet community
Papers with Code archive
2 ran · 1 no recorded run
zzz1515151/self-supervised_learning_sketch community
Papers with Code archive
2 ran · 0 no recorded run
adham-elarabawy/nmep_proj1 community
Papers with Code archive
1 ran · 0 no recorded run
raghavjajodia/dsga1008_semisuperlearning community
Papers with Code archive
1 ran · 0 no recorded run
facebookresearch/vissl community
Papers with Code archive
0 ran · 1 no recorded run
k-han/AutoNovel community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
AlexNet Ran
ran on a synthesized input
zzz1515151/self-supervised_learning_sketch/AlexNet.py
code served (permissive licence) · get_code("da529ec59bbf59b8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 10) 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

class Flatten(nn.Module):

    def __init__(self):
        super(Flatten, self).__init__()

    def forward(self, feat):
        return feat.view(feat.size(0), -1)

class AlexNet(nn.Module):

    def __init__(self, opt):
        super(AlexNet, self).__init__()
        num_classes = opt['num_classes']
        conv1 = nn.Sequential(nn.Conv2d(3, 64, kernel_size=11, stride=4, padding=2), nn.BatchNorm2d(64), nn.ReLU(inplace=True))
        pool1 = nn.MaxPool2d(kernel_size=3, stride=2)
        conv2 = nn.Sequential(nn.Conv2d(64, 192, kernel_size=5, padding=2), nn.BatchNorm2d(192), nn.ReLU(inplace=True))
        pool2 = nn.MaxPool2d(kernel_size=3, stride=2)
        conv3 = nn.Sequential(nn.Conv2d(192, 384, kernel_size=3, padding=1), nn.BatchNorm2d(384), nn.ReLU(inplace=True))
        conv4 = nn.Sequential(nn.Conv2d(384, 256, kernel_size=3, padding=1), nn.BatchNorm2d(256), nn.ReLU(inplace=True))
        conv5 = nn.Sequential(nn.Conv2d(256, 256, kernel_size=3, padding=1), nn.BatchNorm2d(256), nn.ReLU(inplace=True))
        pool5 = nn.MaxPool2d(kernel_size=3, stride=2)
        num_pool5_feats = 6 * 6 * 256
        fc_block = nn.Sequential(Flatten(), nn.Linear(num_pool5_feats, 4096, bias=False), nn.BatchNorm1d(4096), nn.ReLU(inplace=True), nn.Linear(4096, 4096, bias=False), nn.BatchNorm1d(4096), nn.ReLU(inplace=True))
        classifier = nn.Sequential(nn.Linear(4096, num_classes))
        self._feature_blocks = nn.ModuleList([conv1, pool1, conv2, pool2, conv3, conv4, conv5, pool5, fc_block, classifier])
        self.all_feat_names = ['conv1', 'pool1', 'conv2', 'pool2', 'conv3', 'conv4', 'conv5', 'pool5', 'fc_block', 'classifier']
        assert len(self.all_feat_names) == len(self._feature_blocks)

    def _parse_out_keys_arg(self, out_feat_keys):
        out_feat_keys = [self.all_feat_names[-1]] if out_feat_keys is None else out_feat_keys
        if len(out_feat_keys) == 0:
            raise ValueError('Empty list of output feature keys.')
        for f, key in enumerate(out_feat_keys):
            if key not in self.all_feat_names:
                raise ValueError('Feature with name {0} does not exist. Existing features: {1}.'.format(key, self.all_feat_names))
            elif key in out_feat_keys[:f]:
                raise ValueError('Duplicate output feature key: {0}.'.format(key))
        max_out_feat = max([self.all_feat_names.index(key) for key in out_feat_keys])
        return (out_feat_keys, max_out_feat)

    def forward(self, x, out_feat_keys=None):
        out_feat_keys, max_out_feat = self._parse_out_keys_arg(out_feat_keys)
        out_feats = [None] * len(out_feat_keys)
        feat = x
        for f in range(max_out_feat + 1):
            feat = self._feature_blocks[f](feat)
            key = self.all_feat_names[f]
            if key in out_feat_keys:
                out_feats[out_feat_keys.index(key)] = feat
        out_feats = out_feats[0] if len(out_feats) == 1 else out_feats
        return out_feats

    def get_L1filters(self):
        convlayer = self._feature_blocks[0][0]
        batchnorm = self._feature_blocks[0][1]
        filters = convlayer.weight.data
        scalars = batchnorm.weight.data / torch.sqrt(batchnorm.running_var + 1e-05)
        filters = (filters * scalars.view(-1, 1, 1, 1).expand_as(filters)).cpu().clone()
        return filters


INIT_ARGS = {
    'opt': {
        'num_classes': 10
    }
}

ARGS = {
    'x': torch.randn(2, 3, 224, 224),
    'out_feat_keys': None
}

if __name__ == '__main__':
    model = AlexNet(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shape:", output.shape)
    print("Test passed!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 10) — shape (2, 10) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Data Ran
ran on a synthesized input · constructed an object; no result was computed
nab-126/resnet/rotnet.py
pointer only (licence: NONE) · get_code("977eb64069f84f67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, nab-126/resnet 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.

Data Ran
ran on a synthesized input · constructed an object; no result was computed
rahuldesai1/NMEP_HW5/rotnet.py
pointer only (licence: NONE) · get_code("0b75c3d1eaec7793")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rahuldesai1/NMEP_HW5 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.

Data Ran
ran on a synthesized input · constructed an object; no result was computed
Blimeo/rotnet/rotnet.py
pointer only (licence: NONE) · get_code("4d382e3a78bdf9d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Blimeo/rotnet 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.

Flatten Ran
ran on a synthesized input
zzz1515151/self-supervised_learning_sketch/AlexNet.py
code served (permissive licence) · get_code("89353fd06cc04c28")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 60) 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

class Flatten(nn.Module):

    def __init__(self):
        super(Flatten, self).__init__()

    def forward(self, feat):
        return feat.view(feat.size(0), -1)


INIT_ARGS = {}

ARGS = {
    'feat': torch.randn(2, 4, 3, 5)
}

if __name__ == '__main__':
    model = Flatten(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['feat'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output:\n{output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 60) — shape (2, 60) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
nab-126/resnet/rotnet.py
pointer only (licence: NONE) · get_code("7bbee0bfb7e65af2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, nab-126/resnet 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.

ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
rahuldesai1/NMEP_HW5/rotnet.py
pointer only (licence: NONE) · get_code("d7d646f8c811bb7f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rahuldesai1/NMEP_HW5 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.

ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
Blimeo/rotnet/rotnet.py
pointer only (licence: NONE) · get_code("fd46a2a4889413f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Blimeo/rotnet 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.

RotNet Ran
ran on a synthesized input
adham-elarabawy/nmep_proj1/rotnet.py
pointer only (licence: NONE) · get_code("a60f48bb13f2d666")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, adham-elarabawy/nmep_proj1 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.

RotatedDataset Ran
ran on a synthesized input · constructed an object; no result was computed
moabitcoin/ssvr/ssvr/dataset.py
pointer only (licence: NONE) · get_code("2d3ead654fea6358")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, moabitcoin/ssvr 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.

RotationDataset Ran
ran on a synthesized input
raghavjajodia/dsga1008_semisuperlearning/RotationLearning/RotationLearning.py
pointer only (licence: NONE) · get_code("bdbea7111e28b11d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, raghavjajodia/dsga1008_semisuperlearning 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.

batched Ran
ran; our contract draft was wrong, not the code
moabitcoin/ssvr/ssvr/dataset.py
pointer only (licence: NONE) · get_code("04648afad4671964")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, moabitcoin/ssvr 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.

buildLabelIndex Ran
ran; our contract draft was wrong, not the code
Dylan-get/Feature-Learning-RotNet/paddleRotNet/dataloader.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from valeoai/moca, is pointer only (licence: NOASSERTION) · get_code("57889d72f516d105")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, Dylan-get/Feature-Learning-RotNet, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

files Ran
ran; our contract draft was wrong, not the code
moabitcoin/ssvr/ssvr/dataset.py
pointer only (licence: NONE) · get_code("25b471b6747ae2ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, moabitcoin/ssvr 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.

getConfMatrixResults Ran
ran on a synthesized input
Dylan-get/Feature-Learning-RotNet/paddleRotNet/utils.py
pointer only (licence: Apache-2.0) · get_code("1c15c5f6cad99921")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, Dylan-get/Feature-Learning-RotNet, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

rotate_img Ran
ran on a synthesized input
Dylan-get/Feature-Learning-RotNet/paddleRotNet/dataloader.py
pointer only (licence: Apache-2.0) · get_code("99bcaa01775e6c98")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, Dylan-get/Feature-Learning-RotNet, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

AlexNetRotNet Not yet run
unverified (harvested, no recorded run)
facebookresearch/vissl/vissl/models/trunks/alexnet_rotnet.py
code served (permissive licence) · get_code("a858acd790fe29c4")
How it ran

no invocation recorded.

ResNet Not yet run
unverified (harvested, no recorded run)
k-han/AutoNovel/selfsupervised_learning.py
pointer only (licence: NONE) · get_code("493987c2ab7c1620")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, k-han/AutoNovel 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.

RotNet Not yet run
unverified (harvested, no recorded run)
nab-126/resnet/rotnet.py
pointer only (licence: NONE) · get_code("bf0ed0ecef689d4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, nab-126/resnet 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.

RotNet Not yet run
unverified (harvested, no recorded run)
rahuldesai1/NMEP_HW5/rotnet.py
pointer only (licence: NONE) · get_code("25c505aa05d2b385")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rahuldesai1/NMEP_HW5 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.

RotNet Not yet run
unverified (harvested, no recorded run)
Blimeo/rotnet/rotnet.py
pointer only (licence: NONE) · get_code("6901ba8acd00aef8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Blimeo/rotnet 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.

accuracy Not yet run
unverified (harvested, no recorded run)
gidariss/FeatureLearningRotNet/algorithms/ClassificationModel.py
code served (permissive licence) · get_code("f0c9a29156911331")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 20 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
accuracy 71 other papers
4 dated earlier, 1 the same month, 66 later · 2 only as an assembly brick
1505.05424 (2015-05)
Weight Uncertainty in Neural Networks
1705.07204 (2017-05)
Ensemble Adversarial Training: Attacks and Defenses
1802.10399 (2018-02)
Compressing Neural Networks using the Variational Information Bottleneck
and 68 more not named here
buildLabelIndex 6 other papers
6 later
1804.09458 (2018-04)
Dynamic Few-Shot Visual Learning without Forgetting
1905.01102 (2019-05)
Generating Classification Weights with GNN Denoising Autoencoders for Few-Shot Learning
1906.02944 (2019-06)
Learning Adaptive Classifiers Synthesis for Generalized Few-Shot Learning
and 3 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

Over the last years, deep convolutional neural networks (ConvNets) have transformed the field of computer vision thanks to their unparalleled capacity to learn high level semantic image features. However, in order to successfully learn those features, they usually require massive amounts of manually labeled data, which is both expensive and impractical to scale. Therefore, unsupervised semantic feature learning, i.e., learning without requiring manual annotation effort, is of crucial importance in order to successfully harvest the vast amount of visual data that are available today. In our work we propose to learn image features by training Con-vNets to recognize the 2d rotation that is applied to the image that it gets as input. We demonstrate both qualitatively and quantitatively that this apparently simple task actually provides a very powerful supervisory signal for semantic feature learning. We exhaustively evaluate our method in various unsupervised feature learning benchmarks and we exhibit in all of them state-of-the-art performance. Specifically, our results on those benchmarks demonstrate dramatic improvements w.r.t. prior state-of-the-art approaches in unsupervised representation learning and thus significantly close the gap with supervised feature learning. For instance, in PASCAL VOC 2007 detection task our unsupervised pre-trained AlexNet model achieves the state-of-the-art (among unsupervised methods) mAP of 54.4% that is only 2.4 points lower from the supervised case. We get similarly striking results when we transfer our unsupervised learned features on various other tasks, such as ImageNet classification, PASCAL classification, PASCAL segmentation, and CIFAR-10 classification. The code and models of our paper will be published on: https://github.com/gidariss/FeatureLearningRotNet.

For agents

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

get_harvested_code_for_paper("1803.07728")
get_code_for_paper("1803.07728")
have("1803.07728")

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

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

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

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

Connect an agent — have() is free.