Verifying the Outputs of PDE Solvers: From Finite Elements to Neural Surrogates
Organizations: Dovelos Engineering
Abstract
Physics simulation outputs increasingly come from solvers that no expert inspects, such as third-party packages in automated pipelines, programs written by large language models (LLMs), and learned surrogates. In earlier work on cardiac pulsed field ablation, we proposed that solvers return a certificate with their answers. The certificate consists of an admissible potential and an exactly charge-conserving current, and a small independent checker turns it into guaranteed error bounds against a written specification of the physics. Here, the same checker verifies the outputs of other solvers on the same problem. Specifically, FEniCSx computes both fields and receives the same bounds as our own solver. Five plausible bugs in a correct solver, one of them about 0.2% from the true impedance, all converge and pass a grid convergence study, yet the certificate rejects or refutes all five. Of three solvers written by LLMs, one is correct and certified to 0.1%, and one never solves the equation but converges. Neural networks that predict the coefficients of a reduced basis emit admissible fields and receive valid per-prediction bounds, at most 0.0021% wide inside their training range and 0.3-25% wide outside it, where 90% conformal intervals cover none of 14 tests. Untuned Fourier neural operators with free nodal outputs receive valid but uninformative bounds. On a uniform grid, interpolation onto the certificate grid limits them, and on the certificate grid, thin cells turn small nodal errors into large energy errors. Energy-norm training narrows the certified interval tenfold, and projecting the nodal-loss outputs onto the reduced basis narrows it by two to four orders of magnitude, still uninformative. The guarantee concerns the stated model and holds for any output, wherever its input lies. It is informative only when the output is accurate in energy on a grid that resolves the problem.
Figures & tables
| FEniCSx | Unknowns | Certified impedance ( ) | Tiles, median | Claim proven | |
|---|---|---|---|---|---|
| P2, , grading | 21 591 | 93.80965–93.95028 | 200% | no | |
| P2, , grading | 26 310 | 93.94985–93.95028 | 32% | yes | |
| P3, , grading | 58 927 | 93.950272–93.950276 | 3.0% | yes | |
| Certificate grid, native (Q3) | 410 248 | 93.950274296–93.950275789 | 1.9% | yes |
| One-line bug | Its impedance ( ) | Mesh study | Certificate |
|---|---|---|---|
| Top boundary insulating instead of grounded | 94.16 (0.2% off) | converging, | rejected |
| Only the electrode’s bottom face driven | 390.9 | converging, | rejected |
| Tissue and blood conductivities swapped | 136.7 | converging, | refuted (88.62–93.98) |
| Axisymmetric weight missing | 0.393 | converging, | refuted (40.34–93.98) |
| Factor missing in the current | 590.0 | converging, | refuted (93.90–93.98) |
| Solver | Mesh study on its claims | Certificate, finest grid | Correct to 0.1% |
|---|---|---|---|
| Claude Opus 5.5 (88 lines) | converging ( ), band contains the true value | certified: claim proven to 0.1%, | yes |
| Qwen 3.8, seed 2 (814 lines) | converging ( , order 1.2), band | unsupported: , | no (factor ) |
| Qwen 3.8, seed 1 (542 lines) | none | crashed: singular system, NaN potential, exit code 0 | no |
| Surrogate | Training data | Model | Loss and optimizer | Cost |
|---|---|---|---|---|
| Reduced order, one input | 17 solutions, | POD, 6 modes per field; network , tanh | Squared error of standardized POD coefficients and log impedance; Adam, rate , full batch, 20 000 steps | , CPU |
| Reduced order, two inputs | 64 solutions, Latin hypercube in , mm | POD, 12 modes per field; network , tanh | Squared error of standardized POD coefficients; optimizer as above | , CPU |
| Neural operator, certificate grid | The same 64 solutions, on the node grid | FNO, modes, 32 channels, 4 layers, 2.6 million parameters; inputs , , node coordinates, mask; outputs and | Nodal squared error: Adam, batch 2, cosine schedule, 150 epochs on every second node at , then 30 on all nodes at . Energy of the error (Section 6.3 ): 60 and 40 epochs at and | 46 and , GPU |
| Neural operator, uniform grid | 32 solutions, , on a grid | FNO, modes, 32 channels, 4 layers; inputs , , , mask; output | Squared error over the domain and the electrode; Adam, rate , cosine schedule, batch 4, 400 epochs | , GPU |
| Surrogate | Tests | True value inside certified interval | Certified width (rel.) | Error of the impedance from its potential | Conformal interval (90%) covers |
|---|---|---|---|---|---|
| One input | inside (6) | 6 | – | – | 5 |
| outside (6) | 6 | 0.8–15% | – | 0 | |
| Two inputs | inside (12) | 12 | – | – | 12 |
| outside (8) | 8 | 0.27–25% | – | 0 |
| Input to the route | Certified lower bound ( ) | Upper bound | Tiles | |
|---|---|---|---|---|
| FNO, boundary values overwritten | 8.8–42 | 0.0006–0.013 | = true value | undecided |
| FNO, mismatch spread | 2.7–11 | 0.009–0.14 | = true value | undecided |
| Reference sampled on the uniform grid | 10–38 | 0.0007–0.010 | = true value | undecided |
| Zero field (boundary values only) | 17–65 | 0.0002–0.0034 | = true value | undecided |
| Surrogate | , inside | Width, inside | from , inside | Contains |
|---|---|---|---|---|
| Operator, nodal loss | 3.0–6.8 | – | 0.98–0.99 | 20 of 20 |
| Operator, energy loss | 0.78–1.1 | – | 0.98 | 20 of 20 |
| Operator, projected | 0.037–0.18 | 0.16–4.0 | – | 20 of 20 |
| Reduced order | – | – | – | 20 of 20 |
PDE Solving
PDE solving develops numerical and learned methods to approximate solutions of partial differential equations across scientific applications.
See all 274 papers