DynamicRad: Content-Adaptive Sparse Attention for Long Video Diffusion
Abstract
Leveraging the natural spatiotemporal energy decay in video diffusion offers a path to efficiency, yet relying solely on rigid static masks risks losing critical long-range information in complex dynamics. To address this issue, we propose DynamicRad, a sparse-attention framework that constrains adaptive selection using a radial locality prior. DynamicRad introduces a dual-mode strategy: static-ratio for speed-optimized execution and dynamic-threshold for quality-first filtering. To avoid online configuration search, we integrate an offline Bayesian Optimization (BO) pipeline with a semantic motion router. The offline-trained router maps prompt embeddings to BO-selected sparsity regimes with a single projection module. Unlike online profiling methods, our offline BO optimizes attention reconstruction error (MSE) on a proxy task and reuses the selected configurations during inference. Dynamic selection still scores current Q/K features and constructs sparse indices. Experiments on HunyuanVideo and Wan2.1-14B demonstrate that DynamicRad achieves a strong efficiency–quality trade-off among block-sparse-attention baselines, obtaining 1.7×–2.5× inference speedups at 74.3%–86.8% effective block sparsity. In some long-sequence settings, the dynamic mode matches or slightly improves upon a checkpoint-matched dense baseline on individual automatic quality metrics, while optional Mask-Aware LoRA further improves long-horizon coherence. Code is available at https://github.com/Adamlong3/DynamicRad.