potentialpaper

Function graph transformers universally approximate operators between function spaces

Takashi Furuya, S David Mis, Ivan Dokmanić, Maarten V. de Hoop, Matti Lassas

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We study the approximation of nonlinear operators between function spaces by transformers. Our approach is to lift functions to measures supported on their graphs and leverage a recently introduced measure-theoretic view of transformers. A function hh is represented by its graph measure γh\gamma_h, while finite tokens {(xj,h(xj))}j=1N\{(x_j,h(x_j))\}_{j=1}^N provide empirical approximations of this measure. We show that this framework naturally describes discretization refinement through convergence of measures and provides a setting for operator learning. Within this framework, we introduce \emph{function-graph preserving maps}, a structured class of measure maps that send graph measures to graph measures, ensuring that outputs remain single-valued functions. Crucially, this additional structure does not reduce generality: we prove that the resulting function-graph preserving maps can be approximated by finite compositions of standard softmax self-attention layers and pointwise MLPs, yielding universal approximation results for broad classes of nonlinear operators. Unlike existing theoretical approaches to operator learning with transformers, the measure-theoretic framework also accommodates bounded rough inputs in negative-order Sobolev topologies through regularization, for which discretization invariance is particularly challenging, as well as query points on different output domains. Overall, function-graph preserving maps provide a continuum viewpoint and a mathematical toolkit for transformer-based operator learning, clarifying the roles of positional encodings, graph structure, and regularization in ensuring consistency across discretizations.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

In this paper, the authors show theoretical results on the approximation of non-linear operators by transformers. For this, they represent functions by measures supported on their graphs, and leverage recent measure-theoretic view of transformers. In particular, they are able to treat the case of negative Sobolev spaces, which was not done in previous works.

As of now, the reviewers have not identified majors issues with the paper, and generally have a positive view on the contribution, recognizing its novelty and importance. However, they formulate several questions which I encourage the authors to carefully address, as they will greatly help the discussion. In particular, two themes seem to be prevalent:

  • Rates, sample complexity, etc.: it is generally admitted that deriving rates for approximation results is a difficult task, but this maybe deserves more discussion
  • Motivation and relation to prior architectures: some reviewers ask for clarifications as to why the graph framework is necessary, what is the relationship with previous approaches, what is really new/difficult in the negative Sobolev case, and so on.

Of course, other minor questions raised by the reviewers are important as well.

Final justification

Rebuttals provided by the authors brought some clarification and improved an already positive view of the paper. I recommend acceptance.

Area Chair bFhc · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

In this paper, the authors show theoretical results on the approximation of non-linear operators by transformers. For this, they represent functions by measures supported on their graphs, and leverage recent measure-theoretic view of transformers. In particular, they are able to treat the case of negative Sobolev spaces, which was not done in previous works.

As of now, the reviewers have not identified majors issues with the paper, and generally have a positive view on the contribution, recognizing its novelty and importance. However, they formulate several questions which I encourage the authors to carefully address, as they will greatly help the discussion. In particular, two themes seem to be prevalent:

  • Rates, sample complexity, etc.: it is generally admitted that deriving rates for approximation results is a difficult task, but this maybe deserves more discussion
  • Motivation and relation to prior architectures: some reviewers ask for clarifications as to why the graph framework is necessary, what is the relationship with previous approaches, what is really new/difficult in the negative Sobolev case, and so on.

Of course, other minor questions raised by the reviewers are important as well.

Final justification

Rebuttals provided by the authors brought some clarification and improved an already positive view of the paper. I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

Summary response

We thank the reviewers for their careful reading of our manuscript.

