Skip to content

Fast Surrogates Are Easy. Certified Ones Are Not

#physics-informed-ml #neural-surrogates #pde-verification #flood-forecasting #equivariant-networks #autoformalization

Fast Surrogates Are Easy. Certified Ones Are Not ​

A four-day, 30-meter-resolution flood forecast for the Des Plaines River watershed now runs 16.3x faster than the shallow water solver that generated its training data. Add a coarse 150 m hydrodynamic simulation as conditioning and the speedup drops to 11.0x, but the mean depth error falls by a factor of 3.5.

Numbers like that usually end an article. They should start one.

The five papers in this cluster all push on the same uncomfortable follow-up: how do you know the answer is right? A flood depth field, a groundwater discharge, a jet tag, a PDE solve. Each is now cheap enough to generate in bulk and cheap enough to be wrong in bulk. What separates the papers worth reading from the demo-ware is how seriously they treat that question.

A 16x speedup buys you nothing until you can check the output ​

Start with what the flood model actually does, because the details matter more than the headline.

The Des Plaines work trains a conditional denoising diffusion probabilistic model to forecast 30 m water-depth fields over four days. Training data comes from SynxFlow shallow water equation simulations of 113 historical storms across twelve Midwestern states, 2003 through 2024, each run under three antecedent-wetness scenarios.

That last detail is the one most fast flood surrogates skip. Soil saturation before the storm is what separates a nuisance high-water event from a levee overtopping. A surrogate trained on a single initial condition will look fine in validation and fail on the storm that matters.

Reverse diffusion is stochastic, so a single trained model yields a 20-member ensemble for free. You don't train 20 networks. You don't perturb the inputs. You sample. For operational forecasting, where the deliverable is a probability that a specific road is under water at 2 a.m., that's a structural advantage over deterministic surrogates.

Quick Take: Physics-guided diffusion turns a single trained model into a probabilistic ensemble, and probabilistic output is what forecasters actually need to act on.

The counterintuitive result: coarser conditioning wins ​

Here's where the paper earns its keep. You can feed the diffusion model a coarse hydrodynamic simulation as a conditioning signal, at either 100 m or 150 m resolution.

ConfigurationConditioning inputEnsemble-mean RMSE (m)Critical success indexSpeedup vs 30 m solver
Unconditionednone0.170not reported16.3x
Conditioned100 m hydrodynamics0.054not reported7.8x
Conditioned150 m hydrodynamics0.0480.83911.0x

The 150 m conditioning produces the lowest error and the best scores across the board: critical success index, false alarm ratio, CRPS, Brier. Coarser input, better skill. The 100 m conditioning is both slower and less accurate.

That's not a bug in the experiment. It's what happens when conditioning acts as a regularizer. A slightly blurred hydrodynamic field stops the diffusion model from latching onto small-scale structure that the coarse solver gets wrong anyway. Finer conditioning gives the model more rope.

Practically, this changes the procurement decision. You don't need the most expensive conditioning run you can afford. You need the cheapest one that carries the large-scale signal, which in this case is the 150 m simulation running at 11.0x.

A mean depth error of 0.048 m is roughly the vertical accuracy of the lidar terrain models these simulations are built on. The surrogate has stopped being the dominant error source in the pipeline, which is the only bar that matters.

Now the part the paper is honest about and most blog coverage would bury: the ensembles are under-dispersive. Spread-to-error ratios land between 0.35 and 0.73. Below 1 means the 20 members agree with each other more than they agree with the truth. Averaging members cuts error 5 to 11% relative to a single realization, which is nice, but if you publish raw exceedance probabilities from this ensemble, they'll be too sharp. Flood risk thresholds get crossed too confidently.

Use the ensemble mean for depth maps. Recalibrate the spread before anyone makes an evacuation call on it.

Key Numbers16.3x faster than a 30 m shallow water solve, unconditioned 0.048 m ensemble-mean depth error with 150 m conditioning 0.35 to 0.73 spread-to-error ratio, so every ensemble is overconfident 5 of 5 injected solver bugs rejected by certificate, all of which passed grid convergence 0.1% certified error on the one LLM-written solver that was actually correct 26.1 to 42.6% discharge error reduction from learned boundary closure

What a certificate actually buys you ​

The best idea in this cluster isn't a model. It's a small checker.

The proposal is that a PDE solver should return a certificate alongside its answer. The certificate consists of an admissible potential and an exactly charge-conserving current. A small, independent checker compares those two fields against a written specification of the physics and turns the mismatch into guaranteed error bounds.

