Decoupling Logical Masks from GPU Execution for Dynamic Block-Sparse Attention
Abstract
Attention computation makes inference expensive in video diffusion transformers (vDiTs), which generate videos through iterative denoising. Block-sparse attention (BSA) reduces this cost by computing only blocks selected by a logical mask, which specifies attention interactions to compute. However, coupling logical block geometry to execution choices limits adaptation to varying masks and graphics processing units (GPUs), while runtime kernel specialization can incur preparation overhead that outweighs execution time savings. We present Tessera, a specialized runtime for dynamic BSA that decouples logical masks from GPU execution while preserving specified attention interactions. Its physical mapping layer retains, combines, or subdivides logical attention blocks into physical tiles suited to different attention mask shapes and GPU architectures. Its task organization layer groups and schedules tiles within GPU tasks to reuse data, expose parallelism, and overlap data movement with computation. Finally, profile-guided regime selection enables low- overhead execution plan selection through a lookup table constructed from offline profiling. We implement Tessera with specialized CUDA kernels supporting four NVIDIA GPU generations. Evaluated on 2,315 real attention masks and industrial video diffusion models, Tessera achieves up to 6.79x BSA request speedup over baseline systems in the evaluated video diffusion models.
Create a lesson
Metadata
- Comments
- 15 pages, 10 figures, 9 tables. Preprint
Related papers
Sub-100KB On-Device CNN Training via Dynamic Sparse Updates and Hardware--Software Co-Design
Shared title terminologycs.ARI-Hsuan Li, Tian-Sheuan Chang
DynaTE: Accelerating Diffusion LLMs via Dynamic Token Execution
Shared title terminologycs.ARMinghan Jiang, Jiayi Wang, Shuaiting Li et al.
SPLASH: Co-Designing Flash-Aware Sparse Attention with a Virtualized HBM-HBF Hierarchy
Shared title terminologycs.ARAditya Anirudh Jonnalagadda, Rohan Juneja, Pranav Dangi et al.
NeuroFlex: Lossless Element-Level ANN-SNN Co-Execution for Efficient Sparse Inference
Shared title terminologycs.ARVarun Manjunath, Pranav Ramesh, Gopalakrishnan Srinivasan
Batch Before You Time: Decision-Scoped Proxy Execution for Timing-Aware Logic Rewriting
Shared title terminologycs.ARPujun Su
Acceleration of Sparse and Irregular Workloads through Energy-Efficient Stream Extensions
Shared title terminologycs.ARPaul Scheffler