arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.18804cs.CVcs.LG
收藏

预训练扩散模型中的快速约束采样

Fast constrained sampling in pre-trained diffusion models

Stony Brook University(石溪大学);Microsoft Research(微软研究院)

Alexandros Graikos, Nebojsa Jojic, Dimitris Samaras

AI总结:

针对预训练扩散模型在新约束下采样图像效率低、不可靠的问题,提出一种基于牛顿优化方法近似的快速约束采样算法,在线性与非线性约束下效果媲美或超越现有免训练方法,且速度大幅提升。

摘要:

大型去噪扩散模型(如Stable Diffusion)已在数十亿图像-文本对上训练,用于执行文本条件图像生成。作为该训练的副产品,这些模型获得了关于图像统计特性的通用知识,这对其他推理任务可能有用。然而,当面临在新约束下采样图像(例如生成图像的缺失部分)时,使用大型预训练文本到图像扩散模型效率低下且通常不可靠。以往的方法要么通过去噪器网络使用反向传播,这使得它们比简单的文本到图像生成慢得多且内存需求更高,要么仅局部施加约束,无法捕获采样图像中关键的长程相关性。在本研究中,我们提出了一种算法,能够在任意约束下实现快速、高质量的生成。我们表明,在去噪扩散模型中,我们可以采用牛顿优化方法的一种近似,从而加快推理速度并避免昂贵的反向传播操作。我们的方法产生的结果可媲美或超越最先进的免训练推理方法,同时所需时间仅为其一小部分。我们在线性(图像修复、超分辨率)和非线性(风格引导生成)约束下都证明了该算法的有效性。相关实现可在https://github.com/cvlab-stonybrook/fast-constrained-sampling获取。

英文摘要:

Large denoising diffusion models, such as Stable Diffusion, have been trained on billions of image-caption pairs to perform text-conditioned image generation. As a byproduct of this training, these models have acquired general knowledge about image statistics, which can be useful for other inference tasks. However, when confronted with sampling an image under new constraints, e.g. generating the missing parts of an image, using large pre-trained text-to-image diffusion models is inefficient and often unreliable. Previous approaches either utilized backpropagation through the denoiser network, making them significantly slower and more memory-demanding than simple text-to-image generation, or only enforced the constraint locally, failing to capture critical long-range correlations in the sampled image. In this work, we propose an algorithm that enables fast, high-quality generation under arbitrary constraints. We show that in denoising diffusion models, we can employ an approximation to Newton's optimization method that allows us to speed up inference and avoid the expensive backpropagation operations. Our approach produces results that rival or surpass the state-of-the-art training-free inference methods while requiring a fraction of the time. We demonstrate the effectiveness of our algorithm under both linear (inpainting, super-resolution) and non-linear (style-guided generation) constraints. An implementation is provided at https://github.com/cvlab-stonybrook/fast-constrained-sampling.

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

↑