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

LinVideo: 一种面向高效视频生成的O(n)注意力后训练框架

LinVideo: A Post-Training Framework towards O(n) Attention in Efficient Video Generation

Hong Kong University of Science and Technology(香港科技大学);Beihang University(北航);Sensetime Research(商汤科技研究院);Nanyang Technological University(南洋理工大学)

Yushi Huang, Xingtong Ge, Ruihao Gong, Chengtao Lv, Jun Zhang

AI总结:

LinVideo提出一种高效的无数据后训练框架,通过选择性迁移将部分自注意力模块替换为线性注意力,从而在保持性能的同时显著提升视频生成效率。

摘要:

视频扩散模型(DMs)已经能够实现高质量的视频合成。然而,由于自注意力具有二次复杂度,其计算成本与序列长度呈平方关系。虽然线性注意力可以降低计算成本,但完全取代二次注意力需要昂贵的预训练,因为线性注意力的表达能力有限,且视频生成中的时空建模复杂性较高。在本文中,我们提出了LinVideo,一种高效的无数据后训练框架,该框架在替换一定数量的自注意力模块为线性注意力的同时,保持原始模型的性能。首先,我们观察到不同层的可替换性存在显著差异。与其采用手动或启发式选择,我们将层选择框定为二元分类问题,并提出选择性迁移,该方法能够自动且逐步地将层转换为线性注意力,同时对性能影响较小。此外,为了克服现有目标在这一迁移过程中的无效性和低效性,我们引入了任意时间分布匹配(ADM)目标,该目标在采样轨迹中的任意时间步对样本分布进行对齐。该目标高效且能恢复模型性能。大量实验表明,我们的方法在保持生成质量的同时实现了1.25-2.00倍的速度提升,而我们的四步蒸馏模型进一步实现了15.92倍的延迟减少,同时视觉质量下降极小。

英文摘要:

Video diffusion models (DMs) have enabled high-quality video synthesis. However, their computation costs scale quadratically with sequence length because self-attention has quadratic complexity. While linear attention lowers the cost, fully replacing quadratic attention requires expensive pretraining due to the limited expressiveness of linear attention and the complexity of spatiotemporal modeling in video generation. In this paper, we present LinVideo, an efficient data-free post-training framework that replaces a target number of self-attention modules with linear attention while preserving the original model's performance. First, we observe a significant disparity in the replaceability of different layers. Instead of manual or heuristic choices, we frame layer selection as a binary classification problem and propose selective transfer, which automatically and progressively converts layers to linear attention with minimal performance impact. Additionally, to overcome the ineffectiveness and inefficiency of existing objectives for this transfer process, we introduce an anytime distribution matching (ADM) objective that aligns the distributions of samples across any timestep along the sampling trajectory. This objective is efficient and recovers model performance. Extensive experiments show that our method achieves a 1.25-2.00x speedup while preserving generation quality, and our 4-step distilled model further delivers a 15.92x latency reduction with minimal visual quality drop.

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

↑