Pixel-level Correspondence for Self-Supervised Learning from Video

Yash Sharma, Yi Zhu, Chris Russell, Thomas Brox

TL;DR

PICO (Pixel-level Correspondence) is a self-supervised framework that learns dense visual representations by tracking physical points across video frames using optical flow. By contrasting matched local features over time, PICO leverages real-world temporal dynamics—such as viewpoint changes and non-rigid deformations—outperforming static image augmentations on dense downstream tasks like semantic segmentation, depth estimation, and object detection.

What Problem Does This Paper Address?

Standard contrastive self-supervised learning (SSL) relies heavily on hand-crafted data augmentations (e.g., random crops, color jittering) to construct alternative views of the same image. While effective, synthetic crops cannot realistically simulate complex 3D transformations, viewpoint shifts, or natural object deformations.

Video offers an abundant source of these natural physical transformations, but most video-based SSL methods optimize for global, whole-image representations (instance discrimination). As a result, they transfer poorly to dense prediction tasks (e.g., semantic segmentation and depth estimation). Existing dense SSL approaches designed for static images miss temporal variation, while naive video extensions often assume that pixel locations remain static over time—an assumption that quickly breaks down as objects move.

Methods

PICO resolves this mismatch by building fine-grained pixel correspondence tracks across video frames:

Video Clip ──► RAFT Flow Estimation ──► Forward-Backward Consistency Check
                                                    │
                                                    ▼
Contrastive Learning ◄── Anchor Frame Selection ◄── Valid Trajectories
(InfoNCE on Pixels)      (Maximizes Temporal Gap)
  1. Dense Point Tracking via Optical Flow: Using an off-the-shelf optical flow model (RAFT), PICO samples 1,000 points uniformly across space and time per video clip and tracks their trajectories frame-to-frame with bilinear interpolation.

  2. Occlusion Filtering: To discard unreliable points, PICO checks forward-backward flow consistency with a dynamic threshold: $$\|w + \hat{w}\|^2 < \gamma(\|w\|^2 + \|\hat{w}\|^2) + \delta$$ Trajectories are terminated immediately upon occlusion.

  3. Anchor Sampling: Rather than picking consecutive or purely random frames, PICO selects an anchor frame and picks target frames that maximize both the temporal baseline and the number of active, tracked endpoints.

  4. Dense Contrastive Architecture: Building upon VADeR and MoCo-v2, the model uses a frozen ResNet-50 backbone paired with a Feature Pyramid Network (FPN) decoder to yield feature maps at $1/4$ spatial resolution. A non-linear $1 \times 1$ convolutional projection head maps local features into a 128-dimensional embedding space, trained using an InfoNCE loss that attracts positive pairs (same tracked point over time) and repels negative pixel samples.

Datasets

  • Pre-training:
  • Kinetics-400 (K400): ~240,000 10-second action video clips sampled at 30 Hz.
  • YouTube-8M Subset (YT8M-S): A curated subset of 240,000 10-second clips sampled across detected shot transitions (via TransNetV2) to match K400's scale.
  • Evaluation Benchmarks:
  • COCO: Linear probing on semantic segmentation (derived from panoptic masks) and Mask R-CNN evaluation for object detection and instance segmentation.
  • Pascal VOC 2012 & Cityscapes: Linear probing for semantic segmentation.
  • NYU-Depth v2: Linear probing for monocular depth estimation.

Key Insights and Ideas

  • Motion matters: Static video contrastive learning (assuming zero flow) degrades as frame separation increases. Optical-flow-guided correspondence provides accurate positive pairs across long temporal baselines.
  • Anchor sampling beats random frame sampling: By selecting frames that maximize trajectory lengths, anchor sampling ensures that the network encounters maximum visual variation while maintaining positive pairs.
  • Real-world video beats synthetic web video: Pre-training on Kinetics-400 consistently outperformed YT8M-S. The authors note that YT8M contains non-photorealistic content (e.g., video games, cartoons) that introduces a negative domain shift when transferring to natural image benchmarks.
  • Encoder freezing preserves global representations: Keeping the ResNet backbone frozen maintains image-level classification properties while the FPN decoder learns dense spatial structures.

Key Results

  • COCO Semantic Segmentation (Linear Probe): PICO (K400) achieved 20.9 mIoU / 51.6 fIoU, outperforming both the static frame baseline (18.4 / 49.5) and static video baseline without tracking (18.7 / 49.5), as well as MoCo-v2 on ImageNet (11.2 / 39.9).

  • COCO Object Detection & Instance Segmentation (Mask R-CNN, Frozen FPN): PICO reached 10.8 $\text{AP}^{\text{bb}}$ and 11.9 $\text{AP}^{\text{mk}}$, significantly outperforming static frame pretraining ($6.09\ \text{AP}^{\text{bb}} / 7.37\ \text{AP}^{\text{mk}}$).

  • Cross-Dataset Generalization:

  • Pascal VOC: 35.6 mIoU (vs. 31.0 for static frames).
  • Cityscapes: 35.1 mIoU (vs. 34.0 for static frames).
  • NYU-Depth v2: Reduced error to 0.950 RMSE (vs. 1.000 for static frames).

Limitations and Future Work

  • Performance Gap vs. Supervised Models: Absolute performance remains below fully supervised models or joint encoder-decoder pretraining directly on ImageNet-1K, partly because the backbone was kept frozen to protect global classification features.
  • Video-to-Image Domain Gap: Natural video datasets like Kinetics differ substantially in camera dynamics, lighting, and resolution compared to standard image benchmarks like COCO.
  • Compute and Tracking Overhead: Computing and caching bidirectional optical flow vectors across hundreds of thousands of video clips adds significant offline pre-processing cost.
  • Future Directions: Developing end-to-end differentiable point tracking, exploring alternatives to frozen backbones, and designing domain-adaptation techniques between video pre-training sources and static downstream image tasks.

Summary updated

BibTeX
@inproceedings{sharma2022pixel,
  author = {Yash Sharma and Yi Zhu and Chris Russell and Thomas Brox},
  title = {{Pixel-level Correspondence for Self-Supervised Learning from Video}},
  booktitle = {Pre-Training @ ICML},
  year = {2022},
  url = {https://openreview.net/forum?id=ZOHvR1niqoP},
}
Figure