The test problem is cardiac pulsed field ablation. Same checker, different solvers.

The result that should make you sit up: researchers injected five plausible bugs into a correct solver. All five converged. All five passed a standard grid convergence study. One of them was about 0.2% away from the true impedance, which means it would look excellent in any validation table you'd build. The certificate rejected all five.

Grid convergence studies are the standard verification practice in computational physics, and they are blind to any bug that preserves the convergence order. That's not a small class of bugs. That's most of the interesting ones.

Then the LLM experiment. Of three solvers written by language models, one was correct and certified to 0.1%. One never solved the equation at all, but converged anyway. You can guess which one would have shipped if the only gate was a residual plot.

The certificate is honest about its own limits ​

The same paper's neural surrogate results are the most useful part, because they show where the guarantee stops.

Output sourceCertified?What you actually learn
FEniCSx finite element solverYesSame bounds as the reference solver
Correct solver with 5 injected bugsNoAll five passed grid convergence; certificate caught them
LLM-written solver, correctYes, to 0.1%Genuinely solving the equation
LLM-written solver, brokenNoConverged without solving anything
Reduced-basis coefficient net, in-rangeYesBound width at most 0.0021%
Same net, out-of-rangeYes, wide0.3 to 25% wide; 90% conformal intervals covered 0 of 14 tests
Untuned Fourier neural operatorValid but uninformativeGrid mismatch dominates the bound

The guarantee concerns the stated model, and it holds for any output regardless of where the input lies. It's informative only when the output is accurate in the energy norm on a grid that resolves the problem.

That distinction is the whole game. A certificate is a consistency check, not a truth check. It will bound your error relative to a written specification. If the specification is wrong, or if the grid doesn't resolve the physics, the bound is still valid and still useless.

The conformal prediction line is the one that should worry anyone using post-hoc uncertainty quantification. Ninety percent intervals covered zero of fourteen out-of-distribution tests. Valid coverage guarantees assume exchangeability. Push a surrogate outside its training range and those guarantees evaporate without any warning.

There's a fix buried in the results. Energy-norm training narrows the certified interval tenfold. Projecting nodal-loss outputs onto a reduced basis narrows it by two to four orders of magnitude and it's still uninformative. Changing the loss helps. Post-processing the outputs mostly doesn't.

Symmetry as a substitute for labels ​

Different problem, same theme. Jet tagging in particle physics has been pulled in two directions: self-supervised pretraining, and explicit physical inductive biases. The Lorentz-equivariant Geometric Algebra Transformer (L-GATr-slim) is one camp. The LeJEPA representation learning framework is the other.

The combination pretrains on 100 million jets from JetClass, optimizing for a latent space that stays invariant across physics-motivated jet augmentations. Two ways to get there: build the symmetry into the architecture, or learn it from kinematic augmentations.

Both work. Enforcing Lorentz symmetry in the latent space is what drives representation quality, and it doesn't much matter whether you get it from the architecture or from the augmentations.

The stronger result is that LeJEPA on a plain non-invariant Transformer backbone already beats autoregressive, masked particle modeling, and self-distillation baselines on linear and MLP probe accuracy. L-GATr-slim adds on top of that.

Linear probe accuracy is the metric to watch here. It tells you whether the representation is useful without any fine-tuning, which is the whole point of pretraining on 100 million jets. If you need to train a full head to see a gain, you haven't learned a representation, you've learned a warm start.

Better forecasts, worse decisions ​

The subsurface seepage paper contains the sharpest cautionary tale in this cluster, and it has nothing to do with model architecture.

The setup: a large heterogeneous groundwater model gets truncated around a localized, threshold-activated outlet to save degrees of freedom. Truncation severs the exterior feedback that governs when the outlet opens and how much it discharges. Site-Conditioned Boundary Closure fixes this by mapping local physical descriptors to positive exchange coefficients at the cut boundary. Train on unforced donor-domain withdrawal responses and you get a passivity-preserving reduced operator that generalizes across unseen forcing histories without refitting.

It works. Against full MODFLOW 6 reference simulations, a single frozen tree estimator cut peak-discharge log RMSE by 26.1%, 30.9%, and 42.6% across three held-out foundation panels, compared with a shared boundary coefficient on identical patches.

Then the authors did the thing almost nobody does. They tested whether better forecasts produce better decisions. The task was relief well placement under a discharge capacity limit and a budget of three sequential full-grid checks.

The neural SCBC estimator improved discharge forecasts across candidates. It then selected four over-capacity placements before the checks ran out. The shared-coefficient ring, which was worse at forecasting, selected one over-capacity placement and recovered all 144 reference optima after three checks.

