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

Rectified Diffusion:在 Rectified Flow 中直线性并非你的所需

Rectified Diffusion: Straightness Is Not Your Need in Rectified Flow

CUHK(香港中文大学);Peking University(北京大学);Princeton University(普林斯顿大学)

Fu-Yun Wang, Ling Yang, Zhaoyang Huang, Mengdi Wang, Hongsheng Li

AI总结:

本文指出Rectified Flow成功的关键在于使用预训练模型获取匹配的噪声-样本对进行重训练,而非路径直线性,据此提出Rectified Diffusion方法,泛化了设计空间,在简化训练的同时以更低成本实现更优性能。

摘要:

扩散模型极大地改善了视觉生成,但由于求解生成式 ODE 的计算密集性,其生成速度受到阻碍。Rectified flow 是一种广泛认可的解决方案,它通过拉直 ODE 路径来提高生成速度。其关键组件包括:1) 使用 flow-matching 的扩散形式,2) 采用 $\oldsymbol v$-prediction,以及 3) 执行 rectification(又称 reflow)。在本文中,我们认为 rectification 的成功主要在于使用预训练扩散模型来获得匹配的噪声和样本对,随后使用这些匹配的噪声-样本对进行重新训练。基于此,组件 1) 和 2) 是不必要的。此外,我们强调直线性不是 rectification 的本质训练目标;相反,它是 flow-matching 模型的一个特定情况。更关键的训练目标是实现一阶近似的 ODE 路径,这对于 DDPM 和 Sub-VP 等模型而言本质上是弯曲的。基于这一洞察,我们提出了 Rectified Diffusion,它将 rectification 的设计空间和应用范围泛化,以涵盖更广泛的扩散模型类别,而不仅限于 flow-matching 模型。我们在 Stable Diffusion v1-5 和 Stable Diffusion XL 上验证了我们的方法。我们的方法不仅极大地简化了基于 rectified flow 的先前工作(例如 InstaFlow)的训练流程,而且以更低的训练成本实现了更优的性能。我们的代码可在 https://github.com/G-U-N/Rectified-Diffusion 获取。

英文摘要:

Diffusion models have greatly improved visual generation but are hindered by slow generation speed due to the computationally intensive nature of solving generative ODEs. Rectified flow, a widely recognized solution, improves generation speed by straightening the ODE path. Its key components include: 1) using the diffusion form of flow-matching, 2) employing $\boldsymbol v$-prediction, and 3) performing rectification (a.k.a. reflow). In this paper, we argue that the success of rectification primarily lies in using a pretrained diffusion model to obtain matched pairs of noise and samples, followed by retraining with these matched noise-sample pairs. Based on this, components 1) and 2) are unnecessary. Furthermore, we highlight that straightness is not an essential training target for rectification; rather, it is a specific case of flow-matching models. The more critical training target is to achieve a first-order approximate ODE path, which is inherently curved for models like DDPM and Sub-VP. Building on this insight, we propose Rectified Diffusion, which generalizes the design space and application scope of rectification to encompass the broader category of diffusion models, rather than being restricted to flow-matching models. We validate our method on Stable Diffusion v1-5 and Stable Diffusion XL. Our method not only greatly simplifies the training procedure of rectified flow-based previous works (e.g., InstaFlow) but also achieves superior performance with even lower training cost. Our code is available at https://github.com/G-U-N/Rectified-Diffusion.

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

↑