We would like to provide pointers to our discussion of the two main themes identified above.

  • Rates, sample complexity, etc. Our primary response is in the bottom half of the discussion with reviewer WVeD. In summary, we see a path for quantitative approximation rates when the target operator AA is Holder-continuous, but not in the fully general case at this time. It would be possible to include a (lengthy) appendix if requested, but our preference remains to leave this for future work. We hope the reviewers agree that the content of the current paper is sufficient to introduce the function graph transformer framework for operator learning.
  • Motivation and relation to prior architectures. Our primary response is under reviewer xQSb, with additional information under vYhq. We include more intuition for why the graph-measure perspective allows for approximation in negative Sobolev spaces in ways that approaches based on function spaces do not, and we plan to include this information in a short appendix.
Reviewer vYhqOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies theoretical foundations of operator learning with the transformer architecture. The approach considered in the paper is to embed functions as (empirical versions of) graph measures, and to utilize the recently-developed approximation framework for measure-theoretic transformers. The authors introduce a sub-class of transformers which are guaranteed to map graph measures to graph measures, and hence can be used for function-to-function operator learning. The authors prove two universal approximation results, one which holds in a uniform sense and applies to any continuous function graph transformer, and one which applies to mappings between spaces of irregular functions and holds in a weaker sense. In the appendix, the authors complement their theoretical results with some numerical demonstrations.

Strengths and weaknesses

Strengths:

  • The paper tackles a very important problem in mathematical/scientific machine learning: as transformers play a prominent role in the development of scientific foundation models, it is paramount to develop rigorous guarantees for their application to scientific tasks, such as operator learning. This paper takes important steps in this endeavor by connecting operator learning to the measure-theoretic interpretation of transformers,
  • The paper is well-written, using precise mathematical notation and providing rigorous proofs of all main results (which are correct to the best of my knowledge, though I have not checked each proof line-by-line).
  • The numerical results nicely complement the theory.
  • The approximation results for irregular function spaces are interesting and relevant to many applications (e.g. solution operator learning for low-regularity PDEs).

Weaknesses:

  • The results are only qualitative, there are no bounds on how large the number of transformer parameters or the number of samples NN need to be to achieve a given approximation error.
  • Although the approximation results for irregular function spaces is one of the main contributions, it is unclear to me whether the graph transformer architecture is particularly important for this. The framework is based on mollifying the non-smooth inputs and then approximating the corresponding map on the mollified space, but it seems like this idea could be applied to other operator learning architectures; please correct me if I am wrong.
Questions

See my weaknesses section.

Other minor questions/comments:

  • Lemma 1: I am confused about the notation in line 153, I thought the map h↦JΓ(h)h \mapsto J_{\Gamma}(h) should be a mapping between function spaces and not measure spaces.
  • Definition 3, just a comment: I do find "function-graph transformer" a confusing name, because it sounds like a subset of the transformer architecture, but it actually refers to any continuous map which preserves graph measures.
  • Line 169: It may be worth remarking that M\mathbf{M} and F\mathbf{F} play a similar role to the encoder and decoder in other operator learning architectures.
  • Line 171: I think MN\mathbf{M}_N is not yet defined.
  • Definition 4: I think the limit should be defined or interpreted in some probabilistic way (e.g. convergence of means or convergence in probability or distribution), otherwise it is not clear in what sense random samples can be regularly distributed.
  • Theorem 1: There seems to be some abuse of notation with LL, it defines both the interval [−L,L]n[-L,L]^n and the depth of the transformer.
  • Theorem 2: Does the order of limits matter?
Limitations

Yes

Final justification

The authors clarified the role of the transformer architecture in handling rough inputs, which was my primary point of confusion; I therefore raised my confidence. The design and analysis of architectures to handle operator learning problems between such spaces is a significant contribution to the sciML community, and thus I maintain my recommendation for acceptance.

Formatting concerns

No formatting concerns noticed.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their particularly through review and suggestions.

Weaknesess

1.) When AA is Hölder-regular, the number of parameters and required samples for given accuracy can be bounded. Please see our responses to reviewers xQSb and WVeD regarding quantitative rates.

2.) Our analysis is specific to transformer architectures; it does not apply to FNOs or DeepONets. In particular, Theorem 1 (and by extension Theorem 2) rely on the approximation results from [1], which are specific to softmax-based attention.

