Tracking Everything Everywhere All at Once

Qianqian Wang, Yen-Yu Chang, Ruojin Cai, Zhengqi Li, Bharath Hariharan, Aleksander Holynski, Noah Snavely

This summary explores OmniMotion, a novel framework for dense, long-range motion estimation presented by researchers from Cornell, Google Research, and UC Berkeley.

TL;DR

OmniMotion is a test-time optimization method that estimates globally consistent, full-length motion trajectories for every pixel in a video. By representing a video as a "quasi-3D" canonical volume linked to local frames via invertible neural networks, it successfully tracks points through long-range occlusions and complex scene dynamics, significantly outperforming prior state-of-the-art tracking methods.

What Problem Does This Paper Address?

Motion estimation is a cornerstone of computer vision, yet it has traditionally been split into two imperfect paradigms:

  1. Sparse Feature Tracking: Highly accurate for specific points but leaves the rest of the scene "blind."
  2. Dense Optical Flow: Computes motion for every pixel but typically only between adjacent frames. Chaining these flows for long-range tracking leads to rapid error accumulation (drift) and total failure when objects are occluded.

The challenge is to achieve "Everything, Everywhere, All at Once": dense tracking (every pixel) that is long-range (full video length), robust to occlusions, and globally consistent across space and time.

Methods

The authors introduce OmniMotion, which shifts the problem from local frame-to-frame matching to a global optimization task.

The Quasi-3D Representation

Instead of working purely in 2D, OmniMotion represents the video using a canonical 3D volume ($G$). Think of this as a 3D "atlas" containing the color and density of every surface seen in the video.

To link this atlas to specific video frames, the method uses 3D bijections ($T_i$). These are invertible mappings, parameterized by Invertible Neural Networks (Real-NVP), that translate coordinates from a local frame's 3D space to the canonical space.

The OmniMotion representation uses bijections to map local 3D points to a shared canonical volume, ensuring cycle consistency by design.

Why "Quasi-3D"?

Full 3D reconstruction from a single video is notoriously difficult (ill-posed). OmniMotion sidesteps this by using a relaxed "quasi-3D" space. It doesn't aim for perfect physical accuracy but uses the third dimension to maintain relative depth ordering. This allows the model to "hide" occluded surfaces behind visible ones in the canonical volume, enabling it to track points even when they disappear behind an obstacle.

Optimization

The model is optimized per video at test-time. It takes noisy, potentially inconsistent pairwise motion estimates (e.g., from RAFT) as input and reconciles them into a single, coherent representation. The loss function combines:

  • Flow Loss: Matching the predicted trajectories to the input noisy flows.
  • Photometric Loss: Ensuring the colors in the canonical volume match the observed video frames.
  • Regularization: Penalizing sudden accelerations to ensure smooth motion.

Datasets

The authors evaluate OmniMotion on the TAP-Vid benchmark, which focuses on Tracking Any Point in a video:

  • DAVIS: Real-world videos with human-annotated tracks, often featuring complex occlusions.
  • Kinetics: A large-scale dataset of diverse real-world human actions.
  • RGB-Stacking: A synthetic dataset of robotic manipulation, providing perfect ground truth for evaluation.

Key Insights and Ideas

  • Cycle Consistency by Construction: Because the mapping to the canonical space is bijective, any path from Frame A to Frame B and back to Frame A is mathematically guaranteed to be consistent. This eliminates the drift common in chaining methods.
  • Tracking Through Occlusions: By maintaining a density field in the canonical volume, the model can reason about which points are in front of others. When a point is occluded, its representation still exists in the canonical space, allowing the model to "pick up the trail" once it re-emerges.
  • Hard Example Mining: The authors found that standard sampling often ignores fast-moving foreground objects in favor of easy-to-track backgrounds. They implemented a strategy to sample regions with high prediction errors more frequently, significantly improving performance on challenging dynamic objects.

Key Results

OmniMotion achieves a new state-of-the-art on the TAP-Vid benchmark, outperforming previous methods like PIPs and TAP-Net by a wide margin.

  • Quantitative: On the DAVIS dataset, OmniMotion achieved an Average Jaccard (AJ) of 51.7, compared to 39.9 for the previous best method (PIPs). It also showed superior temporal coherence (TC).
  • Qualitative: The method demonstrates remarkable robustness in "in-the-wild" footage, such as tracking a dog running behind a chain-link fence or a person on a swing where limbs frequently overlap and occlude one another.
Qualitative results showing OmniMotion successfully tracking through complex occlusion events where baseline methods fail.

The model's ability to sort out relative depth is visualized through pseudo-depth maps, which emerge naturally from the optimization process despite no explicit depth supervision.

Pseudo-depth maps showing how the model learns relative depth ordering to handle occlusions.

Limitations and Future Work

While powerful, OmniMotion has a few hurdles to clear:

  • Computational Cost: The preprocessing step involves computing all-pairs optical flow, which scales quadratically ($O(N^2)$) with video length. The test-time optimization itself is also time-consuming.
  • Sensitivity to Initialization: Like many non-convex optimization problems, it can occasionally fall into local minima, leading to "doubled" objects in canonical space or incorrect depth ordering.
  • Thin Structures: Very thin objects or extremely rapid, non-rigid deformations can still cause the underlying flow supervision to fail, which in turn affects the global model.

Future work may look into accelerating the optimization process using techniques from the Neural Radiance Field (NeRF) community and exploring more efficient ways to collect initial motion cues.

Summary updated

BibTeX
@misc{wang2023tracking,
  author = {Qianqian Wang and Yen-Yu Chang and Ruojin Cai and Zhengqi Li and Bharath Hariharan and Aleksander Holynski and Noah Snavely},
  title = {{Tracking Everything Everywhere All at Once}},
  year = {2023},
  eprint = {2306.05422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05422},
}
Figure