TL;DR
Tracktention is a "plug-and-play" architectural layer that transforms standard image-based neural networks into state-of-the-art video models. By using off-the-shelf point trackers to guide attention along motion trajectories, it achieves superior temporal consistency and efficiency in tasks like video depth estimation and colorization with significantly fewer parameters than diffusion-based alternatives.
Introduction
Transitioning from image analysis to video analysis introduces the "temporal dimension" challenge. Ideally, a video model should produce outputs that are temporally consistent—meaning no flickering or abrupt changes in object attributes (like depth or color) between frames.
Traditional solutions generally fall into two camps: 3D Convolutions, which are spatially local and often struggle with fast-moving objects, and Space-Time Attention, which is computationally ruinous ($O(T^2 \cdot N^2)$). The authors identify a gap: how can we achieve the long-range temporal modeling of attention without massive computational overhead while specifically accounting for complex object motion?
Methods
The core innovation is the Tracktention Layer, which integrates motion information from "off-the-shelf" point trackers (like CoTracker3) into the transformer architecture. The process follows a three-step "Sample-Update-Splat" pipeline:
- Attentional Sampling: The model uses cross-attention to pool features from image tokens into "track tokens." This is biased by a Gaussian window centered on the coordinates provided by the point tracker, ensuring the model "looks" at the right place for each tracked point.
- Track Transformer: These track tokens are processed by a 2-layer temporal transformer. Crucially, attention happens along each track over time, rather than across different tracks. This allows the model to smooth features and resolve ambiguities by looking at the history and future of a specific physical point.
- Attentional Splatting: The updated, temporally-aware features are mapped back onto the original image feature map.
By inserting these layers into a pre-trained image model (like Depth Anything) and fine-tuning, the authors can "upgrade" the model to handle video without redesigning the entire backbone. Key technical details include the use of Rotary Position Embeddings (RoPE) for continuous space understanding and Zero-Initialized Residuals to preserve the strength of pre-trained image weights during the initial stages of fine-tuning.
Key Results
- Efficiency vs. Performance: Tracktention (+ Depth Anything) outperformed DepthCrafter, a massive video diffusion model. While DepthCrafter uses 1.5 billion parameters, the Tracktention-augmented model uses only 140 million parameters and runs significantly faster (0.9s per sequence).
- State-of-the-Art Depth: On the RobustMVD benchmark, Tracktention achieved the lowest average relative error (6.2) and the highest inlier ratio (41.1%), surpassing all baselines including those specifically designed for multi-view stereo.
- Color Consistency: In video colorization, adding Tracktention improved the Color Distribution Consistency (CDC) metric by up to 46.5% for models like DDColor, effectively eliminating the "flicker" common in frame-by-frame colorization.
- Ablation Success: The authors showed that even a small number of tracks (e.g., 576 points) is sufficient to provide a massive boost in temporal stability compared to standard 3D convolutions or global temporal attention.
Discussion and Future Work
While highly effective, Tracktention's performance is currently upper-bounded by the quality of the external point tracker. If a tracker fails due to extreme blur or occlusion, temporal alignment suffers. However, as point trackers approach real-time speeds, this overhead becomes negligible. Future work may involve tighter end-to-end integration where the video network and the point tracker are trained together, potentially allowing the tracker to benefit from the high-level features of the task network.
Summary updated