Abstract
Recent advancements in video diffusion models based on Diffusion Transformers (DiTs) have achieved remarkable success in generating temporally coherent videos. Yet, a fundamental question persists: how do these models internally establish and represent temporal correspondences across frames? We introduce DiffTrack, the first quantitative analysis framework designed to answer this question. DiffTrack constructs a dataset of prompt-generated video with pseudo ground-truth tracking annotations and proposes novel evaluation metrics to systematically analyze how each component within the full 3D attention mechanism of DiTs contributes to establishing temporal correspondences. Our analysis reveals that query-key similarities in specific layers play a critical role in temporal matching, and that this matching becomes increasingly prominent during the denoising process. We demonstrate practical applications of DiffTrack in zero-shot point tracking, where it achieves state-of-the-art performance, and in motion-enhanced video generation via a novel guidance method.
Introduction
Video Diffusion Transformers (DiTs), such as Sora, CogVideoX, and HunyuanVideo, have revolutionized video generation by producing remarkably coherent and high-fidelity content. Unlike their U-Net-based predecessors, DiTs utilize a full 3D attention mechanism where every pixel patch can potentially attend to every other patch across both space and time. Despite their generative prowess, these models remain largely "black boxes" regarding their internal temporal understanding. While we observe their ability to maintain subject consistency across frames, the specific mechanisms—where and how this information is stored—have remained elusive.
This paper addresses this gap by introducing DiffTrack, a framework designed to probe the internal representations of DiTs. By quantifying how these models establish temporal correspondences, we can not only understand their inner workings but also repurpose their "hidden" knowledge for discriminative tasks like point tracking and generative enhancements like motion-consistent sampling.
The DiffTrack Framework
DiffTrack is built upon three main pillars designed to dissect the 3D attention mechanism of DiTs:
1. Systematic Analysis
The framework investigates which internal components are most critical for temporal matching. This includes comparing Query-Key (QK) similarities against intermediate features, identifying the most relevant transformer layers, and determining the optimal denoising timesteps for extracting motion information.
2. Zero-Shot Point Tracking
By identifying the "golden" layers and timesteps for correspondence, DiffTrack enables zero-shot point tracking on real-world videos. Using DDIM inversion, the framework extracts feature descriptors from a video and establishes point-to-point matches across frames using a bidirectional matching cost. This effectively transforms a generative model into a high-performance tracking model without any additional training.
3. Cross-Attention Guidance (CAG)
To improve the quality of generated videos, we introduce Cross-Attention Guidance. During the sampling process, the model performs a "degraded" forward pass where cross-frame attention maps in dominant layers are zeroed out. By guiding the model away from this motion-poor version, CAG steers the generation toward higher temporal consistency and motion fidelity.
Key Insights into DiT Representations
Our analysis using DiffTrack yielded several critical findings regarding how DiTs process temporal data:
- The Superiority of Query-Key Matching: We found that the similarity between Queries and Keys in the attention blocks provides significantly cleaner correspondence information than intermediate features. While features often contain "noisy" appearance data, QK similarities capture the geometric signals necessary for tracking.
- Layer Sparsity and Specialization: Temporal understanding is not distributed evenly across the transformer. Only a few specific layers, typically in the middle-to-late stages of the architecture, dominate the establishment of temporal correspondences. Furthermore, some layers are "blinded" by positional embeddings, where a point attends most strongly to its own spatial coordinates regardless of actual motion; DiffTrack identifies and bypasses these biased layers.
- The Denoising Sweet Spot: Temporal matching strength follows a specific trajectory during the denoising process. It starts weak when the video is mostly noise, peaks during the middle stages as structure emerges, and occasionally degrades at the final steps as the model shifts focus toward fine-grained texture.
Experimental Results
Zero-Shot Tracking Performance
DiffTrack, using CogVideoX-5B as a backbone, was evaluated on the TAP-Vid (DAVIS and Kinetics) benchmarks. It outperformed existing vision foundation models like DINOv2 and DIFT, as well as self-supervised video models like Stable Video Diffusion (SVD). On the Kinetics dataset, DiffTrack achieved an average accuracy ($\delta^x_{avg}$) of 49.2, compared to DINOv2's 38.4.
Motion-Enhanced Generation
The Cross-Attention Guidance (CAG) method was evaluated using VBench and human preference studies. In a Two-Alternative Forced Choice (2AFC) test, human evaluators preferred CogVideoX-2B + CAG over the baseline 87.16% of the time for overall video quality and 85.01% for motion fidelity. These improvements are achieved entirely training-free.
Discussion and Limitations
While DiffTrack provides a powerful "microscope" for Video DiTs, its performance is inherently tied to the pre-trained backbone. If a base model lacks a fundamental understanding of physics or motion, DiffTrack cannot compensate for those deficiencies. Additionally, while CAG improves consistency, it does not yet allow for direct user-controlled motion trajectories. Future work will explore how these emergent correspondences can be leveraged for more precise, motion-conditioned video editing and generation.
In conclusion, DiffTrack demonstrates that Video DiTs are not just powerful generators but also sophisticated temporal reasoners. By unlocking their internal correspondence maps, we pave the way for a new generation of training-free video analysis and synthesis tools.
Summary updated