Learned PDE Solvers: Von Neumann Stability Analysis for Cell-Average Neural Networks
We study the stability of cell-average neural network solvers for PDEs, which advance a solution one step at a time with a learned flux. The same network is evaluated at both faces of every cell, so these solvers conserve mass exactly for any weights, but nothing in the construction guarantees stability: networks differing only in their random seed, with training losses you cannot tell apart, can behave completely differently over long rollouts. We are adapting von Neumann stability analysis to them, toward stability conditions on the trained weights.
Manuscript in Preparation
Introduction
A neural network can be trained to advance a PDE solution one step at a time, and it can be built so that it never creates or destroys mass, whatever its weights are. What that construction does not give you is stability, and telling a stable network from an unstable one is hard for two reasons:
-
The training objective: Training minimizes a one-step prediction error against a short reference trajectory, and nothing in that objective says what happens when the scheme is iterated for thousands of steps on states the network never saw. Networks trained identically up to the random seed, with training losses you cannot tell apart, can behave completely differently under long rollouts: some track the reference solution, others develop oscillations that grow until the output is worthless (Figure 1).
-
The usual checks: Since the losses are indistinguishable, the loss cannot tell you which network you have. A short validation rollout is not much better, because the instability may take far longer to show itself than anyone is willing to simulate.
So you are left choosing among minima with no principled basis for the choice. It is the autoregressive-surrogate failure mode, in the simplest setting where the questions of classical numerical analysis can be put to it. The question we ask is:
Can you tell, from a trained network alone and before committing to an expensive simulation, whether its rollout will hold together?
Neural PDE solvers are usually assessed by running them: train, roll out, measure the error. That is expensive, and it only certifies the trajectories you actually ran. Anything you can check on the weights themselves is cheap by comparison and does not depend on having picked the right test case. We are adapting von Neumann stability analysis, the classical Fourier-mode test for finite-difference schemes, to these trained solvers, toward stability conditions on the trained weights.
This page sets out the problem and what we are doing about it. The results are held back until the paper, in preparation with Prof. Jue Yan and Mengyuan Yang, is submitted.
Figure 1. The problem, as a schematic rather than data. Networks trained identically up to the random seed reach training losses you cannot tell apart, yet can behave completely differently under long rollouts. The question at the bottom paraphrases the one we ask.
Cell-Average Neural Network Solvers
A conservative finite-volume scheme advances cell averages by differencing a numerical flux across cell interfaces. In a cell-average-based neural network solver that flux is learned rather than designed: a small network is trained to reproduce the time-averaged flux at an interface. One step of the solver reads
where is the average of the solution over cell at time step , and are the time step and the cell width, is the flux network with weights , and is its input at the face . The public write-up does not say which cell averages make up , so Figures 2 and 3 leave the network's input unspecified, and the toy network in Figure 4 uses a placeholder input.
Figure 2 puts the learned flux in the slot that a designed flux would fill. The designed flux on the right is one textbook example, first-order upwind for linear advection, shown only for comparison: it does not stand for the project's equation or reference scheme, neither of which is public.
Learned flux
Designed flux (textbook, for comparison)
Figure 2. Schematics; bar heights are illustrative. Left: in a cell-average neural network solver, one network with the same weights is evaluated at every face. Right, for comparison only: a designed flux, where the face value is a formula, here textbook first-order upwind for with . Either way, each face value is subtracted from the cell on its left and added to the cell on its right: what leaves cell enters cell .
Conservation, Whatever the Weights
Sum (1) over the cells of the grid:
Every interior face value appears twice, once with each sign, because what leaves cell through is what enters cell (Figure 3). On a periodic grid , so the bracket vanishes for every : the update telescopes, and mass is conserved exactly, whatever the weights turn out to be. We assume a periodic grid here only for the illustration; the write-up does not say which boundary conditions the project uses.
Figure 3. Why conservation comes for free, drawn for a periodic row of five cells with illustrative bar heights; is short for . The network is evaluated once per face, and that one value enters the updates of the two cells that share the face, with opposite signs. Under each face the two terms cancel, and on a periodic grid the two end terms belong to the same face. Nothing here depends on training.
The argument never uses the values of the weights, so it holds just as well for a network with random, untrained weights. Figure 4 checks this live. In floating point the identity can only hold up to rounding, so the check computes the drift from an exact sum of the cell averages, rounded once at the end, and compares it with a rigorous bound on the rounding committed by the updates so far.
Figure 4. A live check of identity (2) on a periodic grid, starting from a square pulse and a smooth bump on a constant background, with . The face flux is either a designed one, the textbook upwind flux at with , or a tanh network of width 8 whose weights are random and untrained, drawn from the seed shown. In exact arithmetic the drift is zero for either flux and every seed; whatever the profile does, the mass stays put up to rounding. The network is an illustration of "whatever the weights", not a trained solver: its architecture, activation and two-cell input are placeholders chosen for this illustration, not a description of the project's networks, and the rollout says nothing about which trained networks are stable.
Conservation is guaranteed by construction. Stability is not.
| Question | Answer | Why |
|---|---|---|
| Is mass conserved? | Yes, exactly, for any weights | The update telescopes, identity (2) |
| Are long rollouts stable? | Not guaranteed | Stability is not built into the construction |
| Does the training loss tell stable from unstable networks? | No | The losses are indistinguishable |
| Is a short validation rollout a better test? | Not much better | The instability may take far longer to show itself than anyone is willing to simulate |
Adapting von Neumann Analysis
A trained solver is still a numerical scheme. Its weights are frozen once training ends, so what you have in front of you is a fixed, deterministic update rule that happens to have been fitted rather than derived, and numerical analysis has a long history of asking exactly this question about update rules of that kind. Whether that history carries over to a learned flux, and what it says when it does, is what the project is about.
We are adapting von Neumann stability analysis to cell-average neural network solvers of the form (1): deriving the linearized amplification factor of the learned time-stepping scheme and characterizing how perturbations propagate through it, toward stability conditions on the trained weights analogous to those of classical finite-difference methods. I reimplemented the group's solver in Python to enable systematic stability experiments across schemes and step sizes.
The Textbook Case, for Reference
In its textbook form, von Neumann analysis applies to a linear scheme with constant coefficients on a periodic grid. One step carries a single Fourier mode , with and , to a multiple of itself, , and the scheme is stable in this sense when for every (more generally, for a constant ). For the designed flux of Figure 2, first-order upwind with ,
so for every exactly when . This is the textbook case, shown for comparison only. It is not the project's scheme or result, and this page does not say how the analysis carries over to a learned flux.
Conclusion
We are asking whether you can tell, from a trained cell-average neural network solver alone and before an expensive simulation, whether its rollout will hold together. Conservation comes with the construction, for any weights; stability does not, and neither the training loss nor a short validation rollout settles it. We are adapting von Neumann stability analysis to the question.
Bears on: learned operators · neural surrogates · rollout stability.
Status
The code and the results are in a private repository, pending submission; the problem statement on this page is also on GitHub.
| Item | Status |
|---|---|
| Project | Ongoing, May 2026 – present |
| Paper | Stability Certificates for Cell-Average-Based Neural Network Solvers: von Neumann Analysis of Trained Flux Networks (working title). In preparation, with Prof. Jue Yan and Mengyuan Yang (Iowa State, Mathematics) |
| Advisor | Prof. Jue Yan, Department of Mathematics, Iowa State University |
| Funding | NSF D4 NRT |
| What we are doing | Adapting von Neumann stability analysis to trained cell-average solvers, toward stability conditions on the weights |
| Results | Held back pending submission |
| Code | Private repository, pending submission |