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

RainFusion:基于多维视觉冗余的自适应视频生成加速

RainFusion: Adaptive Video Generation Acceleration via Multi-Dimensional Visual Redundancy

Huawei Technologies Co., Ltd(华为技术有限公司)

Aiyue Chen, Bin Dong, Jingru Li, Jing Lin, Kun Tian, Yiwu Yao, Gongyi Wang

AI总结:

针对 DiT 视频生成中 3D 注意力计算开销过大的问题,提出免训练、即插即用的 RainFusion 稀疏注意力方法,通过 ARM 在线识别空间、时间和纹理稀疏模式,在多个开源模型上实现超 2 倍加速且几乎不损失 VBench 质量。

摘要:

使用扩散模型进行视频生成的计算量极高,其中 Diffusion Transformer(DiT)模型中的 3D 注意力占据了总计算资源的 80% 以上。在本工作中,我们提出了 RainFusion,这是一种新颖的免训练稀疏注意力方法,利用视觉数据中固有的稀疏性来加速注意力计算,同时保持视频质量。具体而言,我们识别出视频生成注意力计算中的三种独特稀疏模式——空间模式、时间模式和纹理模式。在推理过程中,每个注意力头的稀疏模式由我们提出的 ARM(自适应识别模块)在线确定,其开销可忽略不计(约 0.2%)。我们提出的 RainFusion 是一种即插即用方法,可以无缝集成到最先进的 3D 注意力视频生成模型中,而无需额外训练或校准。我们在包括 HunyuanVideo、OpenSoraPlan-1.2 和 CogVideoX-5B 在内的主流开源模型上评估了该方法,证明了其广泛的适用性和有效性。实验结果表明,RainFusion 在注意力计算上实现了超过 2 倍的加速,同时保持了视频质量,对 VBench 分数的影响极小(-0.2%)。

英文摘要:

Video generation using diffusion models is highly computationally intensive, with 3D attention in Diffusion Transformer (DiT) models accounting for over 80\% of the total computational resources. In this work, we introduce {\bf RainFusion}, a novel training-free sparse attention method that exploits inherent sparsity nature in visual data to accelerate attention computation while preserving video quality. Specifically, we identify three unique sparse patterns in video generation attention calculations--Spatial Pattern, Temporal Pattern and Textural Pattern. The sparse pattern for each attention head is determined online with negligible overhead (\textasciitilde\,0.2\%) with our proposed {\bf ARM} (Adaptive Recognition Module) during inference. Our proposed {\bf RainFusion} is a plug-and-play method, that can be seamlessly integrated into state-of-the-art 3D-attention video generation models without additional training or calibration. We evaluate our method on leading open-sourced models including HunyuanVideo, OpenSoraPlan-1.2 and CogVideoX-5B, demonstrating its broad applicability and effectiveness. Experimental results show that RainFusion achieves over {\bf 2\(\times\)} speedup in attention computation while maintaining video quality, with only a minimal impact on VBench scores (-0.2\%).

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

↑