At a high level, it may be possible to adapt our graph-measure viewpoint to analyze other architectures, but it is not clear to us that this would a natural approach. We build on the measure-theoretic in-context/pushforward viewpoint for understanding transformers (see for example [2,3]), but to our knowledge this has not been applied as widely to other architectures, including FNO and DeepONet, which are typically designed and analyzed in terms of function spaces, not measure spaces. Transformers act on (permutation-invariant) sequences of tokens encoding pairs (x,h(x))(x, h(x)); that is, samples from the graph of hh. A key point is that these samples can be from the graph measures of even very rough hh; Theorem 2 shows in precisely what sense this statement is true. Please see our response to xQSb for a further discussion of this point.

We note that our analysis is consistent with Transformer architectures used in practice, such as those mentioned in lines 166--169, and is not limited to the simple positional encoding Φ(x)=x\Phi(x) = x.

Questions

1.) Thank you for pointing out this issue in the statement of Lemma 1 in the main text. The Lipschitz condition on line 153 is referring to (L1) on line 666 of the proof, and the unnamed map should be γh↦JΓ(h)\gamma_h \mapsto J_\Gamma(h). It's domain is

G:={γh:h∈C(Ω‾;[−L,L]n)}⊂P(Ω‾×[−L,L]n)\mathcal G := \{ \gamma_h : h \in C(\overline\Omega ; [-L,L]^n) \} \subset \mathcal{P}(\overline{\Omega} \times [-L, L]^n)

since this map is not defined for the non-graph measures in P(Ω‾×[−L,L]n)\mathcal{P}(\overline{\Omega} \times [-L, L]^n). This is correct in the proof apprendix, but needs to be corrected in the main text.

2.) We indeed overload the term "transformer" to mean both the neural network architecture and the class of maps they compute, in particular G_{\Gamma}(\mu) = \Gamma(\mu, \dot)_# \mu (Furuya 2025). In the sense of maps, function graph transformers are a subset of transformers. To avoid confusion, we will change Definition 3 to "function-graph preserving maps" and use the word "transformer" to refer specifically to the architecture (for example, as it is used in Theorem 1).

3.) We agree with this observation, and will include it near line 169.

4.) Thank you for pointing this out, we will move the definition from line 180 to above its first use on line 171.

5.) Definition 4 was given in deterministic setting to make it possible to consider e.g. regular quadrature grids, but after definition, where we consider points X1,X2,…X_1,X_2,\dots are i.i.d. sampled random, we intended to say that such points are almost surely (a.s.) regularly distributed. The text "a.s." was missing and we will add it in the manuscript.

6.) Thank you for pointing this out, we will change the notation referring to the depth of the transformer in this theorem and its proof.

7.) The order of limits is important, for example if we take first τ→0\tau\to 0, then we can not define the measure MN(h){\bf M}_N(h) because for negative-index Sobolev functions h∈H−sh\in H^{-s}, point values of generalized functions are not well-defined. For example the Dirac's delta distribution δ0\delta_0 does not have a well-defined value at point 00. We will add in the paper a discussion of which of the limits can be exchanged.

References

[1] Takashi Furuya, Maarten V. de Hoop, and Gabriel Peyré. Transformers are universal in-context learners. In The Thirteenth International Conference on Learning Representations, 2025b.

[2] Takashi Furuya, Maarten de Hoop, and Matti Lassas. Transformers through the lens of support-preserving maps between measures, 2025a.

[3] Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. A mathematical perspective on transformers. Bulletin of the American Mathematical Society, 62(3):427–479, 2025.

Reviewer vYhq · CommentOpenReview ↗

I thank the authors for their careful and thorough response. It is now clear to me why the transformer architecture is particularly suited for operator learning between low-regularity functions -- while other architectures such as FNO are designed to operate on functions, transformers natively allow measure-valued input data, and even very rough functions such as elements of H−sH^{-s} can be identified with graph measures. I will maintain my positive score and increase my confidence accordingly.

