In traditional scientific machine learning, models are typically "specialists." If you train a Physics-Informed Neural Network (PINN) to solve a specific fluid dynamics problem, changing a single parameter—like the viscosity of the fluid or the shape of the container—often requires retraining the entire model from scratch.
A new research direction is shifting this paradigm toward "generalist" foundation models for science. By leveraging the in-context learning (ICL) capabilities popularized by Large Language Models (LLMs), researchers are developing neural operators that can solve entirely new differential equations at inference time without any weight updates.
From Curve Fitting to Operator Induction
The core shift is moving from learning a specific solution to learning the process of operator induction.
In a standard setup, a model learns a mapping $x \to y$. In operator learning, the model learns a mapping between function spaces. However, even early neural operators like DeepONet or Fourier Neural Operators (FNO) were often restricted to a specific family of equations (e.g., only Navier-Stokes).
As Liu Yang, Shuyan Liu, and Tingwei Meng demonstrate with In-Context Operator Networks (ICON), a Transformer-based architecture can treat physical data as a "prompt." By providing the model with a few example input-output pairs—representing the underlying physical rule—the model can infer the operator on the fly. This allows In-context operator learning with data prompts for differential equation problems to generalize to unseen physical regimes or parameter shifts instantly.
The Mechanism of Scientific Prompting
How does a model "understand" a new physical law without retraining? The intuition lies in treating the relationship between variables as a sequence.
- The Context: The model is fed a set of "support" points—pairs of $(u_i, G(u_i))$ where $G$ is the unknown operator.
- The Query: The model is then given a new input $u_{query}$.
- The Inference: Using attention mechanisms, the model compares the query to the context to "identify" which physical law is currently active.
This approach, further refined by Shao-Ting Chiu and colleagues in In-Context Multi-Operator Learning with DeepOSets, allows a single network to solve multiple different types of differential equations simultaneously. The "prompt" acts as a disambiguator, telling the model whether it is looking at heat diffusion, wave propagation, or fluid flow.
Scaling to Foundation Models
This capability is being scaled into "foundation models" for scientific computing. Models like OmniArch, developed by Tianyu Chen and Haoyi Zhou, use large-scale pre-training on diverse physical datasets to achieve emergent zero-shot capabilities. Similarly, the Denoising Operator Transformer (DPOT) by Zhongkai Hao and others uses auto-regressive pre-training to handle complex 3D simulations, demonstrating that large-scale physical models can outperform specialized solvers on tasks they have never seen before.
Compositionality and Zero-Shot Adaptation
A key advantage of this direction is compositionality. Instead of training a model for every possible combination of physical forces, researchers are treating pretrained models as "atomic building blocks."
In Test-time Generalization for Physics through Neural Operator Splitting, Louis Serrano and Jiequn Han show that complex equations like Navier-Stokes can be solved by combining simpler, pretrained operators for advection and diffusion. By using classical operator splitting techniques at test time, the model can adapt to new physics without any gradient-based fine-tuning.
Why It Works: Learning the "DNA" of Physics
The success of these models suggests they are not just memorizing solutions but are capturing the fundamental mathematical structures of differential equations. For instance, Kishan Wimalawarne and Taiji Suzuki demonstrate that models can efficiently learn Green's functions, which act as a "universal solver" for a given domain. Once the model learns this underlying operator, it can generalize to any new source term or forcing function instantly.
By moving the complexity from the training phase to the context provided at inference, this research direction enables real-time engineering design, rapid uncertainty quantification, and the discovery of hidden physical laws in a way that was previously computationally prohibitive.