SGPS is a trajectory-corrected inference algorithm that integrates diffusion denoising with SURE-based error correction and PCA noise estimation.
It interleaves conditional posterior guidance with local residual measurement to achieve high-quality image reconstructions under tight computational budgets.
The method leverages unbiased risk estimates and KL convergence theory to mitigate error accumulation, ensuring efficient correction during sampling.
SURE Guided Posterior Sampling (SGPS) is a trajectory-corrected inference algorithm for diffusion-based inverse problems that leverages Stein’s Unbiased Risk Estimate (SURE) and PCA-based noise estimation to mitigate error accumulation in the critical early and middle stages of sampling. SGPS consistently achieves high-quality reconstructions under tight computational budgets—requiring fewer than 100 Neural Function Evaluations (NFEs)—by interleaving diffusion denoising, conditional posterior guidance, local residual noise measurement, and data-guided correction steps (Kim et al., 29 Dec 2025).
1. Inverse Problem Formulation and Diffusion Priors
The core objective is to recover an unknown image x∈Rn from noisy linear measurements: y=Ax+η,η∼N(0,σy2Im)
where A∈Rm×n is a known forward operator (e.g., for super-resolution or deblurring), and σy is the measurement noise standard deviation.
A diffusion model serves as the learned prior, specified by a stochastic differential equation (SDE): dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)
with reparameterization in EDM by σ(t)=t,t∈[σmin≈0,σmax=T].
The unconditional backward sampling (reverse-time ODE) is: dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))
approximated in practice via a pre-trained denoiser Dθ: ∇xlogp(x;σ)=σ2Dθ(x;σ)−x
Posterior sampling for the inverse problem uses Bayes’ rule: ∇xtlogp(xt∣y)=∇xtlogpt(xt)+∇xtlogp(y∣xt)
The data-consistency term y=Ax+η,η∼N(0,σy2Im)0 is typically intractable and must be approximated.
2. SURE-Based Trajectory Correction
2.1 Stein's Unbiased Risk Estimate (SURE)
SURE provides an unbiased estimator of the mean squared error (MSE) for denoising under additive Gaussian noise. For y=Ax+η,η∼N(0,σy2Im)1, y=Ax+η,η∼N(0,σy2Im)2, and denoiser y=Ax+η,η∼N(0,σy2Im)3: y=Ax+η,η∼N(0,σy2Im)4
where y=Ax+η,η∼N(0,σy2Im)5. The trace is estimated by a Monte Carlo probe: y=Ax+η,η∼N(0,σy2Im)6
The SURE gradient direction is obtained by differentiating SURE w.r.t. y=Ax+η,η∼N(0,σy2Im)7: y=Ax+η,η∼N(0,σy2Im)8
The correction is: y=Ax+η,η∼N(0,σy2Im)9
where A∈Rm×n0 is a user-chosen step size; experiments use A∈Rm×n1.
2.2 Local SURE Gradient Update
After applying conditional guidance, let A∈Rm×n2 be the resulting state. Given a residual noise estimate A∈Rm×n3 (see Section 3), the denoiser is applied: A∈Rm×n4
with SURE evaluated as: A∈Rm×n5
A correction step via autodiff follows, reducing residual noise and pulling samples toward the data manifold.
3. PCA-Based Residual Noise Estimation
Accurate SURE application requires knowledge of the residual variance A∈Rm×n6 in A∈Rm×n7. SGPS employs a patch PCA estimator:
Decompose A∈Rm×n8 into A∈Rm×n9 overlapping patches σy0, compute mean σy1 and covariance
σy2
Eigen-decompose σy3 to obtain eigenvalues σy4. For each σy5, define: σy6
The smallest σy7 with σy8 equal to the median of σy9 is chosen. The noise level is then
dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)0
This estimator is efficient and requires no additional training.
For dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)2:
a) Denoising:dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)3.
b) Conditional Guidance: Use Langevin iterations to obtain dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)4 that balances prior and data likelihood.
c) PCA Noise Estimation: Estimate residual noise dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)5 from dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)6.
d) SURE Gradient Correction: Apply local correction using the SURE gradient to dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)7, yielding dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)8.
e) Sample for Next Step:dxt=2σ˙(t)σ(t)dwt,x0∼pdata,xT≈N(0,σT2I)9.
Return σ(t)=t,t∈[σmin≈0,σmax=T]0.
Distinctive features:
Estimated, not assumed, noise levels at each step (σ(t)=t,t∈[σmin≈0,σmax=T]1 via PCA).
Local SURE-based correction at every iteration directly addresses sampling trajectory deviations.
5. Theoretical Properties
Gaussian-Preservation (Theorem 1): Small-step Langevin guidance ensures the output of the denoiser remains nearly Gaussian in Wasserstein-2 distanceσ(t)=t,t∈[σmin≈0,σmax=T]2, justifying the use of SURE at each iteration.
KL-Convergence with SURE Correction (Theorem 2): Under local strong convexity of σ(t)=t,t∈[σmin≈0,σmax=T]3 and bounded SURE bias/variance, each correction step reduces the KL divergence to the true posterior, up to σ(t)=t,t∈[σmin≈0,σmax=T]4 error, where σ(t)=t,t∈[σmin≈0,σmax=T]5: σ(t)=t,t∈[σmin≈0,σmax=T]6
Error-Cascade Mitigation: By removing residual noise at each iteration, SGPS avoids error accumulation characteristic of earlier-stage high-noise samples, enabling accurate inference with σ(t)=t,t∈[σmin≈0,σmax=T]7 NFEs.
6. Empirical Performance and Cost Analysis
6.1 Benchmark Domains
SGPS was evaluated on linear (FFHQ256 super-resolution σ(t)=t,t∈[σmin≈0,σmax=T]8, box inpainting, random inpainting, Gaussian and motion deblurring) and nonlinear (phase retrieval, nonlinear deblurring, HDR recovery) inverse problems.
6.2 Quantitative Results
Performance with σ(t)=t,t∈[σmin≈0,σmax=T]9 (dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))0 NFE) and dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))1 (dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))2 NFE) is reported using PSNR (higher is better) and LPIPS (lower is better):
Method
NFE
SR4 PSNR / LPIPS
InpaintBox PSNR / LPIPS
InpaintRnd PSNR / LPIPS
GaussDebl PSNR / LPIPS
MotDebl PSNR / LPIPS
SGPS
99
29.38 / 0.179
24.23 / 0.133
30.47 / 0.116
29.35 / 0.179
31.24 / 0.148
DAPS
100
27.69 / 0.230
22.51 / 0.192
26.64 / 0.238
27.77 / 0.220
29.84 / 0.167
Method
NFE
PhaseRet PSNR / LPIPS
NonlinDebl PSNR / LPIPS
HDR PSNR / LPIPS
SGPS
99
24.08 / 0.268
27.33 / 0.197
24.87 / 0.179
DAPS
100
20.83 / 0.402
25.56 / 0.255
24.09 / 0.199
6.3 Computational Cost
On an RTX 4090: 48 NFE dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))3 4.13 s/image, 99 NFE dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))4 8.46 s/image.
In competitive SR4 settings at comparable runtime (4 s), SGPS achieves PSNR dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))5 29.06 dB versus DDNM's 29.09 dB.
Denoiser:U-Net in VP-DDPM/EDM configuration, trained on FFHQ256 images.
Noise schedule: Geometric, from dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))7 to dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))8, with dtdx=−σ˙(t)σ(t)∇xlogp(x;σ(t))9 (Karras et al.).
PCA: Patch size Dθ3, stride 4, Dθ4 patches per image.
SURE Hyperparameters:Dθ5, Dθ6.
Trace Vectors: One random vector per step; additional vectors confer no empirical benefit.
Principal limitations include restriction to pixel-space diffusion samplers, an assumption of known Dθ7 (forward operator), and requirement of local strong convexity for convergence theory. PCA noise estimation may fail for images with little self-similarity; alternative estimators (e.g., spectral) are potential directions. The SURE update uses backpropagation; forward-mode JVP or SPSA could reduce cost. Blind or partially unknown forward operators, non-Gaussian noise, and adaptation to latent-diffusion models remain open areas.
“Emergent Mind helps me see which AI papers have caught fire online.”
Philip
Creator, AI Explained on YouTube
Sign up for free to explore the frontiers of research
Discover trending papers, chat with arXiv, and track the latest research shaping the future of science and technology.Discover trending papers, chat with arXiv, and more.