2024-11-06 · 进阶 · 计算机视觉 · 机器学习

Adaptive Caching for Faster Video Generation with Diffusion Transformers

本文提出了一种名为Adaptive Caching (AdaCache)的新方法,通过智能缓存计算和运动正则化来加速视频生成,显著提高了视频扩散变换器的推理速度,同时保持了生成质量。

更新于 2024-11-09。作者:Kumara Kahatapitiya、Haozhe Liu、Sen He、Ding Liu、Menglin Jia、Michael S. Ryoo、Tian Xie。

中文摘要

生成时间上连续、高保真的视频在计算上可能非常昂贵,尤其是在较长的时间跨度内。尽管近期扩散Transformer(DiT)在这方面取得了显著进展,但由于它们依赖于更大的模型和更重的注意力机制,导致推理速度变慢。在本文中,我们介绍了一种无需训练的加速视频DiT的方法,称为自适应缓存(AdaCache),其灵感来源于“并非所有视频都同等重要”:也就是说,有些视频比其他视频在达到合理质量时需要的去噪步骤更少。在此基础上,我们不仅通过扩散过程进行计算缓存,还针对每个视频生成制定了一个定制的缓存计划,以最大化质量-延迟权衡。我们进一步引入了运动正则化(MoReg)方案,以在AdaCache中利用视频信息,本质上根据运动内容来控制计算分配。总体而言,我们的即插即用贡献在多个视频DiT基线中提供了显著的推理速度提升(例如,在Open-Sora 720p - 2秒视频生成上高达4.7倍),而没有牺牲生成质量。

英文摘要

Generating temporally-consistent high-fidelity videos can be computationally expensive, especially over longer temporal spans. More-recent Diffusion Transformers (DiTs) -- despite making significant headway in this context -- have only heightened such challenges as they rely on larger models and heavier attention mechanisms, resulting in slower inference speeds. In this paper, we introduce a training-free method to accelerate video DiTs, termed Adaptive Caching (AdaCache), which is motivated by the fact that "not all videos are created equal": meaning, some videos require fewer denoising steps to attain a reasonable quality than others. Building on this, we not only cache computations through the diffusion process, but also devise a caching schedule tailored to each video generation, maximizing the quality-latency trade-off. We further introduce a Motion Regularization (MoReg) scheme to utilize video information within AdaCache, essentially controlling the compute allocation based on motion content. Altogether, our plug-and-play contributions grant significant inference speedups (e.g. up to 4.7x on Open-Sora 720p - 2s video generation) without sacrificing the generation quality, across multiple video DiT baselines.

解读

一句话总结

本文提出了一种名为Adaptive Caching (AdaCache)的新方法,通过智能缓存计算和运动正则化来加速视频生成,显著提高了视频扩散变换器的推理速度,同时保持了生成质量。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:生成具有时序一致性和高保真度的视频计算成本高,尤其是对于较长的时序跨度。 • 现有方案不足:现有的扩散变换器(DiTs)虽然在这方面取得了进展,但依赖于更大的模型和更重的注意力机制,导致推理速度较慢。 • 研究目标:提出一种无需训练的方法来加速视频DiTs,同时保持生成质量。

问题2:论文的核心创新点是什么?

• 技术创新:Adaptive Caching (AdaCache) 通过缓存扩散过程中的计算和制定针对每个视频生成的缓存计划来加速视频DiTs。 • 方法改进:引入了运动正则化(MoReg)方案,根据视频中的运动内容来分配计算量。 • 优势:与现有方法相比,AdaCache在不牺牲生成质量的情况下实现了显著的推理速度提升。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在多个视频DiT基线模型上进行了实验,包括Open-Sora、Open-Sora-Plan和Latte。 • 性能提升:AdaCache在Open-Sora 720p - 2s视频生成上实现了高达4.7倍的加速。 • 对比结果:与基线方法相比,AdaCache在质量、延迟和速度方面均有显著提升。

问题4:这个研究的实际应用价值是什么?

• 应用场景:视频生成、视频编辑、视频插帧等。 • 实施建议:AdaCache可以作为一个可插入的组件,无缝集成到现有的视频DiT模型中。 • 局限与展望:目前AdaCache没有使用时间信息,未来可以探索结合时间信息来进一步提高效率。

来源