# Self-supervised Visual Feature Learning with Deep Neural Networks: A Survey

Survey reviews how self-supervised networks learn visual features without human labels

Longlong Jing, Yingli Tian · arXiv · 2019-2-16

- **Problem** Training deep networks needs large labeled datasets, and annotating video is especially costly and slow. Self-supervised learning could avoid this, but its methods had not been reviewed as a whole.
- **Method** The authors group label-free pretext tasks by the data attribute that supplies the pseudo label. Categories include image generation, context-based tasks, and free semantic labels from game engines.
- **Results** On UCF101, the best self-supervised video model reached less than 66%, compared to more than 84% for a Kinetics-supervised model.

## Why labeled data is the bottleneck

Deep ConvNets depend on both their capacity and the amount of training data they see. Video annotation is harder, because the temporal dimension makes collecting and annotating video datasets more expensive. Many Amazon Turk workers spent a lot of time collecting and annotating a dataset at that scale.

Pre-training on large datasets helps because the learned parameters give a good starting point for other tasks. The pre-trained network also learns hierarchical features, which can reduce over-fitting when other task datasets are small or labels are scarce. That route still depends on human labels, so the survey asks whether useful features can come from the unlabeled data itself.

Self-supervised learning is the premise here: it trains on unlabeled images or videos without any human annotations.

## Pretext tasks as a source of free labels

A pseudo label lets a ConvNet learn because its answer is computed from the data itself, with no human annotator involved. Colorization shows how this works: the gray-scale input is generated from an RGB image, and the RGB image itself serves as the pseudo label. Because the training pair is produced in real time at negligible cost, very large unlabeled collections can feed the pretext task.

The objective looks like supervised training, except that the pseudo label P\_i takes the place of the human label Y\_i. The loss averages the difference between the network output on X\_i and the pseudo label P\_i over N samples, and this average is minimized over θ. The formula is loss(D) = min over θ of (1/N) times the sum over i of loss(X\_i, P\_i).

Once this pretext stage finishes, the ConvNet itself carries the learned visual features forward.

Transfer happens in a second stage, where the learned weights initialize a network that is fine-tuned on a downstream task. Shallow layers tend to capture edges, corners and textures, so the first several layers are usually the ones carried over. The authors describe this pipeline as a schema in which no human annotation enters at any step.

## Four families of pretext tasks by data attribute

Pretext tasks are grouped by the data attribute that supplies the pseudo label, which the survey uses to sort them into four categories. Image generation covers colorization, super resolution, inpainting and GAN-based image generation, while video generation covers GAN-based video generation and video prediction. Context-based pretext tasks employ context features such as context similarity, spatial structure and temporal structure.

Spatial context structure tasks use the relations among image patches, such as the image jigsaw puzzle and geometric transformation recognition. Temporal context structure tasks use the temporal order of video frames as the supervision signal, for example by verifying whether frames are in correct order.

Free semantic label-based methods train networks with automatically generated semantic labels, produced by traditional hard-code algorithms or by game engines. Their pretext tasks include moving object segmentation, contour detection and relative depth prediction. Examples are visual-audio correspondence, RGB-flow correspondence and egomotion.

Every pseudo label is generated from attributes of the data itself, so no human annotation is needed during pretext training. The pretext tasks share two common properties: visual features must be captured by ConvNets to solve them, and their pseudo labels are generated automatically. Because the pseudo labels come from the data, the learned features can later be transferred to downstream tasks by fine-tuning.

The downstream performance then serves as the measure of how good the learned features are.

## Image generation tasks: inpainting, colorization and GANs

Generation tasks force the network to rebuild missing or hidden image content, so it must learn what objects look like. The generator is a fully convolutional encoder-decoder network trained with a pixel-wise reconstruction loss, while a discriminator judges whether the input image is real. The context encoder learns semantic features in the encoder, and the context decoder predicts the missing region from them.

Only Pathak et al. studied whether the generator's learned parameters transfer to other computer vision tasks.

Colorization asks the network to predict plausible colors from a gray-scale photograph, so it must recognize objects and group pixels of the same part. A straightforward design uses an encoder for features and a decoder for color, optimized with an L2 loss against the original color. Zhang et al.'s colorization method, trained on large-scale image collections, fooled humans on 32% of trials during the colorization test.

That 32% figure comes from the colorization test itself, and the paper doesn't report it on a downstream benchmark. Several works use colorization as the pretext task for self-supervised image representation learning, and their features are then evaluated on downstream high-level tasks.

