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.
Score Mismatch and Set-Constrained Sampling in Zero-Shot Conditional Discrete Diffusion
University of California, Davis(加州大学戴维斯分校);Luddy School of Informatics, Computing, and Engineering, Indiana University Indianapolis(印第安纳大学印第安纳波利斯分校卢迪信息学、计算与工程学院);The Ohio State University(俄亥俄州立大学)
A Constrained Deformable Convolutional Network for Efficient Single Image Dynamic Scene Blind Deblurring with Spatially-Variant Motion Blur Kernels Estimation
Chongqing University of Posts and Telecommunications(重庆邮电大学);Chongqing University(重庆大学)
Beihang University(北京航空航天大学);University of Central Florida(中佛罗里达大学);Lancaster University(兰卡斯特大学);Microsoft Corporation(微软公司);University of East Anglia(东英吉利大学)