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

AdaDiff:面向快速扩散模型的自适应步数选择

AdaDiff: Adaptive Step Selection for Fast Diffusion Models

Fudan University(复旦大学);Shanghai Collaborative Innovation Center of Intelligent Visual Computing(上海智能视觉计算协同创新中心);ByteDance Inc.(字节跳动公司)

Hui Zhang, Zuxuan Wu, Zhen Xing, Jie Shao, Yu-Gang Jiang

AI总结:

AdaDiff 提出一种轻量级自适应步数选择框架,通过策略梯度学习样本特定的去噪步数策略,在保持生成质量的同时将扩散模型推理时间减少 33%–40%。

摘要:

扩散模型作为一类生成模型,在基于文本条件生成图像和视频方面取得了令人瞩目的成果。然而,扩散模型的生成过程需要数十步去噪才能产生逼真的图像或视频,计算开销很大。与以往设计“一刀切”加速方案的方法不同,我们认为去噪步数应当根据输入文本的丰富程度进行样本特定的自适应调整。为此,我们提出 AdaDiff,一个轻量级框架,用于学习实例特定的步数使用策略,并交由扩散模型在生成时使用。AdaDiff 采用策略梯度方法进行优化,以最大化一个精心设计的奖励函数,在推理时间与生成质量之间取得平衡。我们在三个图像生成基准和两个视频生成基准上进行了实验,结果表明:与使用固定 50 个去噪步数的基线相比,我们的方法在保持相似视觉质量的同时,将推理时间至少减少了 33%,最高可达 40%。此外,我们的方法可以叠加在其他加速方法之上,以进一步带来速度收益。最后,定性分析表明,AdaDiff 会为信息更丰富的提示分配更多步数,而为更简单的提示分配更少步数。

英文摘要:

Diffusion models, as a type of generative model, have achieved impressive results in generating images and videos conditioned on textual conditions. However, the generation process of diffusion models involves denoising dozens of steps to produce photorealistic images/videos, which is computationally expensive. Unlike previous methods that design ``one-size-fits-all'' approaches for speed up, we argue denoising steps should be sample-specific conditioned on the richness of input texts. To this end, we introduce AdaDiff, a lightweight framework designed to learn instance-specific step usage policies, which are then used by the diffusion model for generation. AdaDiff is optimized using a policy gradient method to maximize a carefully designed reward function, balancing inference time and generation quality. We conduct experiments on three image generation and two video generation benchmarks and demonstrate that our approach achieves similar visual quality compared to the baseline using a fixed 50 denoising steps while reducing inference time by at least 33%, going as high as 40%. Furthermore, our method can be used on top of other acceleration methods to provide further speed benefits. Lastly, qualitative analysis shows that AdaDiff allocates more steps to more informative prompts and fewer steps to simpler prompts.

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

↑