Fast Samplers for Inverse Problems in Iterative Refinement Models

Kushagra Pandey, Ruihan Yang, Stephan Mandt

TL;DR

This paper introduces Conditional Conjugate Integrators (C-CI), a plug-and-play framework that dramatically accelerates solving inverse problems (like super-resolution and deblurring) using pre-trained diffusion and flow-matching models. By projecting sampling dynamics into a better-conditioned space, the method generates high-quality images in as few as 5 steps, outperforming existing baselines that require 20 to 1,000 steps.

What Problem Does This Paper Address?

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

While "unconditional" sampling has seen massive speedups recently, "conditional" sampling for inverse problems typically requires hundreds or thousands of iterations. Furthermore, many current methods rely on expensive operations like Jacobian-vector products, making each step slow. The challenge is to achieve high perceptual quality with a very low "sampling budget" (Number of Function Evaluations, or NFE) without needing to re-train these massive models.

Methods

The authors propose a framework called Conditional Conjugate Integrators. The core idea is to apply an invertible, time-dependent affine transformation to the sampling latent variables.

Instead of sampling in the original image space where the dynamics might be "ill-conditioned" (difficult to solve efficiently), they use a projector operator $\Phi$ to map the dynamics into a "more amenable space." This projection is specifically designed using the structure of the inverse problem—namely, the degradation operator $H$ (which describes how the image was damaged) and the guidance scale $w$.

Figure 1: Illustration of Conditional Conjugate Integrators for Fast Sampling in Inverse Problems. Given an initial sampling latent xts at time ts, our sampler projects the diffusion/flow dynamics to a more amenable space for sampling using a projector operator Φ which is conditioned on the degradation operator H and the sampling guidance scale w. The diffusion/flow sampling is then performed in the projected space. Post completion, the generated sample in the projected space is transformed back into the original space using the inverse of the projection operator, yielding the final generated sample. We define the form of the operator Φ in Section 2.2. Conditional Conjugate Integrators can significantly speed up sampling in challenging inverse problems and can generate high-quality samples in as few as 5 NFEs as compared to existing baselines, which require from 20-1000 NFEs (see Section 3).

Key technical highlights include:

  • Linear/Non-linear Separation: They separate the generation process into linear and non-linear components, analytically solving the linear parts to stabilize the ODE.
  • Structure-Aware Design: Unlike "black-box" samplers, C-CI encodes the specific geometry of the linear inverse problem directly into the integrator.
  • No Re-training: The method is entirely "plug-and-play," relying on algebraic manipulations of pre-trained unconditional models.

Datasets

The researchers evaluated their method across several standard high-resolution (256x256) datasets:

  • ImageNet & FFHQ: Used for evaluating diffusion-based models.
  • AFHQ-Cat, LSUN-Bedroom, & CelebA-HQ: Used for evaluating flow-matching models.

They tested three primary tasks: 4x Super-Resolution, Image Inpainting (with a center mask), and Gaussian Deblurring.

Key Insights and Ideas

  • Nullspace Denoising: A major "aha moment" in the paper is the theoretical analysis showing that their projection $A_t$ effectively focuses early sampling steps on the nullspace of the degradation operator $H$. In tasks like super-resolution, this means the model prioritizes recovering missing high-frequency details early in the process, which is exactly what's needed for fast, high-quality restoration.
  • Better Conditioning: By incorporating the degradation operator into the transformation, the resulting ODE becomes "better-conditioned." This allows numerical solvers to take much larger steps without losing accuracy or stability.
  • Hyperparameter Trade-offs: The authors identified a new hyperparameter, $\lambda$, which controls the scale of the transformation. They found a clear trade-off: proper tuning of $\lambda$ and the guidance weight $w$ is essential to prevent either over-sharpening artifacts or overly blurry results.

Key Results

The quantitative results show that C-CI (specifically C-ΠGDM for diffusion and C-ΠGFM for flows) consistently dominates baselines at low NFE.

  • Efficiency: On 4x super-resolution for ImageNet, C-ΠGDM at just 5 steps achieved better FID (37.31) and LPIPS (0.220) scores than baselines like DPS or DDRM, which often require 20 to 1,000 steps to reach comparable quality.
  • Flow vs. Diffusion: The method works across both model types. For CelebA-HQ inpainting, C-ΠGFM at 5 steps significantly outperformed the standard ΠGFM baseline across all perceptual metrics (LPIPS, KID, FID).
Quantitative comparison showing C-CI variants outperforming baselines at low sampling budgets.

Qualitatively, the method excels at restoring fine textures—such as human hair or animal fur—that baselines often smooth over when given a limited computational budget.

Limitations and Future Work

  • Performance Plateau: The authors noted that performance gains tend to plateau around 20 steps. They suggest that further improvements might require moving beyond deterministic Euler solvers to stochastic sampling or more advanced numerical techniques.
  • Non-linear Heuristics: While they provide a way to handle non-linear inverse problems (like JPEG artifact removal), the current approach is heuristic. Developing a more principled framework for non-linear cases is a key area for future research.
  • Hyperparameter Tuning: The method introduces new parameters ($\lambda, w, \tau$) that are task-specific and currently require manual tuning or grid searches to optimize.
  • Latent Space: The current work focuses on pixel-space models; adapting these integrators for Latent Diffusion Models (like Stable Diffusion) is another promising direction.

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