Fast samplers for Inverse Problems in Iterative Refinement models

Kushagra Pandey, Ruihan Yang, Stephan Mandt

TL;DR

This paper introduces Conditional Conjugate Integrators, a plug-and-play framework that drastically accelerates solving inverse problems—such as super-resolution and inpainting—using pre-trained diffusion and flow-matching models. By mathematically projecting the sampling dynamics into a "better-conditioned" space, the authors achieve high-quality image restoration in as few as 5 steps, outperforming traditional methods that require 20 to 1,000 steps.

The Challenge of Inverse Problems

Iterative refinement models, specifically diffusion models and flow-matching methods, have revolutionized image generation. However, using them to solve inverse problems—recovering an original image from a degraded version like a blurry, downsampled, or masked image—remains computationally expensive.

While we’ve seen massive speedups in unconditional sampling (generating an image from pure noise), conditional sampling for inverse problems still typically requires hundreds or thousands of neural network evaluations (NFEs). Furthermore, many existing techniques rely on expensive Jacobian-vector products, making each individual step slow. The gap is clear: we need a way to solve these problems quickly using the powerful pre-trained models we already have, without needing to re-train them for every specific task.

Methods: Conditional Conjugate Integrators

To bridge this gap, the authors propose Conditional Conjugate Integrators (C-ΠGDM for diffusion and C-ΠGFM for flows). This approach builds on the concept of "Conjugate Integrators," which change the coordinate system of the sampling process to make it easier for numerical solvers to handle.

Projection into a better-conditioned space

Key innovations include: * Structure-Aware Projection: Unlike "black-box" samplers, this method incorporates the specific structure of the inverse problem (the degradation operator $H$, like a blur kernel or downsampling matrix) directly into the sampler design. * Analytical Linearization: The researchers separate the sampling equations into linear and non-linear components. By analytically solving the linear parts related to the degradation, they project the remaining dynamics into a space that is much more amenable to fast sampling. * Plug-and-Play Framework: The method requires no re-training. It merely involves algebraic manipulations of the ODE/SDE equations used during the inference phase of pre-trained models.

Key Insights: The "Nullspace" Advantage

A major breakthrough in the paper is the realization that near the start of the sampling process, the projected dynamics focus almost entirely on denoising the high-frequency details missing from the degraded input. By projecting the dynamics into the nullspace of the degradation operator, the sampler "knows" exactly which parts of the image need the most work early on.

Standard samplers often produce "over-smoothed" results when given a low step budget. Because C-ΠGDM identifies and restores high-frequency components early, it maintains sharpness even at extremely low step counts. Furthermore, users can navigate the trade-off between perceptual quality (sharpness) and distortion (faithfulness to the original) by tuning two key hyperparameters: the guidance scale ($w$) and a transformation parameter ($\lambda$).

Key Results and Performance

The quantitative and qualitative improvements demonstrated by Conditional Conjugate Integrators are significant, particularly in extreme low-step regimes. The researchers evaluated their method across several high-resolution (256x256) benchmarks, including ImageNet, CelebA-HQ, AFHQ-Cat, LSUN-Bedroom, and FFHQ.

Quantitative results comparing C-ΠGFM and C-ΠGDM to baselines
  • Extreme Efficiency: On challenging tasks like 4x super-resolution for ImageNet, the proposed sampler achieved better FID (Fréchet Inception Distance) and LPIPS (perceptual loss) scores in just 5 steps than competing baselines (like DPS or DDRM) achieved in 20 to 1,000 steps.
  • Perceptual Superiority: Qualitatively, the method excels at restoring fine textures—such as human hair or animal fur—that baselines typically blur out when constrained to a low NFE budget.
  • Robustness: The framework proved effective across different types of models (both Diffusion and Flow-matching) and various tasks (Inpainting, Deblurring, and Super-Resolution).

Limitations and Future Work

While highly effective, the current framework assumes the degradation operator $H$ is known (e.g., the exact downsampling method is provided). Extending this to "blind" inverse problems, where the degradation is unknown, is a key area for future research. Additionally, like many guided diffusion methods, very high guidance weights can occasionally lead to over-sharpening artifacts.

Looking ahead, the authors suggest that adapting these solvers for Latent Diffusion Models (like Stable Diffusion) could further enhance efficiency. There is also potential to make the transformation matrix $A_t$ even more expressive by learning it directly during the sampling stage, rather than deriving it analytically.

Summary updated

BibTeX
@inproceedings{pandey2024fast,
  author = {Kushagra Pandey and Ruihan Yang and Stephan Mandt},
  title = {{Fast samplers for Inverse Problems in Iterative Refinement models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=qxS4IvtLdD},
}
Figure