Fast Samplers for Inverse Problems in Iterative Refinement Models

Kushagra Pandey, Ruihan Yang, Stephan Mandt · OpenReview

Abstract

Constructing fast samplers for unconditional diffusion and flow-matching models has received much attention recently; however, existing methods for solving inverse problems, such as super-resolution, inpainting, or deblurring, still require hundreds to thousands of iterative steps to obtain high-quality results. We propose a plug-and-play framework for constructing efficient samplers for inverse problems, requiring only pre-trained diffusion or flow-matching models. We present Conditional Conjugate Integrators, which leverage the specific form of the inverse problem to project the respective conditional diffusion/flow dynamics into a more amenable space for sampling. Our method complements popular posterior approximation methods for solving inverse problems using diffusion/flow models. We evaluate the proposed method's performance on various linear image restoration tasks across multiple datasets, employing diffusion and flow-matching models. Notably, on challenging inverse problems like 4$\times$ super-resolution on the ImageNet dataset, our method can generate high-quality samples in as few as 5 conditional sampling steps and outperforms competing baselines requiring 20-1000 steps.

Introduction

Diffusion and flow-matching models are state-of-the-art for image generation, but they face a significant "speed limit" when applied to inverse problems—tasks like deblurring, inpainting, or super-resolution where an original image must be recovered from a degraded version.

Standard methods for these tasks are typically slow for two reasons:

  1. Numerical Difficulty: The "guidance" signal used to steer the model toward the degraded observation makes the underlying differential equations (ODEs) highly non-linear and difficult to solve in few steps.
  2. Computational Cost: Many existing fast methods require calculating expensive Jacobian-vector products at every step, making even a "fast" 20-step sampler computationally heavy in practice.

Conditional Conjugate Integrators

The core of this work is the Conditional Conjugate Integrator (C-ΠGDM/GFM). This training-free framework builds on the concept of "Conjugate Integrators," which use a time-dependent affine transformation to map the sampling process into a mathematically "better-conditioned" space.

Visualizing the projection from ill-conditioned to better-conditioned dynamics.

Key technical innovations include:

  • Structure-Aware Projection: The transformation matrix is specifically designed to incorporate the degradation operator ($H$) and the guidance scale ($w$).
  • Analytical Pre-conditioning: By separating the linear and non-linear components of the conditional dynamics and solving the linear parts analytically, the authors effectively "straighten" the path the numerical solver must follow.
  • Tractable Computation: Although the theory involves matrix exponentials, the authors prove that for common linear degradations, the transformation simplifies into forms involving simple scalar exponentials and orthogonal projectors, keeping the method computationally "cheap."

Key Insights

  • The "High-Frequency First" Strategy: The projection naturally focuses the model on recovering high-frequency details early in the sampling process. Since low-frequency information is often already present in the degraded input, this prioritization allows for much faster convergence to a sharp image.
  • Coordinate Transformation as Guidance: Instead of treating guidance as an external force "pushing" the model, it is treated as a change of coordinates. In the new coordinate system, the remaining non-linear dynamics are much smoother, allowing a simple Euler solver to work effectively with very few steps.
  • Zero Re-training: The method is entirely "plug-and-play," working with any pre-trained unconditional model without requiring extra training.

Evaluation and Results

The method was evaluated across several high-resolution datasets, including ImageNet (256x256), FFHQ, and LSUN-Bedroom, for tasks such as 4x super-resolution and Gaussian deblurring.

Quantitative performance comparison across tasks and sampling steps.

As shown in the results, the framework achieves a massive speedup. On challenging 4x super-resolution tasks on ImageNet, the method generates high-quality samples in just 5 steps, outperforming competing baselines like DDRM or DPS that typically require 20 to 1,000 steps. In the "low-budget" regime (5–20 steps), C-ΠGDM/GFM consistently achieved lower FID (Fréchet Inception Distance) and LPIPS (perceptual similarity) scores. Qualitatively, the results show a significant reduction in over-smoothing, restoring fine textures like animal fur that other fast samplers often fail to capture.

Limitations and Future Work

Currently, the framework requires a known degradation operator ($H$), meaning it is not yet designed for "blind" inverse problems. While the math for linear problems is rigorous, the extension to non-linear problems (like removing compression artifacts) currently relies on heuristic approximations. Adapting these integrators for Latent Diffusion Models (like Stable Diffusion) is a promising future direction to further increase efficiency.

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