Principled Design of Diffusion-based Optimizers for Inverse Problems

Julio Oscanoa, Irmak Sivgin, Cagan Alkan, Daniel B. Ennis, John M. Pauly, Mert Pilanci, Shreyas S VasanawalaNeurIPS 2026

TL;DR

Diffusion models are fantastic at reconstructing clear images from incomplete or blurry measurements, but deploying them requires agonizing inference-time hyperparameter tuning and hundreds of slow computational steps. This paper introduces OptDiff, a framework that uses principled mathematical reparameterizations to make diffusion hyperparameters invariant across different problem setups—meaning you tune them once and reuse them everywhere. By pairing this stability with classic convex optimization tricks like momentum and preconditioning, OptDiff achieves faster runtimes and sharper reconstructions than existing state-of-the-art solvers.

What Problem Does This Paper Address?

Suppose you are trying to solve an inverse problem: reconstructing a clear MRI scan from an accelerated, incomplete set of sensor readings, or sharpening a severely blurred photograph. Score-based diffusion models have become the gold standard here because they act as powerful "priors"—they know what clean images should look like, guiding the reconstruction away from noisy artifacts.

The beauty of pretrained diffusion models is that you don't need to retrain the neural network when switching tasks. The catch? You face a nightmare of inference-time hyperparameter tuning. Every time the blur kernel changes, the noise floor shifts, or the MRI acceleration factor goes up, parameters like the starting noise level ($\sigma_{\max}$), stopping noise level ($\sigma_{\min}$), and the balance between sensor data and the diffusion prior ($\lambda$) break down. Worse, finding a good image usually takes hundreds of sequential steps, making it too slow for time-sensitive clinical or real-world use.

Methods

Inspired by $\mu$P (which stabilizes hyperparameters when scaling up neural network training), the authors develop mathematical reparameterizations that stabilize inference hyperparameters, building upon an existing variational framework called RED-diff (which turns diffusion sampling into a stochastic optimization problem).

  1. Spectral Noise Schedule Design: Standard diffusion starts from pure static ($\sigma_{\max}$) and denoises down to near-zero ($\sigma_{\min}$). Viewing diffusion as spectral autoregression—where coarse, low-frequency shapes emerge first, followed by fine, high-frequency details—the authors realize that in inverse problems, you often already have the low frequencies from your measurements! Instead of guessing raw noise levels, they reparameterize them into tolerance fractions ($\tau_{\max}, \tau_{\min}$) based on the signal's power spectrum and measurement noise floor.
Noise schedule design adapting start and stop noise levels to measured low-frequency content and the dataset noise floor.
  1. Two-Sided Gradient Normalization: In optimization-based diffusion, you constantly step in a direction combining data consistency (matching sensor measurements) and the diffusion prior. Because the diffusion gradient's magnitude fluctuates wildly across noise levels, standard methods require fragile, handcrafted time-dependent schedules ($\lambda_t$). The authors normalize both gradients to unit length. This cancels out arbitrary scaling factors and allows a single, constant scalar ($\hat{\lambda}$) to balance data and prior across the entire optimization run.
  2. The OptDiff Pipeline: To tune the few remaining knobs without an exhaustive grid search, OptDiff uses a "greedy-optimal" strategy on a tiny calibration set (5–10 images), solving a quick non-negative least squares problem to decouple the noise schedule from the sampler weights. Because this turns sampling into a well-behaved optimization loop, the authors seamlessly plug in classic convex optimization accelerators: momentum and polynomial preconditioning.

Datasets

The authors evaluate their methods using pretrained diffusion models across three standard datasets (no new benchmarks are introduced):

  • fastMRI: Brain MRI scans evaluated on compressed sensing reconstruction (at $4\times$ and $8\times$ acceleration) and deblurring.
  • ImageNet and FFHQ (Flickr-Faces-HQ): Natural images and human faces tested on Gaussian deblurring, severe deblurring, super-resolution ($4\times$ and $16\times$), and inpainting.

