LinGen:面向高分辨率分钟级文本到视频生成的线性计算复杂度框架 LinGen: Towards High-Resolution Minute-Length Text-to-Video Generation with Linear Computational Complexity 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2024-12-13
👁️ 预览文献
💡 AI 中文简介
文本生成视频很耗算力,因为主流扩散Transformer的计算量随像素数平方增长,导致现有模型大多只能生成10-20秒视频。本文提出LinGen框架,用线性复杂度的MATE模块替换自注意力,首次在单张GPU上实现高分辨率、分钟级视频生成且质量不降。实验显示其视频质量优于DiT(胜率75.6%),FLOPs和延迟最多降低15倍和11.5倍,4B模型质量与Gen-3、LumaLabs、Kling相当。
领域计算机视觉/视频生成
适合谁读需要一定专业背景(了解扩散模型、Transformer和视频生成基础)
核心贡献1. 提出线性复杂度的MATE模块,用MA分支(双向Mamba2+旋转主扫描+回顾令牌)和TE分支(时序Swin注意力)替代二次复杂度的自注意力,解决Mamba的邻接保持问题,显著提升视频一致性。2. 首次在单GPU上实现高分辨率分钟级视频生成,质量不降,为小时级电影生成和实时交互视频生成铺路。
关键数据视频质量优于DiT,胜率75.6%;FLOPs降低最多15倍,延迟降低11.5倍;LinGen-4B与Gen-3、LumaLabs、Kling相比胜率分别为50.5%、52.1%、49.1%;生成68秒视频示例见项目网站。
推荐理由想用单卡生成分钟级高清视频?LinGen把计算量从平方降到线性,质量还赢了DiT,值得一读!
关键词["文本到视频生成", "线性复杂度", "扩散Transformer", "Mamba", "长视频生成", "自注意力替代"]

原文摘要

查看英文原文摘要

Text-to-video generation enhances content creation but is highly computationally intensive: The computational cost of Diffusion Transformers (DiTs) scales quadratically in the number of pixels. This makes minute-length video generation extremely expensive, limiting most existing models to generating videos of only 10-20 seconds length. We propose a Linear-complexity text-to-video Generation (LinGen) framework whose cost scales linearly in the number of pixels. For the first time, LinGen enables high-resolution minute-length video generation on a single GPU without compromising quality. It replaces the computationally-dominant and quadratic-complexity block, self-attention, with a linear-complexity block called MATE, which consists of an MA-branch and a TE-branch. The MA-branch targets short-to-long-range correlations, combining a bidirectional Mamba2 block with our token rearrangement method, Rotary Major Scan, and our review tokens developed for long video generation. The TE-branch is a novel TEmporal Swin Attention block that focuses on temporal correlations between adjacent tokens and medium-range tokens. The MATE block addresses the adjacency preservation issue of Mamba and improves the consistency of generated videos significantly. Experimental results show that LinGen outperforms DiT (with a 75.6% win rate) in video quality with up to 15$\times$ (11.5$\times$) FLOPs (latency) reduction. Furthermore, both automatic metrics and human evaluation demonstrate our LinGen-4B yields comparable video quality to state-of-the-art models (with a 50.5%, 52.1%, 49.1% win rate with respect to Gen-3, LumaLabs, and Kling, respectively). This paves the way to hour-length movie generation and real-time interactive video generation. We provide 68s video generation results and more examples in our project website: https://lineargen.github.io/.