Introduction
Video generation using Diffusion Transformers (DiTs) has reached state-of-the-art performance. However, providing fine-grained control—such as poses, depth maps, or reference videos—remains a significant computational challenge. Traditional adapter-based methods (e.g., ControlNet) are often task-specific and can conflict when multiple conditions are applied simultaneously.
The Efficiency Bottleneck in In-Context Conditioning
In-Context Conditioning (ICC) offers a flexible alternative by concatenating condition tokens directly with noisy video latents into a single sequence. While elegant, the quadratic complexity of self-attention causes the sequence length to explode as more conditions are added, leading to severe latency and making the model impractical for real-time use.
FullDiT2: Streamlining ICC
FullDiT2 addresses these inefficiencies through three core mechanisms designed to prune redundancy and reuse stable computations across the diffusion process.
1. Dynamic Token Selection (DTS)
Empirical analysis reveals that many condition tokens, such as static background areas in a reference video, are redundant. The "50/85 Rule" observed by the authors suggests that just 50% of reference tokens often account for over 85% of the cumulative attention score. DTS employs a lightweight, learnable MLP to predict token salience, adaptively selecting only the top 50% of important tokens for processing in each block, significantly reducing sequence length with negligible quality loss.
2. Selective Context Caching (SCC)
SCC exploits redundancy across two dimensions:
- Step-wise Caching: Since condition signals (like a reference image) remain static throughout the diffusion process while noisy latents evolve, FullDiT2 caches the condition's Key/Value (K/V) pairs at the first step and reuses them, skipping redundant re-computations.
- Layer-wise Caching: Not all transformer blocks are equally important for context injection. By identifying "high-impact" blocks (typically the earliest layers) using a Block Importance Index, the model focuses context processing where it matters most, while other layers skip reference processing to focus on video latents.
3. Decoupled Attention
To implement these optimizations without disrupting the model's internal logic, the attention mechanism is split into Reference Self-Attention and Noisy-to-All Attention. This allows for efficient caching while maintaining the mathematical equivalence of the original full-attention operation.
Experimental Results
FullDiT2 was evaluated across diverse tasks including ID-related editing, camera trajectory control, and pose-to-video generation using datasets like SAM2-processed triplets and Koala-36m.
- Speed & Efficiency: The framework achieved a 2.28x speedup in ID-related editing and up to a 3.43x speedup in complex tasks like Video ReCamera.
- FLOPs Reduction: In Video ReCamera tasks, computational cost dropped from 101.5 GFLOPs to just 33.4 GFLOPs.
- Quality Maintenance: Across metrics like CLIP-I (identity similarity) and Aesthetic scores, FullDiT2 matched or exceeded the baseline. Interestingly, in ID insertion tasks, it outperformed the original FullDiT, suggesting that pruning redundant tokens may reduce "noise" in the conditioning signal.
Conclusion
FullDiT2 demonstrates that the massive redundancies in video diffusion conditioning can be exploited for significant efficiency gains. By focusing computation on salient tokens and stable temporal features, it enables high-fidelity, multi-condition video generation at a fraction of the original computational cost.
Summary updated