TL;DR
Stochastic neural PDE surrogates can generate a whole pool of plausible future trajectories from a single initial condition, but at test time—when you don't have the ground-truth answer—how do you pick the best one? This paper shows that you can use the governing physics equations themselves as a reference-free "bouncer" at test time, ranking candidates by their PDE residuals without retraining the model. Depending on whether the fluid flow forms sharp shocks or stays smooth, either a weak-form or strong-form residual verifier can recover up to 94.8% of the accuracy gain of an all-knowing oracle.
What Problem Does This Paper Address?
Simulating partial differential equations (PDEs) with traditional numerical solvers is accurate, but painfully slow when you need thousands of runs for things like uncertainty quantification or forecasting. Neural PDE surrogates offer a fast alternative. When these surrogates are stochastic (for example, using dropout at inference time), they don't just give one answer—they can produce $N$ different candidate trajectories for the exact same initial condition.
This creates a classic test-time dilemma: which candidate should you actually trust? Without a high-fidelity reference solution at test time, you're stuck either picking one at random or hoping for the best. While physics residuals have been used during training (like in PINNs) or sampling, their potential as a purely post-hoc, test-time ranking signal for fixed candidate pools has been largely unexplored.
Methods
The authors propose a test-time residual verification framework. You take a trained stochastic surrogate, generate $N$ candidate trajectories, score each one independently using the governing PDE, and pick the one with the lowest residual—no retraining or model tweaking required.
They compare two complementary ways to compute this physical-consistency score:
- Weak-Form Verifier (their main focus): Instead of taking derivatives directly on the predicted field, it integrates the PDE against a fixed dictionary of smooth, localized space–time test functions. Integration by parts shifts the derivatives onto the smooth test functions, meaning it doesn't blow up when a solution has sharp gradients or shocks. For Burgers' equations, they also add a Kruzhkov entropy-admissibility term to filter out non-physical weak solutions.
- Strong-Form Finite-Difference (Strong-FD) Verifier: A more traditional, pointwise check that computes finite-difference derivatives directly on the prediction grid and measures the root-mean-square residual.
Datasets
The framework is evaluated on three periodic PDE benchmarks:
- 1D Inviscid Burgers (shock-forming conservation law)
- 2D Scalar Burgers (shock-forming conservation law)
- 2D Viscous Incompressible Navier–Stokes (smoother vorticity dynamics)
For each system, the authors train a separate non-autoregressive U-Net surrogate. At test time, they keep dropout active (probability 0.12) to generate pools of $N \in \{2, 4, 8, 16, 32\}$ candidate trajectories per initial condition.
Key Insights and Ideas
- Physics residuals work as a ranking signal, even if they aren't exact error bounds: You don't need a mathematically certified a posteriori error bound to make residuals useful. Simply ranking candidates by how well they obey the governing equations consistently beats random selection.
- The best verifier depends on the smoothness of the physics: There is a clear regularity-dependent split. For shock-forming systems (1D and 2D Burgers), the weak-form verifier wins because it avoids differentiating across discontinuities. For smoother viscous flows (2D Navier–Stokes), Strong-FD takes the lead because pointwise derivatives are well-behaved and informative.
- Completely modular: Because the verifier only looks at the final candidate trajectories and the known initial condition, it can be bolted onto any stochastic surrogate and run in parallel across candidates.
Key Results
Across all three benchmarks, residual-based selection steadily improves accuracy as the candidate pool grows from $N=2$ to $N=32$.
At a candidate budget of $N = 32$, the verifiers recover a massive chunk of the "oracle-gain" (the gap between random selection and an evaluation-only oracle that peeks at the ground truth):
- 1D Burgers: Weak-form recovers 70.6% of the oracle gain (reducing mean relative $L^2$ error from 0.0564 to 0.0494, vs. 0.0465 for the oracle). Strong-FD recovers 45.8%.
- 2D Burgers: Weak-form recovers 94.8% of the oracle gain (error drops from 0.1091 to 0.0573, nearly matching the oracle's 0.0544). Strong-FD recovers 77.2%.
- 2D Navier–Stokes: Strong-FD recovers 68.4% of the oracle gain (error drops from 0.2163 to 0.2044, vs. 0.1989 for the oracle), edging out Weak-form at 58.6%.
Limitations and Future Work
- Empirical, not certified: The correlation between residual score and true trajectory error is empirical, not a guaranteed mathematical error bound.
- Limited scope so far: Experiments only tested periodic domains and inference-time dropout U-Nets. The authors plan to expand this to diffusion and flow-matching surrogates, as well as other boundary conditions and PDE families.
- Pool-dependent: As a post-hoc selector, the verifier can only pick the best candidate already in the pool, and generating $N$ full trajectories adds inference cost.
Summary updated