TL;DR
A neural network usually maps a fixed-length vector to another vector. A neural operator maps a whole function to another function, for example the forcing term of a partial differential equation to the solution it produces. Its layers combine local transformations with an integral over the whole domain, which is an integral operator with a learned kernel. Because the learned object is the map itself and not the values at fixed points, one trained model can be evaluated on a fine grid or a coarse one.
Builds on: Feedforward Neural Network, Partial Differential Equation, Fourier Transform, Integral Operator · Leads to: Fourier neural operator
Where it's used
Weather and climate models. Full physics simulators, built on numerical methods such as finite differences, solve equations for the atmosphere on fine grids, which is expensive when many scenarios are needed. A neural operator trained on simulator output can produce a forecast field for a new set of initial conditions much faster, and the forecast can be checked against the simulator on the same grid.
Fluid and material design. Engineers evaluate many candidate shapes or boundary conditions for flow around a body or stress in a part. A solver takes minutes to hours per case. Neural operators trained on a few hundred solved cases give approximate fields for new shapes in milliseconds, which is useful for screening before the full simulation.
Subsurface and reservoir modelling. Flow through porous rock depends on a permeability field that is only partly measured. The map from permeability to pressure is a natural operator target. Trained operators give fast pressure predictions for many permeability realisations, which speeds up uncertainty studies.
How it works
Consider a tiny version of the problem. The input is a function on the interval , and the output is a function defined by the rule . The map takes a function and returns the number that is its average, held constant over the interval. The goal is a learned model of this map that does not depend on how finely we sample .
-
Sample the input on a grid. Pick four points, , and record at each: . The network sees these four numbers.
Check: the grid is the only thing the network sees, so the model must learn something that reads the function from those values.
-
Lift the input to a richer representation. A pointwise linear layer maps each value to a channel vector, for example with a learned matrix. Each point now carries several numbers instead of one. The lift adds no integral; it only changes the number of channels.
Check: with one input channel and four output channels, the lifted grid is a array, one row per point.
-
Apply an integral layer. The core step is , where is a learned kernel. On the grid the integral becomes a sum: each point collects values from every other point, weighted by , and multiplied by the grid spacing . If , the integral at every point is in the first channel.
Check: with a constant kernel the integral term is the same number at every point, the average of the input times the interval length. That is the same structure as the target map.
-
Read out the function. A final pointwise layer maps the channels back to one value per point, giving an approximation of on the grid. For the constant kernel this is everywhere. If is taken to be piecewise constant with these four values, its exact integral is , so the grid answer happens to be exact here.
Check: the integral sum is only an approximation of the true integral. On a grid of eight points the same Riemann sum of gives 0.4375, closer to the true 0.5 than the four-point sum of 0.375. The learned kernel is a property of the integral, so a finer grid gives a better answer with the same weights.
The key point is in step 3. The layer is an integral over the whole domain, not a fixed local window, so the information from every input point reaches every output point in one step. A convolution is the special case where the kernel depends only on and is zero outside a small window.
flowchart LR A[input function on grid] --> L[pointwise lift] L --> I1[integral layer with kernel and nonlinearity] I1 --> I2[more integral layers] I2 --> R[pointwise readout] R --> U[output function on grid]
The math
Let be a bounded domain. A neural operator is a composition of maps of the form
where lifts the input function to a higher-dimensional channel space, each is a layer, and projects back to the output. The layers themselves are
Here is a nonlinearity such as the ReLU, is a pointwise linear map, and is a learned kernel. The term plays the role of a residual connection, so the output keeps the local information, and the integral adds the global information.
Step 1 in symbols: the grid
For a grid with spacing , the function is stored as the vector , and the integral is approximated by a quadrature sum:
Each layer is then a matrix product, with the matrix entries . This is what the tiny example computes.
Step 3 in symbols: the Fourier form
The integral with a general kernel costs on grid points. If the kernel depends only on the difference , as in a stationary model, the integral is a convolution. The convolution theorem then says that the Fourier transform turns it into a pointwise product:
The Fourier neural operator (FNO) of Li and colleagues keeps this form and learns the multiplier directly. It keeps only the lowest Fourier modes, learns a complex weight for each kept mode, and sets the higher modes to zero:
The discrete Fourier transform costs , so the layer is cheaper than a dense kernel. The learned weights are attached to frequencies, not grid points, so the same weights can be applied on a finer grid, as long as that grid still resolves the kept modes.
Step 4 in symbols: the readout and the training objective
The readout in step 4 is a pointwise map from the channels to one value per grid point. Given pairs of input functions and solution functions from a solver, the operator is trained by minimising a relative error, averaged over the pairs,
The norm is the norm of the function, the norm of the Hilbert space of square-integrable functions. On a grid, its square is a sum of squared values times , so the loss depends on the integral and not on the number of points.
Worked examples
Take on the grid , with kernel .
- Grid spacing: .
- For each output point the integral sum is .
- Compute the sum: .
- Multiply by the spacing: .
- The same value, 2.5, is the output at each of the four points.
- Interpret: a constant kernel turns the layer into an average over the domain, times the length of the domain. Here the domain has length 1, so 2.5 is the average of the input values times 1.
The map acts on , whose exact integral is . Compare two grids.
- On four points , the values of are . The sum is .
- Multiply by : .
- On eight points , the values sum to .
- Multiply by : .
- The eight-point answer is closer to than the four-point answer. The operator does not change; only the approximation of its integral changes.
- Interpret: a neural operator whose layers are integrals inherits this behaviour. If its learned kernel is accurate, a finer grid gives a better answer, with no retraining.
A reservoir model maps a permeability field to a pressure field . The solver takes 40 seconds per case on a grid. A Fourier neural operator is trained on 1,000 cases, and it is then evaluated on new permeability fields.
- Sample a new permeability field on a grid.
- Lift it with a pointwise layer to, say, 32 channels.
- Apply four Fourier layers. In each, FFT the field, multiply the lowest 12 modes in each direction by learned weights, inverse-FFT, add the pointwise term, and apply a ReLU.
- Read out one pressure value per grid point.
- Compare with the solver on a held-out case: a relative error of a few percent is the kind of result these studies report, and a larger error signals that the new fields lie outside the training distribution.
- Interpret: the operator answers in well under a second, so a study that needs thousands of fields becomes practical.
Try it: in Example 1, change the kernel to and keep and . What is the output at each point? Answer: .
Common mistakes and tradeoffs
It is tempting to think a neural operator is a neural network that takes a grid as input and returns a grid. In fact, what it learns is the map between functions, and the grid is only the way the map is evaluated. This is why the same model works, to a point, on grids of different sizes. A model that memorised the values of one grid, such as a plain convolutional network with no integral structure, does not have this property.
It is tempting to think resolution invariance is free. In fact the operator is accurate only on the frequencies it was trained on, and the Fourier version keeps a fixed number of modes. A grid much finer than the training grid can add detail the model ignores, and a sharp feature such as a shock in the solution is hard for any truncated basis. Check the error at a finer resolution before trusting it.
It is tempting to think the learned operator replaces the solver. In fact it is an approximation with an error that depends on the training data. It is fast enough for screening, for ensembles, and for real-time guesses, but the final design or decision usually still runs the solver on the chosen case.
Use a neural operator when many solves of the same family of problems are needed, when the input and output are fields, and when the solver is the bottleneck. Do not use it for a single solve, for problems whose solutions vary wildly from case to case, or where a guaranteed error bound is required. Alternatives include physics-informed neural networks, which train on the equation rather than on solved examples, and DeepONet, which uses a branch and a trunk network to evaluate the output at chosen points.
History
Before the 2020s, learning solution maps for differential equations was done for specific equations, with a network for each one. Lu and colleagues (2019) introduced DeepONet, which learns nonlinear operators with a branch network for the input function and a trunk network for the query point, and showed that such operators can approximate a broad class of maps, building on the universal approximation theorem for operators. This turned operator learning into a general method.
Li and colleagues (2020) introduced the Fourier neural operator, which uses the Fourier transform to make each integral layer cheap and to share weights across resolutions. Their experiments on fluid flow and related equations showed large speed-ups over numerical solvers for the same accuracy on the tested problems. The line of work then branched into graph-based, multiscale and transformer-style operators, and it is still an active area.
Recap
- A neural operator learns a map between functions, not between fixed-length vectors.
- Its layers combine a pointwise term with an integral over the whole domain, which lets every input point influence every output point.
- On a grid, the integral becomes a quadrature sum, and a finer grid gives a better approximation of the same learned map.
- The Fourier neural operator turns the integral into a multiplication in frequency space, which is cheap and resolution-flexible.
- To read further, go to the Fourier neural operator paper for the method, and to Physics-Informed Neural Network for the alternative that trains on the equation itself.
Check yourself
QuestionRecall: what is the difference between a neural network that maps vectors and a neural operator?Show answer
A vector network maps a fixed-length list of numbers to another list. A neural operator maps a whole function to another function. Its layers are integrals over the domain, so the learned object is the map itself, and the grid is only the way the map is evaluated.
QuestionComputation: with on the grid and kernel , what is the integral layer's output at every point?Show answer
The sum is . Multiply by to get . The output is at every point.
QuestionWhy does the Fourier neural operator need fewer weights per layer than a dense kernel on the grid, and why does it help with a finer grid?Show answer
A dense kernel on grid points has on the order of entries. The Fourier version learns one complex weight for each of the lowest modes, which does not grow with the grid size. The weights attach to frequencies, not points, so the same learned multipliers can be used on a finer grid, provided the new grid still resolves those frequencies.
QuestionA team needs to evaluate 10,000 fluid simulations for different obstacle shapes, and each solver run takes an hour. Is a neural operator a good fit, and what would they check?Show answer
Yes, it is a good fit: many solves of the same family, fields as inputs and outputs, and a solver that is the bottleneck. Before relying on it, they should train on a set of solved cases, hold some out, and check the relative error on shapes unlike the training ones, since the error depends on how well the training set covers the family. For the final chosen designs they should still run the solver to confirm the result.
Sources
- Li, Kovachki, Azizzadenesheli, Liu, Bhattacharya, Stuart, Anandkumar (2020). Fourier Neural Operator for Parametric Partial Differential Equations. https://arxiv.org/abs/2010.08895
- Lu, Jin, Pang, Zhang, Karniadakis (2019). DeepONet: Learning nonlinear operators for identifying differential equations. https://arxiv.org/abs/1910.03193