注意力稀疏性是输入稳定的:通过离线稀疏性分析和在线QK共聚类实现训练自由的视频生成稀疏注意力
Attention Sparsity is Input-Stable: Training-Free Sparse Attention for Video Generation via Offline Sparsity Profiling and Online QK Co-Clustering
AI总结:
本文提出SVOO框架,通过离线层间稀疏性分析和在线双向共聚类实现训练自由的视频生成稀疏注意力,解决传统方法中层异质性和查询-键耦合问题,提升生成质量与速度的平衡。
摘要:
Diffusion Transformers (DiTs) 虽能实现高质量视频生成,但密集的3D注意力导致推理成本高,促使开发稀疏注意力技术以提高效率。然而,现有训练自由的稀疏注意力方法在视频生成中仍面临两个未解决的限制:在注意力剪枝中忽略层异质性,在块划分中忽略查询-键耦合,阻碍了质量-速度的更好平衡。本文发现注意力稀疏性是内在的层间属性,仅在不同输入间有微小变化。受此启发,我们提出SVOO,通过离线层间稀疏性分析和在线双向共聚类实现快速视频生成。具体而言,SVOO采用两阶段范式:(i) 离线层间敏感性分析以推导内在每层剪枝水平,(ii) 在线块间稀疏注意力通过双向共聚类算法实现。在七个广泛使用的视频生成模型上的大量实验表明,SVOO在质量-速度平衡上优于现有方法,最大可实现1.93倍的速度提升,同时在Wan2.1上保持高达29 dB的PSNR。代码可在:https://github.com/Mutual-Luo/SVOO获取。
英文摘要:
Diffusion Transformers (DiTs) achieve strong video generation quality but suffer from high inference cost due to dense 3D attention, motivating sparse attention techniques for improving efficiency. However, existing training-free sparse attention methods for video generation still face two unresolved limitations: ignoring layer heterogeneity in attention pruning and ignoring query-key coupling in block partitioning, which hinder a better quality-speedup trade-off. In this work, we uncover a critical insight: attention sparsity is an intrinsic layer-wise property, with only minor variation across different inputs. Motivated by this observation, we propose SVOO, a training-free sparse attention framework for fast video generation via offline layer-wise sparsity profiling and online bidirectional co-clustering. Specifically, SVOO adopts a two-stage paradigm: (i) offline layer-wise sensitivity profiling to derive intrinsic per-layer pruning levels, and (ii) online block-wise sparse attention via a bidirectional co-clustering algorithm. Extensive experiments on seven widely used video generation models demonstrate that SVOO achieves a superior quality-speedup trade-off over state-of-the-art methods, delivering up to 1.93x speedup while maintaining a PSNR of up to 29 dB on Wan2.1. Code is available at: https://github.com/Mutual-Luo/SVOO.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。