Joint-task Self-supervised Learning for Temporal Correspondence

Xueting Li, Sifei Liu, Shalini De Mello, Xiaolong Wang, Jan Kautz, Ming-Hsuan Yang

Overview

Establishing "correspondence"—knowing which pixel or object in one video frame matches which in the next—is a cornerstone of computer vision. Traditionally, researchers have split this challenge into two distinct camps: tracking large bounding boxes (region/object-level) and estimating dense optical flow (pixel-level).

Because these tasks optimize different goals and require different types of expensive human annotations, they are usually treated separately. However, this separation is a missed opportunity. Region-level tracking provides a "global" context that reduces ambiguity for pixel matching, while fine-grained pixel details provide the "bottom-up" evidence needed to localize a larger region accurately.

This paper introduces a self-supervised framework that learns to track both large image regions and individual pixels simultaneously across video frames. By integrating these two tasks through a shared "affinity matrix," the model learns robust visual correspondences that outperform state-of-the-art self-supervised methods and even surpass features from supervised models pre-trained on ImageNet.

Methodology: Joint-Task Self-Supervised Learning

The authors propose a Joint-task Self-supervised Learning framework designed to learn without human labels. The core engine of this framework is a shared inter-frame affinity matrix, which calculates the similarity between every point in a reference patch and every point in a target frame.

Architecture of the joint-task framework

The Two-Task Synergy

The architecture leverages the natural synergy between macro and micro tracking:

  1. Region-level Localization: The model randomly samples a patch in a reference frame and attempts to find its new location (bounding box) in the subsequent frame. It uses the affinity matrix to "trace" where the pixels moved, calculating a new center and scale.
  2. Fine-grained Matching: Within that newly localized region, the model performs pixel-level matching. It uses an auto-encoder to reconstruct the color of the target patch by "copying" it from the reference patch, guided entirely by the affinity matrix.

Self-Supervisory Signals

To train this system without manual labels, the researchers utilize three natural constraints found in video dynamics:

Self-supervised loss mechanisms
  1. Temporal Coherency (Concentration Loss): Objects generally move smoothly. The model applies a Concentration Loss to penalize the network if pixels that started together in a reference patch end up scattered randomly across the next frame.
  2. Cycle Consistency (Orthogonal Regularization): If you track a pixel from Frame 1 to Frame 2 and then reverse the process back to Frame 1, you should end up exactly where you started. The authors enforce this via Orthogonal Regularization on the affinity matrix.
  3. Energy Preservation: The transformation should maintain the "energy" (feature intensity) of the representations, ensuring the mapping remains reliable across frames.

Key Insights

  • The "Aha" Moment: The researchers realized that the exact same mathematical operation (the affinity matrix) can perform both box-level tracking and pixel-level warping. By forcing one matrix to handle both, the tasks naturally regularize each other.
  • Narrowing the Search: One of the biggest problems in pixel matching is "ambiguity" (e.g., one patch of blue sky looks identical to another). By first localizing the region, the model significantly narrows the search space, making fine-grained matching vastly more accurate.
  • Video > ImageNet: A major finding is that features learned purely from video dynamics are often better for video tasks than features learned from static image classification (like a ResNet-18 trained on ImageNet). This suggests that "how things move" is a more powerful signal for correspondence than "what things are named."

Datasets and Key Results

The model was trained from scratch on the Kinetics dataset (for video features) and MSCOCO (to pre-train the color auto-encoder), utilizing zero human labels for the correspondence task.

When evaluated on standard benchmarks, the joint-task approach yielded impressive results:

  • Instance Segmentation (DAVIS-2017): The "Ours-track" model achieved a 57.7 Mean $\mathcal{J}$ score, significantly beating previous self-supervised leaders (43.0) and outperforming a supervised ResNet-18 (40.2).
  • Keypoint Tracking (J-HMDB): The model achieved a [email protected] of 58.6, outperforming all other self-supervised methods and the ImageNet-pretrained baseline.
  • Part Segmentation (VIP): On human part segmentation, the model reached a 34.1 mIoU, a substantial jump over the previous state-of-the-art (28.9).
  • Robustness: Qualitative results demonstrated that the model is highly robust to occlusions, scale changes, and illumination shifts—despite never seeing a single human-annotated bounding box during training.

Limitations and Future Work

While powerful, the approach has a few limitations. First, the model requires a "warm-up" training phase where patches are cropped at the exact same location in both frames to help the network grasp basic matching before handling complex motion. Second, there is a "static video bias": if the model trains too heavily on static frames, the affinity matrix tends to degrade into a simple identity matrix, failing to learn real motion.

For future work, the authors suggest incorporating more explicit motion models and developing mechanisms to handle long-term occlusions (where an object completely disappears and reappears later in the video).

Summary updated

BibTeX
@inproceedings{li2019joint,
  author = {Xueting Li and Sifei Liu and Shalini De Mello and Xiaolong Wang and Jan Kautz and Ming-Hsuan Yang},
  title = {{Joint-task Self-supervised Learning for Temporal Correspondence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=_ypWVhhhxR},
}

Loading related content...

Figure