Searching for Edge Neural PDE Solvers by Certified Deployment Cost

Neural PDE solvers are networks that map a problem's inputs, such as a coefficient field or an initial condition, to an approximate solution. They are fast enough to run on small edge devices, but on their own they offer no guarantee that a given answer is correct. A separate line of work makes them checkable. One can compute how badly an output violates the governing equation, called the residual, and turn that residual into an error bound or a calibrated accept/reject decision without knowing the true solution. When the check rejects an output, a classical solver takes over.

This proposal joins that checking machinery to hardware-aware architecture search, where architectures are chosen under measured on-device latency and memory. The central claim is that the right thing to search for on a device is the expected end-to-end time to a certified answer. That time has three parts: the surrogate's latency, the latency of the residual checker, and the classical-solver time spent on every output the checker rejects. All of it is measured on the model actually deployed, including its quantization and the finite-difference stencils it uses on the chip. The usual target, validation loss of the floating-point model, leaves all of this out.

The opportunity is that every existing search for neural solver architectures optimizes accuracy in a hardware vacuum. Auto-PINN uses training loss as a proxy for error, and FWNO uses the reward $e^{-\mathcal{L}_{\text{val}}}$. Every hardware-aware search, including FBNet, DUCCIO and ConNAS, optimizes classification accuracy. The new ingredient here is not "hardware-aware search for PINNs." It is a search objective built from a certificate evaluated on the deployed numerics. We expect it to choose different architectures than an accuracy-only search, because quantization and stencil-based derivatives change the residual, and stability constants amplify residuals unevenly across architectures.

Core Claim

Two things make a surrogate useful on an edge device. The first is how often its output passes a residual-based certificate at a required error ceiling. The second is how much the surrogate plus its checker cost in time and memory on that device. We define, for an architecture-and-deployment configuration $a$ (topology, width, activation, number format, residual stencil), the certified deployment cost

$$ J(a) = T_{\text{dev}}(a) + \hat{\rho}_\epsilon(a)\, T_{\text{solver}} \quad \text{subject to} \quad M_{\text{dev}}(a) \le M_{\max}. $$

Each symbol is defined as follows. $T_{\text{dev}}(a)$ is the measured on-device latency of the surrogate plus its residual check. $\hat{\rho}_\epsilon(a)$ is the fraction of held-out inputs whose certificate exceeds the ceiling $\epsilon$ and must fall back to a classical solver. $T_{\text{solver}}$ is that solver's measured cost. $M_{\text{dev}}(a)$ is the peak on-chip memory used.

We hypothesize that the configurations minimizing $J$ are systematically different from those that minimize floating-point validation error and then pass a latency filter. If they are not, the simple pipeline is enough, and the experiments are designed to show that cleanly.

Where the Certificates Come From

The proposal reuses two existing certificate types and does not invent new theory for them.

For ODEs and first-order PDEs, the tight residual bounds of Liu, Huang and Protopapas supply the deterministic track. Their method integrates the residual through the error's governing equation, using Green's functions for linear problems and perturbation expansions for weakly nonlinear ones such as the Duffing oscillator. The result is a bound $|\eta(t)| \le \mathcal{B}(t)$ in physical units.

For neural operators on PDEBench-style problems, CP-PRE from Calibrated Physics-Informed Uncertainty Quantification supplies the statistical track. Its conformal check, a calibration method that guarantees a stated coverage rate without distributional assumptions, uses the physics residual as its score. It is calibrated without ground-truth labels and its joint mode gives a reject rule. Its convolutional finite-difference stencils already make the check cheap on a GPU.

Both certificates were derived for a smooth function evaluated in exact arithmetic. We make one methodological commitment. The residual is always computed from the outputs the device actually produces: INT8 or FP16 weights, on-device stencils, and the real output grid. It is never computed by automatic differentiation of the floating-point master copy. This matters because the file's evidence suggests quantization noise is amplified by second derivatives, though no measured magnitude is reported. Stencil residuals on the output grid stay well defined for a quantized model, so the certificate describes what is deployed.

