Unsupervised Learning of Dense Visual Representations

Pedro O. Pinheiro, Amjad Almahairi, Ryan Y. Benmalek, Florian Golemo, Aaron C. Courville

Self-supervised learning (SSL) has traditionally focused on learning global image representations—essentially asking the model to identify "what" is in an image. However, for many computer vision tasks, "where" things are and how they look at a granular level is just as important. VADeR (View-Agnostic Dense Representation), presented at NeurIPS 2020, introduces a framework to learn these dense, pixel-level features without human labels.

The Limitation of Global Representations

Most successful SSL methods, such as SimCLR or MoCo, focus on global representations. They take two augmented views of an image and try to make their summary vectors similar in an embedding space. While this works well for image classification, it is suboptimal for "dense" tasks like object detection, segmentation, or keypoint estimation. Global pooling discards spatial information and pixel-level variance. VADeR addresses this by enforcing feature consistency at every pixel.

The VADeR Framework

The core principle of VADeR is perceptual constancy: a specific physical point in a scene should have a consistent feature representation regardless of how the camera is positioned or how the image is cropped.

The VADeR pipeline uses known geometric transformations to identify corresponding pixels across different views, pulling their features together while pushing away features from different images.

Pixel-level Contrastive Learning

Unlike global methods, VADeR compares individual pixels. Using known geometric transformations (like random crops and flips), the model maps pixels from one view to their counterparts in another. For a given pixel, the "positive" pair is the feature of the same physical location in a different view, while "negative" pairs are pixels sampled from entirely different images.

Pixel-level correspondence: VADeR ensures that a specific point, such as a dog's eye, maintains a similar feature embedding regardless of the image crop.

The model employs a ResNet-50 backbone paired with a Feature Pyramid Network (FPN) to produce high-resolution feature maps rather than a single global vector. It uses an InfoNCE loss to maximize similarity between matching pixels and adopts the momentum contrast mechanism from MoCo to handle the massive number of negative samples required for pixel-level learning.

Key Results and Insights

VADeR demonstrates that local invariance builds a more versatile backbone than global invariance for the majority of computer vision tasks.

  • Superior Performance on Dense Tasks: VADeR significantly outperforms MoCo and even supervised ImageNet pretraining on PASCAL VOC and Cityscapes segmentation. On PASCAL VOC, VADeR achieved 56.7 mIoU, compared to MoCo's 43.0 and supervised pretraining's 54.4.
  • Emergent Semantics: The model naturally learns to cluster high-level visual concepts (like "beaks" or "eyes") across different object instances without ever seeing a label. Querying a pixel on a specific object part allows the model to identify similar parts across different instances in its embedding space.
  • Data Efficiency: The gap between VADeR and other methods is widest when labeled data is scarce. With only 2% of PASCAL VOC labels, VADeR outperforms supervised pretraining by over 10% mIoU.
  • Depth and Video: Beyond segmentation, VADeR shows state-of-the-art results in monocular depth estimation and video mask propagation, despite being trained only on static images.

Conclusion

VADeR marks a significant shift toward more spatially-aware self-supervised learning. By focusing on pixel-level consistency, it provides a powerful foundation for dense computer vision tasks, often surpassing the performance of models trained with millions of human-annotated labels.

Summary updated

BibTeX
@inproceedings{pinheiro2020unsupervised,
  author = {Pedro O. Pinheiro and Amjad Almahairi and Ryan Y. Benmalek and Florian Golemo and Aaron C. Courville},
  title = {{Unsupervised Learning of Dense Visual Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=d2EIXC3s8gp},
}
Figure