arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.03459cs.CV
收藏

F3-Pruning:面向更快更精细文本到视频合成的免训练通用剪枝策略

F3-Pruning: A Training-Free and Generalized Pruning Strategy towards Faster and Finer Text-to-Video Synthesis

University of Electronic Science and Technology of China (UESTC)(电子科技大学)

Sitong Su, Jianzhi Liu, Lianli Gao, Jingkuan Song

AI总结:

针对文本到视频模型推理成本高的问题,提出免训练通用剪枝策略F3-Pruning,通过剪除冗余时间注意力权重,在CogVideo和Tune-A-Video上实现加速且保持质量。

摘要:

近年来,文本到视频(T2V)合成通过在大规模数据集上训练Transformer或扩散模型取得了突破性进展。然而,推理此类大型模型会产生巨大的成本。以往的推理加速工作要么需要昂贵的重新训练,要么仅针对特定模型。为解决这一问题,我们不采用重新训练,而是探索了两种主流T2V模型(分别使用Transformer和扩散模型)的推理过程。探索揭示了两种模型中时间注意力模块的冗余性,这些模块通常用于建立帧之间的时间关系。据此,我们提出了一种免训练且通用的剪枝策略,称为F3-Pruning,用于剪除冗余的时间注意力权重。具体而言,当聚合的时间注意力值排序低于某一比例时,对应的权重将被剪除。在三个数据集上使用经典的基于Transformer的模型CogVideo和典型的基于扩散的模型Tune-A-Video进行的大量实验验证了F3-Pruning在推理加速、质量保证和广泛适用性方面的有效性。

英文摘要:

Recently Text-to-Video (T2V) synthesis has undergone a breakthrough by training transformers or diffusion models on large-scale datasets. Nevertheless, inferring such large models incurs huge costs.Previous inference acceleration works either require costly retraining or are model-specific.To address this issue, instead of retraining we explore the inference process of two mainstream T2V models using transformers and diffusion models.The exploration reveals the redundancy in temporal attention modules of both models, which are commonly utilized to establish temporal relations among frames.Consequently, we propose a training-free and generalized pruning strategy called F3-Pruning to prune redundant temporal attention weights.Specifically, when aggregate temporal attention values are ranked below a certain ratio, corresponding weights will be pruned.Extensive experiments on three datasets using a classic transformer-based model CogVideo and a typical diffusion-based model Tune-A-Video verify the effectiveness of F3-Pruning in inference acceleration, quality assurance and broad applicability.

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

↑