Abstract
Tracking Any Point (TAP) is a fundamental computer vision task that requires following specific physical points across long video sequences. While supervised models trained on synthetic data currently lead the field, they often struggle to generalize to the complexity of real-world motion. We present GMRW (Global Matching Random Walks), a self-supervised framework that leverages a global matching transformer and a contrastive random walk objective. By introducing a novel "label warping" augmentation to prevent the model from exploiting positional shortcuts, GMRW achieves state-of-the-art self-supervised performance, rivaling established supervised models on real-world benchmarks without requiring any labeled training data.
Introduction
The ability to track arbitrary points through time is essential for applications ranging from robotic manipulation to video editing. Unlike traditional optical flow, which estimates motion between adjacent frames, Tracking Any Point (TAP) requires maintaining point identity through significant appearance changes, deformations, and long temporal gaps.
State-of-the-art TAP models typically rely on supervised learning on synthetic datasets like Kubric. However, the domain gap between synthetic environments and real-world video limits their robustness. Conversely, existing self-supervised methods often lack the spatial precision required for dense tracking or focus on high-level semantic matching rather than instance-specific correspondence. GMRW addresses these gaps by combining the high-resolution capabilities of transformers with the robust learning signal of cycle consistency.
Methodology
GMRW treats video tracking as a correspondence problem within a space-time graph, optimized through three core components:
1. Global Matching Transformer
Rather than relying on local window-based searches or coarse grids, GMRW utilizes a transformer architecture adapted from GMFlow. This allows the model to perform "all-pairs" comparisons between pixels across frames. By scaling the random walk logic to dense, high-resolution grids (e.g., 64x64), the model achieves the fine-grained spatial precision necessary for accurate point tracking.
2. Contrastive Random Walks (CRW)
The model views the video as a graph where nodes are pixels and edges represent the probability of transition based on feature similarity. The training objective is rooted in cycle consistency: if a point is tracked forward from frame $t$ to $t+1$ and then backward to frame $t$, it should return to its original coordinate. The model maximizes the probability of this successful "return walk," effectively learning discriminative features without human labels.
3. Label Warping and the "Shortcut" Problem
A significant challenge in training transformers for cycle consistency is their tendency to find "shortcuts." Because transformers utilize positional encodings, they can satisfy the cycle-consistency requirement by simply matching coordinates rather than visual features. To break this, the authors introduce Label Warping. During training, different geometric transformations (such as crops and resizes) are applied to the forward and backward frames. Instead of warping the features to compensate, the authors warp the ground-truth identity matrix (the labels). This forces the transformer to rely on visual content to find correspondences across the transformed coordinate spaces.
Experiments and Evaluation
Training and Benchmarks
The model was trained on both the synthetic Kubric dataset and the Kinetics-400 dataset, the latter consisting of unlabeled real-world YouTube videos. Evaluation was conducted on the TapVid benchmarks, which span several domains:
- TapVid-DAVIS: High-quality real-world video annotations.
- TapVid-Kinetics: "In-the-wild" real-world sequences.
- TapVid-Kubric: Synthetic sequences for baseline comparison.
- TapVid-RGB-Stacking: Robotic manipulation tasks.
Key Results
GMRW demonstrates a significant leap in self-supervised tracking performance:
- State-of-the-Art Self-Supervision: GMRW substantially outperforms previous self-supervised methods like DIFT and earlier CRW variants.
- Competitive with Supervised Baselines: On the TapVid-DAVIS benchmark, GMRW achieved an Average Jaccard (AJ) of 41.8. This not only surpasses the supervised RAFT-C (30.7) but also approaches the performance of the supervised TAP-Net (38.4).
- Real-World Generalization: Training on real-world Kinetics data improved performance on real-world benchmarks (DAVIS) even when it caused a slight dip in synthetic performance (Kubric). This highlights the value of self-supervision in capturing the nuances of real-world motion that synthetic data lacks.
Discussion and Limitations
While GMRW sets a new bar for self-supervised tracking, several challenges remain. The model currently handles occlusions implicitly; while it can detect when a point is lost (via cycle-consistency failure), it is not yet designed to track through occlusions to find a point when it reappears. Additionally, the current framework primarily operates on frame pairs. Incorporating longer-term temporal context—similar to architectures like CoTracker—could potentially improve stability in complex scenes. Finally, the memory intensity of global "all-pairs" matching remains a hurdle for scaling to ultra-high resolutions, though window-based attention mechanisms provide a viable path forward.
Conclusion
GMRW demonstrates that self-supervised learning, when paired with the right architectural priors and data augmentation strategies, can rival supervised methods in complex tracking tasks. By solving the transformer "shortcut" problem through label warping, this work opens new possibilities for training high-precision vision models on the vast, untapped resource of unlabeled real-world video.
Summary updated