One limitation of this design is carried forward from CP-PRE rather than solved: on the operator track, the ceiling $\epsilon$ is in residual units, not state units. We report it that way, and we only claim physical-error certification on the deterministic track.

Research Program

The first component is the measurement substrate. On each device we profile three things. The first is per-layer latency and peak activation memory for the solver primitives that existing hardware-aware benchmarks lack: MLP layers with smooth activations, spectral convolutions in Fourier Neural Operator (FNO) layers, and wavelet blocks in Wavelet Neural Operator (WNO) layers. The second is the residual stencils themselves. The third is the end-to-end latency of finalist models, because HW-NAS-Bench and the file's discussion of operator fusion both warn that additive look-up tables drift from reality. Devices are the NVIDIA Jetson TX2 and Raspberry Pi 4, both in HW-NAS-Bench, plus a GAP8 RISC-V microcontroller (512 kB L2) for the small PINN track, following DUCCIO's setup. $T_{\text{solver}}$ is the measured time of a coarse classical scheme reaching the same error ceiling on the same or a paired host device.

The second component is the search. Solver search spaces are small compared with vision supernets: width, depth, activation, Fourier modes or wavelet basis, number format, and stencil order. We therefore use constrained evolutionary search with a hard memory filter. Candidates are scored by $J$, with $\hat{\rho}_\epsilon$ estimated on a held-out set of inputs after calibration on a separate split. We deliberately avoid differentiable search with soft penalties, given ConNAS's evidence that penalty methods miss hard budgets and the file's concern that stiff physics losses aggravate this. If a gradient-based variant proves necessary at scale, ConNAS-style feasibility steering is the version we would adapt.

The third component is an analysis of the theory-versus-memory tension. Gao, Gu and Ng prove gradient descent reaches the global optimum for two-layer $\text{ReLU}^3$ PINNs on linear second-order PDEs when width $m = \Omega(n^{2/3})$ in the number of collocation points $n$. This is a sufficient condition, and for realistic $n$ it can exceed microcontroller memory. On their 1D heat equation setup, with 600 total samples, we measure the smallest width at which training reliably reaches the certificate ceiling across seeds. We plot that width against the GAP8 memory limit, which tells us whether the provable regime, the empirically sufficient regime, and the deployable regime overlap. Auto-PINN's finding that larger networks destabilize training on the wave equation suggests the empirical threshold sits well below the proven one. That gap is what lets edge models be certified at all.

Baselines

The naive reference point is the hand-designed model each community actually uses, deployed with standard INT8 post-training quantization and checked with CP-PRE or Liu bounds. That means vanilla FNO-2D and vanilla WNO on the operator track and a fixed four-layer tanh MLP on the PINN track. This measures what the certificate costs without any search. Beating it means lower $J$ at equal memory.

The strongest existing competitor is accuracy-driven solver search followed by a hardware filter. On the operator track that is FWNO's search, which reports relative error falling from 1.75% to 1.44% on 1D Burgers, 1.80% to 1.58% on square-domain Darcy flow, and 3.43% to 2.35% on 2D incompressible Navier-Stokes over vanilla WNO (FWNO). On the PINN track it is Auto-PINN's decoupled search, which reports needing 261 trials against 10,080 for full grid search; no per-architecture $L^2$ error numbers are reported in the file. We give these baselines the same search space, the same number of trained candidates, the same devices and the same calibration data. Their final pick is the most accurate candidate that fits the memory and latency budget, and it is then certified exactly as ours is. Matching FWNO's accuracy is not the bar. The bar is a lower certified deployment cost $J$ at matched memory, or a higher certified-accept rate at matched latency, with non-overlapping confidence intervals across five search seeds.

