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

基于流线化推理的快速且内存高效的视频扩散方法

Fast and Memory-Efficient Video Diffusion Using Streamlined Inference

Northeastern University(东北大学);University of Georgia(佐治亚大学);Harvard University(哈佛大学)

Zheng Zhan, Yushu Wu, Yifan Gong, Zichong Meng, Zhenglun Kong, Changdi Yang, Geng Yuan, Pu Zhao, Wei Niu, Yanzhi Wang

AI总结:

针对现有视频扩散模型计算和内存需求高的问题,提出无需训练的Streamlined Inference框架,通过特征切片、算子分组和步骤复用三大组件,在单消费级GPU上实现低内存、高速的高质量视频生成。

摘要:

人工智能生成内容(AIGC)的快速发展,尤其是扩散模型的进步,极大推动了高质量视频生成技术的发展。然而,当前的视频扩散模型计算需求高、峰值内存占用大,在生成更长、更高分辨率的视频时尤为突出,这些限制严重阻碍了视频扩散模型在标准硬件平台上的实际应用。为解决这一问题,我们提出了一种无需训练的新型框架——Streamlined Inference(流线化推理),该框架利用了视频扩散模型的时空特性。我们的方法包含三个核心组件:Feature Slicer(特征切片器)、Operator Grouping(算子分组)和Step Rehash(步骤复用)。具体而言,Feature Slicer将输入特征有效划分为子特征,Operator Grouping用一组连续算子处理每个子特征,在不损失生成质量与速度的前提下显著降低内存占用。Step Rehash进一步利用扩散过程中相邻步骤的相似性,通过跳过不必要的步骤加速推理。大量实验表明,我们的方法显著降低了峰值内存与计算开销,使得在单张消费级GPU上生成高质量视频成为可能(例如,将AnimateDiff的峰值内存从42GB降至11GB,在2080Ti上推理速度更快)。

英文摘要:

The rapid progress in artificial intelligence-generated content (AIGC), especially with diffusion models, has significantly advanced development of high-quality video generation. However, current video diffusion models exhibit demanding computational requirements and high peak memory usage, especially for generating longer and higher-resolution videos. These limitations greatly hinder the practical application of video diffusion models on standard hardware platforms. To tackle this issue, we present a novel, training-free framework named Streamlined Inference, which leverages the temporal and spatial properties of video diffusion models. Our approach integrates three core components: Feature Slicer, Operator Grouping, and Step Rehash. Specifically, Feature Slicer effectively partitions input features into sub-features and Operator Grouping processes each sub-feature with a group of consecutive operators, resulting in significant memory reduction without sacrificing the quality or speed. Step Rehash further exploits the similarity between adjacent steps in diffusion, and accelerates inference through skipping unnecessary steps. Extensive experiments demonstrate that our approach significantly reduces peak memory and computational overhead, making it feasible to generate high-quality videos on a single consumer GPU (e.g., reducing peak memory of AnimateDiff from 42GB to 11GB, featuring faster inference on 2080Ti).

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

↑