The min-max game is formulated so that the discriminator maximizes the probability of real data and minimizes it for generated data. The generator is trained so that the discriminator's output on generated data is maximized, pushing generated data close to real data. Because the discriminator must capture semantic features to succeed, its parameters can serve as a pre-trained model for other vision tasks.

Generated image quality is usually evaluated with inception scores, and only a few methods checked discriminator features on high-level tasks.

SRGAN combines an adversarial loss with a content loss, and the generator's loss adds a pixel-wise L2 loss to the content loss. The authors argue that the adversarial loss recovers finer details than a network that only minimizes the Mean Squared Error, which yields high peak signal-to-noise ratios but lacks high-frequency details. No one has tested the transferred performance of SRGAN's parameters on other tasks, so that transfer remains unknown.

## Clustering and spatial context tasks

Clustering creates pseudo classes by grouping hand-designed features such as HOG or SIFT, and each cluster index becomes a class label. Images in the same cluster have smaller distances in feature space, so the features behind the grouping are the ones the clusters inherit. A ConvNet is then trained to classify the data using the cluster assignment as the pseudo class label.

To solve this classification, the ConvNet must learn invariance within one class and variance among different classes, which pushes it toward semantic meaning of images.

DeepCluster follows the same principle but repeats the process: it clusters features with k-means and uses the subsequent assignments as supervision to update the network weights. Some methods instead train the ConvNet to recognize whether two images come from the same cluster, rather than predicting the cluster index. The authors call DeepCluster the current state of the art for self-supervised image representation learning.

Spatial context tasks, such as image jigsaw puzzles, context prediction and geometric transformation recognition, ask the network to reason about relative positions of patches. The pseudo labels for these tasks come from the spatial relations among patches, so no human annotation is needed.

## Game-engine and hard-coded labels

Game engines render realistic images together with accurate pixel-level labels at very low cost. Synthetic datasets built this way can carry depth, contours, surface normal, segmentation mask and optical flow labels for training deep networks. Airsim and Carla are two engines the paper names as used for generating such large-scale synthetic datasets.

Still, a ConvNet trained purely on synthetic images can't be applied directly to real-world images, because of the domain gap. Bridging that gap explicitly is what makes the synthetic labels useful for self-supervised feature learning.

Ren and Lee propose an unsupervised feature space domain adaptation method based on adversarial learning. A discriminator network D pushes the feature spaces of real-world and synthetic data closer together. The adversarial training and accurate synthetic labels together let the network capture visual features for real-world images. Compared with pretext tasks that only implicitly force semantic features, these labels explicitly drive ConvNets toward object-related features.

Hard-code programs are another route to automatically generated semantic labels, such as salience, foreground masks, contours and depth. This route has two steps: the program first labels images or videos, then a ConvNet trains on those generated labels. Pathak et al. train a ConvNet to segment moving foreground objects in video frames, using motion masks as labels.

Li et al. train a ConvNet for edge prediction, with motion edges from flow fields as labels. Jing et al. train a ConvNet to predict relative scene depths, with labels generated from optical flow.

Whatever the label source, these methods distill knowledge from a hard-code detector such as an edge, salience or relative detector. Labels stay self-supervised only as long as no human annotation enters through the design of the detectors. The semantic labels drive the ConvNet directly toward semantic features, which is their main advantage.

However, the labels produced by hard-code detectors are usually very noisy, so the training must cope with that noise.

## Video generation and video prediction

In these video generation and prediction tasks, the video itself serves as the pseudo training label, so no human annotation is needed. VideoGAN builds its generator from a foreground stream and a background stream, and it combines the two through a mask. The generator takes a 100 dim noise input, and the foreground stream uses 3D convolutions while the background stream uses 2D convolutions.

Table 3 lists VideoGAN as the forerunner of video generation with GAN, and MocoGAN decomposes motion and content for the same purpose.

Tran et al. take a different route and use an encoder-decoder built from 3D convolutions, with a 3D deconvolution decoder. Its input is a clip of grayscale video and its output is a colorful video clip. Only a few works have used color coherence as a supervision signal for video features, so the authors see room for more work.

Video prediction asks the network to predict future frame sequences from a limited number of frames, so it must learn how appearance changes within a sequence. Un-LSTM is the pioneer of deep video prediction, and it uses LSTM in both the encoder and the decoder. Most later methods use an LSTM or an LSTM variant to encode temporal dynamics or to infer future frames.

