Learning Correspondence from the Cycle-Consistency of Time

Xiaolong Wang, Allan Jabri, Alexei A. Efros

Abstract

Visual correspondence is fundamental to computer vision, yet traditionally relies on expensive human annotations. This paper introduces a self-supervised method that learns to track points across video frames by enforcing temporal cycle-consistency. By training a neural network to track patches forward and backward in time, the model develops a robust feature representation that generalizes to semantic tasks like object segmentation and pose tracking, often matching or exceeding the performance of supervised models.

Introduction

Establishing visual correspondence—identifying the same physical point across different video frames—is a cornerstone of tasks ranging from optical flow to 3D reconstruction. Historically, learning these relationships required massive labeled datasets or synthetic data. However, human labels are difficult to scale, and synthetic data often lacks real-world complexity. This work explores whether a deep representation for correspondence can be learned directly from the inherent structure of unlabeled video.

Methodology

The proposed method utilizes Cycle-Consistency as a supervisory signal. The core idea is that if a patch of pixels is tracked from frame $t$ to frame $t-k$ and then back to frame $t$, it should return to its starting position.

The Learning Objective

The system employs a Spatial Feature Encoder ($\phi$) (ResNet-50) and a Differentiable Tracker ($T$). The tracker is intentionally "weak," restricted to simple 2D transformations. This design choice forces the encoder to learn highly robust features to maintain consistency across complex real-world motions and lighting changes. Additionally, "Skip-Cycles" are used to improve robustness against occlusions by allowing the model to track across non-consecutive frames.

Experimental Setup

The model was trained on the VLOG dataset (114,000 videos of indoor scenes) and the Kinetics dataset. Evaluation was performed without fine-tuning on several benchmarks:

  • DAVIS-2017 for video object segmentation.
  • JHMDB for human pose keypoint tracking.
  • Video Instance-level Parsing (VIP) for semantic part tracking.

Results and Discussion

The self-supervised model demonstrated remarkable generalization across various tasks, rivaling supervised counterparts.

Pose and Part Tracking

On the JHMDB dataset, the model achieved a Percentage of Correct Keypoints ([email protected]) of 78.5%, slightly surpassing a ResNet-50 pre-trained on ImageNet (78.4%). This suggests that tracking random patches is a powerful proxy for learning semantic structures.

Self-supervised human pose tracking

Object Segmentation and Texture Propagation

In the DAVIS-2017 challenge, the model achieved a Mean Region Similarity ($\mathcal{J}$) of 41.9, significantly outperforming other self-supervised baselines. Furthermore, the model excels at texture propagation, accurately warping textures onto deforming objects throughout a sequence.

Texture propagation across video frames

Conclusion

This work demonstrates that temporal cycle-consistency is a potent supervisory signal for learning visual correspondence. By treating time as "free supervision," the model learns representations that are both task-agnostic and robust. Future work will focus on scaling to larger datasets, improving long-term tracking stability, and developing unsupervised methods to identify which regions are most beneficial to track.

Summary updated

BibTeX
@inproceedings{wang2019learning,
  author = {Xiaolong Wang and Allan Jabri and Alexei A. Efros},
  title = {{Learning Correspondence from the Cycle-Consistency of Time}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=SoL-5MQl_Tr},
}
Figure