Preprint · 2026

Exact Posterior Score Estimation
for Solving Linear Inverse Problems

Posterior sampling is still just denoising — you only have to query the denoiser at the right place, with the right noise geometry.

Abbas Mammadov1,* · Ozgur Kara2,* · Kaan Oktay3 · Iskander Azangulov1 · Adil Kaan Akan3 · Hyungjin Chung4 · James Matthew Rehg2 · Yee Whye Teh1

1University of Oxford · 2UIUC · 3fal · 4EverEx

*Equal contribution

Abstract

Posterior sampling, exactly

Diffusion and flow models learn powerful data priors, but to solve a linear inverse problem $y = A x_0 + \eta$ the reverse sampler needs the posterior score $\nabla_{x_t}\log p(x_t\mid y)$, not the unconditional prior score the model provides. Existing methods either steer a fixed denoiser with approximate measurement corrections, or train a conditional model that abandons the denoising structure of the prior.

We derive the exact posterior score in closed form for linear Gaussian inverse problems and show that posterior sampling reduces to a denoising problem at an operator-dependent shifted pivot $\mu_\star$ under an anisotropic noise covariance $\Sigma_\star$. We turn this identity into Exact Posterior Score (EPS), a denoising objective that preserves the input/output structure of standard pretraining — so it trains from scratch or fine-tunes from a pretrained denoiser. At inference, EPS runs the backbone's own sampler unchanged, with no likelihood gradients or projections, using roughly an order of magnitude fewer denoiser evaluations than gradient-based posterior samplers.

5linear inverse problems
~20NFE to converge
Same costas the bare denoiser (1.006×)
1NFE posterior-mean estimate
Method

Denoising at the right query geometry

Instead of denoising an isotropic query at $x_t$, the measurement shifts the query to the posterior pivot $\mu_\star$ and reshapes the noise into an anisotropic covariance $\Sigma_\star$: measured directions become certain, unobserved directions stay uncertain. The same backbone sampler runs unchanged.

EPS turns posterior sampling into denoising. The measurement shifts the query from x_t to the pivot mu-star and reshapes isotropic noise into an anisotropic covariance Sigma-star.
EPS turns posterior sampling into denoising with the right query geometry. A single high-noise evaluation returns the posterior mean $\mathbb{E}[x_0\mid y]$ (high PSNR, smooth); continuing the sampler produces a sharp posterior sample.
Theorem 1 — exact posterior score

$$\nabla_{x_t}\log p(x_t\mid y)=\frac{1}{\beta_t^2}\Big(\alpha_t\,D_{\Sigma_\star}\!\big(\mu_\star\big)-x_t\Big)$$

Pivot & covariance

$$\Sigma_\star=\Big(\tfrac{\alpha_t^2}{\beta_t^2}I+\tfrac{1}{\sigma_y^2}A^\top A\Big)^{-1},\quad \mu_\star=\Sigma_\star\Big(\tfrac{\alpha_t}{\beta_t^2}x_t+\tfrac{1}{\sigma_y^2}A^\top y\Big)$$

EPS training objective

$$\mathcal{L}_{\mathrm{EPS}}=\mathbb{E}\big[\,w(t)\,\|D_\theta(\mu_\star,y,t)-x_0\|^2\,\big]$$

The target stays a clean image $x_0$ and the loss stays squared error — only the input changes from $x_t$ to the pivot $\mu_\star$. Training-free solvers (DPS, DDNM, $\Pi$GDM) instead query the network at $x_t$ and approximate $D_{\Sigma_\star}(\mu_\star)$ with the unconditional denoiser $D_t(x_t)$; that gap is exactly what EPS closes.

Quantitative results

Best on the majority of metrics, at a fraction of the budget

Five linear inverse problems on FFHQ-64 and ImageNet-64, every baseline under the same backbone and protocol. EPS wins on pointwise fidelity, perceptual quality, and distributional calibration alike.

ImageNet · random inpaint · FID

99.6 → 77.1 vs. best zero-shot ($\Pi$GDM)

NFE to plateau

~20 baselines climb past 100

Sampling cost vs. bare EDM

1.006× DPS / $\Pi$GDM ≈ 2.3×

1-NFE posterior mean · PSNR

26.60 dB ImageNet random inpaint
FID and CRPS versus sampler steps. EPS plateaus within about 20 NFE on every panel while DPS, DAPS, DDNM, PiGDM and MPGD keep improving out to 100 NFE without catching up.
EPS converges in ~20 NFE; baselines never catch up. Sampling-step sensitivity on random inpainting and $4\times$ super-resolution, across ImageNet-64 and FFHQ-64.
TaskMethodNFE PSNR↑SSIM↑LPIPS↓FID↓ MMDpixMMDIncCRPSpixCRPSInc

All five baselines and all metrics shown; EPS rows highlighted. Pointwise (PSNR, SSIM), perceptual (LPIPS, FID), and distributional (MMD, CRPS in pixel & Inception space) — scroll horizontally for the full set. The 1-NFE row is a single high-noise Tweedie call returning the posterior mean $\mathbb{E}[x_0\mid y]$ — MMSE-optimal in pixel space, hence strong PSNR/SSIM.

Wall-clock cost · ImageNet-64, NFE=100, B200 GPU

Methods / image× EDM
EDM (uncond., reference)1.871.00×
DDNM2.511.34×
MPGD2.521.35×
DAPS4.072.18×
DPS4.282.29×
$\Pi$GDM4.542.43×
EPS (ours)1.881.006×

EPS solves the inverse problem at essentially the cost of running the bare denoiser — no backward pass, no nested rollout.

Qualitative results

Reconstructions across the five tasks

EPS keeps sharp prior structure while matching the observation: the pivot separates measured from unmeasured directions, and $\Sigma_\star$ sets how much to denoise along each.

Qualitative reconstructions across random inpainting, box inpainting, 4x super-resolution, Gaussian deblur and motion deblur, comparing DPS, DAPS, DDNM, PiGDM, MPGD, Palette and EPS. PSNR overlaid.
Random inpainting, box inpainting, $4\times$ super-resolution, Gaussian deblur, motion deblur. PSNR overlaid.
High-resolution ImageNet-256 reconstructions across the five inverse problems.
EPS scales to ImageNet-$256{\times}256$ across all five tasks (Appendix).

For more results and ablations — the input-pivot analysis, zero-shot pivoting, warm-start convergence, sampling-step sensitivity, amortization across operators, and ImageNet-$256$ scaling — see our paper.

Cite

BibTeX

@misc{mammadov2026exactposteriorscoreestimation,
      title={Exact Posterior Score Estimation for Solving Linear Inverse Problems},
      author={Abbas Mammadov and Ozgur Kara and Kaan Oktay and Iskander Azangulov and Adil Kaan Akan and Hyungjin Chung and James Matthew Rehg and Yee Whye Teh},
      year={2026},
      eprint={2606.17048},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2606.17048},
}