Read that again. The more accurate surrogate made the worse decision.

The reason is straightforward once you see it. Log RMSE rewards average accuracy across the candidate set. Placement decisions depend on the tail: which candidate crosses the capacity threshold, and by how much. An estimator that's excellent in the mean and slightly optimistic at the threshold will rank candidates wrong exactly where ranking matters. Forecast metrics and decision metrics are different functions, and optimizing one doesn't optimize the other.

I've watched this happen in a much less exotic setting: a load forecasting model that beat the incumbent on MAPE and then produced worse battery dispatch schedules, because the dispatch logic cared about the 98th percentile and MAPE doesn't. The lesson transfers.

Where AI agents stall on formalization ​

The last paper is about proving that scientific software does what it claims. Coding agents like Claude Code and Codex, and math-specialized agents like Aristotle, have formalized Fermat's last theorem, Erdős problems, and IMO-level problems.

Pure mathematics is friendly territory. Theorem statements are self-contained, the representation is fixed, and the formal libraries are deep.

Scientific computing isn't. The source material often describes a computational procedure or a modeling transformation rather than a declarative theorem. There's no clean statement to prove. The case studies span hierarchical abstraction layers in the scientific computing software stack, and the failures cluster by layer. The useful contribution is a cross-layer taxonomy of failure modes plus an analysis of what kind of expert feedback is needed at each layer to restore soundness.

The pattern across those case studies: agents are good at closing proof goals and bad at knowing which statement to formalize. A formalized version of the wrong specification compiles beautifully.

Common Pitfalls ​

Treating grid convergence as verification. Refining the mesh and watching the residual drop tells you the discretization is consistent. It tells you nothing about whether the equations you solved are the equations you meant. One of the injected bugs in the certificate study sat 0.2% from the true impedance while passing a full convergence study.

Reading ensemble spread as uncertainty. If your spread-to-error ratio is 0.5, your 90% interval is really a 60% interval. Check it against held-out truth before you publish exceedance probabilities. The flood ensembles here are all under-dispersive, and so is nearly every diffusion ensemble I've seen evaluated.

Assuming finer conditioning inputs improve skill. They often don't. The 150 m hydrodynamic conditioning beat the 100 m version on every metric and ran faster. Test the cheap conditioning source before you assume you need the expensive one.

Validating on the forecast metric when the deliverable is a decision. Log RMSE, MAPE, and CSI all reward average accuracy. Threshold crossing, ranking, and constrained selection reward tail behavior. Pick the metric that matches what the model output is used for, or you'll ship the neural SCBC outcome.

Treating a certificate as a correctness proof. It bounds your error against a written specification on a grid that resolves the problem. Get the specification wrong, or run the checker on a grid that doesn't resolve the physics, and you get a valid, tight, meaningless number. Untuned Fourier neural operators produce exactly that.

One Thing to Remember ​

Every paper here that produced a trustworthy result had a crisp specification to check against: shallow water equations on a 30 m grid, charge conservation across two fields, Lorentz invariance of a latent space. Every failure in this cluster traces back to a vague one. The bottleneck in scientific ML is not model capacity or compute. It's writing down precisely what you want and building the cheap checker that tells you whether you got it. Do that first, and the surrogate becomes a component you can swap. Skip it, and you have a very fast function nobody can sign off on.

The Bottom Line ​

If you're putting a surrogate into a pipeline that makes decisions, build the checker before you build the model. The certificate in the ablation study is a small independent script that compares two fields against a spec. It caught five bugs that grid convergence missed, including one 0.2% from the right answer. That script is cheaper than the incident review after a broken solver ships.

If you're forecasting floods or anything else with hard thresholds, use the ensemble mean for the field and recalibrate the spread before publishing probabilities. Condition on the coarsest hydrodynamic simulation you can get away with, since 150 m beat 100 m on both accuracy and speed here. And run 20 members rather than one: at a 14-day horizon the full ensemble is 48 to 58x faster than the equivalent solver runs, more of a speedup than a single member gets.

If your surrogate drives ranking or constrained selection, stop reporting forecast error as your headline number. Validate on the decision metric directly. The neural boundary-closure estimator improved discharge forecasts across every candidate and then picked four over-capacity placements before the check budget ran out, while a worse forecaster recovered all 144 reference optima. One thing to watch: energy-norm training cut the certified interval tenfold in this study, so expect loss-function design to matter more than architecture choices for verifiability over the next year.