TL;DR
DiffTrack is a new framework that "peeks under the hood" of Video Diffusion Transformers (DiTs) to reveal how they internally track objects across time. By identifying the specific layers and attention mechanisms responsible for temporal consistency, the authors achieve state-of-the-art zero-shot point tracking and introduce a training-free method to generate significantly more stable, motion-coherent videos.
What Problem Does This Paper Address?
Recent Video Diffusion Transformers (like Sora or CogVideoX) generate remarkably realistic videos, but their internal "reasoning" remains a black box. Specifically, we don't fully understand how these models ensure that an object in the first frame remains the same object ten frames later.
While researchers have studied how image diffusion models understand space, video models introduce the complexity of 3D attention—where every pixel can potentially look at every other pixel across both space and time. The authors tackle a fundamental question: How do DiTs establish temporal correspondences, and can we extract that information to perform tasks like object tracking or to improve video generation quality?
Methods
The authors introduce DiffTrack, a quantitative analysis framework designed to pinpoint where temporal matching happens within a DiT's architecture.
- 3D Attention Decomposition: They break down the DiT's attention mechanism into four categories: self-frame (spatial), cross-frame (temporal), text-to-frame (semantic), and self-text attention.
- The Analysis Pipeline: To study these models, they generate a dataset of videos using specific prompts and use an off-the-shelf tracker (CoTracker) to create "pseudo ground-truth" labels. They then test which internal representations (Query-Key similarities vs. intermediate features) and which layers best replicate these tracks.
- Cross-Attention Guidance (CAG): Based on their findings, they propose a new sampling technique. CAG improves video motion by identifying the "dominant" temporal layers and perturbing their cross-frame attention maps during the denoising process. This guides the model away from "degraded" motion samples, resulting in smoother, more consistent videos without requiring any extra training or fine-tuning.
Datasets
The study utilizes several datasets for different purposes:
- Curated Evaluation Dataset: A new benchmark consisting of 50 "Object" prompts (dynamic subjects) and 50 "Scene" prompts (camera motion) used to analyze internal model behavior.
- TAP-Vid (DAVIS & Kinetics): Standard real-world benchmarks used to evaluate the model's performance in zero-shot point tracking.
- VBench: A comprehensive suite used to quantitatively measure the quality, consistency, and "dynamic degree" of videos generated with their CAG method.
Key Insights and Ideas
- Query-Key (QK) is King: The most surprising finding is that Query-Key similarities in the attention blocks are far superior for tracking than the actual intermediate features. While features contain noisy appearance data, the QK relationship captures the underlying geometry needed for correspondence.
- The "Dominant Layer" Phenomenon: Temporal matching isn't spread evenly across the model. In a 30-layer model like CogVideoX-2B, a small subset of layers (specifically 13, 17, and 21) does almost all the heavy lifting for temporal consistency.
- Denoising Dynamics: Temporal matching is virtually non-existent in the early, high-noise stages of generation. It strengthens significantly as the video clears up, though it degrades slightly in the final steps as the model shifts focus from motion to fine-grained texture and appearance.
- Positional Bias: Some layers are "blinded" by positional embeddings. In these layers, the model assumes pixels shouldn't move at all, which can actually hinder the generation of complex motion if those layers are given too much influence.
Key Results
By simply extracting features from the "optimal" layers identified by DiffTrack, the authors achieved state-of-the-art performance in zero-shot point tracking on the TAP-Vid-Kinetics and DAVIS datasets. This approach outperformed specialized vision foundation models like DINOv2 and self-supervised video models like VFS.
Furthermore, their CAG method significantly boosted video quality. In human evaluations, participants preferred CogVideoX-2B videos generated with CAG 87% of the time over the baseline. CAG provides these improvements with a negligible increase in GPU memory footprint, as it only modifies a few specific attention maps during inference.
Limitations and Future Work
While DiffTrack provides a powerful lens into DiTs, it currently relies on the quality of the underlying pre-trained backbone. If a model hasn't learned a specific type of motion, DiffTrack cannot "find" it.
The authors also note that while they can now extract and enhance motion, they do not yet support motion manipulation—the ability for a user to draw a path and have the model follow it. They suggest that extending DiffTrack to support motion-conditioned generation is a promising next step for the field. Finally, fine-tuning the DiT features specifically for tracking, rather than just using them zero-shot, could push performance even further.
Summary updated