MCNet has a content encoder that captures the spatial layout of an image and a motion encoder that models temporal dynamics within clips. Its spatial and temporal features are concatenated and fed to the decoder, which generates the next frame recursively. No work has yet studied whether features learned by video prediction generalize to other tasks.

SSIM and PSNR are used to compare the generated frame sequence with the ground truth frame sequence.

## Temporal order and cross-modal video signals as cheap supervision

Temporal order is one video signal that needs no human labels, since the frame order is known from the video itself. To verify the order, the network has to capture subtle differences between frames, such as the movement of a person. This is costly, because the frame sequences depend on optical flow, and optical flow is expensive and slow to compute.

Cross-modal methods learn video features from the correspondence between streams such as RGB, optical flow, audio, and camera pose. Optical flow marks object motion directly, and frame differences can indicate the boundary of moving objects at negligible cost. Sayed et al. verify whether input RGB frames and their optical flow correspond, using one network for RGB and another for flow.

FlowNet, proposed by Fischer et al., estimates optical flow end-to-end from two consecutive frames. Optical flow labels can be generated by simulators such as game engines or by hard-coded programs, without human annotation.

Visual-audio correspondence uses a visual stream ConvNet and an audio stream ConvNet joined by a fusion layer. The audio network is a 2DConvNet whose input is the Fast Fourier Transform of the audio from the video. Positive pairs come from the same time of one video, while negatives come from different videos or different times of one video.

The networks learn to discover the correlation between video and audio so they can judge whether a pair matches. The authors report that the two networks perform very well on downstream applications.

The ego-motion method treats a self-driving car as a camera moving through a scene, so visual motion should match the car's ego-motion. The labels give the rotation and translation between the two frames, and they come from the odometry data of the dataset. Because the network must find visual elements present in both frames, the ConvNet learns features that transfer to downstream tasks.

Since the video features from these tasks can be measured on UCF101 and HMDB51, the survey next compares their action recognition results.

## How learned features are judged

Pre-trained weights are judged by how well they transfer to downstream tasks such as image classification, segmentation, detection and action recognition. Image classification, semantic segmentation and object detection test the generalization of learned image features. Human action recognition tests the quality of video features, because the network must capture both spatial and temporal features.

For segmentation, the FCN starts from the pretext-trained parameters, replacing the fully connected layers with transposed convolution. The FCN is then fine-tuned on the segmentation dataset, and its results are compared with other self-supervised methods. For detection, Fast-RCNN generates object proposals from feature maps and feeds them to fully connected layers for boxes and classes.

The pretext-trained network serves as the pre-trained model for Fast-RCNN, which is then fine-tuned on object detection datasets.

For classification, the self-supervised model is applied to each image to extract features. Those features train a classifier such as a Support Vector Machine (SVM), and test accuracy is compared with other self-supervised models. For action recognition, the network is first trained on unlabeled videos with pretext tasks, then fine-tuned on labeled action datasets.

## UCF101 action recognition results

The authors fine-tuned the pre-trained networks on UCF101 and HMDB51 for human action recognition, after the pretext task pre-training finished. They compared existing self-supervised video feature learning methods on both datasets in Table 6. The best self-supervised model reached less than 66% on UCF101 after fine-tuning.

A supervised model trained with Kinetics labels reached more than 84% on the same action recognition task. The Kinetics dataset holds 500,000 videos across 600 categories, so its labels cover far more video content. The two sides differ in more than the method, since one is pre-trained without labels while the other uses Kinetics labels. Even so, the gap shows that self-supervised video features still sit well below supervised pre-training.

## Limits the survey points out

Video prediction methods still lack a check of their features on other tasks. Such studies would need evaluation of the predicted frames, which the survey describes with SSIM and PSNR.

Hard-code detectors produce semantic labels that the survey calls very noisy. Because the noise is high, the labels need dedicated handling before the ConvNet can learn from them well. Game engines give accurate pixel-level labels at very low cost, but their synthetic images bring a domain gap. A ConvNet trained purely on synthetic images can't be applied directly to real-world images.

Ren and Lee bridged this gap with an unsupervised feature space domain adaptation method based on adversarial learning.

Temporal order methods face a heavy cost in preparing their training data. The frame sequences are selected by the magnitude of optical flow, and computing optical flow is expensive and slow. The survey therefore argues that more straightforward and time-efficient methods are needed for self-supervised video feature learning. Cross modal methods depend on correspondences across streams such as optical flow, which the survey lists among the data they use.

