PDE Solver Output Verification: From Finite Elements to Neural Surrogate Models

Require PDE solvers to submit independently checkable certificates with their answers, providing guaranteed error bounds for outputs.
The article introduces a verification mechanism for PDE solver outputs: solvers must submit a certificate consisting of an admissible potential field and an exactly conserved current with their results, and an independent small checker generates guaranteed error bounds against physical specifications. Experiments show the mechanism is reusable across solvers (FEniCSx obtains the same error bound), can reject five realistic bugs that converge and pass mesh studies, and reveals the risk in LLM-generated solvers of "never actually solving yet appearing convergent." For neural surrogate models, certificates can provide valid bounds, but outside the training range the bounds are wide and uninformative, with 90% conformal intervals failing to cover the true value in all 14 tests. The article emphasizes that "guaranteed" is not the same as "useful": the certificate guarantees the error of the output relative to the stated model, not whether the model itself is correct.
Physical simulation is moving beyond the realm of experts. Third-party solver packages in automated pipelines, code generated by large language models (LLMs), and even trained neural surrogate models are continuously producing results, yet few people check them line by line. The question follows: why should we trust these numbers?
A study on the output verification of partial differential equation (PDE) solvers offers a rather ambitious answer—have the solver submit a "certificate" alongside its answer. This certificate consists of two parts: an admissible potential field and a current that strictly satisfies charge conservation. A small, independent checker reads the certificate and, against pre-written physical specifications, produces a guaranteed error bound.
The Certificate Mechanism: Shifting Trust from the Solver to the Checker
The idea behind this work can be summarized as "trust transfer." In the traditional workflow, users either trust the solver itself or recompute everything themselves; the certificate mechanism concentrates trust in a checker decoupled from the solver—the checker is small enough to be independently audited, and no matter how complex the solver is, it does not affect the checker's credibility.
The approach was first proposed in the context of cardiac pulsed field ablation simulation. Here the physical constraints are quite clear: the electric potential must satisfy admissibility, and the current must be exactly conserved. The checker does not care what discretization scheme or iterative strategy the solver uses internally; it only verifies whether the output satisfies these hard constraints and derives an error upper bound accordingly.
Admissible potential field and charge conservation: In PDE problems such as electromagnetics or cardiac electrophysiology, "admissible" typically means the potential field belongs to an appropriate function space (e.g., a Sobolev space with square-integrable gradient) and satisfies the prescribed boundary conditions. Current conservation requires that the divergence of the current density field be zero (in source-free regions) or equal to a given source term, which at the discrete level manifests as an exact linear constraint. The potential and current in the certificate must simultaneously satisfy both types of conditions for the checker to construct the residual and derive an error upper bound. This "primal-dual" style of certificate design makes the error estimate independent of the solver's internal details and dependent only on whether the output lies within the physically admissible set.
Cross-checking on the Same Problem: FEniCSx Also Obtains the Same Error Bound
The study used the same checker to verify the output of other solvers on the same problem. FEniCSx computes both the potential and current fields simultaneously and ultimately obtained the same error bound as the authors' own solver. This shows that the certificate mechanism is not only effective for a specific implementation but can be reused across solvers.
This is precisely the significance of multi-source verification: the same physical specification and the same independent checker provide comparable guarantees for outputs from different sources. The solver's "origin"—in-house, open-source library, or model-generated—no longer determines the credibility of the result.
Five Realistic Bugs: Converging, Passing Mesh Studies, Yet All Rejected
Even more striking is the adversarial testing of a "correct solver." The researchers implanted five seemingly plausible bugs into an otherwise correct solver, one of which was about 0.2% away from the true impedance. All five erroneous versions converged normally and all passed mesh convergence studies—by traditional engineering practice, they would very likely have been accepted as credible results.
But the certificate rejected or refuted all five. The reason is that convergence only indicates that the discretization error is shrinking; it does not guarantee that the "right equation" is being solved. The certificate, by contrast, directly validates against the physical specification and can catch systematic deviations that convergence checks cannot see. This is a warning signal for simulation workflows that rely on mesh convergence studies for quality control.
Mesh convergence study is a commonly used verification method in computational engineering: solve repeatedly on progressively refined meshes and observe whether the solution or quantity of interest stabilizes. If the change decreases at the expected order as the mesh size decreases, the discretization error is generally considered controlled. However, this method can only detect the convergence of discretization error and cannot uncover systematic deviations caused by incorrect implementation of the model equations themselves (e.g., wrong coefficients, missing source terms). A bug may cause the solver to converge to the exact solution of a "wrong equation," and mesh convergence studies are completely blind to this. The certificate mechanism directly validates the physical specification and thus can catch such blind spots of convergence checks.
LLM-Written Solvers: One Correct and Certified to 0.1%, One That Never Actually Solves
The study tested three solvers written by LLMs. One was judged correct, with a certified accuracy of 0.1%; another never actually solved the equation but exhibited convergence behavior. The latter is particularly noteworthy: the appearance of its convergence curve is indistinguishable from that of a correct solver, and it is very difficult to distinguish them using traditional criteria alone.
This aligns closely with the real risks of automated pipelines. When code is generated by a model and results are not reviewed by anyone, "looks convergent" is the most easily mistaken illusion for "correct result." The value of the certificate mechanism in such scenarios lies precisely in the fact that it does not rely on judging the appearance of the solution process.
Neural Surrogate Models: Guaranteed Bounds Are Not Necessarily Useful Bounds
Testing of neural surrogate models revealed another layer of the problem. A neural network predicting reduced basis coefficients outputs an admissible field and obtains a valid per-prediction error bound: within the training range the bound is at most about 0.0021% wide, while outside the training range it is 0.3% to 25% wide. Interestingly, outside the training range, the 90% confidence conformal intervals failed to cover the true value in all 14 tests.
An untuned Fourier Neural Operator (FNO) with free-node output likewise obtained a valid but uninformative bound. There are two reasons: on a uniform mesh, the step of interpolating to the certificate mesh becomes the limiting factor; and on the certificate mesh, slender elements amplify small nodal errors into large energy errors.
The study offers two paths for improvement: training in the energy norm can narrow the certified interval by an order of magnitude; projecting the nodal loss output onto a reduced basis can narrow it by two to four orders of magnitude—but even so, the bound remains uninformative. This shows that "guaranteed" and "useful" are two different things: the guarantee pertains to the stated model and holds for any output, regardless of where the input lies; the bound is informative only when the output is sufficiently accurate in the energy sense on a mesh that can resolve the problem.
Conformal prediction is a distribution-free uncertainty quantification method: given a trained model and a small calibration dataset, it can construct prediction intervals with finite-sample coverage guarantees. However, this guarantee typically relies on the calibration data and test data coming from the same distribution (the exchangeability assumption). When test inputs fall outside the training distribution, conformal intervals may widen sharply or even completely fail to cover the true value—the 90% confidence intervals in the paper failing to cover the true value in all 14 tests is a typical manifestation of out-of-distribution failure. Therefore, even if conformal methods provide a "valid" statistical guarantee, their intervals may be entirely uninformative under distribution shift.
Energy norm is a problem-dependent natural norm, usually induced by the weak form of the PDE, such as the H1 seminorm in elliptic problems or a coefficient-weighted gradient norm. Training a neural surrogate model in the energy norm means the loss function directly penalizes the quantity related to the certificate error bound, rather than merely fitting the output values. This makes the model more accurate in the sense that matters to the certificate checker, thereby significantly narrowing the certified interval. The paper's use of energy-norm training to narrow the interval by an order of magnitude precisely exploits the consistency between the training objective and the certificate metric. In contrast, projecting the nodal loss onto a reduced basis suppresses high-frequency errors through dimensionality reduction, but if the reduced basis itself cannot resolve the problem, the narrowed bound may still lack informativeness.
Implications for Simulation Workflows
The core contribution of this work is not any particular solver, but rather extracting "verification" from inside the solver and turning it into an independently auditable step. For teams using third-party packages, LLM-generated code, or learned surrogates, this means an actionable engineering practice: require solvers to attach certificates, with a small checker making the final judgment uniformly.
At the same time, the boundaries of the certificate must be recognized. It guarantees the error of the output relative to the stated model, not whether the model itself describes real physics; the bound it provides may be so wide as to be meaningless out of distribution or when the mesh does not resolve the problem. Treating the certificate as a universal pass for "correct results" is a misreading of this mechanism.
Related articles

Michael Nielsen Takes Down His Classic Neural Network Textbook, Sparking Community Discussion
Michael Nielsen's classic free textbook Neural Networks and Deep Learning has been taken offline, sparking discussion on Hacker News about the reasons and impact.

Inside the AI Training Data Market: The Trade-off Between Exclusivity and Discounts
G2i founder Gabe Greenberg reveals the dual-track pricing of the AI training data market: labs pay a premium for exclusive data or accept discounts that allow others to buy it.

SessionGraph: Unifying All Coding Agent Sessions in One Interactive Graph
SessionGraph aggregates coding agent sessions into an interactive graph, helping developers review, debug, and manage AI coding workflows across sessions. This article examines its positioning, value, and open questions.