Reviewer xQSbOpenReview ↗
Rating
3/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a graph-measure view of function/operator learning with transformers. The main idea is to represent a function by its graph measure, apply a measure-theoretic transformer that preserves graph structure, and then reconstruct the output function. The paper then argues that standard softmax attention and MLP layers can approximate these function graph transformers, and extends the framework to rough inputs in negative Sobolev-type spaces.

Strengths and weaknesses

Strengths:

  1. The graph-measure formulation is interesting. It gives a clean way to connect finite tokenized function samples with a continuum object. This is useful because transformers naturally operate on tokens, while neural operators are supposed to act on functions.
  2. The paper also tries to address rough inputs, such as objects in negative Sobolev spaces, which is an important setting. If correct, this would broaden transformer-based operator learning beyond only smooth or pointwise-defined functions.
  3. Another strength is that the paper tries to connect the ideal measure-theoretic construction with standard transformer components such as softmax attention and pointwise MLPs. This makes the theory more relevant to actual transformer architectures.

Weaknesses / concerns:

  1. The relation to in-context learning is not fully clear to me. In-context learning is often understood as a setting where a single model can use examples in the context to infer a task or function and then perform the corresponding mapping. In this paper, Theorem 2 seems to show approximation of a fixed target operator (A), for each input (h), through a limiting pipeline. This is different from showing that one transformer can infer arbitrary operators or tasks from context. I think the paper should more clearly state the scope of the result and how it relates to broader claims about in-context learning.
  2. The motivation for moving to the graph-measure method is not fully convincing in comparison with existing neural operator methods. The paper mentions that positive Sobolev-space cases have already been studied or proved elsewhere, but it is not clear why those methods fail for negative Sobolev inputs, or why the proposed graph-measure approach is necessary. A clearer comparison with previous operator learning frameworks would help.
  3. I am also not fully convinced by the intuition behind the negative Sobolev extension. The argument seems to smooth or regularize the rough input first, work with a smoother object, and then take limits to recover the rough object. Intuitively, after smoothing, the problem looks closer to the positive Sobolev or smooth-function case. So it is not completely clear to me where the genuinely negative Sobolev difficulty is solved. The paper should explain more clearly why this limiting argument is sufficient and not just reducing the problem to a smoother case before passing to the limit.
  4. The approximation result is also mostly qualitative and limit-based. It does not give clear rates, token complexity, depth requirements, or practical guidance about how many tokens/layers are needed. This makes it difficult to understand the practical strength of the result.
Questions
  1. Could the authors clarify the relationship between Theorem 2 and broader claims of in-context learning? My understanding is that Theorem 2 approximates a fixed target operator (A), for each input (h), through a limiting pipeline. This seems different from the usual in-context learning idea, where a single model uses examples in context to infer a task or mapping. In what precise sense is the result here an in-context learning result?
  2. The paper mentions that related approximation results are already known for positive Sobolev-type settings. Could the authors explain why those existing approaches do not extend to negative Sobolev inputs, and why the graph-measure formulation is necessary? A clearer comparison with existing neural operator methods would help.
  3. In the negative Sobolev case, the construction seems to regularize the rough input, work with a smoother object, and then take limits as the regularization is removed. Could the authors give more intuition for why this proves approximation in the genuinely rough setting, rather than mostly reducing the problem to the smoother case and relying on a limiting argument?
Limitations

yes

Formatting concerns

na

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the author for their thoughtful review.

Weaknesses

1--3.) Please see our responses to the Questions below.

4.) It is true that our results are qualitative, and based on limits. As the number of tokens increases, the corresponding discrete measures can be viewed as approximating continuous measures. Analogously to numerical analysis, where high-dimensional Euclidean spaces are often studied through infinite-dimensional Hilbert-space methods, modelling a context window of finitely many tokens may by a continuous distribution may be a reasonable and informative approximation.