Key Insights and Ideas

  • Don't destroy what you already measured: Starting reverse diffusion at maximum noise wastes steps reconstructing low-frequency structures your sensor already captured. Stopping well below the dataset's inherent noise floor is equally wasteful. Framing start/stop bounds via error-covariance tolerances ($\tau_{\max}, \tau_{\min}$) automatically adapts the schedule to the physics of the problem.
  • Solver-agnostic schedules: Because the noise schedule math relies only on signal and noise spectra—not on OptDiff's specific optimizer—you can drop this schedule into other popular solvers (like DPS, DDRM, or RED-diff) and immediately boost their accuracy.
  • Invariant curves: When plotting reconstruction quality against standard hyperparameters ($\sigma_{\max}, \sigma_{\min}, \lambda$), the optimal peaks jump wildly across tasks and iterations. Under OptDiff's reparameterizations ($\tau_{\max}, \tau_{\min}, \hat{\lambda}$), the curves snap into alignment!
Figure 1: (Top) Comparison of standard and proposed hyperparameters for different experimental set- tings. Our proposed reparameterization (τmax, τmin) for noise schedule hyperparameters (σmax, σmin) produces aligned normalized PSNR curves across different inverse problem settings, showcasing invariance of OptDiff parameters. Similarly, our reparameterized sampler hyperparameter ˆλ yields aligned curves for different iteration intervals, implying that a single ˆλ value suffices during the entire reverse process in OptDiff. (Bottom) Performance comparisons between OptDiff and other diffusion-based inverse problem solvers. Our method OptDiff achieves the best runtime-PSNR tradeoff.

Key Results

  • Better Quality at Fixed Budgets: At 100 function evaluations (NFE-100), OptDiff consistently beats or matches baselines like DPS, DDRM, DDNM, DiffPIR, RED-diff, and DAPS. On $8\times$ accelerated fastMRI, OptDiff hits 34.93 dB PSNR (0.921 SSIM), jumping roughly 3 dB ahead of RED-diff (31.92 dB) and DAPS (31.66 dB). On ImageNet deblurring (Table 1), OptDiff reaches 41.04 dB, beating optimized RED-diff (40.05 dB).
  • Schedule Transferability: Simply swapping standard noise schedules for the authors' spectral schedule boosts DPS on ImageNet deblurring from 27.51 dB to 38.17 dB, and RED-diff from 35.94 dB to 40.05 dB.
  • Serious Speedups: Adding momentum and preconditioning shines brightest when step budgets are tight. At just 20 NFE on $8\times$ MRI, preconditioned OptDiff achieves 32.3 dB PSNR—outperforming standard 100-step RED-diff (32.2 dB) at a fraction of the compute, running in under 2 seconds compared to ~8–20 seconds for competing high-step baselines.

Limitations and Future Work

  • Missing Low Frequencies: The $\sigma_{\max}$ reduction relies on the forward measurement preserving low-frequency content. For tasks like large-mask inpainting (where whole chunks of low frequencies are wiped out), the schedule offers less advantage.
  • Pixel Fidelity vs. Sharpness: Like RED-diff, OptDiff optimizes for a single point estimate (favoring mean-squared-error metrics like PSNR). On severely ill-posed tasks like $16\times$ super-resolution—where many sharp textures could plausibly fit a blurry pixel—this can yield slightly worse perceptual scores (LPIPS) compared to stochastic samplers, producing smoother averages rather than hallucinated crisp details.
  • Future Directions: While the noise schedule transfers everywhere, the $\hat{\lambda}$ normalization is tailored to optimization-based solvers. Extending these invariance principles to broader stochastic posterior samplers—and integrating even stronger convex optimization machinery—remains open for future work.

Summary updated

Abstract

Score-based diffusion models achieve state-of-the-art performance for inverse problems, but their practical deployment is hindered by long inference times and cumbersome hyperparameter tuning. While pretrained diffusion models can be reused across tasks without retraining, inference-time hyperparameters such as the noise schedule and posterior sampling weights typically require ad-hoc adjustment for each problem setup. We propose principled reparameterizations that induce invariances, allowing the same hyperparameters to be reused across multiple problems without re-tuning. In addition, building on the RED-diff framework, which reformulates posterior sampling as an optimization problem, we further develop the OptDiff pipeline. OptDiff provides a simplified tuning framework that facilitates the integration of convex optimization tools to accelerate inference. Experiments on image reconstruction, deblurring, and super-resolution show substantial speedups and improved image quality.
BibTeX
@inproceedings{oscanoa2026principled,
  author = {Julio Oscanoa and Irmak Sivgin and Cagan Alkan and Daniel B. Ennis and John M. Pauly and Mert Pilanci and Shreyas S Vasanawala},
  title = {{Principled Design of Diffusion-based Optimizers for Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BJ9BmUd5tV},
}
Figure