Scientific foundation model
The Neural Combinatorial Wavelet Neural Operator (NCWNO) is a foundation model for scientific computing. A single network learns the solution operators of many PDEs at once, adapts to a new PDE by training only a small gate, and keeps what it learned about the old ones.
At a glance
- One model, many PDEs. One network is trained on six 1D PDEs and another on six 2D PDEs, with about 1% mean relative error for most of them.
- New PDEs without forgetting. Learning a new PDE trains only the probability gates, and the predictions on the old PDEs stay exactly the same.
- Cheaper adaptation. Using the pre-trained model needs more than 50% less data and computational time, and cuts the cost of learning new equations by about 15 times in 1D and 5 times in 2D.
- Generalizes. Accuracy drops by roughly 2 to 3 points on finer and coarser grids, and by about 2 points on out-of-distribution inputs.
- Competitive. In the paper’s benchmarks it beats the multiphysics operators ICON and MPP, and the task-specific DeepONet, FNO and WNO.
Motivation
Solving a parametric PDE for many input parameters usually means running an expensive numerical solver again and again. Neural operators remove most of that cost by learning the solution operator itself, the map from input functions to solution functions. But each operator is trained for one physical system. A new physical system means a new model from scratch, with its own training data, manual tuning, memory, computing time, and energy.
Foundation models changed this in language and vision: train once on a broad set of tasks, then adapt to many downstream tasks. Very little of this exists for scientific computing. The NCWNO brings the idea to PDEs with three goals: learn many PDEs in one model, adapt to new PDEs with little data and time, and never forget the old ones.
Architecture
The NCWNO builds on the Wavelet Neural Operator (WNO). A neural operator maps the input parameters \(\mathbf a\) to the solution \(\mathbf u\) through a lifting map \(\mathcal P\), a chain of iterative updates, and a projection \(\mathcal Q\). Each update applies a kernel integral operator to the current context \(v_j\):
In the WNO, this convolution is done in the wavelet domain, where \(W_\psi\) is the wavelet transform, \(s\) and \(r\) are the scale and translation, and \(\kappa_\phi\) is a learned kernel:
The NCWNO replaces that single wavelet integral block with an expert block, which has three parts:
- Local wavelet experts. Each expert is a wavelet integral block with its own wavelet basis (Daubechies in 1D, biorthogonal in 2D), so each one learns different multiscale features.
- Expert block. It ensembles the experts channel by channel, using weights from the gate.
- Probability gate. It takes the PDE label \(\ell\) and the context, and returns the probability of each expert through a softmax. The gate itself uses wavelet integral layers, so it still works on grids it was not trained on.
With \(d_e\) experts, the kernel operator of an expert block becomes a probability-weighted sum:
Training has two stages. First, all expert and gate weights are trained together on \(m\) PDEs, which gives the foundation model. Second, to learn a new PDE, the experts are frozen and only the gate parameters are trained (see continual learning below). An expert block with \(d_e\) experts on a \(d\)-point grid costs \(\mathcal O(d\,d_e)\). The multiphysics models in the paper use four expert blocks, with 10 experts in 1D (41.11 million parameters) and 6 experts in 2D (92.77 million parameters).
Learning many PDEs at once
The first test is whether one network can hold many PDEs. The paper uses twelve benchmark problems: the Allen–Cahn, Nagumo, Burgers’, Heat and Advection equations in 1D and 2D, the 1D Wave equation, and the 2D Navier–Stokes equation. Each PDE has 1,500 random initial fields for training and 100 for testing, on a 256-point grid in 1D and a 64 × 64 grid in 2D. The datasets are very different from one another: cosine similarity, normalized KL divergence and mutual information all show that they share little, which is what makes a single model hard.
Two NCWNOs are trained, one on the six 1D PDEs and one on the six 2D PDEs. The 1D model maps the first ten time steps to the next forty, and the 2D model maps the first ten to the next twenty:
At inference there is no fine-tuning. The predictions follow the ground truth closely, with a mean relative error of about 1% for most PDEs. The exception is the 2D Allen–Cahn equation at about 4%, which the paper attributes to jumps in the solution field.
The paper compares the NCWNO with two transformer-based multiphysics operators: ICON, which handles 1D problems, and MPP, which handles 2D problems. Relative L2 error in percent, mean ± standard deviation over 100 test samples:
| 1D PDEs | Size | Allen–Cahn | Nagumo | Burgers’ | Heat | Wave | Advection |
|---|---|---|---|---|---|---|---|
| ICON | 31.56M | 7.86 ± 0.20 | 8.24 ± 0.21 | 9.09 ± 0.24 | 5.91 ± 0.22 | 9.93 ± 0.25 | 4.61 ± 0.17 |
| NCWNO | 41.11M | 1.12 ± 1.01 | 1.03 ± 1.64 | 0.08 ± 0.03 | 1.23 ± 0.77 | 1.91 ± 1.53 | 0.52 ± 0.32 |
| 2D PDEs | Size | Navier–Stokes | Allen–Cahn | Burgers’ | Advection | Nagumo | Heat |
|---|---|---|---|---|---|---|---|
| MPP-AViT-B | 116M | 2.85 ± 1.17 | 8.84 ± 4.51 | 5.09 ± 2.72 | 4.63 ± 2.47 | 7.01 ± 4.37 | 3.23 ± 1.42 |
| MPP-AViT-L | 409M | 4.98 ± 0.64 | 5.01 ± 0.18 | 5.01 ± 0.45 | 5.01 ± 0.59 | 4.98 ± 0.51 | 5.01 ± 0.56 |
| NCWNO | 92.77M | 1.64 ± 0.88 | 4.10 ± 1.59 | 1.45 ± 0.63 | 1.02 ± 0.33 | 0.58 ± 0.33 | 0.75 ± 0.32 |
The 1D NCWNO is about 1.3 times the size of ICON. The 2D NCWNO is smaller than both MPP models.
Other resolutions, with no retraining
Neural operators should not depend on the grid, so the pre-trained models are tested, without fine-tuning, on grids different from the training grid. Training used 256 points in 1D and 64 × 64 in 2D. Testing used 512 and 128 points in 1D, and 128 × 128 and 32 × 32 in 2D.
The mean accuracy, defined as \(1-\lVert u-u^{*}\rVert/\lVert u\rVert\), is 94.56 ± 1.40% on the finer 1D grid and 96.29 ± 0.83% on the coarser one. In 2D it is 96.29 ± 1.75% and 96.41 ± 2.08%. That is a drop of about 1.5 to 3.2 percentage points compared with the training resolution.
Unseen inputs
The models are also tested on initial conditions from distributions they never saw. In the training data, the random initial fields come from a Gaussian random field with a fixed variance and length scale. For the out-of-distribution test, those two parameters are themselves drawn at random:
For the 1D Burgers’ equation the random parameter is drawn from a wider range, and for the 2D Navier–Stokes equation the initial vorticity comes from a different Gaussian random field. Again there is no fine-tuning. On average, accuracy drops by about 2% in 1D and 1.75% in 2D.
| Prediction accuracy (%) | Advection | Nagumo | Allen–Cahn | Burgers’ | Heat | Wave | Navier–Stokes |
|---|---|---|---|---|---|---|---|
| 1D | 98.63 ± 0.35 | 95.72 ± 1.58 | 98.83 ± 0.19 | 97.55 ± 0.34 | 96.10 ± 0.64 | 96.04 ± 1.84 | – |
| 2D | 95.71 ± 1.54 | 95.49 ± 2.37 | 95.44 ± 1.42 | 95.83 ± 1.67 | 98.30 ± 0.66 | – | 99.19 ± 0.12 |
Continual learning without forgetting
This is the main point of the design. After pre-training on \(m\) PDEs, a new PDE \(\mathcal N_\tau\) is learned by freezing every expert and training only the gate parameters \(\theta_\beta\) on the new data:
The tuned gate parameters are small. They are stored in an ordered dictionary, so the gate for any earlier task can be loaded again to predict that task without fine-tuning. Large expert models never need to be saved again, and the old PDEs are not forgotten.
1D. The foundation model is pre-trained on the Allen–Cahn, Nagumo and Wave equations, then adapted in turn to Burgers’, Advection and Heat. Before adaptation, the model predicts the unseen PDEs poorly, which is expected because the datasets are so different. After adaptation, the accuracy on the new PDEs rises to nearly 97–100%, and the accuracy on the pre-trained PDEs does not change.
2D. The model is pre-trained on Navier–Stokes, Allen–Cahn and Burgers’, then adapted to Advection, Nagumo and Heat. Accuracy on the new PDEs improves to nearly 94–100%, and the accuracy on the pre-trained PDEs stays exactly the same as before.
Adaptation is also cheap. Pre-training used 1,500 samples per PDE and 200 epochs; each new PDE needed only 500 samples and 100 epochs. The cost of learning new equations falls by about 15 times in 1D and 5 times in 2D.
Comparisons
The NCWNO was also trained on single PDEs and compared with task-specific operators on eight benchmark problems. Relative L2 error in percent, mean ± standard deviation over 100 test samples:
| Problem | DeepONet | FNO | WNO | NCWNO |
|---|---|---|---|---|
| 1D Burgers’ | 40.58 ± 35.13 | 1.31 ± 1.77 | 1.87 ± 0.90 | 0.23 ± 0.22 |
| 1D Advection | 0.28 ± 0.20 | 0.03 ± 0.02 | 0.04 ± 0.04 | 0.01 ± 0.01 |
| 1D Allen–Cahn | 6.17 ± 1.42 | 1.10 ± 4.90 | 7.87 ± 31.88 | 0.22 ± 0.03 |
| 1D Kuramoto–Sivashinsky | 154.31 ± 7.49 | 16.32 ± 23.77 | 74.84 ± 55.91 | 6.71 ± 2.35 |
| 2D Darcy (square) | 6.06 ± 2.45 | 1.01 ± 0.40 | 1.42 ± 0.52 | 0.40 ± 0.18 |
| 2D Darcy (triangle) | 0.94 ± 0.38 | 0.60 ± 0.23 | 1.10 ± 0.40 | 0.25 ± 0.09 |
| 2D Navier–Stokes | 5.76 ± 4.93 | 0.48 ± 0.33 | 1.38 ± 0.84 | 0.22 ± 0.03 |
| 2D Nagumo | 2.85 ± 0.88 | 0.96 ± 0.07 | 0.61 ± 0.22 | 0.20 ± 2.35 |
The number of local experts is a trade-off. More experts make the model remember old tasks better, but cost more time. In 1D, going from 4 to 10 experts (18.77M to 41.11M parameters) lowers the error on Advection from 11.81% to 1.12%, while an epoch grows from about 396 s to 1,038 s.
Limits and outlook
- The NCWNO assumes the task identity, the PDE label, is known in advance. A future version could discover task identities on its own.
- Pre-training is supervised and needs labelled data. The model is built to accelerate simulations, not for image classification, model-order reduction, reinforcement learning, or generative modeling.
- Natural extensions are a multiscale NCWNO for very large domains, and a physics-informed NCWNO that biases each local expert toward the physics of one aspect of a multiphysics process.