Abstract
DeepOSets introduces a hybrid neural architecture designed for in-context multi-operator learning in scientific computing. By integrating a Deep Sets encoder with a DeepONet decoder, the model learns to approximate a wide range of differential equation operators from a few example pairs. This approach offers linear scaling with context size and provides theoretical guarantees of universal approximation, enabling the solution of diverse physical systems with high efficiency.
Introduction
In scientific computing, neural operators such as DeepONets and Fourier Neural Operators are typically trained as specialists for specific physical systems. The emerging frontier of multi-operator learning seeks to develop "foundation models" capable of handling multiple distinct physical laws simultaneously. This requires In-Context Learning (ICL): the ability to infer the correct solution operator from a "prompt" of example input-output pairs. While Transformer-based models have attempted this, they often suffer from quadratic computational complexity and lack rigorous theoretical foundations. DeepOSets addresses these needs by providing a mathematically grounded and computationally efficient architecture for multi-operator learning.
Methods
DeepOSets merges two established architectures to achieve efficient in-context learning:
- DeepSets (The Encoder): This module processes the "prompt"—a set of example function pairs $(u_i, G(u_i))$. By utilizing a permutation-invariant pooling layer, the encoder ensures the model is indifferent to the order of examples and scales linearly with the number of context pairs, avoiding the quadratic costs associated with Transformers.
- DeepONet (The Decoder): The encoded context is fed into the branch network of a DeepONet. This allows the model to modulate its behavior based on the provided examples to approximate the specific operator required for a query $u_q$ at a target point $x_q$.
The authors provide a formal mathematical definition for the multi-operator learning problem and prove a Uniform Universality Theorem. They demonstrate that a single DeepOSets architecture can approximate any operator within a compact set to a fixed degree of accuracy, provided the context examples are sufficiently dense.
Experimental Setup
The model was evaluated on 12 distinct tasks involving ordinary and partial differential equations (ODEs/PDEs). These included forward and inverse initial value problems (IVPs), Poisson boundary value problems, and both linear and nonlinear reaction-diffusion equations. Data was generated by sampling parameter functions from Gaussian Processes and solving the equations using high-fidelity numerical solvers on a 1D interval $[0, 1]$ discretized into 100 points.
Results and Key Insights
DeepOSets achieved low Mean Squared Error (MSE) across all tasks, typically in the range of $10^{-3}$ to $10^{-4}$. A key finding was that the model performed better when trained on all 12 tasks simultaneously compared to being trained on only 6, suggesting that a greater diversity of solution behaviors helps the model learn more robust disambiguation strategies.
Additional results include:
- Zero-Shot Generalization: The model successfully generalized to context sizes (number of examples in the prompt) it never saw during training, with performance consistently improving as more examples were added (from $N=3$ up to $N=20$).
- Efficiency: DeepOSets achieves results comparable to state-of-the-art Transformer models but trains in only 12 to 38 minutes on a consumer-grade GPU (Nvidia 4060 Ti).
- Permutation Invariance: By design, the model inherently understands that the order of examples in a prompt should not change the underlying physics, a bias that Transformers must learn from data.
Limitations and Future Work
Current limitations include the assumption of fixed, uniform grids and a focus on 1D problems. While the underlying theory holds for higher dimensions, practical scaling to complex 3D fluid dynamics or structural mechanics remains a subject for future research. Additionally, exploring model behavior when faced with "out-of-distribution" physics that falls outside the assumed compact set of operators is a key open question.
Summary updated