## Paper info

- **Authors**: Longlong Jing, Yingli Tian
- **Venue**: arXiv · Preprint
- **First published**: 2019-2-16
- **Added**: 2026-11-12
- **Updated**: 2019-2-16
- **Version**: v1
- **arXiv**: 1902.06162
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1902.06162v1) · [PDF ↗](https://arxiv.org/pdf/1902.06162v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Longlong Jing, Yingli Tian (2019). Self-supervised Visual Feature Learning with Deep Neural Networks: A Survey. arXiv:1902.06162v1. https://arxiv.org/abs/1902.06162v1

**BibTeX**

```
@misc{jing2019self,
  title = {{Self-supervised Visual Feature Learning with Deep Neural Networks: A Survey}},
  author = {Longlong Jing and Yingli Tian},
  year = {2019},
  eprint = {1902.06162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.06162v1}
}
```

## Other paper commentary

- [Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection](https://refivu.com/en/papers/d71e5f0f-1f56-4ab0-b2a4-41156c563837-grounding-dino-marrying-dino-with-grounded-pre-training.md)
- [Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Survey](https://refivu.com/en/papers/80491a86-47c1-436a-bec9-4dead5cabb78-threat-of-adversarial-attacks-on-deep-learning-in.md)
- [Image Super-Resolution via Iterative Refinement](https://refivu.com/en/papers/3eef3bfb-00fb-4f8e-9c82-8b12a576f54c-image-super-resolution-via-iterative-refinement.md)
- [Free-Form Image Inpainting with Gated Convolution](https://refivu.com/en/papers/c438682f-8d73-4981-a1ac-035e6f376b93-free-form-image-inpainting-with-gated-convolution.md)
- [Focal and Efficient IOU Loss for Accurate Bounding Box Regression](https://refivu.com/en/papers/cc28bb37-8cb7-49b2-84aa-5bd885a3d4e6-focal-and-efficient-iou-loss-for-accurate-bounding.md)
- [NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection](https://refivu.com/en/papers/52a19738-611e-4c4e-b54f-2e9b88114304-nas-fpn-learning-scalable-feature-pyramid-architecture-for.md)
- [Active Learning with Statistical Models](https://refivu.com/en/papers/7d04ea81-8e24-4074-8953-6e8f7fe61d84-active-learning-with-statistical-models.md)
- [MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognition](https://refivu.com/en/papers/29204d8b-e10a-438d-99d3-3f2ae9ee3cd4-ms-celeb-1m-a-dataset-and-benchmark-for.md)
- [Optuna: A Next-generation Hyperparameter Optimization Framework](https://refivu.com/en/papers/e942093c-e24f-4376-bcfb-cbd377aca1d1-optuna-a-next-generation-hyperparameter-optimization.md)
- [Latent Dirichlet Allocation (LDA) and Topic modeling: models, applications, a survey](https://refivu.com/en/papers/7c7dce20-b29a-401e-a22b-b97cd29a6ba4-latent-dirichlet-allocation-lda-and-topic-modeling-models.md)
- [A Time Series is Worth 64 Words: Long-term Forecasting with Transformers](https://refivu.com/en/papers/15822929-13f1-40c7-8503-ce263dcf1639-a-time-series-is-worth-64-words-long.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [semantic segmentation](https://refivu.com/en/terms/00dfce7ec404-semantic-segmentation)
- [Generative Adversarial Networks](https://refivu.com/en/terms/889f2a50b737-generative-adversarial-networks)
- [Self-supervised learning](https://refivu.com/en/terms/5cfb8786ff12-self-supervised-learning)
- [UCF101](https://refivu.com/en/terms/d2741e29e775-ucf101)
- [SRGAN](https://refivu.com/en/terms/c11ed1ea7c7e-srgan)
- [HMDB51](https://refivu.com/en/terms/87e589274cbe-hmdb51)
- [context encoder](https://refivu.com/en/terms/c92a2f197dda-context-encoder)
- [DeepCluster](https://refivu.com/en/terms/cff025807bdb-deepcluster)
- [human action recognition](https://refivu.com/en/terms/5d3bddaac890-human-action-recognition)
- [Kinetics](https://refivu.com/en/terms/b9bc776208e1-kinetics)
- [pretext task](https://refivu.com/en/terms/9e1cd3a4fd51-pretext-task)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/2ed56949-12ff-4ca9-9d23-0a39cf519c34-self-supervised-visual-feature-learning-with-deep-neural)
