From per-instance solvers to operator learners
Learning objectives
- Recognise the conceptual pivot from per-instance PINNs to operator networks
- State the universal approximation theorem for operators (Chen-Chen 1995)
- Sketch the two main families: DeepONet (branch + trunk) and FNO (spectral convolution)
- Pretrain a small DeepONet end-to-end and observe the amortisation in action
- Identify the regimes where operator learning is profitable vs wasteful
Every PINN we built in Parts 1-7 followed the same recipe: parameterise the SOLUTION of one specific problem instance by a neural network, train against the residual of one specific PDE plus one specific boundary condition. The §7.2 EikoNet solves the eikonal equation for ONE velocity model and ONE source position; if you change either, you re-train. For a survey with thousands of source positions and time-lapse studies that update the velocity model monthly, this is wasteful — every problem starts from scratch.
The pivot: function approximation vs operator approximation
Classical machine learning is FUNCTION APPROXIMATION: fit a network to a target . PINNs add a physics constraint but stay in this regime: the input is a coordinate , the output is the solution at that coordinate, and the network is fit to ONE function .
Operator learning is a level higher. The target is an OPERATOR — a map between function spaces:
where is a space of "input" functions (e.g., velocity models) and is a space of "output" functions (e.g., travel-time fields). For seismology the canonical operator is the velocity-to-wavefield map: given any velocity model , return the wavefield that solves the wave equation in that velocity. Once such an operator is learned, evaluating for a NEW is a single forward pass — no PDE solver, no PINN training, no FDTD.
Universal approximation theorem for operators (Chen-Chen 1995)
The theoretical foundation is older than people think. Chen and Chen (1995) proved that for any continuous nonlinear operator on a compact set of input functions, there exist branch and trunk networks such that
where the are functions of samples of the input function at fixed sensor locations , and the are functions of the query coordinate . The approximation is uniform: making and larger and the networks deeper drives the error to zero. This is the operator analogue of the Cybenko-Hornik 1989 universal approximation theorem.
Chen-Chen 1995 was largely overlooked for 25 years. Lu, Jin, Karniadakis (2021) revived it, named the architecture DeepONet, and showed empirically that it works for a wide range of nonlinear operators — including many PDE solution operators relevant to physics and engineering.
Two families of operator network
Two architectures dominate the literature:
- DeepONet (Lu et al 2021). Branch network encodes the input function. Trunk network encodes the query coordinate. Output is the inner product . Generalisable, simple to implement, well-suited when the input function space is bounded and not too high-dimensional. This is what §8.2 builds in detail and the widget below pretrains.
- Fourier Neural Operator (FNO) (Li et al 2020). The network operates in the FOURIER DOMAIN: each layer applies a learnable spectral convolution where is a learnable Fourier multiplier. Layers stack with residual connections + nonlinearity. Built-in resolution invariance: train on a 64×64 grid, evaluate on 256×256 with no retraining. This is §8.3.
Other architectures exist (Graph Neural Operators, Random Feature Operators, Geometric DeepONet variants), but DeepONet and FNO are the two production-relevant families and account for ~95% of operator-learning papers in computational physics today.
The amortisation argument
When does operator learning pay off? The cost-benefit is straightforward. Per-instance PINN training costs per problem. Operator pretraining costs once, then each evaluation costs . For problem instances:
The crossover where operator wins:
For seismic operators the numbers favour operator learning aggressively: per-instance EikoNet trains in ~30 s, operator pretraining is typically ~hours-days on GPU, but is microseconds. With hours and seconds, the crossover sits at problem instances. For real-time microseismic monitoring with thousands of events per day, or time-lapse studies with monthly velocity-model updates, this is a clear win. For one-shot historical case studies, per-instance training is fine.
Try it: pretrain a DeepONet on the antiderivative operator
The widget pretrains a small DeepONet on the family of integrable functions on , with the antiderivative as the operator:
Architecture: branch network takes 32 samples of on a fixed grid, trunk network takes the query . Output . 1500 epochs of Adam on a bank of 80 random training functions, with mini-batches of 6 functions × 6 random query points per epoch. Browser wall-clock: ~10-20 s.
After pretraining, the (a₁, a₂, a₃) sliders let you explore the input-function space. EVERY new combination is evaluated INSTANTLY: one branch forward pass on the 32 samples + one trunk forward pass per query y + a dot product. No re-training. The exact analytic answer (cyan dashed) overlays the DeepONet prediction (orange) so you can see the operator network has genuinely learned the antiderivative MAP, not just memorised specific cases.
Why the antiderivative? Why not jump straight to seismic?
The antiderivative operator is a MINIMUM VIABLE TEACHING TARGET: it is
- Linear — so the operator network is fitting a clean signal, no nonlinear traps.
- Closed-form — we can evaluate the truth and compare exactly. No FSM solver needed.
- Cheap to train — 5-10 seconds in browser, fits the textbook iteration budget.
- Architecturally identical to the velocity-to-travel-time DeepONet of §8.4. Same branch + trunk topology, same training loop, just a different operator and harder data.
By pretraining the network and evaluating it across the (a₁, a₂, a₃) sliders, you see the OPERATOR-LEARNING property concretely: the network learned a MAP between function spaces, not a specific function. The same architecture and training pattern carries to all of §8.2-§8.6.
What §8.2-§8.6 will do
- §8.2 DeepONet — branch and trunk networks. The mathematical and architectural deep dive on what just trained. Branch / trunk separation, dimensionality choices, sensor placement, training schemes, common failure modes.
- §8.3 Fourier Neural Operators (FNO). The other dominant architecture. Spectral convolutions, resolution-invariance, and where FNO beats DeepONet (and where it does not).
- §8.4 Learned propagators for fast forward modelling. Train a network to ADVANCE THE WAVEFIELD ONE TIME STEP given the current state. Compose for many steps. Surrogate or replacement for FDTD when speedup matters.
- §8.5 Parametric PDE explorers in real time. The amortisation payoff: pretrained operator networks let users explore parameter space (velocity, source, geometry) with INSTANT response. Demos that would take seconds to minutes per query with a classical solver run at 60 fps.
- §8.6 When operator learning beats per-instance training. Honest cost-benefit analysis. Crossover N*, training-data requirements, generalisation outside the training distribution, and when classical solvers (FDTD, FSM) still win.
References
- Chen, T., Chen, H. (1995). Universal approximation to nonlinear operators by neural networks with arbitrary activation functions and its application to dynamical systems. IEEE Trans. Neural Netw. 6(4), 911–917. The foundational theorem; quietly overlooked for 25 years.
- Lu, L., Jin, P., Pang, G., Zhang, Z., Karniadakis, G.E. (2021). Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nat. Mach. Intell. 3(3), 218–229. The DeepONet paper that revived Chen-Chen 1995 and demonstrated it works in practice.
- Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., Anandkumar, A. (2020). Fourier Neural Operator for Parametric Partial Differential Equations. arXiv:2010.08895 (ICLR 2021). The FNO paper.
- Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A., Anandkumar, A. (2023). Neural operator: Learning maps between function spaces with applications to PDEs. J. Mach. Learn. Res. 24(89), 1–97. Recent review covering both families, theory, and convergence rates.