Also, please see our response to reviewer WVeD. It is possible to obtain quantitative rates with additional assumptions on the operator AA.

Questions

1.) The reviewer is correct that Theorem 2 approximates a fixed operator AA. The maps Γ\Gamma defining the measure push-forward G_\Gamma(\mu) = \Gamma(\mu, \cdot)_# \mu were named "in-context maps" in [1]. To avoid confusion with in-context learning in which a single network learns a task from input examples without retraining (i.e., in the sense of [2]), we will change the terminology of Γ\Gamma in this paper from "in-context map" to simply "context map". (Indeed, [1] studied in-context learning in the sense of [2]. The terminology was appropriate there but has led to confusion here.)

2.) We are not aware of other approximation results for learned operators between negative-order Sobolev spaces, and there is evidence of obstructions for other (non-Transformer) architectures. For example, in [3] it is shown that the rank of an FNO required to approximate a map Hs→HsH^s \to H^s tends to +∞+\infty as s→0+s \to 0^+, so vanilla FNO should not be expected to approximate operators acting on negative order Sobolev spaces.

We note that inputs in negative-index Sobolev spaces and discontinuous functions are important for applications. Negative-order Sobolev spaces are crucial for modelling point sources in wave imaging, while discontinuous functions naturally arise as material parameter models with jumps. This work is part of a longer-term programme to develop operator-learning methods for imaging applications.

3.) Regarding intuition on the approximation result for negative Sobolev spaces. This is a point brought up by all three reviews, which we will address here. We believe this warrants an additional appendix for the readers in the final version of the paper as well.

We wish to present a mathematically intuitive argument for why function graph transformers allows for the approximation of operators acting on non-smooth input data; in particular we argue that they are better suited to this task than approaches based on the Fourier transform.

The structural reason that our framework accommodates rough inputs, while architectures built on function spaces do not, can be stated through the two Riesz representation theorems. The Fourier neural operator is based on the self-duality of the Fourier transform in L2L^2, which pairs the input against objects of the same regularity class. Likewise, the pointwise channel (implementing pointwise nonlinearities) of FNOs require function values, so a jump or a distribution enters the architecture on the same footing as the smooth objects it is tested against.

In contrast, a transformer lives instead on the Riesz-Kakutani duality M(Y)=C(Y)∗\mathcal M(Y)=C(Y)^{*}: the basic operation in attention is integration of a (learned) continuous function against the (input) token measure, so every access to the input pairs an arbitrarily rough measure with a continuous test function. The attention operation is naturally interpretable as an action on a class of measures (i.e. generalized functions, possibly rough) rather (discretized) functions.

Three consequences follow.

  1. First, the data itself is an element of the model's input space: a finite token set is an empirical measure in P(Y)\mathcal P(Y) and moreover, the discretization refinement yields convergence within in weak star topology, metrized by W1W_1.
  2. Second, by the Banach-Alaoglu theorem the input space P(Y)\mathcal P(Y) is compact in W1W_1. This is why the universality of measure theoretic transformers holds uniformly over the entire input space, and why a global quantitative theory (covering numbers and metric entropy) exists at all, whereas universality results for operator learning on L2L^2 or C(D)C(D) are intrinsically compact subset statements. Indeed, the balls of L2L^2 carry no comparable entropy calculus in any topology in which the layer nonlinearities remain continuous.
  3. Third, at the level of well-posedness, the continuum Fourier neural operator with a nonzero pointwise channel is undefined on H−s(Ω)H^{-s}(\Omega) for s>0s>0, since compositions of functions with distributions are generally not well-defined. If one deletes the pointwise channel in the first layer, the rough input enters only through finitely many Fourier coefficients, which is a sharp cutoff spectral regularization.

