Neural Operators
Suppose an external source is changed hundreds of times while the field equation stays fixed. A conventional solver computes the response to each source. An operator learner instead pays for a collection of solved examples and tries to predict the response to a new function. The useful question is whether that investment buys sufficient accuracy on the inputs that will actually be encountered.
We train a small Fourier network for a nonlinear periodic scalar equation and compare it with direct solves and reduced bases. The fitted weights can be evaluated on finer grids, but the resulting error barely improves on the original input distribution and grows sharply for sources with unfamiliar frequencies. These outcomes distinguish reuse of parameters from recovery of information or convergence to a continuum solution.
Preparation: Fourier series, a nonlinear elliptic solve, and the distinction between training and held-out error. Spectral collocation develops the conventional discretization, and reduced-basis surrogates introduces the comparison method.
A nonlinear map from sources to fields
Let run around a circle of circumference one. All quantities in this example are dimensionless. For a real periodic source , solve
This is a classical elliptic response problem. Its energy is
The quartic normalization is with , consistent with the site's scalar convention. The problem has periodic boundaries; it is a deliberate extension of the chapter's Dirichlet example, not a change to that example's boundary condition.
The quadratic terms make coercive and strictly convex on periodic . In one dimension the quartic integral is well defined there. Thus each square-integrable has a unique minimizer and weak solution. The map
is nonlinear in . It nevertheless satisfies the exact symmetry .
There is also a useful stability estimate. For a sufficiently regular periodic trial field , define
Subtract the equation for , set , and integrate against :
The cubic contribution is nonnegative because . Consequently,
This statement uses the actual residual of the trial field and the correct boundary domain. A small empirical training loss is a different quantity.
What a Fourier layer learns
Operator learning approximates a map between function spaces using sampled input–output pairs. A practical Fourier construction first lifts the input to several channels, alternates convolution and pointwise operations, and then projects back to a field. This organization is developed by Li et al., §§2–4, Eqs. (1)–(5).
Our input has two channels: the sampled and the constant . The source is divided by its training-set RMS, and is mapped affinely from to . Output units use the training-field RMS. No validation or test fields determine these scales.
After a real affine lift to four channels, a layer has the form
Here mixes channels locally. The matrix mixes channels separately at Fourier mode , and is zero outside . Its negative-mode values are the complex conjugates of its positive-mode values; is real. The output therefore remains real.
We use the numerical transform pair
This explicitly declared discrete spatial pair fixes every normalization in the implementation. It is not an implicit change to the site's spacetime Fourier convention. Constants, a single complex mode, Parseval's identity, and the reverse derivative are tested.
Two layers and a real affine output map give 345 real parameters: 12 in the lift, 164 in each layer, and 5 in the projection. All are trained. The local operation and can create higher harmonics even though the convolution retains only five nonnegative modes.
The same matrices can be applied at . This defines a way to reuse the weights. It does not establish that the nonlinear sampled operation is independent of resolution. Sampling, generated harmonics, and the distribution of inputs still matter. We compare the resulting trigonometric interpolants rather than equating a finer array with a more accurate field.
A conventional reference with controlled products
Write a real Fourier trial field in the orthonormal basis
There are real coefficients. The cubic Galerkin term tests against a basis function, so frequencies up to occur in the product. We use uniformly spaced quadrature nodes. This integrates the quartic energy and the cubic projection without trigonometric aliasing in exact arithmetic.
If evaluates the basis at the quadrature nodes, the coefficient Hessian is
where is the corresponding angular wavenumber. It is positive definite. Damped Newton therefore uses Cholesky solves and an energy line search. The implementation permits a rounding allowance of in the Armijo test; the final coefficient residual is recomputed independently of line-search acceptance.
The main reference has 129 coefficients. All 312 fixed inputs meet the requested relative coefficient residual of . At the first four inputs of each of the six groups below, the norm of the field difference between 129 and 257 coefficients is at most . Independent continuum residuals of those 24 saved reference fields are also evaluated, without another nonlinear solve; their largest norm is , with a 513-to-1025-point change below .
Two independent limits check the equation and normalization. With the cubic term removed, every Fourier coefficient is
For constant , the solution is the unique real root of . The retained tests compare the numerical solver with both limits.
The reduced bases use only the 96 training reference fields. An uncentered, -weighted singular-value decomposition defines subspaces of fixed ranks 8 and 16. Each new input is solved by minimizing (2) in that subspace, with its actual source and . These are nonlinear reduced Galerkin solves, not predictions from an interpolated parameter table. They still evaluate the full quadrature; no hyperreduction speed claim is made.
Fixed training and held-out tests
The nominal sources are
with uniform on , each uniform on , and uniform on . These are noiseless numerical examples with independently seeded inputs.
| Input group | Number | Change from the nominal family |
|---|---|---|
| Training | 96 | None |
| Validation | 24 | Reported without selecting a checkpoint |
| Nominal test | 96 | Independent held-out inputs |
| Higher frequencies | 32 | Add modes 5–8 with independent coefficients in , without a factor |
| Smaller | 32 | Set |
| Larger | 32 | Set |
One initialization is trained on the 33-node inputs with 2000 Adam updates, batches of 16, and a fixed learning-rate schedule. The normalized training MSE ends at , and validation MSE at . The final full-training gradient norm is , exceeding the separately declared target. The budget endpoint is retained; the calculation was not extended or restarted.
For each input, define relative field error as . The table reports the RMS of that ratio across the named held-out group:
| Method | Nominal | Higher frequencies | ||
|---|---|---|---|---|
| Neural, 33 nodes | 0.03295 | 0.56686 | 0.26978 | 0.35415 |
| Neural, 129 nodes | 0.03295 | 0.56632 | 0.26978 | 0.35415 |
| POD, rank 8 | 0.00212 | 0.06639 | 0.02258 | 0.000357 |
| POD, rank 16 | 0.01324 | 0.000832 | ||
| Direct, 33 coefficients |
The last row is measured relative to the finite reference; its smallest entries describe numerical agreement, not certified continuum precision. Direct 65-coefficient solves improve the difficult shifted groups further.
The left panel records the fixed optimization history. The right compares the same held-out fields. Fine-grid parameter reuse changes neither the nominal learning error nor the unfavorable comparison with the conventional methods.
The integral response is also checked. Its nominal neural RMS error is ; for the higher-frequency group it is at 33 nodes. A smooth integrated observable is not immune to distribution shift.
The residual provides another perspective. The 129-node network has residual-norm RMS on nominal inputs and on the higher-frequency group. These norms are evaluated on the prediction's trigonometric interpolant, using 513 nodes; its squared cubic residual has sufficiently low degree for that quadrature to avoid aliasing in exact arithmetic. Predetermined 1025-node comparisons at the first four inputs of each test group (16 cases) check the evaluation. The 24 validation fields enter only the training-history report, not this grid-transfer comparison.
This network also fails to impose the exact oddness of the response: the nominal RMS of is . Exact cyclic grid-shift equivariance is built into the periodic layers, but source-sign equivariance is not. Arbitrary continuous shifts of the interpolants do not have that same guarantee after the sampled nonlinear activation and possible aliasing.
Resolution, information, and cost
A particularly direct counterexample uses
They are identical at the 33 equally spaced input nodes. Any deterministic method that receives only those samples must return the same prediction for both. At , their separately resolved responses differ by in . At least one prediction must therefore have error at least . The retained coarse neural errors are and .
Evaluating the weights on the actual 129-node inputs distinguishes the two sources, but the high-frequency example still has error . Supplying new input information and generalizing to it are separate issues.
There is a speed–accuracy tradeoff, not a demonstrated universal acceleration. On this machine, generating the fixed reference set and its controls took about seconds, training took seconds, and the POD decomposition took seconds. Three isolated replays of 16 nominal predictions gave:
| Online method | Elapsed range for 16 inputs |
|---|---|
| Neural, 33 nodes | – ms |
| Direct, 33 coefficients | – ms |
| Direct, 65 coefficients | – ms |
| POD, rank 16 | – ms |
These timings use one BLAS thread and exclude file output. The neural row times a forward pass on already normalized inputs; input construction, physical rescaling and trigonometric interpolation are excluded. The neural batch is faster here but much less accurate; the methods are not compared at a common error target. The POD implementation retains full quadrature and setup, so reducing the unknown count has not automatically reduced its measured cost. Offline work must be included when deciding whether many later queries justify learning.
The companion retains the source, fitted weights, selected per-case diagnostics, and plotting data. Its documented commands can regenerate fixed data separately or compare the delivered model without retraining. No hardware-independent speedup, continuum guarantee, or high-dimensional performance claim follows from this small study.
Summary
A neural operator learns a response to sampled functions. Fourier layers provide a reusable grid implementation and periodic structure, while the data distribution and nonlinear sampling still control accuracy. In this example, fine-grid evaluation preserves a roughly nominal error instead of removing it; unfamiliar frequencies and parameters are harder. Direct and reduced Galerkin solves expose these limitations, and the monotonicity estimate explains which independently evaluated residual can control field error.
Exercises
1. Derive the residual bound and its boundary condition
For real satisfying the same periodic conditions, prove (6). Then determine what changes if is not periodic while is.
Solution
Let . Since solves (1),
Integration by parts yields
The endpoint term vanishes for periodic . All three remaining terms are nonnegative, so . If , divide by ; if , the result is immediate.
Without matching periodic traces, the endpoint term remains and has no fixed sign. A small interior residual alone cannot control arbitrary boundary mismatch. One must either impose the boundary domain or construct a lifting and include its contribution to the residual and error. The proof does not apply unchanged to a nonperiodic network output.
2. Show that grid refinement cannot infer an aliased source
Verify that the sources in (13) have identical samples at . If the corresponding exact responses are , prove that any common prediction has maximum error at least . Explain what is different when actual fine-grid samples are supplied.
Solution
At the sample points,
so the two cosines coincide. A deterministic map of the sampled array and the same consequently produces one . The triangle inequality gives
For the retained fine solutions the lower bound is . Interpolating the common coarse array to more points leaves it common and cannot overcome this bound. Evaluating the two underlying analytic sources on a finer grid supplies different information. The bound for a common prediction then no longer applies, but the trained map still needs a separate generalization test on the new high-frequency input.
References
- Z. Li et al., “Fourier Neural Operator for Parametric Partial Differential Equations,” arXiv:2010.08895v3, HTML, §2 and §§3–4, Eqs. (1)–(5), for the operator-learning setup and Fourier-layer construction.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.