Breaking Shortcut: Exploring Fully Convolutional Cycle-Consistency for Video Correspondence Learning

Yansong Tang, Zhenyu Jiang, Zhenda Xie, Yue Cao, Zheng Zhang, Philip H. S. Torr, Han HuarXiv 2021

Introduction

Video correspondence learning—the ability to track specific pixels or objects across video frames—is a fundamental task in computer vision. Self-supervised methods often leverage cycle-consistency: the principle that tracking a point forward through time and then backward should return it to its original position. While effective, traditional patch-based training methods suffer from "train-test inconsistency" when applied to full images during inference. However, simply switching to Fully Convolutional Networks (FCNs) for whole-image training often leads to model collapse.

The Positional Shortcut Problem

Researchers discovered that FCNs tend to exploit a "positional shortcut." Due to zero-padding at image boundaries, CNNs inadvertently encode absolute spatial coordinates. Instead of learning semantic visual features (like the shape of a car or a limb), the network learns to match pixels based on their $(x, y)$ coordinates.

Affinity matrices showing the positional shortcut (identity matrix) in Vanilla FC³ versus the semantic correspondence learned by STFC³.

As shown in the affinity matrices above, a "Vanilla" FCN produces a near-identity matrix regardless of the visual content, effectively "cheating" by looking at the grid rather than the image features. This confirms that the network is matching coordinates rather than visual appearance.

STFC³: Breaking the Shortcut

To overcome this, the authors propose Spatial Transformation Fully Convolutional Cycle-Consistency (STFC³). This method forces the network to rely on visual appearance by ensuring that physical points never stay at the same coordinates throughout a cycle.

  1. Spatial Transformation: The forward and backward paths of the cycle use different random crops and flips. This decouples physical objects from fixed pixel coordinates.
  2. Feature Warping: To maintain cycle-consistency despite different crops, the features are "warped" using the known affine transformation from the cropping process. This aligns the start and end nodes of the cycle geometrically.
  3. Masked Loss: A binary mask is applied to the loss function to ignore regions that do not overlap between the two views.

Experimental Results

STFC³ was trained on the unlabeled Kinetics dataset and evaluated on human pose (J-HMDB), facial landmark (300VW), and object segmentation (DAVIS-2017) benchmarks.

Training loss, performance metrics, and feature visualizations comparing Vanilla FC³ and STFC³.

The performance gains are substantial. On the J-HMDB benchmark, accuracy ([email protected]) jumped from 32.4% to 62.0%. For object segmentation on DAVIS-2017, the mean J&F score rose from 18.0% to 60.5%. Visualizations of the learned features show that while Vanilla FCNs produce grid-like patterns, STFC³ learns features that clearly delineate objects from their backgrounds, confirming the model is learning robust visual representations.

Conclusion

By identifying and breaking the positional shortcut, STFC³ enables efficient, fully convolutional self-supervised learning for video correspondence. The method is not only more accurate than previous state-of-the-art patch-based methods like Contrastive Random Walk (CRW) but also significantly faster to train, reaching convergence in just one epoch on the Kinetics dataset. This framework demonstrates that fully convolutional approaches are superior for dense video tasks when positional biases are properly addressed.

Summary updated

BibTeX
@misc{tang2021breaking,
  author = {Yansong Tang and Zhenyu Jiang and Zhenda Xie and Yue Cao and Zheng Zhang and Philip H. S. Torr and Han Hu},
  title = {{Breaking Shortcut: Exploring Fully Convolutional Cycle-Consistency for Video Correspondence Learning}},
  year = {2021},
  eprint = {2105.05838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.05838},
}
Figure