In summary, our graph-measure framework, and the associated function grapth transformers, make the rough problem well posed: the duality, the compactness, the closure under weak star limits, and the discretization consistent tokenization are properties of the measure formulation, and it is in these that the limits of Theorem 2, including in the limit of small mollification and regularization, become theorems.

References

[1] Takashi Furuya, Maarten V. de Hoop, and Gabriel Peyré. Transformers are universal in-context learners. In The Thirteenth International Conference on Learning Representations, 2025b.

[2] Brown et al. 2020. Language models are few-shot learners. In Proceedings of the 34th International Conference on Neural Information Processing Systems (NIPS '20). Curran Associates Inc., Red Hook, NY, USA, Article 159, 1877–1901.

[3] Kratsios et al. ``Mixture of Experts Softens the Curse of Dimensionality in Operator Learning''. 2024.

Reviewer WVeDOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper develops a mathematical framework for understanding transformers as universal approximators of nonlinear operators between function spaces. The authors introduce function graph transformers, a subclass of measure-theoretic transformers that preserve the graph structure of functions, thereby ensuring outputs remain single-valued functions. The central innovation is the representation of functions via their graph measures, which are then approximated by empirical measures constructed from finite token sets. The authors prove that graph-preserving measure maps can be approximated in the Wasserstein metric by finite compositions of standard softmax self-attention layers and pointwise MLPs.

Strengths and weaknesses

Strengths:

  1. The paper develops a measure-theoretic framework that resolves discretization invariance in operator learning through graph measures.

  2. It provides a mathematical perspective for transformers acting on functions, advancing neural operator theory.

  3. The framework accommodates different input/output domains, low-regularity inputs via regularization, and discretization consistency.

Weaknesses:

  1. The universal approximation result is purely existential, with no convergence rates, parameter construction guidance, or practical architecture insights.

  2. The operator regularity assumptions are restrictive, excluding many PDE solution operators of practical interest.

  3. The regularization step is computationally demanding, requiring eigenfunction solves and quadratic optimization in high dimensions.

Questions
  1. In (21), you use multi-head attention with H heads. Does the universal approximation proof require multiple heads, or is a single head sufficient?

  2. Assumption (30) on the target operator A seems to be strong. Can the regularity assumptions be relaxed? What is the minimal regularity needed for the universal approximation result?

  3. In terms of discretization invariance, does the theory guarantee that a transformer trained with one discretization will perform well at others without retraining?

  4. How does your framework relate to FNO, DeepONet, or other neural operator architectures? Can these be recovered as special cases?

Limitations

yes

Final justification

I thank the authors for addressing my comments. The results presented in this paper are overall interesting and provide technically sound insights into the combination of Transformers and operator learning--two highly topical areas in scientific machine learning. My only reservation pertains to the practical significance of the work relative to existing neural operator architectures. Nevertheless, the theoretical contributions offer valuable perspectives for researchers interested in this domain. I will therefore maintain my score.

Formatting concerns

NA

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their thoughtful review. We address first the Questions, then offer some comments on quantitative approximation rates.

Questions

1.) Our proofs explicitly use multi-head attention. It may be possible to obtain a similar result with only a single head, but our a priori belief is that even if this is possible, then the query, key, and value matrices would need to be quite large.

2.) We will clarify the formula (30). The conditions mean that A maps very smooth CkC^k-functions, k>1k>1, to moderately smooth C1C^1-functions, and moderately rough H−sH^{-s}-functions to very rough H−s′H^{-s'}-functions. Differential operators satisfy this, e.g. u→D2uu\to D^2u with k=3k=3 and s=1,s′=3s=1,s'=3. Similarly, singular integral operators, e.g. the Hilbert transform and its composition with derivatives, satisfy the condition. The reason why we use C1C^1 is that then the image functions are Lipschitz, which is needed to make the push-forward maps to be continuous in the Wasserstein metric.

3.) Yes, in the following sense. In our model the discretization is implemented by choosing points (x1,…,xN)(x_1,\dots,x_N) where function hh (or its mollified version hτh_\tau) is evaluated. The model is discretization invariant in the sense that in the limit N→∞N\to \infty the transformers converge to the same limit independently of the manner how the sample points are chosen, as long as they are regularly distributed in the sense of Definition 4. This is illustrated numerically in appendix J, Table 3. A function graph transformer was trained at a resolution N=625, and evaluated at different resolutions not seen in training. The error decreases monotonically at test time as the input resolution is refined.

