NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

In-Context Multi-Operator Learning with DeepOSets

Shao-Ting Chiu, Aditya Nambiar, Ali Syed, Jonathan W. Siegel, Ulisses Braga-Neto

TL;DR

What if a single neural network could solve completely different differential equations on the fly—just by glancing at a few example solutions first—without relying on heavy, slow Transformers? In this paper, the authors introduce DeepOSets, a nimble, attention-free architecture that learns entire families of physical laws at once. Better yet, they prove mathematically that it can approximate any well-behaved set of operators, delivering comparable accuracy to Transformer baselines at a tiny fraction of the computational cost.

What Problem Does This Paper Address?

In scientific computing, we often use neural networks for operator learning: instead of solving a single partial differential equation (PDE) once, the network learns the underlying rule (the operator) mapping input functions (like initial heat distributions or fluid permeabilities) to output solution functions.

Traditional models like DeepONet only learn one operator at a time. Change the underlying physics or add an unknown parameter, and you have to retrain from scratch. Taking inspiration from Large Language Models, researchers recently moved toward in-context multi-operator learning (often called PDE foundation models). Here, one model learns a whole universe of operators. At test time, you hand it a "prompt" of a few input-output example pairs so it can figure out which specific differential equation it’s dealing with, no weight updates required.

Until now, this space was dominated by GPT-style Transformers (like ICON). Transformers work, but their self-attention mechanism scales quadratically with prompt length—making long prompts painfully slow—and we lacked a rigorous mathematical proof that they can actually approximate any collection of operators. The authors set out to formalize this problem mathematically and build something faster, lighter, and provably universal.

Methods

The authors first frame multi-operator learning rigorously as learning a compact set of continuous operators between infinite-dimensional function spaces. To solve it, they mash up two classic, lightweight architectures into a hybrid they call DeepOSets:

  1. The Encoder (DeepSets): Takes your prompt—a set of discretized example pairs $(u_i, G(u_i))$—passes each pair through a shared multi-layer perceptron (MLP), and squashes them together via a pooling layer (like taking the mean) into a single latent vector $\mathbf{h}$.
  2. The Decoder (DeepONet): A standard operator-learning setup with two paths. The Branch network takes your new query function $u_q$ glued onto that context vector $\mathbf{h}$. The Trunk network takes the spatial/temporal coordinates $x_q$ where you want the answer evaluated. A simple dot product at the end spits out the mesh-free solution.
Figure 1: DeepOSets architecture for in-context multi-operator learning.

What’s new here is avoiding autoregressive self-attention altogether. Because DeepSets just pools embeddings, computational complexity scales linearly with the number of prompt examples rather than quadratically, and the model is naturally blind to the order of examples.

Datasets

Rather than pulling off-the-shelf static benchmarks, the authors synthetically generated PDE solution datasets (using Finite Difference Methods) tailored to test unknown parameters and equations:

  • 1D Burgers’ Equation: Varying viscosity $\nu \in [0.001, 0.1]$ sampled log-uniformly to capture both smooth flows and sharp shockwaves.
  • 1D and 2D Darcy Flow: Subsurface fluid flow governed by unknown, spatially varying permeability functions $k(x)$. (Notably, standard ICON struggles to directly handle 2D parametric PDEs like 2D Darcy flow).
  • Multi-PDE Suite: A combined dataset of 12 distinct tasks—both forward and inverse versions of 6 parameterized ODEs and PDEs (including Poisson and linear/nonlinear reaction-diffusion equations)—all learned simultaneously by a single model.

Key Insights and Ideas

  • Order doesn't matter in physics prompts: In language, word order changes meaning. In operator learning, example #1 and example #2 are just unordered data points. DeepSets bakes this permutation invariance directly into the architecture as an inductive bias, rather than forcing a Transformer to waste compute learning it.
  • The first Universality Theorem for Multi-Operator ICL: The authors prove (Theorem 5.1) that a single DeepOSets model can uniformly approximate any compact class of continuous operators to arbitrary precision, provided the prompt examples cover the input space densely enough.
  • Zero-shot prompt extrapolation: Even if you train DeepOSets with only 4 context examples per prompt, you can hand it 20 examples at test time and watch its error steadily drop—proving it genuinely extracts more physical insight from extra data rather than overfitting to a fixed prompt length.
  • Complex parameters crave more context: When an operator only hides a single scalar constant (like viscosity in Burgers' equation), 3 examples are plenty to nail it down. When the hidden parameter is an entire unknown 1D or 2D function (like permeability in Darcy flow), feeding more examples yields dramatic drops in error.
Relative L2 error drops sharply with more context examples when the hidden parameter is a complex function (1D and 2D Darcy), whereas a scalar parameter (1D Burgers) needs very few.

Key Results

  • Accuracy across PDEs: On test sets (going from 3 to 39 context examples), relative $L_2$ error dropped from $0.0453 \to 0.0391$ on 1D Burgers', $0.0866 \to 0.0449$ on 1D Darcy, and $0.1289 \to 0.1163$ on 2D Darcy. A single model also simultaneously learned all 12 forward/inverse ODE/PDE tasks with test MSEs around $10^{-3}$ to $10^{-2}$.
  • Head-to-head with ICON (1D Darcy Flow):
  • Small budget (10k steps): DeepOSets beat ICON across all context sizes (e.g., 0.1459 vs. 0.7058 relative $L_2$ error at 5 examples) using only 19% of the parameters (894k vs. 4.74M) and training in 42.5 seconds vs. ICON’s 2.15 hours.
  • Large budget (100k steps): ICON eventually pulled ahead by 26–41% lower error (reaching 0.0603 vs. DeepOSets' 0.0819 at 5 examples). However, ICON required ~218× more training time (8.74 hours vs. 144.6 seconds) and had 12× higher inference latency (2.75 ms vs. 0.229 ms per sample).

Limitations and Future Work

  • Non-quantitative theory: Their universality proof is an existence theorem—it guarantees a network exists that can do the job, but doesn't tell you how wide/deep the network needs to be or how many prompt examples you strictly need in practice. Finding those quantitative bounds is a major next step.
  • Fixed input grids: Right now, all input and example functions must be sampled on fixed sensor grids. Extending DeepOSets to handle arbitrary, shifting input grids is left for future work.
  • Peak accuracy ceiling: Given massive compute budgets, heavy attention-based models like ICON can still squeeze out slightly lower errors, pointing to an intriguing accuracy-vs.-efficiency frontier to explore.

Summary updated

BibTeX
@inproceedings{chiu2026context,
  author = {Shao-Ting Chiu and Aditya Nambiar and Ali Syed and Jonathan W. Siegel and Ulisses Braga-Neto},
  title = {{In-Context Multi-Operator Learning with DeepOSets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Bla1smpZ8X},
}
Figure