[CVPR 2025] CalibAtt: Accelerating Video Generation via Calibrated Offline Sparsity

Accelerating Text-to-Video Generation with Calibrated Sparse Attention

Summary
Problem
Method
Results
Takeaways
Abstract

The paper introduces CalibAtt, a training-free acceleration method for video diffusion transformers that leverages data-independent, calibrated sparse attention. By using offline calibration to identify stable block-level sparsity and spatial row repetition patterns, it achieves up to a 1.58x end-to-end speedup on SOTA models like Wan 2.1 14B and Mochi 1 while maintaining visual quality.

TL;DR

High-quality video generation is notoriously slow due to the heavy computational cost of spatiotemporal attention. CalibAtt is a training-free "calibration" framework that prunes redundant attention connections before you run the model. By identifying which blocks of the attention matrix are consistently "dark" (negligible) across different prompts, it achieves a 1.58x speedup on models like Wan 2.1 14B without sacrificing a single frame of visual quality.

The "Always-On" Redundancy in Video Transformers

The primary bottleneck in video generation is the Attention Mechanism. As resolutions and frame counts grow, the number of spatiotemporal tokens explodes, making the complexity of self-attention unbearable.

The authors made a profound observation: while attention maps look different for every video, the sparsity patterns (where the model looks) are remarkably stable across different text prompts and noise seeds. However, these patterns vary wildly between:

  • Layers: Early layers see the "big picture"; late layers refine details.
  • Heads: Different heads capture different semantic concepts.
  • Timesteps: Deep noise (early steps) requires more global attention than the fine-tuning steps (late steps).

Existing methods like Radial Attention use fixed geometric windows, which is too blunt a tool. CalibAtt instead "listens" to the model during a short calibration phase to see where the energy actually flows.

Methodology: Calibration as Compilation

CalibAtt treats the model like a piece of software to be compiled. The process follows two main paths:

1. Energy-Based Block Selection

For every layer, head, and timestep, CalibAtt identifies blocks in the attention matrix that contribute the most energy. It sorts these blocks and keeps only the smallest subset that accounts for a predefined threshold (e.g., 99% of attention mass). By aggregating these masks over 64 sample prompts, it creates a Master Mask that is robust to any new input.

2. Spatial Repetition Detection

Some attention heads are highly repetitive—tokens in different rows of the same frame often "look" at the same things. CalibAtt detects these heads and uses "anchor rows." During inference, it only calculates attention for 5 anchor rows and broadcasts the result to the rest, slashing the query count.

Model Architecture Figure: The CalibAtt workflow showing offline calibration of masks and spatial markers followed by efficient FlashAttention3 inference.

Performance vs. Fidelity

The beauty of CalibAtt lies in its hardware-aware implementation. It doesn't just zero out numbers; it generates "skip lists" that tell the FlashAttention3 kernel exactly which memory blocks to skip.

Key Experimental Results (Wan 2.1 14B):

  • Sparsity: ~68% of attention calculations skipped.
  • Latency: Reduced from 363s to 250s (480p) and 1244s to 785s (720p).
  • Quality: VBench scores remain nearly identical to the dense baseline (FA3).

Experimental Results Table: Comparison across models shows CalibAtt consistently leads in the Speedup/Quality trade-off.

Unlike "online" methods like SVG2, which recalculate cluster centroids for every frame (adding a hidden tax to runtime), CalibAtt’s overhead is purely offline. This makes it particularly effective for few-step distilled models (like LightX2V), where every millisecond count.

Critical Insight & Future Outlook

CalibAtt proves that we don't need to be "smart" during inference if we are "diligent" before it. By moving the intelligence to an offline calibration phase, we can essentially ship a "optimized binary" of the transformer for a specific resolution.

Limitations:

  • Memory: Since it stores specific masks for every layer/head/timestep, it adds several GBs of VRAM overhead (mitigated by mask sharing).
  • Staticity: It cannot adapt to a single specific prompt if it deviates heavily from the calibration set.

This work paves the way for a more "compiled" approach to generative AI, where models are optimized not just for their weights, but for their specific spatiotemporal attention routing.

Conclusion

CalibAtt is a massive win for practical deployment. It’s training-free, model-agnostic, and provides a direct 40-50% speedup on the most powerful open-source video models today. As we move toward 4K video generation, these "calibration" strategies will become the standard for making long-context transformers usable on consumer hardware.

Find Similar Papers

Try Our Examples

  • Search for recent papers that leverage offline calibration or "compilation-time" optimizations to accelerate Diffusion Transformers (DiTs).
  • What are the primary differences between CalibAtt's data-independent masking and the online token-clustering approach used in Sparse VideoGen 2?
  • Investigate if block-sparse skip lists derived from video models can be successfully applied to long-context Large Language Models (LLMs) without specialized fine-tuning.
Contents
[CVPR 2025] CalibAtt: Accelerating Video Generation via Calibrated Offline Sparsity
1. TL;DR
2. The "Always-On" Redundancy in Video Transformers
3. Methodology: Calibration as Compilation
3.1. 1. Energy-Based Block Selection
3.2. 2. Spatial Repetition Detection
4. Performance vs. Fidelity
4.1. Key Experimental Results (Wan 2.1 14B):
5. Critical Insight & Future Outlook
6. Conclusion