4.) Our analysis focuses on transformers, and does not apply to FNOs or DeepONets, for example. It may be possible to engineer (via a special sparsity pattern in the parameter matrices) a function graph transformer that mimics, say, an FNO, but our main Theorems 1 and 2 would not then apply to FNOs since our proofs require the freedom of the full class of function graph transformers.

Our long-term objective is to develop a general tool for operator learning, particularly for seismic and medical imaging applications, whose inputs are discontinuous functions or generalized functions, and data is sparse. The current paper provides a theoretical basis for using (function graph) transformers for these tasks.

Regarding quantitative approximation rates

It is true that our results are existential, and we do not offer quantitative approximation rates. This is an issue raised by all three reviewers, and we address it here.

At this point, we are not sure whether it would be possible to obtain approximation rates for the general setting we have presented so far in the paper. However, we have preliminary, non-optimal quantitative rates if we impose additional assumptions on the operator AA: specifically we impose Hölder-continuity of order α>0\alpha > 0. In this setting, certain issues actually become easier than in the general transformer case, and we are able to side-step the use of the Stone-Weierstrass theorem (which is the main obstruction to quantitative rates in our current method). It is our intention to develop this theory in a follow-up paper, but it would be possible for us to prepare an appendix for the current submission (although it would be quite a long addition).

The remainder of this rebuttal gives an outline of the strategy we can use to obtain quantitative approximation rates.

Rates for the encoding, decoding, and regularization stages of Theorem 2 follow from classical tools: mollification and decoding (RτR_\tau, FϵF_\epsilon) from Fourier-multiplier estimates, tokenization (MN,τM_{N,\tau}) from empirical-measure rates in W1W_1, and the spectral regularizer Sη,KS_{\eta,K} from Weyl asymptotics. As mentioned previously, the challenge is the Stone-Weierstrass argument in Theorem 1. With additional assumptions on the operator AA, the rates in this step can be computed as we sketch below. On Y=Ωˉ×[−L,L]n⊂RDY=\bar\Omega\times[-L,L]^n\subset\mathbb R^D we consider W1W_1-Hölder regular context functions

GαY(Λ):={Γ:P(Y)×Y→Y:sup⁡y∈Y∣Γ(μ,y)−Γ(ν,y)∣≤ΛW1(μ,ν)α, sup⁡μ∈P(Y)∣∣Γ(μ,⋅)∣∣C0,α(Y)≤M0},G^Y_\alpha(\Lambda) :=\{\Gamma:{\mathcal P}(Y)\times Y\to Y : \sup_{y\in Y} |\Gamma(\mu,y)-\Gamma(\nu,y)| \le\Lambda W_1(\mu,\nu)^{\alpha},\ \sup_{\mu\in{\mathcal P}(Y)} ||\Gamma(\mu,\cdot)||_{C^{0,\alpha}(Y)}\le {M_0}\},

where α∈(0,1],M0≥0.\alpha\in(0,1],{M_0}\ge0.

We need to analyze 3 steps.

Step (i) is the cylindrical approximation of Γ∈GαY(Λ)\Gamma\in G^Y_\alpha(\Lambda). Let Lip1(Y)Lip_1(Y) denote the class of functions with Lipschitz constant at most 1, normalized to vanish at a fixed reference point. For every ϵT>0\epsilon_T>0 there are

