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

无需训练,无需烦恼:重新思考扩散模型的免分类器引导

No Training, No Problem: Rethinking Classifier-Free Guidance for Diffusion Models

ETH Zürich(苏黎世联邦理工学院);DisneyResearch|Studios(迪士尼研究工作室)

Seyedmorteza Sadat, Manuel Kansy, Otmar Hilliges, Romann M. Weber

AI总结:

本文提出独立条件引导(ICG)和时间步引导(TSG),在无需额外训练或修改训练过程的情况下,为条件及无条件扩散模型提供与免分类器引导(CFG)相当的生成质量提升。

摘要:

免分类器引导(CFG)已成为提升条件扩散模型质量的标准方法。然而,使用 CFG 要么需要在主扩散模型之外额外训练一个无条件模型,要么需要通过周期性插入空条件来修改训练过程。此外,CFG 也没有明确的方式可以扩展到无条件模型。在本文中,我们重新审视 CFG 的核心原理,并提出一种新方法,即独立条件引导(ICG),它无需任何特殊训练过程即可获得 CFG 的收益。我们的方法简化了条件扩散模型的训练流程,并且可以在推理阶段应用于任何预训练的条件模型。此外,通过利用所有扩散网络中编码的时间步信息,我们提出了 CFG 的一种扩展,称为时间步引导(TSG),它可以应用于任何扩散模型,包括无条件模型。我们的引导技术易于实现,并且采样成本与 CFG 相同。通过大量实验,我们证明 ICG 在各种条件扩散模型上达到了与标准 CFG 相当的性能。此外,我们还表明 TSG 在不依赖任何条件信息的情况下,以类似于 CFG 的方式提升了生成质量。

英文摘要:

Classifier-free guidance (CFG) has become the standard method for enhancing the quality of conditional diffusion models. However, employing CFG requires either training an unconditional model alongside the main diffusion model or modifying the training procedure by periodically inserting a null condition. There is also no clear extension of CFG to unconditional models. In this paper, we revisit the core principles of CFG and introduce a new method, independent condition guidance (ICG), which provides the benefits of CFG without the need for any special training procedures. Our approach streamlines the training process of conditional diffusion models and can also be applied during inference on any pre-trained conditional model. Additionally, by leveraging the time-step information encoded in all diffusion networks, we propose an extension of CFG, called time-step guidance (TSG), which can be applied to any diffusion model, including unconditional ones. Our guidance techniques are easy to implement and have the same sampling cost as CFG. Through extensive experiments, we demonstrate that ICG matches the performance of standard CFG across various conditional diffusion models. Moreover, we show that TSG improves generation quality in a manner similar to CFG, without relying on any conditional information.

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

↑