Tracktention: Leveraging Point Tracking to Attend Videos Faster and Better

Zihang Lai, Andrea Vedaldi · DOI

TL;DR

Tracktention is a lightweight, plug-and-play transformer layer that upgrades image-based neural networks into state-of-the-art video models. By explicitly leveraging off-the-shelf point trackers to guide temporal attention, it achieves superior temporal consistency and accuracy in tasks like video depth estimation and colorization—often outperforming models 10x its size.

What Problem Does This Paper Address?

Video analysis tasks—such as depth estimation or colorization—suffer from a persistent headache: temporal inconsistency. When you process a video frame-by-frame, the output often "flickers" because the model doesn't understand how objects move across time.

Existing solutions have major trade-offs. 3D convolutions are local and struggle with fast motion. Space-time attention (attending to every pixel in every frame) is computationally prohibitive, scaling quadratically with the number of tokens. The authors identify a missed opportunity: modern point trackers (like CoTracker) have become incredibly good at following specific points through a scene. Tracktention asks: Why not use these tracks to tell the attention mechanism exactly where to look?

Methods

The core innovation is the Tracktention Layer, which follows a three-step "Sample-Update-Splat" pipeline:

  1. Attentional Sampling: The model uses point tracks (sequences of 2D coordinates over time) to pool features from the image into "track tokens." It uses a Gaussian-biased cross-attention mechanism to ensure it's grabbing information from the right spatial locations.
  2. Track Transformer: These track tokens are processed by a standard transformer encoder. Crucially, attention happens only along the temporal dimension of each track. This allows the model to "smooth out" features along a motion path without the cost of looking at the whole video at once.
  3. Attentional Splatting: The updated, temporally-aware tokens are "splatted" back onto the original image feature maps.
The Sample-Update-Splat pipeline: (1) Sampling image features into track tokens, (2) Updating tokens via temporal attention, and (3) Splatting them back to image features.

Because it’s a self-contained layer, it can be inserted into existing architectures (like ViTs or ConvNets). For example, the authors took the popular Depth Anything image model and added Tracktention layers to create a world-class video depth predictor.

Key Insights and Ideas

  • Explicit vs. Implicit Motion: Most video models try to learn motion implicitly through attention. Tracktention treats the point tracker as a "motion expert," allowing the rest of the network to focus on the task (like depth) rather than rediscovering the laws of physics.
  • Efficiency through Sparsity: By only attending along tracks, the computational complexity drops from $O((HWT)^2)$ for full space-time attention to $O(HWT \cdot N + T^2 \cdot N)$, where $N$ is the number of tracks. Since $N$ is much smaller than the total number of pixels, this is a massive win for speed.
  • Random Spatio-Temporal Queries: Instead of starting tracks on a neat grid in the first frame, the authors found that sampling "seed points" randomly across the entire 3D video volume (space and time) provides much better coverage, especially for objects that enter the frame late or are temporarily occluded.
  • Zero-Initialization Strategy: When integrating into pre-trained models, the Tracktention output projection is initialized to zero. This allows the model to start with its high-quality image-based predictions and gradually "learn" how to use temporal information during fine-tuning without breaking the original weights.

Key Results

Tracktention achieves state-of-the-art performance across several demanding benchmarks, including Video Depth Estimation (DepthCrafter, RobustMVD) and Video Colorization (DAVIS, Videvo).

Tracktention achieves state-of-the-art performance in video depth estimation with significantly fewer parameters and faster runtimes than competing methods.
  • SOTA Performance with Fewer Params: On the DepthCrafter benchmark, Tracktention (140M parameters) outperformed the previous state-of-the-art, DepthCrafter (1.5B parameters). It achieved a lower Absolute Relative Error (0.138 vs 0.163) while being significantly more efficient.
  • Robustness to Motion: On the RobustMVD benchmark, which is notorious for large camera movements, Tracktention achieved the lowest average relative error (6.2) among all compared methods.
  • Color Consistency: In video colorization, adding Tracktention to baseline models improved the Color Distribution Consistency (CDC) metric by up to 46.5%, effectively eliminating the "color flickering" common in frame-by-frame methods.
  • Speed: The system runs at roughly 0.9 seconds per sequence, with nearly half of that time (0.4s) spent on the point tracking itself.

Limitations and Future Work

  • Tracker Dependency: The model's performance is naturally capped by the quality of the underlying point tracker. If the tracker fails (e.g., during extreme occlusions), the Tracktention layer loses its "guide."
  • Tracking Overhead: While more efficient than full attention, running a point tracker still adds a fixed computational cost.
  • Sparsity Optimization: The authors note that while the logic is sparse, current implementations could be further optimized to take full advantage of the local nature of the "splatting" process.

Summary updated

BibTeX
@inproceedings{lai2025tracktention,
  author = {Zihang Lai and Andrea Vedaldi},
  title = {{Tracktention: Leveraging Point Tracking to Attend Videos Faster and Better}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02124},
}
Figure