arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.20307cs.CVcs.LG
收藏

PoCoAttn:用于快速高保真视频生成的位置-内容协作稀疏注意力机制

PoCoAttn: Position-Content Collaborative Sparse Attention for Fast and High-Fidelity Video Generation

Purdue University(普渡大学)

Jianwen Wu, Meiling Wang, Junkang Zhou, Yipeng Shen, Haoran You

AI总结:

本文提出PoCoAttn框架,通过分离输入稳定与依赖的注意力,结合相对偏移分析、协作稀疏注意力及步自适应预算分配,在视频扩散任务中实现更优的速度-保真度表现,加速效果显著且PSNR提升明显。

摘要:

视频扩散Transformer依赖于对数万个时空令牌的3D全注意力,其二次复杂度主导了推理延迟。稀疏注意力可降低该成本,但现有方法面临两难:静态方法应用预定义掩码,无法捕捉依赖输入的注意力;动态方法则反复重建稀疏掩码,需在线重新发现跨输入基本稳定的位置结构,产生额外开销。为此,本文提出PoCoAttn,一种无需训练的稀疏注意力框架,将输入稳定的注意力与输入依赖的注意力分离,前者离线处理,后者在线处理。PoCoAttn具有以下特性:(1)对3D查询-键对的相对偏移分析表明,视频注意力可分解为承载大部分注意力权重的输入稳定位置先验,以及一个小型内容依赖残差;(2)位置-内容协作稀疏注意力机制,从离线校准表中检索位置键,在线以头自适应比例从两个源中选择内容键,并补偿被丢弃的键以近似全注意力;(3)步自适应预算分配算法,该算法对去噪轨迹中早期步骤的稀疏注意力误差如何被放大进行建模,并推导每一步的最优稀疏预算。在四个视频扩散模型和三个任务上开展的大量实验表明,PoCoAttn始终比最先进(SOTA)方法实现更优的速度-保真度帕累托前沿,相比基线将PSNR提升1.9至5.0 dB,相比密集FlashAttention-3注意力实现最高4.1倍的注意力加速和2.0倍的去噪加速。

英文摘要:

Video diffusion transformers rely on 3D full attention over tens of thousands of spatiotemporal tokens, and its quadratic cost dominates inference latency. Sparse attention reduces this cost, but existing methods face a dilemma: static methods apply predefined masks and cannot capture input-dependent attention, whereas dynamic methods reconstruct the sparse mask repeatedly, paying online to rediscover positional structure that is largely stable across inputs. To this end, we propose PoCoAttn, a training-free sparse attention framework that separates input-stable from input-dependent attention and resolves the former offline and the latter online. PoCoAttn features: (1) A relative-offset analysis of 3D query-key pairs, which shows that video attention decomposes into an input-stable positional prior that carries most of the attention mass and a small content-dependent residual. (2) A position-content collaborative sparse attention mechanism, which retrieves positional keys from offline-calibrated tables, selects content keys online with a head-adaptive ratio between the two sources, and compensates for the discarded keys to approximate full attention. (3) A step-adaptive budget allocation algorithm, which models how early-step sparse attention errors are amplified along the denoising trajectory and derives the optimal sparsity budget per step. Extensive experiments across four video diffusion models and three tasks show that PoCoAttn consistently achieves a better speed-fidelity Pareto frontier than state-of-the-art (SOTA) methods, improving PSNR by 1.9 to 5.0 dB over baselines and delivering up to 4.1$\times$ attention and 2.0$\times$ denoising speedups over dense FlashAttention-3 attention.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