U NSUPERVISED R EPRESENTATION L EARNING BY P REDICTING I MAGE R OTATIONS
Anonymous authors
Paper under double-blind review
A BSTRACT
Over the last years, deep convolutional neural networks (ConvNets) have transformed the ﬁeld 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 ConvNets 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.
Speciﬁcally, our results on those benchmarks demonstrate dramatic improvements w.r.t.
prior state-of-the-art approaches in unsupervised representation learning and thus signiﬁcantly 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 similar striking results when we transfer our unsupervised learned features on various other tasks, such as ImageNet classiﬁcation, PASCAL classiﬁcation, PASCAL segmentation, and
CIFAR-10 classiﬁcation.
I NTRODUCTION
In recent years, the widespread adoption of deep convolutional neural networks (LeCun et al., 1998) (ConvNets) in computer vision, has lead to a tremendous progress in the ﬁeld.
Speciﬁcally, by training ConvNets on the object recognition (Russakovsky et al., 2015) or the scene classiﬁcation (Zhou et al., 2014) tasks with a massive amount of manually labeled data, they manage to learn powerful visual representations suitable for image understanding tasks.
For instance, the image features learned by ConvNets in this supervised manner have achieved excellent results when they are transferred to other vision tasks, such as object detection (Girshick, 2015), semantic segmentation (Long et al., 2015), or image captioning (Karpathy & Fei-Fei, 2015).
However, supervised feature learning has the main limitation of requiring intensive manual labeling effort, which is both expensive and infeasible to scale on the vast amount of visual data that are available today.
Due to that, there is lately an increased interest to learn high level ConvNet based representations in an unsupervised manner that avoids manual annotation of visual data.
Among them, a prominent paradigm is the so-called self-supervised learning that deﬁnes an annotation free pretext task, using only the visual information present on the images or videos, in order to provide a surrogate supervision signal for feature learning.
For example, in order to learn features, Zhang et al.
(2016a)
and Larsson et al.
(2016) train ConvNets to colorize gray scale images, Doersch et al.
and Noroozi & Favaro (2016) predict the relative position of image patches, and Agrawal et al.
(2015) predict the egomotion (i.e., self-motion) of a moving vehicle between two consecutive frames.
The rationale behind such self-supervised tasks is that solving them will force the ConvNet to learn semantic image features that can be useful for other vision tasks.
In fact, image representations learned with the above self-supervised tasks, although they have not managed to match the performance of supervised-learned representations, they have proved to be good alternatives for transferring on other vision tasks, such as object recognition, object detection, and semantic segmentation (Zhang et al., 2016a; Larsson et al., 2016;
Zhang et al., 2016b; Larsson et al., 2017; Doersch et al., 2015; Noroozi & Favaro, 2016; Noroozi et al., 2017; Pathak et al., 2016a; Doersch & Zisserman, 2017).
Other successful cases of unsupervised feature learning are clustering based methods (Dosovitskiy et al., 2014;
Liao et al., 2016; Yang et al., 2016), reconstruction based methods (Bengio et al., 2007;
Huang et al., 2007; Masci et al., 2011), and methods that involve learning generative probabilistic models Goodfellow et al.
(2014); Donahue et al. ; Radford et al. Our work follows the self-supervised paradigm and proposes to learn image representations by training ConvNets to recognize the geometric transformation that is applied to the image that it gets as input.
More speciﬁcally, we ﬁrst deﬁne a small set of discrete geometric transformations, then each of those geometric transformations are applied to each image on the dataset and the produced transformed images are fed to the ConvNet model that is trained to recognize the transformation of each image.
In this formulation, it is the set of geometric transformations that actually deﬁnes the classiﬁcation pretext task that the ConvNet model has to learn.
Therefore, in order to achieve unsupervised semantic feature learning, it is of crucial importance to properly choose those geometric transformations (we further discuss this aspect of our methodology in section 2.2).
What we propose is to deﬁne the geometric transformations as the image rotations by 0, 90, 180, and 270 degrees.
Thus, the ConvNet model is trained on the 4-way image classiﬁcation task of recognizing one of the four image rotations (see Figure 2).
We argue that in order a ConvNet model to be able recognize the rotation transformation that was applied to an image it will require to understand the concept of the objects depicted in the image (see Figure 1), such as their location in the image, their type, and their pose.
Throughout the paper we support that argument both qualitatively and quantitatively.
Furthermore we demonstrate on the experimental section of the paper that despite the simplicity of our self-supervised approach, the task of predicting rotation transformations provides a powerful surrogate supervision signal for feature learning and leads to dramatic improvements on the relevant benchmarks.
Note that our self-supervised task is different from the work of Dosovitskiy et al.
and Agrawal et al. (2015) that also involves geometric transformations.
Dosovitskiy et al. (2014) train a ConvNet model to yield representations that are discriminative between images and at the same time invariant on geometric and chromatic transformations.
In contrast, we train a ConvNet model to recognize the geometric transformation applied to an image.
It is also fundamentally different from the egomotion method of Agrawal et al.
(2015), which employs a ConvNet model with siamese like architecture that takes as input two consecutive video frames and is trained to predict (through regression) their camera transformation.
Instead, in our approach, the ConvNet takes as input a single image to which we have applied a random geometric transformation (i.e., rotation) and is trained to recognize (through classiﬁcation) this geometric transformation without having access to the initial image.
Our contributions are:
• We propose a new self-supervised task that is very simple and at the same time, as we demonstrate throughout the paper, offers a powerful supervisory signal for semantic feature learning.
• We exhaustively evaluate our self-supervised method under various settings (e.g. semisupervised or transfer learning settings) and in various vision tasks (i
e., CIFAR-10, ImageNet, Places, and PASCAL classiﬁcation, detection, or segmentation tasks).
• In all of them, our novel self-supervised formulation demonstrates state-of-the-art results with dramatic improvements w.r.t.
prior unsupervised approaches.
• As a consequence we show that for several important vision tasks, our self-supervised learning approach signiﬁcantly narrows the gap between unsupervised and supervised feature learning.
In the following sections, we describe our self-supervised methodology in § 2, we provide experimental results in § 3, and ﬁnally we conclude in § 4. [Figure]
M ETHODOLOGY 2. O VERVIEW
The goal of our work is to learn ConvNet based semantic features in an unsupervised manner.
To achieve that goal we propose to train a ConvNet model F ( . ) to estimate the geometric transformation applied to an image that is given to it as input.
Speciﬁcally, we deﬁne a set of K discrete geometric transformations G =
{ g ( .
| y ) }
Ky =1 , where g ( .
| y ) is the operator that applies to image X the geometric transformation with label y that yields the transformed image
X y =
g ( X | y ) .
The ConvNet model
F ( . ) gets as input an image X y ∗ (where the label y ∗ is unknown to model F ( . ) ) and yields as output a probability distribution over all possible geometric transformations:
[Equation]
where F y ( X y ∗ | θ ) is the predicted probability for the geometric transformation with label y and θ are the learnable parameters of model F ( . ) .
Therefore, given a set of N training images D =
{ X i } Ni =0 , the self-supervised training objective that the ConvNet model must learn to solve is:
[Equation]
where the loss function loss ( . ) is deﬁned as:
[Equation]
In the following subsection we describe the type of geometric transformations that we propose in our work.
2. C HOOSING GEOMETRIC TRANSFORMATIONS : IMAGE ROTATIONS
In the above formulation, the geometric transformations G must deﬁne a classiﬁcation task that should force the ConvNet model to learn semantic features useful for visual perception tasks (e.g., object detection or image classiﬁcation).
In our work we propose to deﬁne the set of geometric transformations G as all the image rotations by multiples of 90 degrees, i.e., 2d image rotations by 0, 90, 180, and 270 degrees (see Figure 2).
More formally, if Rot ( X, φ ) is an operator that rotates image X by φ degrees, then our set of geometric transformations consists of the K = 4 image rotations G =
{ g ( X | y ) } 4 y =1 , where g ( X | y ) =
Rot ( X, ( y − 1)90) .
Forcing the learning of semantic features: The core intuition behind using these image rotations as the set of geometric transformations relates to the simple fact that it is essentially impossible for a
ConvNet model to effectively perform the above rotation recognition task unless it has ﬁrst learnt to recognize and detect classes of objects as well as their semantic parts in images.
More speciﬁcally,
Rotated image: X Rotated image: X
Rotated image: X Rotated image: X
ConvNet model F(.) ConvNet model F(.)
ConvNet model F(.) ConvNet model F(.)
[Figure]
Predict 270 degrees rotation (y=3)
Rotate 270 degrees g
( X , y = 3 )
Rotate 180 degrees g
( X , y = 2 )
Rotate 90 degrees g
( X , y = 1 )
Rotate 0 degrees g ( X , y = 0 )
Maximize prob.
F 3 ( X 3 )
Predict 0 degrees rotation (y=0)
Maximize prob.
F 2 ( X 2 )
Maximize prob.
F 1 ( X 1 )
Maximize prob.
F
( X 0 )
Predict 180 degrees rotation (y=2)
Predict 90 degrees rotation (y=1)
Objectives:
Given four possible geometric transformations, the 0, 90, 180, and 270 degrees rotations, we train a ConvNet model F ( . ) to recognize the rotation that is applied to the image that it gets as input.
F y ( X y ∗ ) is the probability of rotation transformation y predicted by model F ( . )
when it gets as input an image that has been transformed by the rotation transformation y ∗ .
to successfully predict the rotation of an image the ConvNet model must necessarily learn to localize salient objects in the image, recognize their orientation and object type, and then relate the object orientation with the dominant orientation that each type of object tends to be depicted within the available images.
In Figure 3b we visualize some attention maps generated by a model trained on the rotation recognition task.
These attention maps are computed based on the magnitude of activations at each spatial cell of a convolutional layer and essentially reﬂect where the network puts most of its focus in order to classify an input image.
We observe, indeed, that in order for the model to accomplish the rotation prediction task it learns to focus on high level object parts in the image, such as eyes, nose, tails, and heads.
By comparing them with the attention maps generated by a model trained on the object recognition task in a supervised way (see Figure 3a) we observe that both models seem to focus on roughly the same image regions. Furthermore, in Figure 4 we visualize the ﬁrst layer ﬁlters that were learnt by an AlexNet model trained on the proposed rotation recognition task. As can be seen, they appear to have a big variety of edge ﬁlters on multiple orientations and multiple frequencies. Remarkably, these ﬁlters seem to have a greater amount of variety even than the ﬁlters learnt by the supervised object recognition task.
Absence of low-level visual artifacts: An additional important advantage of using image rotations by multiples of 90 degrees over other geometric transformations, is that they can be implemented by ﬂip and transpose operations (as we will see below) that do not leave any easily detectable low-level visual artifacts that will lead the ConvNet to learn trivial features with no practical value for the vision perception tasks.
In contrast, had we decided to use as geometric transformations, e.g., scale and aspect ratio image transformations, in order to implement them we would need to use image resizing routines that leave easily detectable image artifacts.
Well-posedness: Furthermore, human captured images tend to depict objects in an “up-standing” position, thus making the rotation recognition task well deﬁned, i.e., given an image rotated by 0, 90, 180, or 270 degrees, there is usually no ambiguity of what is the rotation transformation (with the exception of images that only depict round objects).
In contrast, that is not the case for the object scale that varies signiﬁcantly on human captured images.
Implementing image rotations:
In order to implement the image rotations by 90, 180, anddegrees (the 0 degrees case is the image itself), we use ﬂip and transpose operations. Speciﬁcally,
[Figure] A. for 90 degrees rotation we ﬁrst transpose the image and then ﬂip it vertically (upside-down ﬂip), for 180 degrees rotation we ﬂip the image ﬁrst vertically and then horizontally (left-right ﬂip), and ﬁnally for 270 degrees rotation we ﬁrst ﬂip vertically the image
and then we transpose it.
2. D ISCUSSION
The simple formulation of our self-supervised task has several advantages.
It has the same computational cost as supervised learning, similar training convergence speed (that is signiﬁcantly faster than image reconstruction based approaches; our AlexNet model trains in around 2 days using a single
Titan X GPU), and can trivially adopt the efﬁcient parallelization schemes devised for supervised learning (Goyal et al., 2017), making it an ideal candidate for unsupervised learning on internetscale data (i.e., billions of images).
Furthermore, our approach does not require any special image pre-processing routine in order to avoid learning trivial features, as many other unsupervised or self-supervised approaches do.
Despite the simplicity of our self-supervised formulation, as we will see in the experimental section of the paper, the features learned by our approach achieve dramatic improvements on the unsupervised feature learning benchmarks.
E XPERIMENTAL R ESULTS
In this section we conduct an extensive evaluation of our approach on the most commonly used image datasets, such as CIFAR-10 (Krizhevsky & Hinton, 2009), ImageNet (Russakovsky et al., 2015), [Figure] [Table] PASCAL (Everingham et al., 2010), and Places205 (Zhou et al., 2014), as well as on various vision tasks, such as object detection, object segmentation
[Table]
and image classiﬁcation. We also consider several learning scenarios, including transfer learning and semi-supervised learning.
In all cases, we compare our approach with corresponding state-of-the-art methods.
3. CIFAR EXPERIMENTS
We start by evaluating on the object recognition task of CIFAR-10 the ConvNet based features learned by the proposed self-supervised task of rotation recognition.
We will here after call a ConvNet model that is trained on the self-supervised task of rotation recognition RotNet model.
Implementation details:
In our CIFAR-10 experiments we implement the RotNet models with
Network-In-Network (NIN) architectures (Lin et al., 2013).
In order to train them on the rotation prediction task, we use SGD with batch size 128 , momentum 0 .
9 , weight decay 5 e − 4 and lr of 0.1.
We drop the learning rates by a factor of 5 after epochs 30, 60, and 80.
We train in total forepochs.
In our preliminary experiments we found that we get signiﬁcant improvement when during training we train the network by feeding it all the four rotated copies of an image simultaneously instead of each time randomly sampling a single rotation transformation.
Therefore, at each training batch the network sees 4 times more images than the batch size.
Evaluation of the learned feature hierarchies: First, we explore how the quality of the learned features depends from their depth (i.e., the depth of the layer that they come from) as well as from the total depth of the RotNet model.
For that purpose, we ﬁrst train using the CIFAR-10 training images three RotNet models which have 3, 4, and 5 convolutional blocks respectively (note that each conv.
block in the NIN architectures that implement our RotNet models have 3 conv.
layers; therefore, [Table] [Table] the total number of conv.
layers of the examined RotNet models is 9, 12, and 15 for 3, 4, andconv.
blocks respectively).
Afterwards, we learn classiﬁers on top of the feature maps generated by each conv.
block of each RotNet model.
Those classiﬁers are trained in a supervised way on the object recognition task of CIFAR-10.
They consist of 3 fully connected layers; the 2 hidden layers have 200 feature channels each and are followed by batch-norm and relu units.
We report the accuracy results of CIFAR-10 test set in Table 1.
We observe that in all cases the feature maps generated by the 2nd conv.
block (that actually has depth 6 in terms of the total number of conv.
layer till that point) achieve the highest accuracy, i.e., between 88.26% and 89.06%.
The features of the conv.
blocks that follow the 2nd one gradually degrade the object recognition accuracy, which we assume is because they start becoming more and more speciﬁc on the self-supervised task of rotation prediction.
Also, we observe that increasing the total depth of the RotNet models leads to increased object recognition performance by the feature maps generated by earlier layers (and after the 1st conv. block).
We assume that this is because increasing the depth of the model and thus the complexity of its head (i.e., top ConvNet layers) allows the features of earlier layers to be less speciﬁc to the rotation prediction task. Exploring the quality of the learned features w.r.t.
the number of recognized rotations: In Table 2 we explore how the quality of the self-supervised features depends on the number of discrete rotations used in the rotation prediction task.
For that purpose we deﬁned three extra rotation recognition tasks: (a) one with 8 rotations that includes all the multiples of 45 degrees, (b) one with only the 0 ◦ and 180 ◦ rotations, and (c) one with only the 90 ◦ and 270 ◦ rotations.
In order to implement the rotation transformation of the 45 ◦ , 135 ◦ , 225 ◦ , 270 ◦ , and 315 ◦ rotations (in the 8 discrete rotations case) we used an image wrapping routine and then we took care to crop only the central square
[Figure] image regions that do not include any of the empty image areas introduced by the rotation transformations (and which can easily indicate the image rotation). We observe that indeed for 4 discrete rotations (as we proposed) we achieve better object recognition performance than the 8 or 2 cases.
We believe that this is because the 2 orientations case offers too few classes for recognition (i.e., less supervisory information is provided) while in the 8 orientations case the geometric transformations are not distinguishable enough and furthermore the 4 extra rotations introduced may lead to visual artifacts on the rotated images.
Moreover, we observe that among the RotNet models trained with 2 discrete rotations, the RotNet model trained with 90 ◦ and 270 ◦ rotations achieves worse object recognition performance than the model trained with the 0 ◦ and 180 ◦ rotations, which is probably due to the fact that the former model does not “see” during the unsupervised phase the 0 ◦ rotation that is typically used during the object recognition training phase.
Comparison against supervised and other unsupervised methods: In Table 3 we compare our unsupervised learned features against other unsupervised (or hand-crafted) features on CIFAR-10.
For our entries we use the feature maps generated by the 2nd conv.
block of a RotNet model with 4 conv.
blocks in total.
On top of those RotNet features we train 2 different classiﬁers: (a) a nonlinear classiﬁer with 3 fully connected layers as before (entry (Ours) RotNet + non-linear ), and (b) three conv.
layers plus a linear prediction layer (entry (Ours) RotNet +conv. ; note that this entry is basically a 3 blocks NIN model with the ﬁrst 2 blocks coming from a RotNet model and the 3rd being randomly initialized and trained on the recognition task).
We observe that we improve over the prior unsupervised approaches and we achieve state-of-the-art results in CIFAR-10 (note that each of the prior approaches has a different ConvNet architecture thus the comparison with them is just indicative).
More notably, the accuracy gap between the RotNet based model and the fully supervised NIN model is very small , only 1.64 percentage points (92.80% vs 91.16%).
We provide per class breakdown of the classiﬁcation accuracy of our unsupervised model as well as the supervised one in Table 9 (in appendix B). In Table 3 we also report the performance of the RotNet features when, instead of being kept frozen, they are ﬁne-tuned during the object recognition training phase.
We observe that ﬁne-tuning the unsupervised learned features further improves the classiﬁcation performance, thus reducing even more the gap with the supervised case.
Correlation between object classiﬁcation task and rotation prediction task:
In Figure 5a, we plot the object classiﬁcation accuracy as a function of the training epochs used for solving the selfsupervised task of recognizing rotations, which learns the features used by the object classiﬁer.
[Table]
More speciﬁcally, in order to create the object recognition accuracy curve, in each training snapshot of RotNet (i [Table] e., every 20 epochs) [Table]
we pause its training procedure and we train from scratch (until convergence) a non-linear object classiﬁer on top of the so far learnt RotNet features. Therefore, the object recognition accuracy curve depicts the accuracy of those non-linear object classiﬁers after the end of their training while the rotation prediction accuracy curve depicts the accuracy of the RotNet at those snapshots. We observe that, as the ability of the RotNet features for solving the rotation prediction task improves (i.e., as the rotation prediction accuracy increases), their ability to help solving the object recognition task improves as well (i.e., the object recognition accuracy also increases).
Furthermore, we observe that the object recognition accuracy converges fast w.r.t.
the number of training epochs used for solving the pretext task of rotation prediction.
Semi-supervised setting: Motivated by the very high performance of our unsupervised feature learning method, we also evaluate it on a semi-supervised setting.
More speciﬁcally, we ﬁrst train a 4 block RotNet model on the rotation prediction task using the entire image dataset of CIFAR-10 and then we train on top of its feature maps object classiﬁers using only a subset of the available images and their corresponding labels.
As feature maps we use those generated by the 2nd conv.
block of the
RotNet model.
As a classiﬁer we use a set convolutional layers that actually has the same architecture as the 3rd conv.
block of a NIN model plus a linear classiﬁer, all randomly initialized.
For training the object classiﬁer we use for each category 20, 100, 400, 1000, or 5000 image examples.
Note that 5000 image examples is the extreme case of using the entire CIFAR-10 training dataset.
Also, we compare our method with a supervised model that is trained only on the available examples each time.
In Figure 5b we plot the accuracy of the examined models as a function of the available training examples.
We observe that our unsupervised trained model exceeds in this semi-supervised setting the supervised model when the number of examples per category drops below 1000.
Furthermore, as the number of examples decreases, the performance gap in favor of our method is increased.
This empirical evidence demonstrates the usefulness of our method on semi-supervised settings.
3. E VALUATION OF SELF - SUPERVISED FEATURES TRAINED IN I MAGE N ET
Here we evaluate the performance of our self-supervised ConvNet models on the ImageNet, Places, and PASCAL VOC datasets.
Speciﬁcally, we ﬁrst train a RotNet model on the training images of the
ImageNet dataset and then we evaluate the performance of the self-supervised features on the image classiﬁcation tasks of ImageNet, Places, and PASCAL VOC datasets and on the object detection and object segmentation tasks of PASCAL VOC.
[Table]
[Table]
Counting (Noroozi et al., 2017)
[Table]
Implementation details: For those experiments we implemented our RotNet model with an AlexNet architecture. Our implementation of the AlexNet model does not have local response normalization units or groups and it includes batch normalization units after each linear layer (either convolutional or fully connected).
In order to train the AlexNet based RotNet model, we use SGD with batch size 192 , momentum 0 .
9 , weight decay 5 e − 4 and lr of 0.01.
We drop the learning rates by a factor of 10 after epochs 10, and 20 epochs.
We train in total for 30 epochs.
As in the CIFAR experiments, during training we feed the RotNet model all four rotated copies of an image simultanouesly (in the same mini-batch). [Table] [Table]
[Table]
[Table] BIGAN (Donahue et al., 2016) [Table] Jigsaw Puzzles (Noroozi & Favaro, 2016) -
[Table]
NAT (Bojanowski & Joulin, 2017)
[Table]
Split-Brain (Zhang et al., 2016b) 63.
[Table]
[Table]
ColorProxy (Larsson et al., 2017)
[Table]
Counting (Noroozi et al., 2017) -
[Table]
[Table]
(Ours) RotNet
[Table]
[Table]
[Table]
[Table]
ImageNet classiﬁcation task: We evaluate the task generalization of our self-supervised learned features by training on top of them non-linear object classiﬁers for the ImageNet classiﬁcation task (following the evaluation scheme of (Noroozi & Favaro, 2016)).
In Table 4 we report the classiﬁcation performance of our self-supervised features and we compare it with the other unsupervised approaches.
We observe that our approach surpasses all the other methods by a signiﬁcant margin .
For the feature maps generated by the Conv4 layer, our improvement is more than 4 percentage points and for the feature maps generated by the Conv5 layer, our improvement is even bigger, around 8 percentage points.
Furthermore, our approach signiﬁcantly narrows the performance gap between unsupervised features and supervised features.
In Table 5 we report similar results but for linear (logistic regression) classiﬁers (following the evaluation scheme of Zhang et al.
(2016a)).
Again, our unsupervised method demonstrates signiﬁcant improvements over prior unsupervised methods. Transfer learning evaluation on PASCAL VOC: In Table 7 we evaluate the task and dataset generalization of our unsupervised learned features by ﬁne-tuning them on the PASCAL VOC classiﬁcation, detection, and segmentation tasks.
As with the ImageNet classiﬁcation task, we outperform by signiﬁcant margin all the competing unsupervised methods in all tested tasks, signiﬁcantly narrowing the gap with the supervised case.
Notably, the PASCAL VOC 2007 object detection performance that our self-supervised model achieves is 54 .
4% mAP, which is only 2.4 points lower than the supervised case.
We provide the per class detection performance of our method in Table(in appendix B). Places classiﬁcation task: In Table 6 we evaluate the task and dataset generalization of our approach by training linear (logistic regression) classiﬁers on top of the learned features in order to perform the 205-way Places classiﬁcation task. Note that in this case the learnt features are evaluated w.r.t.
their generalization on classes that were “unseen” during the unsupervised training phase.
As can be seen, even in this case our method manages to either surpass or achieve comparable results w.r.t.
prior state-of-the-art unsupervised learning approaches.  C ONCLUSIONS In our work we propose a novel formulation for self-supervised feature learning that trains a ConvNet model to be able to recognize the image rotation that has been applied to its input images.
Despite the simplicity of our self-supervised task, we demonstrate that it successfully forces the ConvNet model trained on it to learn semantic features that are useful for a variety of visual perception tasks, such as object recognition, object detection, and object segmentation.
We exhaustively evaluate our method in various unsupervised and semi-supervised benchmarks and we achieve in all of them state-of-the-art performance.
Speciﬁcally, our self-supervised approach manages to drastically improve the state-of-the-art results on unsupervised feature learning for ImageNet classiﬁcation, PASCAL classiﬁcation, PASCAL detection, PASCAL segmentation, and CIFAR-10 classiﬁcation, surpassing prior approaches by a signiﬁcant margin and thus drastically reducing the gap between unsupervised and supervised feature learning. A PPENDIX A V ISUALIZING ATTENTION MAPS OF ROTATED IMAGES Here we visualize the attention maps generated by an AlexNet model trained on the self-supervised task of rotation recognition for all the rotated copies of a few images.
We observe that the attention maps of all the rotated copies of an image are roughly the same, i.e., the attention maps are equivariant w.r.t.
the image rotations. This practically means that in order to accomplish the rotation prediction task the network focuses on the same object parts regardless of the image rotation. [Figure] A PPENDIX B P ER CLASS BREAKDOWN OF DETECTION AND CLASSIFICATION PERFORMANCE
In Tables 8 and 9 we report the per class performance of our unsupervised learning method on the
PASCAL detection and CIFAR-10 classiﬁcation tasks respectively.
[Table]
[Table]
[Table]