ReGuidance: A Simple Diffusion Wrapper for Boosting Sample Quality on Hard Inverse Problems

Aayush Karan, Kulin Shah, Sitan ChenarXiv 2025 · DOI

Introduction

Pretrained diffusion models have emerged as exceptionally powerful data priors, capturing the complex distributions of natural images. These models are frequently employed to solve inverse problems—tasks like super-resolution, inpainting, or deblurring—where the goal is to recover a high-fidelity image from degraded or partial observations.

A common technique for this is Diffusion Posterior Sampling (DPS), which guides the generative process toward solutions that are both realistic and consistent with the observed data. However, in "hard" regimes—where information is sparse or noise levels are high—standard DPS often produces "hallucinations": outputs that technically satisfy data constraints but appear blurry, distorted, or unrealistic. This paper introduces ReGuidance, a simple, training-free wrapper that resolves these failures by re-initializing the sampling process from a refined latent space.

The Challenge of Hard Inverse Problems

In challenging inverse problems, such as large-scale box inpainting or high-factor super-resolution, the guidance term in DPS can push the sampling trajectory away from the manifold of real data. This results in a trade-off where the model might achieve low measurement error at the cost of visual realism. Until now, the field lacked a rigorous theoretical understanding of why these trajectories "veer off" and a modular way to correct them without retraining the underlying models.

The ReGuidance Framework

ReGuidance is a two-step, modular wrapper that can be applied to any existing inverse problem solver (e.g., DAPS or DDRM). The core innovation lies in treating the initial solver's output not as the final result, but as a "first guess" used to identify a superior starting point in the model's latent space.

The Two-Step Process

  1. Latent Extraction (Inversion): Given an initial reconstruction $\hat{x}$ from a base solver, the algorithm runs the unconditional probability flow ODE in reverse. This maps the candidate solution back to its corresponding latent noise vector $x^*$.
  2. Refinement (DPS-ODE): Using $x^*$ as the new initialization, the algorithm runs a deterministic DPS-ODE for time $T$. This second pass fine-tunes the reconstruction, ensuring it stays within a realistic neighborhood of the data manifold while strictly adhering to the measurement constraints.
Algorithm 1: The ReGuidance procedure for improving initial reconstructions via latent extraction and deterministic refinement.

Evaluation and Results

The researchers evaluated ReGuidance on ImageNet ($256 \times 256$) and CIFAR-10 ($32 \times 32$) benchmarks, focusing on difficult tasks like $191 \times 191$ box inpainting and $16\times$ super-resolution.

Quantitative Performance

ReGuidance consistently outperformed state-of-the-art baselines across both realism and consistency metrics. On ImageNet box inpainting, applying ReGuidance to the DAPS baseline improved the CMMD score (realism) from 1.103 to 0.628 and reduced the LPIPS (consistency) from 0.418 to 0.376.

Qualitative Impact

Visually, the improvement is significant. While baseline methods often produce blurry or semantically incoherent patches in large missing regions, ReGuidance generates sharp, high-frequency textures—such as realistic animal fur or complex foliage—that blend seamlessly with the surrounding context.

Qualitative comparison showing ReGuidance (Ours) significantly improving the sharpness and semantic realism of inpainting and super-resolution results compared to the DAPS baseline.

Key Insights and Discussion

  • Latent Initialization Matters: The paper demonstrates that where one starts in the noise space is as critical as the guidance term itself. The space of "good" latents is disconnected; ReGuidance effectively finds a "pocket" of high-quality initialization near a valid candidate.
  • Deterministic vs. Stochastic: A key finding is that the deterministic ODE formulation is essential for the wrapper's success. Stochasticity (SDEs) tends to "wash away" the benefits of the clever initialization provided by the inversion step.
  • Theoretical Foundations: The authors provide the first rigorous proof that a well-initialized DPS (like ReGuidance) contracts samples toward data modes in Gaussian mixture models, simultaneously boosting reward and realism.

Limitations

While effective, ReGuidance effectively doubles inference time because it requires two passes (initial solver + refinement). Additionally, numerical discretization errors during the ODE inversion can occasionally introduce artifacts in extremely high-resolution tasks. Future work may focus on extending these theoretical guarantees to non-linear rewards and more complex data manifolds.

Summary updated

BibTeX
@misc{karan2025reguidance,
  author = {Aayush Karan and Kulin Shah and Sitan Chen},
  title = {{ReGuidance: A Simple Diffusion Wrapper for Boosting Sample Quality on Hard Inverse Problems}},
  year = {2025},
  eprint = {2506.10955},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10955},
}
Figure