arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05503cs.CV
收藏

通过校准稀疏注意力加速文本到视频生成

Accelerating Text-to-Video Generation with Calibrated Sparse Attention

Apple Tel Aviv University(苹果以色列大学)

Shai Yehezkel, Shahar Yadin, Noam Elata, Yaron Ostrovsky-Berman, Bahjat Kawar

AI总结:

CalibAtt通过校准稀疏注意力提升文本到视频生成的效率,实现1.58倍的加速效果。

摘要:

最近的扩散模型能够实现高质量的视频生成,但存在运行时间慢的问题。这些模型所使用的大型变压器架构受到时空注意力的限制。在本文中,我们发现大量的token-to-token连接在各种输入下始终产生极小的分数,且其模式往往在查询中重复出现。因此,在这些情况下,注意力计算可以被跳过,对结果几乎没有影响。这一观察在局部token块之间的连接中仍然成立。受此启发,我们引入了CalibAtt,一种无需训练的方法,通过校准稀疏注意力来加速视频生成。CalibAtt进行一次离线校准过程,识别出在输入中稳定的块级稀疏性和重复模式,并将这些模式编译成优化的注意力操作,用于每个层、每个头和扩散时间步。在推理过程中,我们计算所选的输入相关连接,以密集的方式,并以硬件高效的方式跳过未选中的连接。在Wan 2.1 14B、Mochi 1和不同分辨率下的few-step distilled模型上进行了广泛的实验,结果表明,CalibAtt实现了高达1.58倍的端到端加速,优于现有的无训练方法,同时保持视频生成质量和文本-视频对齐。

英文摘要:

Recent diffusion models enable high-quality video generation, but suffer from slow runtimes. The large transformer-based backbones used in these models are bottlenecked by spatiotemporal attention. In this paper, we identify that a significant fraction of token-to-token connections consistently yield negligible scores across various inputs, and their patterns often repeat across queries. Thus, the attention computation in these cases can be skipped with little to no effect on the result. This observation continues to hold for connections among local token blocks. Motivated by this, we introduce CalibAtt, a training-free method that accelerates video generation via calibrated sparse attention. CalibAtt performs an offline calibration pass that identifies block-level sparsity and repetition patterns that are stable across inputs, and compiles these patterns into optimized attention operations for each layer, head, and diffusion timestep. At inference time, we compute the selected input-dependent connections densely, and skip the unselected ones in a hardware-efficient manner. Extensive experiments on Wan 2.1 14B, Mochi 1, and few-step distilled models at various resolutions show that CalibAtt achieves up to 1.58x end-to-end speedup, outperforming existing training-free methods while maintaining video generation quality and text-video alignment.

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

↑