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

自适应引导:条件扩散模型的免训练加速

Adaptive Guidance: Training-free Acceleration of Conditional Diffusion Models

King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学(KAUST));Center for Research and Formation in Artificial Intelligence, Universidad de los Andes(安第斯大学人工智能研究与培训中心);GenAI, Meta(Meta 生成式人工智能部门)

Angela Castillo, Jonas Kohler, Juan C. Pérez, Juan Pablo Pérez, Albert Pumarola, Bernard Ghanem, Pablo Arbeláez, Ali Thabet

AI总结:

本文提出自适应引导(AG)方法,通过识别分类器自由引导在去噪后期冗余,自适应省略网络评估,在保持图像质量的同时减少25%计算量,实现免训练的即插即用加速。

摘要:

本文从推理效率的角度对文本条件扩散模型中分类器自由引导(CFG)的作用进行了全面研究。特别地,我们放宽了在所有扩散步骤中默认应用CFG的选择,转而搜索高效的引导策略。我们在可微神经架构搜索框架中形式化了此类策略的发现过程。我们的研究结果表明,CFG提出的去噪步骤逐渐与简单的条件步骤趋于一致,这使得CFG的额外神经网络评估变得冗余,尤其是在去噪过程的后半段。基于这一见解,我们提出了“自适应引导”(AG),这是CFG的一种高效变体,当去噪过程表现出收敛性时,它会自适应地省略网络评估。我们的实验表明,AG在保持CFG图像质量的同时,将计算量减少了25%。因此,AG构成了引导蒸馏的一种即插即用替代方案,实现了后者50%的加速效果,同时无需训练,并保留了处理负面提示的能力。最后,我们发现了CFG在扩散过程前半段的进一步冗余性,表明整个神经函数评估可以用过去分数估计的简单仿射变换来替代。这种方法称为LinearAG,以偏离基线模型为代价提供了更便宜的推理。我们的研究结果为条件去噪过程的效率提供了见解,有助于更实用和快速地部署文本条件扩散模型。

英文摘要:

This paper presents a comprehensive study on the role of Classifier-Free Guidance (CFG) in text-conditioned diffusion models from the perspective of inference efficiency. In particular, we relax the default choice of applying CFG in all diffusion steps and instead search for efficient guidance policies. We formulate the discovery of such policies in the differentiable Neural Architecture Search framework. Our findings suggest that the denoising steps proposed by CFG become increasingly aligned with simple conditional steps, which renders the extra neural network evaluation of CFG redundant, especially in the second half of the denoising process. Building upon this insight, we propose "Adaptive Guidance" (AG), an efficient variant of CFG, that adaptively omits network evaluations when the denoising process displays convergence. Our experiments demonstrate that AG preserves CFG's image quality while reducing computation by 25%. Thus, AG constitutes a plug-and-play alternative to Guidance Distillation, achieving 50% of the speed-ups of the latter while being training-free and retaining the capacity to handle negative prompts. Finally, we uncover further redundancies of CFG in the first half of the diffusion process, showing that entire neural function evaluations can be replaced by simple affine transformations of past score estimates. This method, termed LinearAG, offers even cheaper inference at the cost of deviating from the baseline model. Our findings provide insights into the efficiency of the conditional denoising process that contribute to more practical and swift deployment of text-conditioned diffusion models.

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

↑