A DeepONet (Lu, Jin, Pang, Zhang and Karniadakis, 2021) is a neural network architecture for learning an operator G between function spaces, for example the solution operator of a differential equation. It reads an input function u at m sensor points, maps these m numbers to p coefficients with a neural network, and returns the output function τ0+∑k=1pαkτk, where the trunk functions τk are themselves neural networks.
Lanthaler, Mishra and Karniadakis (2022) give the first rigorous error analysis of this architecture. They split the DeepONet into an encoder E, an approximator A and a reconstructor R, and show that the total error is controlled by three separate errors, one for each part. They also give matching lower bounds in terms of the spectra of covariance operators.
This mission formalizes the abstract error theory of Section 3 of the paper.
Setting
Let D⊂Rd and U⊂Rn be bounded, and let X be a Banach space embedded in L2(D). The input functions are distributed according to a probability measure μ on X with finite second moment, and G:X→L2(U) is measurable with ∫∥G(u)∥2dμ<∞ (Definition 2.1). A DeepONet is N=R∘A∘E, and its error is
E=(∫X∥G(u)−N(u)∥L2(U)2dμ(u))1/2.
Choosing a decoder D:Rm→X and a projector P:L2(U)→Rp defines three further errors:
the encoding error EE=∥D∘E−Id∥L2(μ);
the approximation error EA=∥A−P∘G∘D∥L2(E#μ);
the reconstruction error ER=∥R∘P−Id∥L2(G#μ).
The lower bounds involve the covariance operator Γν=∫(v−E[v])⊗(v−E[v])dν of a measure ν on a Hilbert space and its eigenvalues λ1≥λ2≥⋯.
Formalization targets
Goal: error decomposition (Theorem 3.3)
Let α∈(0,1] and let Lipα(G)∈[0,∞] be the Hölder constant of G on the set A of continuous inputs (it may be ∞; no Hölder hypothesis is needed). Then
E≤Lipα(G)Lip(R∘P)(EE)α+Lip(R)EA+ER.
The statement is the one the proof establishes. It adds the hypothesis that the decoder maps encoded inputs from A back into A; without this hypothesis the printed statement is false.
Milestones
Theorem 3.1: universal approximation. For compact nonempty D, compact U and every Borel measurable G∈L2(μ) on C(D) and every ϵ>0, some DeepONet built from ReLU networks has error below ϵ.
Theorem 3.10: in a separable Hilbert space, the optimal p-dimensional subspaces for the projection error are characterized through the eigenspaces of the uncentered covariance operator, and the minimal error is ∑j>pλj.
Theorem 3.12: the same for affine subspaces. The optimal affine subspace passes through the mean, and the centered covariance replaces the uncentered one.
Lemma 3.13: for an affine reconstructor with linearly independent trunk functions, the projector built from the dual basis is optimal.
Theorem 3.14: the mean and the top p eigenvectors of ΓG#μ give an optimal affine reconstruction, with error at least ∑k>pλk.
Theorem 3.6: every DeepONet satisfies ∑k>pλk≤ER≤E.
Proposition 3.15: if the trunk functions are close to the mean and to the top eigenfunctions, the reconstruction error is close to optimal.
Theorem 3.8: with a linear decoder, EE≥∑k>mλk, in terms of the eigenvalues of Γμ.
Significance
The decomposition reduces the infinite-dimensional question of how well a DeepONet approximates an operator to three separate questions:
how well m point values determine the input;
how well p functions span the outputs;
how well a neural network approximates a map Rm→Rp.
The paper's quantitative results, including the examples of Section 4 (a forced pendulum, an elliptic equation, the Allen–Cahn equation and scalar conservation laws), all go through this reduction. The lower bounds show that the spectrum of the covariance of G#μ limits every DeepONet with p trunk functions.
Difficulty
Theorem 3.3: a three-term triangle inequality in L2(μ) plus Jensen's inequality for t↦tα. The measure-theoretic bookkeeping (push-forward measures, measurability in L2(U), values in [0,∞]) is the main work.
Theorems 3.10 and 3.12: principal component analysis for trace-class covariance operators on a separable Hilbert space, including the exact characterization of all minimizers. This is a Ky Fan type maximum principle in infinite dimensions.
Theorem 3.1: Lusin's theorem, the Chen–Chen universal approximation theorem for continuous operators on compact sets, and a clipping construction with ReLU networks. Mathlib does not yet contain the needed universal approximation results.
Lemma 3.13, Theorems 3.6, 3.8, 3.14, Proposition 3.15: short consequences of the projection theorems.
Formalization scope
Spaces:L2(U) is Mathlib's Lp ℝ 2 for Lebesgue measure restricted to U⊂Rn. The output space Y is identified with its image in L2(U), as in the paper. Rm and Rp carry the Euclidean norm. Borel σ-algebras on L2 and C(D) are instance arguments.
Errors and constants: integrals of nonnegative quantities, their square roots and Lipschitz and Hölder constants take values in [0,∞], so no integrability side conditions are hidden.
Eigenvalues: a statement about "the eigenvalues λ1≥λ2≥⋯" of a covariance operator Γ takes a decomposition Γ=∑kλkϕk⊗ϕk with orthonormal ϕk and non-increasing λk, indexed from 0.
Architecture: ReLU networks follow eqs. (2.1)-(2.3). In Theorem 3.1 the DeepONet is built from sensors, a ReLU approximator and a ReLU trunk network. Theorems 3.3 and 3.6 are stated, as the paper's wording "arbitrary encoder/approximator" and their proofs allow, for arbitrary (measurable) encoders and approximators and for trunk functions in L2(U).
Not included:
Theorems 3.7, 3.9, 3.28, 3.35, Lemmas 3.16-3.18, 3.22-3.26, 3.29, Propositions 3.19, 3.21, 3.27, 3.33 and Corollary 3.34. These concern specific encoders (random sensors, Fourier grids), specific reconstructors (Fourier bases, Hs(Tn)) and network size bounds. Several contain constants "depending only on" unspecified data, or "for almost all M" (Theorem 3.9). They belong to a second layer of the theory.
Proposition 3.20 (linear operators): a side result that is not on the path of the main theorems.
Section 4 (Theorems 4.10, 4.19, 4.33, 4.35, 4.38, 4.42, 4.44 and their lemmas): these need the solution operators of four differential equations and network size estimates, beyond the scope of this definitions layer.
Theorem 5.3 (generalization error): it needs a training model with Assumptions 5.1-5.2 and covering numbers, which are separate from the approximation theory formalized here.
Theorems 3.30, 4.21, 4.26 and C.1: results quoted from other works.
Selected references
S. Lanthaler, S. Mishra and G. E. Karniadakis, Error estimates for DeepONets: a deep learning framework in infinite dimensions, Transactions of Mathematics and Its Applications 6 (2022); arXiv:2102.09618. https://arxiv.org/abs/2102.09618
L. Lu, P. Jin, G. Pang, Z. Zhang and G. E. Karniadakis, Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators, Nature Machine Intelligence 3 (2021). https://arxiv.org/abs/1910.03193
T. Chen and H. Chen, Universal approximation to nonlinear operators by neural networks with arbitrary activation functions and its application to dynamical systems, IEEE Transactions on Neural Networks 6 (1995). https://doi.org/10.1109/72.392253
D. Yarotsky, Error bounds for approximations with deep ReLU networks, Neural Networks 94 (2017). https://arxiv.org/abs/1610.01145
Goal · Theorem 3.3 (as proved): error decomposition of a DeepONet
PROVED
namespace DeepONetError
theorem error_decomposition {d n m p : ℕ} {Dset : Set (Fin d → ℝ)} {U : Set (Fin n → ℝ)}
{X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X]
[TopologicalSpace.SeparableSpace X] [MeasurableSpace X] [BorelSpace X]
[MeasurableSpace (L2 U)] [BorelSpace (L2 U)]
(iota : X →L[ℝ] L2 Dset) (mu : Measure X) (A : Set X) (G : X → L2 U)
(hdata : IsDeepONetData Dset U iota mu A G) (alpha : ℝ) (halpha0 : 0 < alpha)
(halpha1 : alpha ≤ 1)
(E : X → EuclideanSpace ℝ (Fin m)) (hE : Measurable E)
(Apx : EuclideanSpace ℝ (Fin m) → EuclideanSpace ℝ (Fin p)) (hApx : Measurable Apx)
(tau : Fin (p + 1) → L2 U)
(Dec : EuclideanSpace ℝ (Fin m) → X) (hDec : Measurable Dec) (hDecA : ∀ u ∈ A, Dec (E u) ∈ A)
(Proj : L2 U → EuclideanSpace ℝ (Fin p)) (hProj : Measurable Proj) :
totalErr mu G (fun u => trunkRec tau (Apx (E u))) ≤
holderConst alpha G A * lipConst (fun v => trunkRec tau (Proj v)) * encErr mu E Dec ^ alpha +
lipConst (trunkRec tau) * approxErr mu G E Apx Dec Proj +
recErr (mu.map G) (trunkRec tau) Proj := by sorry
end DeepONetError
Consider the setting of Definition 2.1. Let α∈(0,1], and let Lipα(G)∈[0,∞] be the α-Hölder constant of G on the set A of continuous inputs (no finiteness is assumed; if it is ∞ the bound holds under the conventions of [0,∞]). Let the following maps be given, all Borel measurable:
an encoder E:X→Rm;
an approximator A:Rm→Rp;
a decoder D:Rm→X with D(E(u))∈A for every u∈A;
a projector P:L2(U)→Rp.
Let R(α)=τ0+∑k=1pαkτk be a reconstruction with τ0,…,τp∈L2(U), and Rm,Rp carry the Euclidean norm. Then the DeepONet N=R∘A∘E satisfies
E≤Lipα(G)Lip(R∘P)(EE)α+Lip(R)EA+ER,
where E is the total error (2.11), and EE, EA and ER are the encoding, approximation and reconstruction errors (3.1)-(3.3). Here ER is taken with respect to G#μ, and Lip(R∘P) is the Lipschitz constant on L2(U).
This is the paper's central reduction. It bounds the DeepONet error by an encoding error that depends only on μ, a reconstruction error that depends only on G#μ, and a finite-dimensional neural network approximation error.
Formalization Note The paper does not state the hypothesis D(E(u))∈A for u∈A, but its proof (Appendix C.2) uses it: it applies the Hölder bound on A to the pair (DEu,u). Without it the bound fails (see REPORT). Encoder and approximator are arbitrary Borel maps, as the paper's wording "arbitrary encoder ... approximator" and its proof allow, so the point-evaluation encoder and ReLU approximators are special cases. All quantities take values in [0,∞], with 0⋅∞=0.
Frontier · Open leaf nodes
Recent activity
Frontier · Open leaf nodes
No open leaves. Every sub-goal is proved or awaiting decomposition.