Scaling Test-Time Compute of Diffusion-Based Posterior Samplers for Physical Inverse Problems

Eric Hou, Haoxuan ChenAI4Science @ NeurIPS 2026

TL;DR

We know that spending extra compute at test time—like letting an LLM "think" longer or sample multiple answers—can dramatically boost performance. This paper asks whether the same trick works for diffusion-based solvers of physical inverse problems, where we try to reconstruct hidden physical fields (like underground rock velocities or fluid turbulence) from sparse measurements. By running multiple parallel "particles" using a Sequential Monte Carlo (SMC) sampler, the authors show that scaling test-time compute can indeed sharpen reconstructions—though the price tag depends heavily on the underlying physics.

What Problem Does This Paper Address?

In many scientific fields, we have a pretrained diffusion model that knows what a realistic physical field looks like (the prior), and a forward simulator that tells us what measurements a given field would produce (the likelihood). Standard "plug-and-play" diffusion samplers combine these two to solve inverse problems without retraining, but they almost always evolve a single trajectory at a fixed computational cost.

Meanwhile, in generative AI, width scaling—exploring multiple candidate trajectories in parallel and scoring them—has proven to be a reliable way to trade extra inference compute for better accuracy. In LLMs, this approach is limited by the quality of learned reward models or verifiers. In physics, however, the verifier is an explicit, differentiable physical equation. The catch? Evaluating that equation for a nonlinear PDE can require running a full forward simulation and an adjoint (gradient) solve, meaning scoring can cost far more than generation. The authors investigate whether width scaling works here, and how the algebraic structure of different physical operators dictates its cost.

Methods

The authors adopt the Approximation-Free Diffusion Posterior Sampler (AFDPS), which frames posterior sampling as a Sequential Monte Carlo (SMC) problem. Instead of guiding a single diffusion trajectory, AFDPS evolves $J$ weighted particles in parallel. At each reverse diffusion step, it evaluates the physical likelihood at the denoised estimate of each particle, updates the particles, and reweights them according to a Feynman–Kac potential.

Because the diffusion checkpoint and schedule stay fixed, the particle count $J$ acts as a pure test-time compute knob. The authors build operator-specific adapters for three distinct physical regimes:

  • Linear inverse scattering: Uses a cached Singular Value Decomposition (SVD) of the linear forward operator. The likelihood gradient and curvature are closed-form, and the linear guidance step is integrated analytically.
  • Full-waveform inversion (FWI): Solves the acoustic wave equation using Devito. Each likelihood-gradient call requires one forward and one adjoint wave solve per source, and curvature is estimated via a forward-difference Hutchinson trace estimator. Particles are clamped to $[1.5, 4.5]$ km/s to prevent solver failures.
  • Navier–Stokes initial-condition recovery: Differentiates through a 500-step pseudo-spectral fluid solver using reverse-mode PyTorch autodiff, paired with a central-difference Hutchinson estimator for curvature.
Table 1: Configured physics-model-verification work per particle and diffusion step. Score-network evaluations are additional. Ns = 16 for FWI and M = 1 in both nonlinear experiments.

Datasets

All experiments use the physical operators, pretrained EDM diffusion checkpoints, test sets, and evaluators from InverseBench:

  • Linear inverse scattering: 100 test images of $128 \times 128$ HL60 permittivity maps, observed with 20 illuminations and complex noise ($\sigma_y = 10^{-4}$).
  • Full-waveform inversion (FWI): 10 $128 \times 128$ CurveFaultB velocity maps, with 16 sources, 129 receivers, and a 5 Hz Ricker wavelet.
  • Navier–Stokes: 10 $128 \times 128$ initial-vorticity fields at Reynolds number 200, observed through a spatially subsampled terminal field.

Key Insights and Ideas

  • Physics flips the LLM compute bottleneck: In language models, generating tokens is expensive and scoring them is cheap. For nonlinear PDEs, scoring a candidate particle requires forward and adjoint PDE solves, making verification the dominant cost.
  • Operator structure dictates the price of width: For a linear problem with a cached SVD (scattering), running $J=512$ particles requires 0 forward/adjoint PDE solves per step. For FWI, each particle requires $(1+M)N_s$ forward/adjoint pairs per step ($N_s=16$ sources, $M=1$ probe).
  • Weight collapse in scattering: In the linear scattering experiments, the Feynman–Kac weights collapse to an effective sample size of 1, meaning the weighted mean degenerates to a single particle. Simply taking a uniform mean across all $J=512$ particles fixes this and consistently improves reconstruction quality.

Key Results

  • Width scaling on FWI: Doubling the ensemble from $J=8$ to $J=16$ cuts mean relative $L_2$ error from 0.197 to 0.155, boosts PSNR from 14.10 to 15.70, and raises SSIM from 0.487 to 0.563—achieving the best relative $L_2$ and SSIM among all prior-only baselines.
Table 2: FWI on ten CurveFaultB cases, mean (std). AFDPS and both retuned DiffPIR rows use sample standard deviations from the earlier width-comparison run; Appendix C reports a separate noisy run. Only the earlier run family is used in this table. Published rows preserve their source convention. † denotes an informative initialization derived from a blurred ground-truth velocity. Retuning A uses σn = 0.5, λ = 25; retuning B uses σn = 0.75, λ = 10; both use ξ = 0.05 and 200 steps. Best prior-only value is bold. We show the baseline subset used in this study; the full InverseBench table also reports PnP-DM and data misfit.
  • Linear inverse scattering: Switching from the collapsed weighted mean to a uniform mean over $J=512$ particles improves mean PSNR from 32.78 to 34.50 dB and SSIM from 0.9786 to 0.9871 across all 100 test cases. Across the full test set, AFDPS achieves higher mean SSIM than DDNM (0.987 vs. 0.927), though DDNM retains higher mean PSNR (37.3 vs. 34.5 dB).
  • Navier–Stokes robustness: At fixed width ($J=32$), AFDPS outperforms Ensemble Kalman Inversion (EKI) and Ensemble Kalman Guidance (EnKG) in high-noise regimes ($\sigma_y \ge 2$, e.g., 0.780 vs. 0.813 relative $L_2$ for EnKG at $\sigma_y = 2$), while EnKG leads at lower noise ($\sigma_y \le 1$).
Table 4: Navier–Stokes settings where AFDPS has the lowest mean relative L2 error over ten fields. Lower is better. Physical noise is σy. EnKG and EKI are fixed-step reruns rather than published InverseBench aggregates. The complete sweep, including the low-noise settings where EnKG leads, is in Table 7.

Limitations and Future Work

The authors are candid about the scope of their evidence: the paper demonstrates a local gain rather than a full empirical scaling law. The FWI width comparison only tests two particle counts ($J=8$ and $J=16$), leaving the shape and saturation point of the scaling curve unknown. Additionally, Table 1 counts configured solver calls rather than wall-clock time, and the Navier–Stokes comparison against published baselines has a known timestepping mismatch. Future work should run denser sweeps in $J$ with wall-clock measurements, track posterior calibration rather than just point estimates, and perform aligned Navier–Stokes reruns using identical discrete simulators.

Summary updated

BibTeX
@inproceedings{hou2026scaling,
  author = {Eric Hou and Haoxuan Chen},
  title = {{Scaling Test-Time Compute of Diffusion-Based Posterior Samplers for Physical Inverse Problems}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=04gtc70KkA},
}
Figure