m\le\exp(C(\Lambda/\epsilon_T)^{D/\alpha} \log\frac C{\epsilon_T}),$$ test functions $\phi_i \in Lip_1(Y)$ and an explicit outer function $g$ with $$\sup_{\mu,y} |g(y,(\int\phi_i\,d\mu)_i)-\Gamma(\mu,y)| \le\epsilon_T.

Step (i) combines finding

  • a.) an ϵ\epsilon-net (μj)j≤N′(\mu_j)_{j\le N'} of (P(Y),W1)({\mathcal P}(Y),W_1) via the metric entropy of Wasserstein space (Kloeckner 2010),
  • b.) cylindrical surrogates for the distances W1(⋅,μj)W_1(\cdot,\mu_j) via Kantorovich duality over a finite net of Lipschitz test functions (Kolmogorov 1959), and
  • c.) a Lipschitz partition of unity associated to the cells of the ϵ\epsilon-net, constructed from the surrogate distances (Kratsios 2020), with uniform error Λ(3ϵ)α\Lambda(3\epsilon)^\alpha on each cell.

For steps (ii)-(iii) of Theorem 1 (MLP multiplication and the attention realization) the steps are quantified by standard ReLU rates (Yarotzsky 2017). The realized map Γ~(μ,y)\tilde\Gamma(\mu,y) then consists of attention layers with HℓH_\ell heads of head-dimension one so that ∑ℓHℓ=m\sum_\ell H_\ell=m, together with ReLU-MLPs whose depth is C(log⁡m+log⁡(N′/ϵT))C(\log m+\log(N'/\epsilon_T)), where N′N' is the cardinality of the measure net. Thus, the size of these layers grows exponentially in ϵT−D/α\epsilon_T^{-D/\alpha}.

However, the above analysis on quantitative Stone-Weierstrass approximation is not needed to analyse the special case relevant to analyzing the context functions Γη=ΓA,η\Gamma_\eta=\Gamma_{A,\eta} in Eq. (31) when the operator AA is H"older-smooth. Assume

Assumption A: AA maps CkC^k-balls Bk(ρ)B_k(\rho) into C0,α(Ωˉ;[−L,L]n)C^{0,\alpha}(\bar\Omega;[-L,L]^n) with

\| A(u) \|_{C^{0,\alpha}} \le M_A$$ and $$\|A(u)-A(w)\| \le C_A \|u-w\|

and

∥A(h1)−A(h2)∥≤CL∥h1−h2∥β\|A(h_1)-A(h_2)\| \le C_L \|h_1-h_2\|^{\beta}

on a compact subset K\mathcal K of H−sH^{-s}. (Note: these denote appropriate norms which are not being displayed correctly by MathJax for some reason)

Crucially, ΓA,η\Gamma_{A,\eta} never needs the exponential construction above: it is cylindrical function with m=nK(η)m=nK(\eta), so its realization uses only ∑ℓHℓ=nK(η)\sum_\ell H_\ell=nK(\eta) heads and a single outer ReLU network in dimension nK(η)+dnK(\eta)+d.

Under Assumption A, for hh in a bounded set of H−s+δ∩L∞H^{-s+\delta}\cap L^\infty, i.i.d. sampled grid points, and any transformer Γη,m\Gamma_{\eta,m} approximating GΓηG_{\Gamma_\eta} to accuracy ϵT\epsilon_T in W1W_1, and choosing (τ,ϵ,η,ϵT)(\tau,\epsilon,\eta,\epsilon_T) as powers of a single parameter NN, we obtain

E[∥Fϵ∘GΓ∘MN,τ(h)−A(h)∥H−s′]≤CN−κ{\bf E} [ \|F_\epsilon\circ G_{\Gamma}\circ M_{N,\tau}(h) -A(h)\|_{H^{-s'}} ] \le CN^{-\kappa}

with κ>0\kappa>0 computable from (d,r,s,s′,δ,α,β,p,k,n)(d,r,s,s',\delta,\alpha,\beta,p,k,n). In this way, quantitative approximation rates for Hölder-regular operators are obtained.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…