A hardware-constrained classification-style baseline is ConNAS's approach, transplanted onto our space with floating-point validation loss as the objective. ConNAS reports 100% constraint satisfaction on NATS-Bench with HW-NAS-Bench backends (ConNAS). It isolates whether our gain comes merely from respecting hard budgets.

The key ablation keeps everything in our method but computes the certificate on the floating-point model instead of the deployed one. If this ablation matches the full method, the "deployed numerics" ingredient is unnecessary. A second ablation drops the checker's own latency from $T_{\text{dev}}$.

Why not just…?

Why not just run Auto-PINN or FWNO and keep the most accurate model that fits the budget? This is the real threat, and the proposal is built to test it rather than argue past it. If floating-point validation loss ranks candidates almost the same way as the deployed certified-accept rate, this pipeline recovers our answer at lower complexity. Auto-PINN's reported loss-to-error correlation hints that it might. The decisive measurement is the Spearman rank correlation, across all trained candidates, between floating-point validation error and the deployed $\hat{\rho}_\epsilon$, broken down by number format and stencil. We commit to reporting a negative result if that correlation is high and the Pareto fronts coincide.

Why not train a large model that meets the convergence-width condition and then quantize or prune it? Post-hoc compression cannot change macro-topology. HAT shows the best topology differs across devices: wide-shallow suits GPUs, deep-narrow suits ARM CPUs. The file's reasoning also suggests quantization noise is amplified in derivative-based residuals. We test this directly. A wide, Gao-compliant PINN and a full-size FNO are compressed to each device's memory budget, using INT8 and FP16 quantization and magnitude pruning, and then certified alongside the searched models.

Why not use FLOPs or parameter count instead of device measurements? HW-NAS-Bench reports a FLOPs-to-latency rank correlation as low as 0.18 on the Edge TPU and below 0.5 on several other devices (HW-NAS-Bench). Spectral and wavelet layers have memory-access patterns unlike those convolutions. We run a FLOPs-proxy variant of our search and report how far its picks move on the measured cost $J$.

Why not skip neural surrogates and run a coarse classical solver on the device? For some low-dimensional problems this will win, and $J$ is defined so that it can. The fallback cost $T_{\text{solver}}$ is the pure-classical cost, so any surrogate with $J$ above it loses. We report the classical scheme as a reference line on every Pareto plot instead of assuming neural models win.

Proposed Experiments

The operator track uses PDEBench's 1D Advection, 1D Burgers, 2D Darcy flow and 2D incompressible Navier-Stokes (PDEBench), overlapping the problems on which CP-PRE and FWNO were evaluated. It runs on the Jetson TX2 and Raspberry Pi 4. The PINN track uses the 1D heat equation of Gao et al., the Duffing oscillator and the linear ODEs from Liu et al., and Auto-PINN's advection and reaction equations. It runs on GAP8 and Raspberry Pi 4.

We report the following for every final model:

  • PDEBench's normalized error together with its conservation, boundary and frequency-spectrum metrics;
  • empirical conformal coverage at 90% and 95%, the targets CP-PRE reports maintaining under distribution shift;
  • the certified-accept rate at three ceilings $\epsilon$;
  • measured surrogate and checker latency, peak memory, and the resulting $J$.

Three outcomes decide the proposal. The first is whether the rank correlation between floating-point validation error and deployed accept rate is low enough that the two searches select different models, and whether our picks lower $J$ against the FWNO and Auto-PINN baselines at matched memory on at least two devices. The second is whether the floating-point-certificate ablation loses most of that gain, which would show the deployed-numerics ingredient is what matters. The third is whether the searched models keep their conformal coverage after quantization, since a model that lowers $J$ by breaking calibration has gained nothing. A positive answer on all three would show that reliability guarantees should shape edge solver design, not just audit it afterwards. A negative answer on the first would show that accuracy-driven solver search plus a hardware filter suffices, which is also worth knowing.