In-Context Multi-Operator Learning with DeepOSets
Shao-Ting Chiu, Aditya Nambiar, Ali Syed, Jonathan W. Siegel, Ulisses Braga-Neto
NeurIPS 2026
TL;DR. We propose DeepOSets for in-context multi-operator learning, prove universality, and provide experimental results.
Abstract. An important application of neural networks in scientific computing is non-linear operator learning. In this framework, a neural network is trained to fit a non-linear map between infinite dimensional spaces, for example, the solution operator of ordinary and partial differential equations. Recently, inspired by the discovery of in-context learning for large language models, an even more ambitious paradigm has been explored, called multi-operator learning. In this approach, a neural network is trained to learn many different operators at the same time. At inference time, the network is passed a small number of example input and output pairs to disambiguate the desired operator. In this work, we provide a precise mathematical formulation of the multi-operator learning problem, propose a parameter-efficient, attention-free architecture, called DeepOSets, and prove its universality in the in-context multi-operator learning task. We perform experiments demonstrating the efficacy of DeepOSets on several benchmarks, including Burgers' equation, 1D and 2D Darcy flow, and a variety of initial-value and boundary-value differential equations. In a comparison with the transformer-based ICON model on the 1D Darcy problem, under a small training budget (10k steps), DeepOSets attained lower error at every context size with 19% of the parameters, while with an extended budget (100k steps), ICON attains 26-41% lower error, but at the cost of roughly 218$\times$ more training time, 12$\times$ higher inference latency, and 5.3$\times$ more parameters.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces DeepOSets, a simple permutation-invariant architecture for in-context multi-operator learning, together with a universality result and experiments on several forward and inverse PDE problems. The reviewers recognized the importance of the problem, the clarity of the formulation, and the potential efficiency advantages of the architecture. The empirical performance of DeepOSets across multiple operator-learning benchmarks is good, demonstrating encouraging zero-shot extrapolation as the context size increases.
Final justification
The rebuttal substantially strengthened the empirical evaluation. The authors added comparisons with ICON, prompt ablations, a nearest-neighbor baseline, a training set size ablation, and clarifications of the data splits and error bars. These additions address the main empirical concerns by reviewers . The ICON comparison reveals a meaningful accuracy–efficiency tradeoff: ICON achieves better accuracy with extended training, while DeepOSets is substantially more computationally efficient.
The main remaining limitation is that the theory is an existence result requiring sufficiently dense context and does not quantitatively explain the observed few-context performance. The authors have also proposed corrections to the partition-of-unity and continuity arguments, which should be incorporated carefully into the final manuscript. With these qualifications, I find that the rebuttal have addressed the major concerns and recommend acceptance.
Read meta-review
Meta-review
The paper introduces DeepOSets, a simple permutation-invariant architecture for in-context multi-operator learning, together with a universality result and experiments on several forward and inverse PDE problems. The reviewers recognized the importance of the problem, the clarity of the formulation, and the potential efficiency advantages of the architecture. The empirical performance of DeepOSets across multiple operator-learning benchmarks is good, demonstrating encouraging zero-shot extrapolation as the context size increases.
Final justification
The rebuttal substantially strengthened the empirical evaluation. The authors added comparisons with ICON, prompt ablations, a nearest-neighbor baseline, a training set size ablation, and clarifications of the data splits and error bars. These additions address the main empirical concerns by reviewers . The ICON comparison reveals a meaningful accuracy–efficiency tradeoff: ICON achieves better accuracy with extended training, while DeepOSets is substantially more computationally efficient.
The main remaining limitation is that the theory is an existence result requiring sufficiently dense context and does not quantitatively explain the observed few-context performance. The authors have also proposed corrections to the partition-of-unity and continuity arguments, which should be incorporated carefully into the final manuscript. With these qualifications, I find that the rebuttal have addressed the major concerns and recommend acceptance.
2 comments
Response to Meta Review
Dear Area Chair,
We thank you for the constructive meta review. All four prioritized concerns raised have been addressed in our rebuttal and will be incorporated into the revised manuscript. We believe that all concerns expressed by the Reviewers have been resolved. Reviewers nm85 and a3ZG have raised their scores. We respectfully would like to request the Area Chair's favorable consideration of our paper.
We summarize each point below.
Q1. Theory-to-Model Gap and Density Assumptions
Q1a. Theorem 5.1 is an existence theorem analogous to classical universal approximation results for MLPs and DeepONets. It establishes representational capacity, not tight sample-complexity bounds. In practice, the operator families considered (Burgers', Darcy flow) lie on low-dimensional smooth manifolds in V = C(K₁), so the effective covering number is small, explaining why N = 3–20 context examples suffice empirically. Deriving quantitative bounds as a function of m is identified as an important direction for future work and will be discussed in the revision.
Q1b. We identified and corrected a presentation error in the proof. (1) Line 497: the separated subset should be 3δ-separated, not 2δ-separated. (2) The partition of unity {φⱼ} should be subordinate to the open covering { B(ũⱼ, 3δ) \ ∪_{i≠j} B̄(ũᵢ, δ) }, which is open and valid since the closed balls B̄(ũᵢ, δ) are disjoint by 3δ-separation. (3) Global continuity of ρ is obtained by extending ξ via the Tietze extension theorem on the set where the denominator may vanish; this does not affect any valid (δ, C)-discretization input, where the denominator is bounded below by 1/(Ct) > 0. These corrections will be incorporated in the revision.
Q2. Empirical Baselines and Context-Mechanism Ablations
As requested by Reviewers nm85 and a3ZG, we conducted a controlled DeepOSets vs. ICON benchmark on 1D Poisson (using ICON's public code). At equal training steps (10k), DeepOSets trains 182× faster (42.5 s vs. 7,746 s), achieves 12× lower inference latency (0.67 ms vs. 8.04 ms), uses only 19% of ICON's parameters, and attains lower test error across all context sizes. When ICON is given 10× more training steps (100k), it achieves lower test error at the cost of ~218× greater wall-clock training time. Crucially, this extended benchmark was limited to n = 1–5 context examples, the regime most favorable to ICON's token-sequence architecture. DeepOSets is specifically designed to leverage larger context: as shown in Figure 3 of the paper, its error continues to decrease as context size grows well beyond the training distribution — zero-shot extrapolation that was not evaluated for ICON. Under a fixed compute budget, DeepOSets provides a practical and scalable in-context operator learning solution.
For the nearest-neighbor (NN) baseline requested by Reviewer a3ZG on 1D Darcy (training-set-size ablation, K = 100–4,500 operators): DeepOSets achieves 7–9× lower error than NN at every K, and NN error does not decrease as K grows, confirming the task is not reducible to retrieval.
Prompt ablations (Burgers', 1D/2D Darcy) requested by Reviewers nm85 and a3ZG: (i) zeroed context degrades to the dataset mean (ℓ₂ ≈ 0.45–0.62); (ii) mismatched context causes the model to output solutions for the wrong operator; (iii) permuted context yields identical predictions (noise < 10⁻⁷), validating exact permutation invariance.
Q3. Data Splits and Evaluation Protocols
The split is strictly at the operator level: held-out operators are never seen during training, so test metrics reflect zero-shot in-context generalization. The shading in Figures 2–3 represents one standard deviation across 100 held-out test operators. Both points will be clarified explicitly in the revised Sections 6.1–6.2 and Appendix B.
Q4. Notation and Presentation
- All finite-dimensional vector norms were corrected to ℓ₂;
- typo
u ∈ K→u ∈ Vwas fixed; - Figure 2 was regenerated with larger fonts;
- Theorem 5.1 was reformulated with explicit uniform supremum .
Sincerely,
The Authors
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on in-context learning for operator learning, which is a exciting topic in the field of scientific machine learning with many recent contributions such as ICON or other transformer-based foundation models for operator learning. The authors introduce an architecture called DeepOSet, which is inspired by DeepONet, and consists of an encoder that takes in in-context example (typically 40 samples), and feed an encoded "in-context" representation to a branch network of a standard DeepONet architecture. Then, the authors show universality of the proposed architecture by showing that there exists a choice of parameters such that the proposed architecture can approximate any operator within a compact set, provided that the in-context examples are sufficiently rich. Finally, the authors present some numerical experiments on a 1D Burgers' equation and a 2D Darcy flow problem with varying coefficients, along with a collection of 1D ODEs.
Strengths and weaknesses
Strengths
- The paper addresses an important problem in operator learning, which is designing neural operators that can perform transfer learning by learning using in-context examples.
- The paper is relatively well-written and the approach proposed is clear and easy to understand, with interesting mathematical formulation of in-context learning in connection with approximation theory.
Weaknesses
- As usual with universal approximation results, the proof of universality is not constructive and does not provide any guidance on how to choose the parameters of the architecture in practice. I am wondering whether the approach could be made more practical by exploiting Yarotsky's results on the approximation of smooth functions by ReLU networks, similarly to some of the papers by Samuel Lanthaler on approximation of operators by DeepONets / FNOs.
- Line 181, the condition of density of the examples seen is quite unrealistic in practice given the finite number of examples observed while the space of functions is infinite-dimensional. I am wondering whether the authors could relax this condition and provide a more practical guarantee of universality that can be checked in practice, for example looking at the coverage of the in-context examples in the function space.
- On the architecture side, the proposed architecture is very similar to the one proposed in the ICON paper, and it is not clear what are the advantages of the proposed architecture over the ICON architecture, or other foundation models. I would suggest to provide a more detailed comparison with the ICON architecture.
- Besides the theoretical results, a major weakness of the paper is that the numerical experiments are not very convincing. For section 6.1-6.2, one could simply approximate the operator (\nu,u_0) -> u(\cdot,1), which is standard in operator learning, and compare the performance of DeepOSet with other operator learning architectures such as DeepONet, FNO, or the ICON architecture, I am not sure what the advantage of the proposed architecture is over these other architectures. None of the experiments in Section 6 are compared with other in-context learning architectures, so it is nearly impossible to assess the performance of the proposed method. Moreover, the network is trained over an insanely large number of data: 200k parameters x 40 examples x 1000 time steps for simple 1D Burger / 2D Darcy flow. I am not sure whether in-context is providing any advantage over just doing a covering of the input space by the training data and selecting the closest example to the test input. I would suggest to provide a more convincing numerical experiment that shows the advantage of in-context learning over standard operator learning architectures, with realistic amount of training data.
Minor Comments
- Line 122, I'm not sure why it is needed to specify of "some Euclidean space" given that it is clear which one it is from the subset inclusion. I would suggest to remove this phrase.
- Theorem 5.1 would be much clearer if the authors could reformulate it as , to highlight that the supremum is taken over all operators and all functions in the compact set .
Questions
- See the questions in the weaknesses section above regarding the practicality of the universality result, and the numerical experiments.
Limitations
Yes
Final justification
The authors addressed my concern regarding the experimental setup.
Formatting concerns
N/A
7 comments
Rebuttal
Response to Reviewer
Thank you for the detailed review and constructive feedback regarding our work. Below, we address each point in detail.
1. Practicality & Constructiveness of Universality Results
Reviewer Comment: As usual with universal approximation results, the proof of universality is not constructive and does not provide any guidance on how to choose the parameters of the architecture in practice. I am wondering whether the approach could be made more practical by exploiting Yarotsky's results on the approximation of smooth functions by ReLU networks, similarly to some of the papers by Samuel Lanthaler on approximation of operators by DeepONets / FNOs.
- Quantitative Bounds & Constructive Approximations: In this work, our goal was to establish the foundational existence theorem (Theorem 5.1) for in-context multi-operator learning. Extending this framework to quantitative error bounds—such as leveraging Yarotsky's ReLU approximation results or quantitative rates following Lanthaler et al. in terms of operator smoothness and latent dimensions—is an excellent direction for future work. We will add a discussion in Section 5 explicitly pointing to these quantitative rates as a key next step.
Reviewer Comment: Line 181, the condition of density of the examples seen is quite unrealistic in practice given the finite number of examples observed while the space of functions is infinite-dimensional. I am wondering whether the authors could relax this condition and provide a more practical guarantee of universality that can be checked in practice, for example looking at the coverage of the in-context examples in the function space.
-
This is a good point. Let us remark that the required in the covering condition depends upon the particular compact class of operators that is being considered. In addition, the size of such a -covering depends upon the compact set of input functions to the operator. In problems of practical interest it is possible that such a covering need not be too large if these sets are not too complicated. This explains why the method still obtains good performance on a variety of problems with only a moderately sized context. This is analogous to the case of operator learning, where results for general Lipschitz operators result in very pessimistic bounds, but for specific problems of interest much better bounds can be obtained. Investigating quantitative bounds for particular problems of interest is an important further research direction. We will add discussion of this point to the revised version of the paper.
-
Let us first remark that a -discretization is only a bit stronger than a covering set. We also need some minor uniformity of the examples. In particular, suppose that we have a method for (as the reviewer states) 'looking at the coverage of the in-context examples in the function space.' We take this to mean that such a method could count the number of in-context examples in every ball around functions in the model class , and tell us what the maximum and minimum of these numbers are. In fact, this is sufficient to verify the -discretization property. Although, in all but the simplest problems, such a method is unlikely to exist. Practically, one may be forced to use cross-validation on the number of randomly chosen in-context examples except in special cases. We will add a remark about checking the -discretization to the revision.
2. Architectural Comparison with ICON and Foundation Models
Reviewer Comment: The proposed architecture is very similar to ICON. What are its clear advantages over ICON/transformers?
While both frameworks tackle in-context multi-operator learning, DeepOSets is a completely different architecture than ICON. ICON is based upon a transformer model/GPT-style architecture, while DeepOSets is based upon the Deep Sets architecture. DeepOSets has two main theoretical advantages over ICON. First, in our work the in-context multi-operator learning problem is rigorously formalized as learning a compact class of operators. In ICON, the architecture and methodology are introduced without clarifying precisely what mathematical problem ICON is trying to solve. Second, DeepOSets is universal for the in-context multi-operator learning problem. ICON might also be universal for this task, but this has not been established to the best of our knowledge. DeepOSets also exhibits fundamental structural and computational advantages over Transformer/GPT-style architectures like ICON:
- Computational Complexity: ICON relies on decoder transformers with self-attention, leading to quadratic complexity with respect to prompt context length . DeepOSets uses a DeepSets encoder, achieving linear complexity in context length.
- Mesh-Free Evaluation & Inference Efficiency: When evaluating new query points , attention-based models like ICON require processing or caching sequence attention matrices. In contrast, DeepOSets pools context pairs into a latent representation once; evaluating at arbitrary continuous coordinates requires only a single pass through a lightweight DeepONet decoder.
- Parameter Count: We note that DeepOSets has significantly fewer parameters than the ICON architecture: ~2 million for DeepOSets vs ~15.8 million for ICON.
We will update Section 2 (Related Work) with a structured comparison table highlighting these differences across complexity, efficiency, and parameter count.
3. Significance of Numerical Experiments & Baselines
Reviewer Comment: Numerical experiments are not convincing. No comparison against other architectures (ICON, FNO, DeepONet). Training uses an unrealistically high volume of data. Is ICL better than nearest-neighbor retrieval?
-
Comparison with Operator Learning: We agree that if one knew the diffusion coefficient (or ), then one could apply standard operator learning to learn the solution operator as a function of or . The whole point of our approach is that the diffusion coefficient is not known. The diffusion coefficient is never passed to the network, neither during training nor testing. Instead, the network is presented with input/output pairs from the solution operator, and must infer the solution operator from this data. This is different from traditional operator learning, where a single operator is learned. Consequently, we do not test against DeepONet or FNO, since these architectures solve a fundamentally different problem.
-
Comparison with ICON: DeepOSets is extremely lightweight (~2M parameters) and trains in just 38 minutes on a single mid-range consumer GPU (Nvidia RTX 4060 Ti)—in contrast to transformer foundation models requiring tens of GPU-hours. Despite this, inspecting the results from Fig. 9 in the ICON paper with the results in Figure 3 of our paper, we see that the performance on multiple PDEs is comparable. (Note that we have reported absolute error while ICON reports relative error, nonetheless when correcting for this the results are comparable. This is also not entirely fair since both models were not trained on exactly the same set of differential equations. Nonetheless, it does provide a reasonable comparison.) We will update the revised version with relative errors and give a more detailed comparison with ICON. Also, note that the 1d and 2d Darcy problems on which we have trained DeepOSets in 6.2.1 and 6.2.2 involve classes of operators which are parameterized by 1d and 2d functions, instead of just 3-4 parameters. Thus, these problems are much more difficult than the problems considered by ICON.
-
Training Dataset Size Let us emphasize again that we are not learning a single operator. For example, for the 2d Darcy problem, we are learning the solution operators for all possible diffusion coefficients simultaneously. In particular, we are learning an infinite number of solution operators parameterized by an infinite dimensional function space (the diffusion coefficient) simultaneously. Consequently, the problem is extremely difficult and this is why the large amount of training data, context size, and discretization are necessary. We will add remarks explaining this point in detail in the revision.
-
Comparison with Retrieval / Nearest-Neighbor: A simple nearest-neighbor lookup could only be applied to the in-context prompt (ranging in size from to ), since these are the only examples at which the desired operator is applied. In particular, the nearest-neighbor lookup can not be applied to the training data. This is because the training data consists of many different operators applied to many different functions. Again, we emphasize that we are not learning a single operator. If we were, then nearest neighbor search could in principle be applied to such a large training dataset. However, we are solving a completely different, and much more difficult, problem. In the revision, we will add ablation experiments using a nearest neighbor lookup on the in-context prompt, which performs much worse.
4. Minor Comments & Presentation Improvements
- Line 122 ("of some Euclidean space"): We will remove this redundant phrasing as suggested.
- Theorem 5.1 Formulation: We will rephrase Theorem 5.1 to highlight the uniform supremum bound over operators , input functions , and evaluation points :
We hope that our clarifications have adequately addressed your concerns. We would be grateful if you consider whether they warrant a revision of your score. We welcome any follow-up questions that you might have.
Comparison of DeepOSets and ICON
Following the suggestion of the reviewer, we have carried out a controlled benchmark of DeepOSets and ICON on a 1D Poisson boundary-value problem. Both methods are implemented in PyTorch. The ICON implementation was based on the code provided by the ICON authors on their github repository. We compared accuracy, training speed, inference speed, and parameter count. The results can be summarized as follows.
Accuracy: DeepOSets outperforms ICON across all context sizes at 10,000 training steps. ICON requires substantially more training steps to converge given its much larger sequence length and parameter count.
Training speed: DeepOSets trains ~182× faster (42.5s vs 7,746s) for the same number of steps, because each DeepOSets step processes a short fixed-size input, while ICON processes an 850-token sequence through 6 Transformer layers.
Inference speed: DeepOSets is ~12× faster at inference (0.67ms vs 8.04ms). The batched branch-trunk dot product over points is highly efficient, while ICON's Transformer must process the full 850-token sequence even for a single sample.
Parameter efficiency: DeepOSets achieves better accuracy with only 19% of ICON's parameters at this training budget.
This benchmark study will be expanded and included in the revised version of the paper. Details of the benchmark follows.
Dataset Generation
The dataset is generated synthetically using finite differences and Gaussian process priors.
| Setting | Value |
|---|---|
| Grid points | 50 (interior) |
| Total operators | 5,000 |
| Pairs per operator | 40 |
| Train / test split | 90% / 10% |
| Random seed | 42 |
Diffusivity : sampled as where with , on the full grid (52 points including boundaries).
Source term : sampled from with , on the 50 interior points.
Solution : computed via Thomas algorithm (tridiagonal finite difference) for each pair.
Model Architectures
DeepOSets
Forward pass for a query given context pairs :
All sub-networks are 4-hidden-layer MLPs with ReLU activations.
| Component | Input dim | Output dim | Hidden layers |
|---|---|---|---|
| (set encoder) | 256 | ||
| branch | 256 | ||
| trunk | 1 | 256 |
ICON
Context pairs and the query are serialized into a token sequence and processed by a Transformer encoder. The output is read from the final tokens.
Sequence structure For context pairs, grid points each, the total sequence length is tokens (at ).
Each token is a 2D vector projected to model dimension via a linear layer. A learned positional embedding (indexed by role: , , placeholder, or query) is added.
| Hyperparameter | Value |
|---|---|
| Model dimension | 256 |
| Transformer layers | 6 |
| Attention heads | 8 |
| FFN widening factor | 4 |
| Activation | GELU |
| Normalization | Pre-norm (LayerNorm) |
| Sequence length | 850 |
Training Setup
Both models are trained in isolated subprocesses to ensure fair GPU memory separation. The experiments are performed with NVIDIA RTX A2000:
| Setting | DeepOSets | ICON |
|---|---|---|
| Optimizer | Adam | Adam |
| Learning rate | 1e-4 | 1e-4 |
| Batch size | 5 | 32 |
| Training steps | 10,000 | 10,000 |
| Loss | MSE | MSE |
At each training step, a random operator index and a random permutation of its pairs are drawn. The first pairs form the context; one additional pair is the query.
Evaluation Protocol
Evaluation is performed over 100 random test samples for a number of context examples .
Metric: Relative error:
Inference timing: Each forward pass is timed individually with torch.cuda.synchronize() before and after to obtain accurate GPU wall-clock time. The reported value is the mean over all 500 timed calls (100 per level).
Results
Summary
| Metric | DeepOSets | ICON |
|---|---|---|
| Trainable parameters | 894,465 | 4,744,193 |
| Training time (s) | 42.5 | 7,746.2 |
| Training steps completed | 10,000 | 10,000 |
| Inference time / sample (ms) | 0.670 | 8.042 |
Accuracy: Relative L2 Error by Number of Context Pairs
| DeepOSets | ICON | |
|---|---|---|
| 1 | 0.2831 | 0.7913 |
| 2 | 0.2085 | 0.8056 |
| 3 | 0.1881 | 0.6299 |
| 4 | 0.1740 | 0.6843 |
| 5 | 0.1459 | 0.7058 |
Response to rebuttal
I thank the authors for the detailed response and the experimental comparison with ICON.
- On the theoretical side, there is still a disconnect between the theory and the actual implementation / guidance for the users. I appreciate that this may be difficult to resolve and may be explored further in future work, though it remains one of the weaknesses of the paper.
- On the experimental side, the comparison with ICON is helpful. However, my concern regarding the size of the training dataset remains. As your network utilises all of the training data during training (though in-context examples are processed one at a time), one should be able to perform ablation study on the entire dataset. My main concern is that the task performed becomes trivial with the amount of data provided as training. I am currently unsure that the method proposed by the authors perform better than simply doing a nearest neighbor algorithm, which given the n in-context examples, look up for one corresponding nearest neighbor example in the training dataset and outputs the corresponding solution. A simple experiment on the 1D Darcy flow example in the paper would address this and lead me to revise my score.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on the topic of multi-operator learning (inspired from in-context learning in LLMs). This work discusses the problem in detail and proposes the DeepOSets architecture for multi-operator learning and prove its universality.
In in-context learning (ICL), a model is able to learn new tasks without additional fine-tuning. In operator learning, this translates to multi-operator learning where a model learns a whole class of operators simultaneously. Then, given a new input function, this model should be able to identify the correct operator from it's given set of learned operators to use. The DeepOSet architecture has a Deep Set encoder module and a DeepONet decoder module. The encoder module encodes the parameter and solution function pairs. The decoder module functions as a standard DeepONet.
Strengths and weaknesses
Strengths:
-
The authors provide the first universal approximation theorem for multi-operator learning.
-
The description of the method is clear and a diverse class of forward and inverse problems and PDEs is studied to test the proposed method.
-
The DeepOSet model is permutation invariant and flexible regarding the number of input examples. This was key in showing that the model is indeed doing in-context learning, and not just overfitting the training dataset.
Weaknesses:
- I would like to see a short discussion surrounding what the universality constraint requires for examples of classes of operators not included in this work. For example, spacetime operators; mapping from an initial condition of a PDE to solutions at multiple later timesteps. Another example would be solution operators that have conservation laws associated with them; solutions of the Navier-Stokes PDEs. Such a discussion would be helpful for readers to understand how to extend DeepOSets in the future.
Questions
N/A
Limitations
N/A
Formatting concerns
-
In several places, "L_2" is used instead of "l_2". Since these errors are vector norms and not function norms, I believe "l_2" should be used.
-
Title and axis label/tick fontsize should be increased in Figure 2 for clarity.
3 comments
Rebuttal
Response to Reviewer
Thank you for the positive evaluation. We address your suggestions in detail and outline the additions for the revised draft.
1. Extension of Universality to Spatiotemporal & Constrained Operators
Reviewer Comment: I would like to see a short discussion surrounding what the universality constraint requires for examples of classes of operators not included in this work (e.g., spacetime operators, operators with conservation laws like Navier-Stokes).
Thank you for this insightful suggestion. Theorem 5.1 is formulated for continuous operators between Banach spaces and , where and are compact sets. In the final draft, we will add a dedicated discussion in Section 5 outlining how our theoretical guarantees extend to these important operator classes:
- Spatiotemporal Operators: For operators mapping an initial condition to a trajectory , the domain remains a compact subset of . As long as the operator class remains compact under the supremum norm on , Theorem 5.1 holds directly. Architecturally, this requires expanding the input to the trunk network to include time coordinates alongside spatial coordinates .
- Conservation Laws & Physical Constraints (e.g., Navier-Stokes): When learning solution operators constrained by physical laws (e.g., mass conservation or divergence-free conditions ), two aspects arise:
- Theoretical Universality: Compact subsets of constrained spaces (e.g., solenoidal vector fields) inherit the topology of . Hence, DeepOSets retains universal approximation capability over compact sets of physics-constrained operators without architectural modification.
- Architectural Integration: To enforce constraints strictly, the DeepONet decoder can be equipped with structure-preserving output heads (e.g., taking the curl of a stream function network to guarantee divergence-free outputs) or trained via physics-informed residual losses.
We will add a discussion detailing these requirements and extensions to guide future applications of DeepOSets to high-dimensional fluid dynamics and spatiotemporal PDEs.
2. Notation and Visual Clarity Improvements
Reviewer Comment: Correct to for vector norms. Increase title, axis label, and tick font sizes in Figure 2.
- Vector Norm Notation: Thank you for catching this typographical error. We will replace all occurrences of with when referring to finite-dimensional vector norms to maintain strict mathematical distinction from the continuous function space norm.
- Figure 2 Font Sizes: We will regenerate Figure 2 with significantly larger font sizes for titles, axis labels, and tick labels to ensure maximum legibility in print and on screen.
We hope that our responses have adequately addressed your concerns and welcome any follow-up questions that you might have.
I appreciate the clarifying response from the authors, thank you.
Thanks for your reply. Please let us know if there is anything else we can clarify. We have carried out a benchmark comparison between DeepOSets and ICON, the results of which we added as a comment elsewhere on this page. Please let us know if you cannot see it.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies in-context multi-operator learning. The goal is to learn a compact class of operators and use prompt examples to identify the desired operator at inference time. The authors propose DeepOSets, which combines a DeepSets encoder for unordered prompt examples with a DeepONet decoder for query evaluation. The paper also proves a universality theorem for DeepOSets and evaluates the method on Burgers’ equation, Darcy flow, and several forward and inverse differential equation operators.
Strengths and weaknesses
Strengths
- The paper gives a clear mathematical formulation of the problem, including the operator class, prompt examples, query input, and evaluation point. The proposed architecture is also simple and natural for the task.
- The universality theorem is a clear theoretical contribution and provides a formal approximation result for the proposed DeepOSets architecture.
- The experiments cover representative operator classes.
Weaknesses
- W1. Theorem 5.1 assumes that the prompt examples form a -discretization of the whole compact input space . The authors also note in Remark 5.2 that such a discretization may be very large. However, the experiments emphasize performance with only a few in-context examples. Thus, the theorem is an existence result in a dense-prompt regime, but it does not directly explain the few-context behavior shown in the experiments.
- W2. In Appendix A, the proof uses a partition of unity and states that whenever . This property does not follow directly from a general partition of unity subordinate to the balls . The proof also defines using divisions by pooled weights; the denominator is shown to be positive only on valid -discretizations. More explanation is needed for why is a continuous function on the Euclidean input space required by Theorem 5.1.
- W3. The authors do not compare DeepOSets with other operator learning methods or PINNs, arguing that the goal is different. This is understandable, but the empirical evidence is not strong enough without baselines that test the in-context mechanism itself. For example, no-context, shuffled-context, or mismatched-context ablations would help show whether the model actually uses the prompt examples to disambiguate the operator.
- W4. Some experimental details are unclear. For Burgers and Darcy, the paper samples many operators and then uses a train/test split, but it is not fully explicit whether the split is at the operator level or at the input-output pair level. The figures also show one-standard-deviation shading, but the appendix does not clearly state whether this is over test operators, random seeds, or independent training runs. This makes the empirical results harder to interpret.
Questions
- (W1) Can the authors clarify how the -discretization assumption in Theorem 5.1 should be interpreted in the few-context experiments? Does the theory give any guidance on how many in-context examples are needed in practice?
- (W2) Can the authors provide an explicit construction of the partition of unity used in Appendix A, especially the property ? Can the authors also clarify how is defined as a continuous function on Euclidean input space when the normalization denominator may vanish outside valid -discretization?
- (W3) Can the authors add simple prompt ablations, such as no-context, shuffled-context, or mismatched-context prompts, to verify that DeepOSets actually uses the in-context examples to disambiguate the operator?
- (W4) Can the authors clarify the train/test split for Burgers and Darcy? Can the authors also clarify what the one-standard-deviation shading is computed over?
- (Typo) Line 491 writes the input function as , but is the operator class and this seems to mean .
Limitations
Yes.
Final justification
The authors clarified the role of the -discretization assumption, provided a plan to fix the proof details, added ICON comparisons and prompt ablations, and clarified the operator-level train/test split and error bars. I still think the theory remains mostly an existence result rather than a quantitative few-context analysis, but the response substantially improves the paper. I am willing to raise my rating to 4.
Formatting concerns
None.
6 comments
Rebuttal
Author Response to Reviewer
We thank the reviewer for their careful reading, thoughtful feedback, and constructive suggestions. Below, we address each point and question in detail.
Response to W1 / Question (W1): Interpretation of -discretization in Few-Context Experiments
Reviewer's Point: Theorem 5.1 assumes prompt examples form a -discretization, which can be large, whereas experiments focus on few-context behavior. How should this be interpreted, and does theory guide sample complexity in practice?
- Theoretical vs. Practical Regimes: As noted in Remark 5.2, Theorem 5.1 is a fundamental universality/existence theorem establishing that DeepOSets possesses sufficient representation capacity to approximate any compact operator class to arbitrary precision when provided adequate coverage of . Like classic universal approximation theorems for MLPs or single-operator DeepONets (which require worst-case grid densities or network widths), our theorem establishes the theoretical validity of the paradigm rather than tight non-asymptotic sample complexity bounds. Determining such non-asymptotic complexity bounds is an important line of further research. We remark that even a precise mathematical formulation of the in-context multi-operator learning problem (let alone the universal approximation result) is a significant novel contribution of the paper.
- Why Few-Context Works in Practice: Real-world parametric operator families (such as Burgers' with varying viscosity or Darcy flow with smooth diffusivity ) lie on low-dimensional, smooth parameter manifolds embedded within the infinite-dimensional function space . Consequently, in practice, the effective dimensionality of the operator set is small, allowing the DeepOSets encoder to resolve/disambiguate the operator using only a handful of context samples ( to ).
- Theoretical Guidance: While Theorem 5.1 does not prescribe an exact bound on context size for any particular problem, it does show that a sufficiently large context size can always give an arbitrarily small error. We will add a discussion in the revised paper acknowledging that establishing quantitative rate-of-approximation bounds as a function of context size is a critical direction for future theoretical work.
Response to W2 / Question (W2): Proof Details in Appendix A (Partition of Unity & Continuity)
Reviewer's Point: Clarification needed regarding property (23) for the partition of unity, and why is continuous on Euclidean input space when the normalization denominator could vanish.
- We thank the reader for their careful reading of the proof, and for pointing out this issue. We had indeed been a bit careless and made a minor mistake in the presentation. First, there is a typo on line 497. The should be a maximal -separated subset of . Second, the partition of unity should be taken with respect to the open covering
We verify that each of these sets is open since the set removed is a finite union of closed sets. It is also a covering since the closed balls are disjoint by construction. Via a standard construction there exists a partition of unity subordinate to this cover, which now satisfies equations (23) and (24) (with replaced by ). The remainder of the proof is the same. In order to make continuous on all of Euclidean space we simply redefine the function on the set where for some (using say the Tietze extension theorem). This will not affect the value of the network on any valid inputs (by the argument at the end of the proof giving a lower bound on the denominator for any -discretization), and allows us to ensure global continuity of . We apologize for the lack of clarity. We will fix these issues, and indeed rewrite the proof to make it easier to understand and digest, in a revised version of the manuscript.
Response to W3 / Question (W3): Prompt Ablation Experiments
Reviewer's Point: Add prompt ablations (no-context, shuffled-context, mismatched-context) to verify the model actually uses prompt examples to disambiguate the operator.
We agree that prompt ablations are essential to demonstrate that the model actively uses the context. Per your suggestion, we performed prompt ablation evaluations across our benchmark tasks (Burgers', 1D Darcy, and 2D Darcy).
- No-Context (Zeroed Context Embeddings): Passing zero vectors instead of prompt embeddings causes the model performance to degrade sharply to the spatial mean of all dataset solutions, yielding high relative errors ().
- Mismatched / Corrupted Context: When prompt pairs from Operator 1 are provided, but the query function is evaluated under Operator 2, the model outputs solutions corresponding to Operator 1. This confirms that the prompt context successfully controls the operator selection.
- Shuffled Context: Permuting the order of context pairs yields identical predictions (up to machine precision numerical noise ). This validates that the DeepSets encoder's permutation invariance inductive bias functions exactly as intended. We assumed here that the reviewer meant to permute all of the input-output pairs together. The DeepSets architecture is designed to be exactly invariant to this symmetry. In case the reviewer meant to permute the operator outputs while keeping the in the same order (so that now each input is paired with the wrong output), we have also performed this experiment. Predictably, the model predictions are now much worse.
We will include a comprehensive summary table of these ablation experiments in the final revision.
Response to W4 / Question (W4): Clarification of Experimental Details
Reviewer's Point: Clarify train/test splits (operator-level vs. pair-level) and what the one-standard-deviation shading in figures represents.
- Train/Test Split Level: The split is strictly at the operator level. For Burgers' and Darcy flow, we generate a dataset of distinct operators ( or parameters). % of the operators are used for training, and the remaining % of the operators are completely unseen during training. Test evaluations measure the model's zero-shot in-context adaptation performance on these unseen test operators.
- Standard Deviation Shading: The red/shaded regions in Figures 2 and 3 represent one standard deviation computed across the test dataset of 100 randomly sampled held-out test operators (evaluating operator-to-operator performance variation). We will clarify both points explicitly in Sections 6.1–6.2 and Appendix B.
Response to Typo: Line 491
Reviewer's Point: Line 491 writes input function as , but it should be .
Thank you for catching this typo. We have corrected Line 491 to state .
We hope that our responses have adequately addressed your concerns. We respectfully ask you to consider whether they warrant a revision of your score. We welcome any follow-up questions that you might have.
Comparison of DeepOSets and ICON
To address the lack of comparison with other multi-operator learning methods, we have carried out a controlled benchmark of DeepOSets and ICON on a 1D Poisson boundary-value problem. Both methods are implemented in PyTorch. The ICON implementation was based on the code provided by the ICON authors on their github repository. We compared accuracy, training speed, inference speed, and parameter count. The results can be summarized as follows.
Accuracy: DeepOSets outperforms ICON across all context sizes at 10,000 training steps. ICON requires substantially more training steps to converge given its much larger sequence length and parameter count.
Training speed: DeepOSets trains ~182× faster (42.5s vs 7,746s) for the same number of steps, because each DeepOSets step processes a short fixed-size input, while ICON processes an 850-token sequence through 6 Transformer layers.
Inference speed: DeepOSets is ~12× faster at inference (0.67ms vs 8.04ms). The batched branch-trunk dot product over points is highly efficient, while ICON's Transformer must process the full 850-token sequence even for a single sample.
Parameter efficiency: DeepOSets achieves better accuracy with only 19% of ICON's parameters at this training budget.
This benchmark study will be expanded and included in the revised version of the paper. Details of the benchmark follows.
Dataset Generation
The dataset is generated synthetically using finite differences and Gaussian process priors.
| Setting | Value |
|---|---|
| Grid points | 50 (interior) |
| Total operators | 5,000 |
| Pairs per operator | 40 |
| Train / test split | 90% / 10% |
| Random seed | 42 |
Diffusivity : sampled as where with , on the full grid (52 points including boundaries).
Source term : sampled from with , on the 50 interior points.
Solution : computed via Thomas algorithm (tridiagonal finite difference) for each pair.
Model Architectures
DeepOSets
Forward pass for a query given context pairs :
All sub-networks are 4-hidden-layer MLPs with ReLU activations.
| Component | Input dim | Output dim | Hidden layers |
|---|---|---|---|
| (set encoder) | 256 | ||
| branch | 256 | ||
| trunk | 1 | 256 |
ICON
Context pairs and the query are serialized into a token sequence and processed by a Transformer encoder. The output is read from the final tokens.
Sequence structure For context pairs, grid points each, the total sequence length is tokens (at ).
Each token is a 2D vector projected to model dimension via a linear layer. A learned positional embedding (indexed by role: , , placeholder, or query) is added.
| Hyperparameter | Value |
|---|---|
| Model dimension | 256 |
| Transformer layers | 6 |
| Attention heads | 8 |
| FFN widening factor | 4 |
| Activation | GELU |
| Normalization | Pre-norm (LayerNorm) |
| Sequence length | 850 |
Training Setup
Both models are trained in isolated subprocesses to ensure fair GPU memory separation. The experiments are performed with NVIDIA RTX A2000:
| Setting | DeepOSets | ICON |
|---|---|---|
| Optimizer | Adam | Adam |
| Learning rate | 1e-4 | 1e-4 |
| Batch size | 5 | 32 |
| Training steps | 10,000 | 10,000 |
| Loss | MSE | MSE |
At each training step, a random operator index and a random permutation of its pairs are drawn. The first pairs form the context; one additional pair is the query.
Evaluation Protocol
Evaluation is performed over 100 random test samples for a number of context examples .
Metric: Relative error:
Inference timing: Each forward pass is timed individually with torch.cuda.synchronize() before and after to obtain accurate GPU wall-clock time. The reported value is the mean over all 500 timed calls (100 per level).
Results
Summary
| Metric | DeepOSets | ICON |
|---|---|---|
| Trainable parameters | 894,465 | 4,744,193 |
| Training time (s) | 42.5 | 7,746.2 |
| Training steps completed | 10,000 | 10,000 |
| Inference time / sample (ms) | 0.670 | 8.042 |
Accuracy: Relative L2 Error by Number of Context Pairs
| DeepOSets | ICON | |
|---|---|---|
| 1 | 0.2831 | 0.7913 |
| 2 | 0.2085 | 0.8056 |
| 3 | 0.1881 | 0.6299 |
| 4 | 0.1740 | 0.6843 |
| 5 | 0.1459 | 0.7058 |
Increasing the Training Data Size in the Comparison of DeepOSets and ICON
For maximum transparency and fairness, we increased the training data size from 10,000 to 100,000, as ICON is a complex architecture based on self-attention. Table 2 reports the number of trainable parameters and the measured training time for each model over the full 100,000-step schedule.
The conclusion of this experiment is that there is a clear trade-off between predictive accuracy and computational cost. ICON achieves lower test error at a cost of roughly two orders of magnitude more training time, an order of magnitude higher inference latency, and roughly 5 times more parameters than DeepOSets. The details of the experiment follow.
Training Cost
As seen in the table, under an equal-step training schedule, ICON required approximately 218 times more wall-clock time to train than DeepOSets. This difference is consistent with ICON's larger parameter count (approximately 5.3 times that of DeepOSets) and with the additional computational cost of self-attention over a token sequence of length 850 at each step, relative to DeepOSets' feed-forward architecture.
Table. Training cost.
| Metric | DeepOSets | ICON |
|---|---|---|
| Trainable parameters | 894,465 | 4,744,193 |
| Training steps completed | 100,000 | 100,000 |
| Total training time | 144.6 sec | 8.74 hours |
| Mean time per step (ms) | 1.446 | 314.78 |
| Training throughput (steps/s) | 691.7 | 3.18 |
Inference Latency
ICON's per-sample inference latency is approximately 12 times higher than that of DeepOSets.
Table. Inference latency per test sample.
| Metric | DeepOSets | ICON |
|---|---|---|
| Inference time / sample (ms) | 0.229 | 2.750 |
Test Error
The table reports the mean relative error on the held-out test set as a function of the number of in-context demonstration pairs (), averaged over 100 sampled queries per condition.
Table. Test relative error by number of context pairs.
| DeepOSets | ICON | |
|---|---|---|
| 1 | 0.2096 | 0.1342 |
| 2 | 0.1180 | 0.0826 |
| 3 | 0.0976 | 0.0589 |
| 4 | 0.0821 | 0.0572 |
| 5 | 0.0819 | 0.0603 |
Under the equal-step training schedule used here, ICON attains a lower mean relative error than DeepOSets at every tested context size, with the relative reduction in error ranging from approximately 26% to 41%.
We will include these results in the revised version of the paper.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We would like to thank the reviewers for their helpful and constructive feedback, which has resulted in a significant improvement to our work. As far as we can tell, we believe that we have addressed the concerns and comments which the reviewers raised. If there are any other issues or questions, we would be happy to address them in the remaining discussion time.
Thank you very much!