Diffusion State-Guided Projected Gradient for Inverse Problems

Rayhan Zirvi, Bahareh Tolooshams, Anima Anandkumar

TL;DR

DiffStateGrad is a new, plug-and-play module that makes diffusion-based inverse problem solvers significantly more robust and artifact-free. By projecting measurement gradients onto a low-rank subspace derived from the current diffusion state, it ensures that updates stay close to the data manifold, preventing the "hallucinations" and artifacts that typically plague these models when guidance is too strong.

What Problem Does This Paper Address?

Inverse problems—recovering an original signal from noisy, incomplete observations (like deblurring an image or reconstructing an MRI)—are notoriously "ill-posed." Because there are many possible solutions that could fit the data, we rely on priors (models of what "natural" data looks like) to pick the right one.

Diffusion models have become the gold-standard prior. However, using them for inverse problems is tricky. Because these models are usually trained unconditionally (without knowing the specific measurement process), the "guidance" gradient used to enforce data consistency is often an approximation. In practice, this approximation can push the generated image off the "natural data manifold." This deviation results in weird visual artifacts or total reconstruction failure, especially if the guidance step size is large or the measurements are very noisy.

Methods

To address this, the authors introduce Diffusion State-Guided Projected Gradient (DiffStateGrad). Instead of applying the measurement gradient directly to the diffusion state, they first project it onto a "safe" subspace.

Conceptual diagram showing how standard measurement gradients push the diffusion state off the data manifold, whereas DiffStateGrad projects the update back onto the manifold's tangent space.
  1. SVD-based Projection: At each diffusion step, the algorithm performs a Singular Value Decomposition (SVD) on the current intermediate state ($z_t$ or $x_t$).
  2. Adaptive Rank Selection: It identifies a low-rank subspace that captures the most significant structural information of the current state (using a variance retention threshold, $\tau$).
  3. Gradient Filtering: The measurement gradient is projected onto this subspace. This effectively filters out components of the gradient that are orthogonal to the local structure of the data manifold—components that would otherwise introduce artifacts.
  4. Plug-and-Play: DiffStateGrad is designed as a modular add-on. The authors demonstrate its effectiveness by integrating it into four state-of-the-art (SOTA) solvers: DPS, PSLD, ReSample, and DAPS.

Datasets

The researchers evaluated their method across several diverse benchmarks:

  • FFHQ (256×256): A high-quality dataset of human faces.
  • ImageNet (256×256): A large-scale dataset of diverse natural objects.
  • NYU fastMRI: A medical imaging dataset (T2-weighted brain scans) used to test the method's applicability to real-world scientific problems.

Key Insights and Ideas

  • The State is the Map: The most surprising insight is that the noisy, intermediate state of the diffusion process itself contains enough information to approximate the local tangent space of the data manifold. You don't need a separate model to tell you which update directions are "safe."
  • Robustness to Hyperparameters: Standard diffusion solvers are notoriously sensitive to the "guidance scale" (step size). If it's too small, the image doesn't match the data; if it's too large, the image breaks. DiffStateGrad drastically widens this "Goldilocks zone," allowing for strong guidance without the risk of artifacts.
  • Worst-Case Reliability: By constraining updates to the manifold, the method significantly reduces "catastrophic failures" where the model produces a completely nonsensical output.
  • Efficiency: While SVD sounds computationally expensive, performing it on latent representations (e.g., 64x64 matrices in Latent Diffusion Models) adds negligible overhead—typically only a few seconds to the total sampling time.

Key Results

The authors tested DiffStateGrad on a battery of linear (inpainting, deblurring, super-resolution) and nonlinear (phase retrieval, HDR reconstruction) tasks.

Visual comparison of an inpainting task. The standard PSLD method produces a glaring white artifact, while DiffStateGrad-PSLD successfully reconstructs the missing region.
  • Quantitative Gains: Across almost all tasks and datasets, DiffStateGrad improved PSNR (Peak Signal-to-Noise Ratio) and LPIPS (a measure of perceptual quality). For example, in phase retrieval on FFHQ, it improved PSNR from 27.61 to 31.19.
  • Failure Rate Reduction: In the challenging phase retrieval task, the "failure rate" (defined as PSNR < 20) dropped from 26% to just 4%.
  • Noise Resilience: As measurement noise increased, DiffStateGrad maintained high SSIM (Structural Similarity) scores while baseline methods degraded rapidly.
  • Qualitative Improvement: Visual results show a clear reduction in the "splotchy" or "grainy" artifacts often seen in methods like PSLD when using high guidance scales.

Limitations and Future Work

  • Prior Bias: The method relies on the diffusion model's learned prior. If the prior itself is biased or hasn't seen the type of data being reconstructed (e.g., black hole imaging), DiffStateGrad cannot magically fix it.
  • Rank Selection: While the adaptive rank selection is robust, it still introduces a hyperparameter ($\tau$). Although the paper shows $\tau \geq 0.6$ works well generally, some fine-tuning might be needed for extreme edge cases.
  • Future Directions: The authors suggest exploring how this manifold-preserving approach could be combined with better initialization strategies to further speed up the diffusion sampling process.

Summary updated

BibTeX
@inproceedings{zirvi2025diffusion,
  author = {Rayhan Zirvi and Bahareh Tolooshams and Anima Anandkumar},
  title = {{Diffusion State-Guided Projected Gradient for Inverse Problems}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=kRBQwlkFSP},
}
Figure