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

流缓存用于自回归视频生成

Flow caching for autoregressive video generation

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学);ByteDance(字节跳动)

Yuexiao Ma, Xuzhe Zheng, Jing Xu, Xiwei Xu, Feng Ling, Xiawu Zheng, Huafeng Kuang, Huixia Li, Xing Wang, Xuefeng Xiao, Fei Chao, Rongrong Ji

AI总结:

FlowCache通过分块缓存策略和优化的KV缓存压缩机制,显著提升了自回归视频生成的速度,同时保持生成质量。

摘要:

自回归模型通常基于Transformer架构构建,是一种生成超长视频的强大范式,通过按顺序分块合成内容。然而,这种顺序生成过程众所周知地缓慢。尽管缓存策略已被证明能加速传统视频扩散模型,但现有方法假设所有帧的去噪是均匀的——这一假设在自回归模型中不成立,因为不同视频分块在相同时间步表现出不同的相似性模式。在本文中,我们提出了FlowCache,这是首个专门为自回归视频生成设计的缓存框架。我们的关键洞察是每个视频分块应保持独立的缓存策略,允许在每个时间步对哪些分块需要重新计算进行细粒度控制。我们引入了一种分块缓存策略,能够动态适应每个分块独特的去噪特性,并辅以一种联合重要性-冗余优化的KV缓存压缩机制,该机制在保持固定内存限制的同时维持生成质量。我们的方法在MAGI-1上实现了2.38倍的速度提升,在SkyReels-V2上实现了6.7倍的速度提升,质量降级可忽略(VBench:0.87增加和0.79减少)。这些结果表明,FlowCache成功解锁了自回归模型在实时超长视频生成中的潜力,建立了大规模高效视频合成的新基准。代码可在https://github.com/mikeallen39/FlowCache上获得。

英文摘要:

Autoregressive models, often built on Transformer architectures, represent a powerful paradigm for generating ultra-long videos by synthesizing content in sequential chunks. However, this sequential generation process is notoriously slow. While caching strategies have proven effective for accelerating traditional video diffusion models, existing methods assume uniform denoising across all frames-an assumption that breaks down in autoregressive models where different video chunks exhibit varying similarity patterns at identical timesteps. In this paper, we present FlowCache, the first caching framework specifically designed for autoregressive video generation. Our key insight is that each video chunk should maintain independent caching policies, allowing fine-grained control over which chunks require recomputation at each timestep. We introduce a chunkwise caching strategy that dynamically adapts to the unique denoising characteristics of each chunk, complemented by a joint importance-redundancy optimized KV cache compression mechanism that maintains fixed memory bounds while preserving generation quality. Our method achieves remarkable speedups of 2.38 times on MAGI-1 and 6.7 times on SkyReels-V2, with negligible quality degradation (VBench: 0.87 increase and 0.79 decrease respectively). These results demonstrate that FlowCache successfully unlocks the potential of autoregressive models for real-time, ultra-long video generation-establishing a new benchmark for efficient video synthesis at scale. The code is available at https://github.com/mikeallen39/FlowCache.

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

↑