TL;DR
BWCache is a training-free, "plug-and-play" acceleration method for Video Diffusion Transformers (DiTs) that achieves up to 2.6× speedup without sacrificing visual quality. By identifying and skipping redundant computations at the individual block level during the middle of the denoising process, it offers a more efficient alternative to existing timestep-level or attention-level caching techniques.
The Bottleneck in Video Generation
Diffusion Transformers (DiTs) have become the gold standard for high-fidelity video generation, powering models like Sora. However, they are notoriously slow because they require dozens of sequential "denoising" steps, each involving a massive transformer model.
While researchers have tried to speed this up, they usually hit one of two walls:
- Architectural Changes: Methods like distillation or pruning require expensive retraining and often degrade quality.
- Inefficient Caching: Existing training-free methods often cache at the wrong granularity. Caching entire timesteps (like TeaCache) can be too "blunt," losing fine details, while caching only specific components like attention layers (like PAB) doesn't provide enough speedup.
The authors identify that DiT blocks are the primary bottleneck, accounting for ~70% of inference latency.
Introducing Block-Wise Caching (BWCache)
The authors introduce BWCache, which operates on a simple but effective premise: if the features produced by a transformer block haven't changed much since the last step, just reuse the old ones.
Key technical components include:
- Block-Wise Granularity: Instead of skipping an entire model pass, BWCache evaluates each DiT block. This allows the model to be "selective" about which parts of the computation are redundant.
- Similarity Indicator: The system calculates the average relative L1 distance between block features at adjacent timesteps. If this difference falls below a threshold ($\delta$), the model reuses the cached features for subsequent steps.
- Periodic Recomputation: To prevent "latent drift"—where small errors accumulate and turn into visual artifacts—the model periodically recomputes and updates the cache every $R$ steps.
- Strategic Refinement: The authors found that the final stages of denoising are critical for high-frequency details. BWCache explicitly disables caching during the final half of the remaining steps to ensure the video looks sharp.
Key Insights
- The U-Shaped Redundancy Curve: The most critical insight is that DiT feature variation follows a U-shape. Variation is high at the beginning (establishing global structure) and at the end (refining fine details), but very low in the middle. This "middle" is where the most time can be saved.
- Prompt-Dependent Speedup: Redundancy isn't fixed. A video of a static sunset has much more computational redundancy than a video of a fast-moving bus. Because BWCache uses a dynamic similarity indicator, it automatically speeds up "simpler" videos more than complex ones.
- Granularity Matters: By moving from timestep-level caching to block-level caching, the authors found they could maintain much higher visual fidelity at the same or better speeds than previous state-of-the-art methods.
Experimental Results
The researchers evaluated BWCache across five state-of-the-art open-source video models, including Open-Sora, Latte, Wan 2.1, and HunyuanVideo. Evaluation was performed using VBench, along with standard metrics like LPIPS, PSNR, and SSIM.
- Speedup: BWCache achieved a 2.6× speedup on HunyuanVideo and a 1.61× speedup on Open-Sora.
- Quality: In many tests, BWCache actually achieved higher VBench scores than the original models, likely because the caching mechanism acts as a slight regularizer against noise.
- Comparison: It consistently outperformed competitors like PAB and TeaCache across all visual quality metrics while maintaining lower latency. For example, on Open-Sora, BWCache reached a PSNR of 27.05 compared to TeaCache's 22.39.
- Scalability: The method scales effectively across multiple GPUs using Dynamic Sequence Parallelism (DSP), making it viable for enterprise-grade deployments.
Limitations and Future Work
- Latent Drift: While periodic recomputation helps, continuous reuse can still lead to "drift" where the generated content deviates from the intended path.
- Manual Thresholding: Currently, the similarity threshold ($\delta$) is a preset hyperparameter. Future work could involve dynamically adjusting this threshold based on the specific generation task or real-time feedback.
- Memory Overhead: Like all caching methods, BWCache requires extra GPU memory to store intermediate features, which might be a constraint for consumer-grade hardware when running massive models like HunyuanVideo.
Summary updated