Blog · updated 26 Oct 2026 · 52 min read

Kernels that output functions: matrix- and operator-valued kernels

From one output to many to a whole function. Matrix-valued kernels, coregionalisation, the Kronecker trick, operator-valued kernels and their RKHS, and Gaussian processes that learn operators. Every step derived.

Contents
  1. Notation
  2. 1. One output: the RKHS in one page
  3. 2. Many outputs: matrix-valued kernels
  4. Separable kernels and the Kronecker product
  5. Fitting all outputs at once: the Kronecker trick
  6. 3. Function outputs: operator-valued kernels
  7. Currying: an operator-valued kernel is a scalar kernel on pairs
  8. Separable operator kernels, and why the output covariance must be trace class
  9. 4. Kernel regression for operators
  10. 5. The Gaussian-process view
  11. A ladder of simplifications
  12. 6. Kernels on function inputs
  13. 7. Bridges to neural operators
  14. 8. Theory you should know exists
  15. 9. A worked example you can run: the heat operator
  16. Questions
  17. References

Many questions in science map a function to a function. An initial temperature profile determines the profile an hour later; a permeability field determines a pressure field; today’s atmosphere determines tomorrow’s. Such a map is an operator G:U→V\mathcal{G} : \mathcal{U} \to \mathcal{V} between spaces of functions, and learning it from examples is operator learning.

Below, a model has seen 40 pairs (input profile, profile after heat diffusion). Draw any input in the top panel. The bottom panel shows the true output (dashed) and the model’s prediction with a ±2\pm 2 standard-deviation band. Try Add a wiggle or Double it, and switch the kernel.

Three things are worth noticing, and the rest of the post explains each:

  1. For inputs like the training data, the prediction is almost exact and the band is almost zero.
  2. Add a wiggle injects a frequency no training input contained. The band widens: the model reports that it has not seen this, which is exactly the “knows what it doesn’t know” property of the GP post, now for function-valued outputs.
  3. Double it with the linear kernel still predicts well, because heat diffusion is linear. With the RBF kernel, the prediction falls apart and the band widens to cover the error: an RBF kernel only trusts inputs near the ones it has seen. The kernel on inputs is an assumption about the operator.

The route has three steps, one output at a time: a scalar output (Section 1), a vector of outputs (Section 2), a whole function of outputs (Sections 3 to 5). It assumes the GP post, whose lemmas are cited as “GP Lemma 5” and so on. Proofs, notes, remarks and examples are folded; open them as needed.

scalar kernelone outputmatrix-valued kernelp outputsoperator-valued kernela whole functionone valueGram overN inputsk(x, x′) ∈ ℝK(x, x′): p × p𝒦(u, u′) ∈ ℒ(𝒱)→ m × m on an m-point gridK: N × N𝕂: Np × NpN × N blocks, each p × p𝕂: Nm × NmN × N blocks, each m × mN unknownsNp unknownsNm ≈ 4 million for N = 1000, m = 4096

The figure fixes the shapes. Everything in Sections 2 to 5 is about the right-hand column: what the blocks mean, when the big matrix is a valid covariance, and which assumptions make it small enough to use.

Notation

Plain italic letters are scalars or elements of a function space (uu, vv, αi\alpha_i). Bold italic lower-case letters are vectors in Rn\mathbb{R}^n (x\boldsymbol{x}, c\boldsymbol{c}). Bold upright capitals are matrices (K\mathbf{K}, B\mathbf{B}). Calligraphic letters are operators or spaces.

SymbolMeaning
X\mathcal{X}, xi\boldsymbol{x}_iinput space, training inputs (Sections 1–2)
U\mathcal{U}, V\mathcal{V}input and output function spaces; V\mathcal{V} a separable Hilbert space, e.g. L2(Ω)L^2(\Omega)
ui∈Uu_i \in \mathcal{U}, vi∈Vv_i \in \mathcal{V}training input and output functions
⟨⋅,⋅⟩V\langle\cdot,\cdot\rangle_{\mathcal{V}}, ∥⋅∥V\lVert\cdot\rVert_{\mathcal{V}}inner product and norm of V\mathcal{V}
L(V)\mathcal{L}(\mathcal{V})bounded linear operators on V\mathcal{V}; A∗\mathcal{A}^* is the adjoint
kk, K\mathbf{K}scalar kernel, its N×NN\times N Gram matrix
K(x,x′)∈Rp×p\boldsymbol{K}(\boldsymbol{x}, \boldsymbol{x}') \in \mathbb{R}^{p\times p}matrix-valued kernel (Section 2)
K(u,u′)∈L(V)\mathcal{K}(u, u') \in \mathcal{L}(\mathcal{V})operator-valued kernel; never the Gram matrix K\mathbf{K}
K\mathbb{K}block Gram matrix or operator, blocks K(xi,xj)\boldsymbol{K}(\boldsymbol{x}_i, \boldsymbol{x}_j) or K(ui,uj)\mathcal{K}(u_i, u_j)
B\mathbf{B}, T\mathcal{T}output covariance in a separable kernel: a matrix, an operator
Hk\mathcal{H}_k, HK\mathcal{H}_{\mathcal{K}}RKHS of a scalar, of an operator-valued kernel
⊗\otimesKronecker product
λ\lambdaregularisation (equivalently noise) parameter

1. One output: the RKHS in one page

Recall from GP Definition 2 that a kernel kk is positive definite when every Gram matrix is positive semidefinite. Each kernel comes with a space of functions it can represent.

Definition 1 (Reproducing kernel Hilbert space)

The RKHS Hk\mathcal{H}_k of a positive-definite kernel kk on X\mathcal{X} is the completion of the set of finite combinations f=∑jaj k(⋅,xj)f = \sum_j a_j\,k(\cdot, \boldsymbol{x}_j) under the inner product

⟨∑iai k(⋅,xi),  ∑jbj k(⋅,xj′)⟩Hk=∑i,jai bj k(xi,xj′).\Big\langle \sum_i a_i\,k(\cdot, \boldsymbol{x}_i),\; \sum_j b_j\,k(\cdot, \boldsymbol{x}'_j) \Big\rangle_{\mathcal{H}_k} = \sum_{i,j} a_i\,b_j\,k(\boldsymbol{x}_i, \boldsymbol{x}'_j).

Lemma 1 (Reproducing property)

For every f∈Hkf \in \mathcal{H}_k and x∈X\boldsymbol{x} \in \mathcal{X},   f(x)=⟨f,k(⋅,x)⟩Hk\;f(\boldsymbol{x}) = \langle f, k(\cdot, \boldsymbol{x})\rangle_{\mathcal{H}_k}.

Proof

Step 1. Finite combinations. Take f=∑jaj k(⋅,xj)f = \sum_j a_j\,k(\cdot, \boldsymbol{x}_j) and note that k(⋅,x)k(\cdot, \boldsymbol{x}) is the combination with one coefficient, 11, at the point x\boldsymbol{x}.

Step 2. Apply the definition of the inner product.

⟨f,k(⋅,x)⟩Hk=∑jaj⋅1⋅k(xj,x)=∑jaj k(x,xj)=f(x),\langle f, k(\cdot, \boldsymbol{x})\rangle_{\mathcal{H}_k} = \sum_j a_j \cdot 1 \cdot k(\boldsymbol{x}_j, \boldsymbol{x}) = \sum_j a_j\,k(\boldsymbol{x}, \boldsymbol{x}_j) = f(\boldsymbol{x}),

using the symmetry k(xj,x)=k(x,xj)k(\boldsymbol{x}_j, \boldsymbol{x}) = k(\boldsymbol{x}, \boldsymbol{x}_j).

Step 3. Limits. Both sides are continuous in ff (the right side by Cauchy–Schwarz), so the identity passes from finite combinations to their limits.

Remark (What the RKHS norm measures)

Step 1. By the reproducing property and linearity, f(x)−f(x′)=⟨f, k(⋅,x)−k(⋅,x′)⟩Hkf(\boldsymbol{x}) - f(\boldsymbol{x}') = \langle f,\, k(\cdot, \boldsymbol{x}) - k(\cdot, \boldsymbol{x}')\rangle_{\mathcal{H}_k}.

Step 2. Cauchy–Schwarz gives

∣f(x)−f(x′)∣≤∥f∥Hk  ∥k(⋅,x)−k(⋅,x′)∥Hk.\lvert f(\boldsymbol{x}) - f(\boldsymbol{x}')\rvert \le \lVert f\rVert_{\mathcal{H}_k}\; \lVert k(\cdot, \boldsymbol{x}) - k(\cdot, \boldsymbol{x}')\rVert_{\mathcal{H}_k}.

Step 3. Expanding the last norm with the inner product, ∥k(⋅,x)−k(⋅,x′)∥2=k(x,x)−2k(x,x′)+k(x′,x′)\lVert k(\cdot, \boldsymbol{x}) - k(\cdot, \boldsymbol{x}')\rVert^2 = k(\boldsymbol{x}, \boldsymbol{x}) - 2k(\boldsymbol{x}, \boldsymbol{x}') + k(\boldsymbol{x}', \boldsymbol{x}'), which is small when the kernel regards x\boldsymbol{x} and x′\boldsymbol{x}' as similar.

So a function with a small RKHS norm cannot change much between points the kernel considers close. Penalising ∥f∥Hk\lVert f\rVert_{\mathcal{H}_k} penalises roughness as the kernel defines it.

Theorem 1 (Representer theorem, kernel ridge regression)

Given data {(xi,yi)}i=1N\{(\boldsymbol{x}_i, y_i)\}_{i=1}^N and λ>0\lambda > 0, the minimiser of

J(f)=∑i=1N(yi−f(xi))2+λ ∥f∥Hk2J(f) = \sum_{i=1}^N \big(y_i - f(\boldsymbol{x}_i)\big)^2 + \lambda\,\lVert f\rVert_{\mathcal{H}_k}^2

over Hk\mathcal{H}_k is f^(x)=∑i=1Nαi k(x,xi)\hat f(\boldsymbol{x}) = \sum_{i=1}^N \alpha_i\,k(\boldsymbol{x}, \boldsymbol{x}_i) with α=(K+λI)−1y\boldsymbol{\alpha} = (\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{y}.

Proof

Step 1. Split ff. Let S=span⁡{k(⋅,xi)}i=1N\mathcal{S} = \operatorname{span}\{k(\cdot, \boldsymbol{x}_i)\}_{i=1}^N, a finite-dimensional (hence closed) subspace. Every ff decomposes uniquely as f=fS+f⊥f = f_{\mathcal{S}} + f_\perp with fS∈Sf_{\mathcal{S}} \in \mathcal{S} and f⊥⊥Sf_\perp \perp \mathcal{S}.

Step 2. The orthogonal part is invisible at the data. By the reproducing property, f⊥(xi)=⟨f⊥,k(⋅,xi)⟩=0f_\perp(\boldsymbol{x}_i) = \langle f_\perp, k(\cdot, \boldsymbol{x}_i)\rangle = 0, so f(xi)=fS(xi)f(\boldsymbol{x}_i) = f_{\mathcal{S}}(\boldsymbol{x}_i) for every ii.

Step 3. The orthogonal part only adds norm. By Pythagoras, ∥f∥2=∥fS∥2+∥f⊥∥2\lVert f\rVert^2 = \lVert f_{\mathcal{S}}\rVert^2 + \lVert f_\perp\rVert^2.

Step 4. Conclude that f⊥=0f_\perp = 0. By Steps 2 and 3, J(f)=J(fS)+λ∥f⊥∥2≥J(fS)J(f) = J(f_{\mathcal{S}}) + \lambda\lVert f_\perp\rVert^2 \ge J(f_{\mathcal{S}}), with equality only if f⊥=0f_\perp = 0. So the minimiser lies in S\mathcal{S}: f^=∑iαi k(⋅,xi)\hat f = \sum_i \alpha_i\,k(\cdot, \boldsymbol{x}_i).

Step 5. Write JJ in terms of α\boldsymbol{\alpha}. The fitted values are f^(xi)=(Kα)i\hat f(\boldsymbol{x}_i) = (\mathbf{K}\boldsymbol{\alpha})_i, and the definition of the inner product gives ∥f^∥2=α⊤Kα\lVert\hat f\rVert^2 = \boldsymbol{\alpha}^\top\mathbf{K}\boldsymbol{\alpha}. So

J(α)=(y−Kα)⊤(y−Kα)+λ α⊤Kα.J(\boldsymbol{\alpha}) = (\boldsymbol{y} - \mathbf{K}\boldsymbol{\alpha})^\top(\boldsymbol{y} - \mathbf{K}\boldsymbol{\alpha}) + \lambda\,\boldsymbol{\alpha}^\top\mathbf{K}\boldsymbol{\alpha}.

Step 6. Set the gradient to zero. Using K⊤=K\mathbf{K}^\top = \mathbf{K},

∇αJ=−2K(y−Kα)+2λKα=2K((K+λI)α−y)=0.\nabla_{\boldsymbol{\alpha}}J = -2\mathbf{K}(\boldsymbol{y} - \mathbf{K}\boldsymbol{\alpha}) + 2\lambda\mathbf{K}\boldsymbol{\alpha} = 2\mathbf{K}\big((\mathbf{K} + \lambda\mathbf{I})\boldsymbol{\alpha} - \boldsymbol{y}\big) = \mathbf{0}.

Step 7. Solve. α=(K+λI)−1y\boldsymbol{\alpha} = (\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{y} satisfies Step 6. (K+λI\mathbf{K} + \lambda\mathbf{I} is positive definite, hence invertible. If K\mathbf{K} is singular other α\boldsymbol{\alpha} also satisfy Step 6, but they give the same function f^\hat f.)

The kernel ridge regression predictor f^(x)=k(x)⊤(K+λI)−1y\hat f(\boldsymbol{x}) = \boldsymbol{k}(\boldsymbol{x})^\top(\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{y} is exactly the GP posterior mean with noise variance σn2=λ\sigma_n^2 = \lambda (GP Proposition 4). The GP adds what kernel ridge regression lacks: a variance.

2. Many outputs: matrix-valued kernels

Now each input has pp outputs: the temperature and humidity at a station, the angles of every joint in a robot arm. Fitting pp separate models throws away what one output says about another. A matrix-valued kernel keeps it.

Definition 2 (Matrix-valued kernel)

A function K:X×X→Rp×p\boldsymbol{K} : \mathcal{X}\times\mathcal{X} \to \mathbb{R}^{p\times p} is a positive-definite matrix-valued kernel if K(x,x′)⊤=K(x′,x)\boldsymbol{K}(\boldsymbol{x}, \boldsymbol{x}')^\top = \boldsymbol{K}(\boldsymbol{x}', \boldsymbol{x}) and, for all finite sets {xi}i=1N\{\boldsymbol{x}_i\}_{i=1}^N and vectors {ci}i=1N⊂Rp\{\boldsymbol{c}_i\}_{i=1}^N \subset \mathbb{R}^p,

∑i,j=1Nci⊤ K(xi,xj) cj≥0.\sum_{i,j=1}^N \boldsymbol{c}_i^\top\,\boldsymbol{K}(\boldsymbol{x}_i, \boldsymbol{x}_j)\,\boldsymbol{c}_j \ge 0 .

Equivalently, the Np×NpNp\times Np block Gram matrix K\mathbb{K} with blocks K(xi,xj)\boldsymbol{K}(\boldsymbol{x}_i, \boldsymbol{x}_j) is positive semidefinite.

In GP terms, f∼GP(0,K)\boldsymbol{f} \sim \mathcal{GP}(\mathbf{0}, \boldsymbol{K}) is a random function with values in Rp\mathbb{R}^p and Cov⁡[f(x),f(x′)]=E[f(x)f(x′)⊤]=K(x,x′)\operatorname{Cov}[\boldsymbol{f}(\boldsymbol{x}), \boldsymbol{f}(\boldsymbol{x}')] = \mathbb{E}[\boldsymbol{f}(\boldsymbol{x})\boldsymbol{f}(\boldsymbol{x}')^\top] = \boldsymbol{K}(\boldsymbol{x}, \boldsymbol{x}'). Entry (a,b)(a, b) is the covariance between output aa at x\boldsymbol{x} and output bb at x′\boldsymbol{x}'. The transpose condition holds because Cov⁡[f(x),f(x′)]⊤=Cov⁡[f(x′),f(x)]\operatorname{Cov}[\boldsymbol{f}(\boldsymbol{x}), \boldsymbol{f}(\boldsymbol{x}')]^\top = \operatorname{Cov}[\boldsymbol{f}(\boldsymbol{x}'), \boldsymbol{f}(\boldsymbol{x})].

Separable kernels and the Kronecker product

The simplest useful choice multiplies a scalar kernel by a fixed matrix: K(x,x′)=k(x,x′) B\boldsymbol{K}(\boldsymbol{x}, \boldsymbol{x}') = k(\boldsymbol{x}, \boldsymbol{x}')\,\mathbf{B}. The scalar kernel says how inputs relate; B\mathbf{B} says how outputs relate. Its block Gram matrix is a Kronecker product.

Definition 3 (Kronecker product)

For A∈Rn×n\mathbf{A} \in \mathbb{R}^{n\times n} and B∈Rp×p\mathbf{B} \in \mathbb{R}^{p\times p}, A⊗B\mathbf{A} \otimes \mathbf{B} is the np×npnp\times np block matrix whose (i,j)(i, j) block is aijBa_{ij}\mathbf{B}.

So with the data stacked input by input, the block Gram matrix of k(x,x′)Bk(\boldsymbol{x}, \boldsymbol{x}')\mathbf{B} is K=K⊗B\mathbb{K} = \mathbf{K} \otimes \mathbf{B}.

Lemma 2 (Mixed product and its consequences)

For conformable matrices,

  1. (A⊗B)(C⊗D)=(AC)⊗(BD)(\mathbf{A} \otimes \mathbf{B})(\mathbf{C} \otimes \mathbf{D}) = (\mathbf{A}\mathbf{C}) \otimes (\mathbf{B}\mathbf{D});
  2. (A⊗B)−1=A−1⊗B−1(\mathbf{A} \otimes \mathbf{B})^{-1} = \mathbf{A}^{-1} \otimes \mathbf{B}^{-1} when both are invertible;
  3. if Au=λu\mathbf{A}\boldsymbol{u} = \lambda\boldsymbol{u} and Bv=κv\mathbf{B}\boldsymbol{v} = \kappa\boldsymbol{v}, then (A⊗B)(u⊗v)=λκ (u⊗v)(\mathbf{A} \otimes \mathbf{B})(\boldsymbol{u} \otimes \boldsymbol{v}) = \lambda\kappa\,(\boldsymbol{u} \otimes \boldsymbol{v}).
Proof

Step 1. Multiply block by block. Block (i,j)(i, j) of the product is the sum over ll of block (i,l)(i, l) of the first factor times block (l,j)(l, j) of the second:

∑l(ailB)(cljD)=(∑lailclj)BD=(AC)ij BD,\sum_l (a_{il}\mathbf{B})(c_{lj}\mathbf{D}) = \Big(\sum_l a_{il}c_{lj}\Big)\mathbf{B}\mathbf{D} = (\mathbf{A}\mathbf{C})_{ij}\,\mathbf{B}\mathbf{D},

which is block (i,j)(i, j) of (AC)⊗(BD)(\mathbf{A}\mathbf{C}) \otimes (\mathbf{B}\mathbf{D}). This is part 1.

Step 2. Inverse. By part 1, (A⊗B)(A−1⊗B−1)=(AA−1)⊗(BB−1)=I⊗I=I(\mathbf{A} \otimes \mathbf{B})(\mathbf{A}^{-1} \otimes \mathbf{B}^{-1}) = (\mathbf{A}\mathbf{A}^{-1}) \otimes (\mathbf{B}\mathbf{B}^{-1}) = \mathbf{I} \otimes \mathbf{I} = \mathbf{I}. This is part 2.

Step 3. Eigenvectors. A vector is a one-column matrix, so part 1 applies: (A⊗B)(u⊗v)=(Au)⊗(Bv)=(λu)⊗(κv)=λκ (u⊗v)(\mathbf{A} \otimes \mathbf{B})(\boldsymbol{u} \otimes \boldsymbol{v}) = (\mathbf{A}\boldsymbol{u}) \otimes (\mathbf{B}\boldsymbol{v}) = (\lambda\boldsymbol{u}) \otimes (\kappa\boldsymbol{v}) = \lambda\kappa\,(\boldsymbol{u} \otimes \boldsymbol{v}). This is part 3.

Proposition 1 (Separable kernels are valid)

If kk is a positive-definite scalar kernel and B\mathbf{B} is symmetric positive semidefinite, then k(x,x′)Bk(\boldsymbol{x}, \boldsymbol{x}')\mathbf{B} is a positive-definite matrix-valued kernel.

Proof

Step 1. Symmetry. (k(x,x′)B)⊤=k(x′,x) B⊤=k(x′,x) B\big(k(\boldsymbol{x}, \boldsymbol{x}')\mathbf{B}\big)^\top = k(\boldsymbol{x}', \boldsymbol{x})\,\mathbf{B}^\top = k(\boldsymbol{x}', \boldsymbol{x})\,\mathbf{B}.

Step 2. Eigendecompose both factors. K=∑iλiuiui⊤\mathbf{K} = \sum_i \lambda_i\boldsymbol{u}_i\boldsymbol{u}_i^\top and B=∑jκjvjvj⊤\mathbf{B} = \sum_j \kappa_j\boldsymbol{v}_j\boldsymbol{v}_j^\top, with orthonormal eigenvectors and λi,κj≥0\lambda_i, \kappa_j \ge 0.

Step 3. Eigenvectors of the block Gram matrix. By Lemma 2, part 3, each ui⊗vj\boldsymbol{u}_i \otimes \boldsymbol{v}_j is an eigenvector of K⊗B\mathbf{K} \otimes \mathbf{B} with eigenvalue λiκj≥0\lambda_i\kappa_j \ge 0.

Step 4. They are all of them. The NpNp vectors ui⊗vj\boldsymbol{u}_i \otimes \boldsymbol{v}_j are orthonormal, since by part 1, (ui⊗vj)⊤(ui′⊗vj′)=(ui⊤ui′)(vj⊤vj′)(\boldsymbol{u}_i \otimes \boldsymbol{v}_j)^\top(\boldsymbol{u}_{i'} \otimes \boldsymbol{v}_{j'}) = (\boldsymbol{u}_i^\top\boldsymbol{u}_{i'})(\boldsymbol{v}_j^\top\boldsymbol{v}_{j'}), which is 11 if (i,j)=(i′,j′)(i, j) = (i', j') and 00 otherwise. So they form a basis of RNp\mathbb{R}^{Np}.

Step 5. Conclude. A symmetric matrix whose eigenvalues are all non-negative is positive semidefinite.

Example 1 (What B means, in three cases)
  • B=I\mathbf{B} = \mathbf{I}: the outputs are independent GPs that share a kernel. Nothing is borrowed.

  • B=11⊤\mathbf{B} = \boldsymbol{1}\boldsymbol{1}^\top (all entries 11): every output is the same function.

  • B=[1ρρ1]\mathbf{B} = \begin{bmatrix} 1 & \rho \\ \rho & 1 \end{bmatrix}: write f2=ρf1+1−ρ2 gf_2 = \rho f_1 + \sqrt{1 - \rho^2}\,g with f1,gf_1, g independent GPs with kernel kk. Then

    Step 1. Cov⁡[f2(x),f1(x′)]=ρ k(x,x′)\operatorname{Cov}[f_2(\boldsymbol{x}), f_1(\boldsymbol{x}')] = \rho\,k(\boldsymbol{x}, \boldsymbol{x}'), because gg is independent of f1f_1.

    Step 2. Cov⁡[f2(x),f2(x′)]=ρ2k(x,x′)+(1−ρ2) k(x,x′)=k(x,x′)\operatorname{Cov}[f_2(\boldsymbol{x}), f_2(\boldsymbol{x}')] = \rho^2k(\boldsymbol{x}, \boldsymbol{x}') + (1 - \rho^2)\,k(\boldsymbol{x}, \boldsymbol{x}') = k(\boldsymbol{x}, \boldsymbol{x}').

    So ρ\rho is literally the share of output 2 that is output 1. This is the intrinsic coregionalisation model; summing several such terms, ∑qkq(x,x′)Bq\sum_q k_q(\boldsymbol{x}, \boldsymbol{x}')\mathbf{B}_q, gives the linear model of coregionalisation from geostatistics.

Output 2 below is observed only on the left. Move ρ\rho and watch its posterior on the shaded part, where it has no data of its own. The block Gram matrix on the right shows the off-diagonal blocks, ρ k(xi,xj)\rho\,k(\boldsymbol{x}_i, \boldsymbol{x}_j), that carry the information across.

At ρ≈0.9\rho \approx 0.9, output 2 on the right follows the shape of output 1’s data, and its band shrinks well below the prior. At ρ=0\rho = 0 it falls back to the prior there. At ρ≈−0.9\rho \approx -0.9 it follows the mirror image of output 1. The truth has ρ≈0.9\rho \approx 0.9, so only that setting is right; learning B\mathbf{B} from data (by the marginal likelihood, GP Section 7) is how the model finds out.

Fitting all outputs at once: the Kronecker trick

The representer theorem carries over (proved in full in Section 4, Theorem 2 with V=Rp\mathcal{V} = \mathbb{R}^p): the fit is f^(x)=∑iK(x,xi) ci\hat{\boldsymbol{f}}(\boldsymbol{x}) = \sum_i \boldsymbol{K}(\boldsymbol{x}, \boldsymbol{x}_i)\,\boldsymbol{c}_i with (K+λI)c=y(\mathbb{K} + \lambda\mathbf{I})\boldsymbol{c} = \boldsymbol{y}, where c\boldsymbol{c} and y\boldsymbol{y} stack the ci\boldsymbol{c}_i and yi\boldsymbol{y}_i. Solved directly this costs O(N3p3)O(N^3p^3). For a separable kernel with every output observed at every input, it costs far less.

Proposition 2 (The Kronecker trick)

Let Y∈RN×p\mathbf{Y} \in \mathbb{R}^{N\times p} have rows yi⊤\boldsymbol{y}_i^\top, and let K=UΛU⊤\mathbf{K} = \mathbf{U}\boldsymbol{\Lambda}\mathbf{U}^\top and B=VDV⊤\mathbf{B} = \mathbf{V}\mathbf{D}\mathbf{V}^\top be eigendecompositions, with Λ=diag⁡(λi)\boldsymbol{\Lambda} = \operatorname{diag}(\lambda_i) and D=diag⁡(κj)\mathbf{D} = \operatorname{diag}(\kappa_j). The coefficient matrix C∈RN×p\mathbf{C} \in \mathbb{R}^{N\times p} (rows ci⊤\boldsymbol{c}_i^\top) is

C=U C~ V⊤,C~ij=(U⊤YV)ijλiκj+λ,\mathbf{C} = \mathbf{U}\,\tilde{\mathbf{C}}\,\mathbf{V}^\top, \qquad \tilde C_{ij} = \frac{(\mathbf{U}^\top\mathbf{Y}\mathbf{V})_{ij}}{\lambda_i\kappa_j + \lambda},

at cost O(N3+p3+N2p+Np2)O(N^3 + p^3 + N^2p + Np^2).

Proof

Step 1. Predictions in matrix form. Row ii of the fitted values is f^(xi)⊤=∑jk(xi,xj) cj⊤B\hat{\boldsymbol{f}}(\boldsymbol{x}_i)^\top = \sum_j k(\boldsymbol{x}_i, \boldsymbol{x}_j)\,\boldsymbol{c}_j^\top\mathbf{B} (transpose of ∑jk Bcj\sum_j k\,\mathbf{B}\boldsymbol{c}_j, with B⊤=B\mathbf{B}^\top = \mathbf{B}). Stacking the rows, the matrix of fitted values is KCB\mathbf{K}\mathbf{C}\mathbf{B}.

Step 2. The linear system in matrix form. Row ii of (K+λI)c=y(\mathbb{K} + \lambda\mathbf{I})\boldsymbol{c} = \boldsymbol{y} reads ∑jk(xi,xj)Bcj+λci=yi\sum_j k(\boldsymbol{x}_i, \boldsymbol{x}_j)\mathbf{B}\boldsymbol{c}_j + \lambda\boldsymbol{c}_i = \boldsymbol{y}_i. Transposing each and stacking, by Step 1:

KCB+λC=Y.\mathbf{K}\mathbf{C}\mathbf{B} + \lambda\mathbf{C} = \mathbf{Y}.

Step 3. Rotate into both eigenbases. Substitute K=UΛU⊤\mathbf{K} = \mathbf{U}\boldsymbol{\Lambda}\mathbf{U}^\top and B=VDV⊤\mathbf{B} = \mathbf{V}\mathbf{D}\mathbf{V}^\top, multiply on the left by U⊤\mathbf{U}^\top and on the right by V\mathbf{V}, and use U⊤U=I\mathbf{U}^\top\mathbf{U} = \mathbf{I}, V⊤V=I\mathbf{V}^\top\mathbf{V} = \mathbf{I}. With C~=U⊤CV\tilde{\mathbf{C}} = \mathbf{U}^\top\mathbf{C}\mathbf{V} and Y~=U⊤YV\tilde{\mathbf{Y}} = \mathbf{U}^\top\mathbf{Y}\mathbf{V}:

ΛC~D+λC~=Y~.\boldsymbol{\Lambda}\tilde{\mathbf{C}}\mathbf{D} + \lambda\tilde{\mathbf{C}} = \tilde{\mathbf{Y}}.

Step 4. The system is now diagonal. Because Λ\boldsymbol{\Lambda} and D\mathbf{D} are diagonal, entry (i,j)(i, j) of ΛC~D\boldsymbol{\Lambda}\tilde{\mathbf{C}}\mathbf{D} is λiC~ijκj\lambda_i\tilde C_{ij}\kappa_j. So every entry is its own scalar equation, (λiκj+λ)C~ij=Y~ij(\lambda_i\kappa_j + \lambda)\tilde C_{ij} = \tilde Y_{ij}.

Step 5. Solve and rotate back. Divide entrywise, then C=UC~V⊤\mathbf{C} = \mathbf{U}\tilde{\mathbf{C}}\mathbf{V}^\top (invert Step 3’s rotation).

Step 6. Cost. Two eigendecompositions, O(N3)O(N^3) and O(p3)O(p^3); the products U⊤YV\mathbf{U}^\top\mathbf{Y}\mathbf{V} and UC~V⊤\mathbf{U}\tilde{\mathbf{C}}\mathbf{V}^\top cost O(N2p+Np2)O(N^2p + Np^2).

The saving is dramatic exactly when outputs are functions. On a grid of p=4096p = 4096 points with N=1000N = 1000 training pairs, the direct system has four million unknowns; the Kronecker route needs two moderate eigendecompositions.

import numpy as np

def fit_separable(K, B, Y, lam):
    """Solve K C B + lam C = Y for C (N x p) with two eigendecompositions."""
    lk, U = np.linalg.eigh(K)                    # K = U diag(lk) U^T
    lb, V = np.linalg.eigh(B)                    # B = V diag(lb) V^T
    Ct = (U.T @ Y @ V) / (np.outer(lk, lb) + lam)
    return U @ Ct @ V.T

rng = np.random.default_rng(0)
N, p, lam = 30, 4, 1e-2
X = rng.uniform(size=(N, 1))
K = np.exp(-0.5 * (X - X.T) ** 2 / 0.2**2)       # scalar RBF Gram matrix
A = rng.standard_normal((p, p)); B = A @ A.T / p   # any positive semidefinite B
Y = rng.standard_normal((N, p))

# Check against the direct (N p) x (N p) solve, with blocks k(x_i, x_j) B
big = np.kron(K, B) + lam * np.eye(N * p)
assert np.allclose(fit_separable(K, B, Y, lam).reshape(-1), np.linalg.solve(big, Y.reshape(-1)))

3. Function outputs: operator-valued kernels

Now each output is a function v∈Vv \in \mathcal{V}, say V=L2(Ω)\mathcal{V} = L^2(\Omega). Replace “a p×pp\times p matrix” by “a bounded linear operator on V\mathcal{V}”, and "c⊤Ac′\boldsymbol{c}^\top\mathbf{A}\boldsymbol{c}'" by "⟨c,Ac′⟩V\langle c, \mathcal{A}c'\rangle_{\mathcal{V}}". Nothing else changes.

Definition 4 (Operator-valued kernel)

A map K:U×U→L(V)\mathcal{K} : \mathcal{U}\times\mathcal{U} \to \mathcal{L}(\mathcal{V}) is a positive-definite operator-valued kernel if K(u,u′)∗=K(u′,u)\mathcal{K}(u, u')^* = \mathcal{K}(u', u) and, for all finite sets {ui}i=1N⊂U\{u_i\}_{i=1}^N \subset \mathcal{U} and {ci}i=1N⊂V\{c_i\}_{i=1}^N \subset \mathcal{V},

∑i,j=1N⟨ci,  K(ui,uj) cj⟩V≥0.\sum_{i,j=1}^N \big\langle c_i,\; \mathcal{K}(u_i, u_j)\,c_j\big\rangle_{\mathcal{V}} \ge 0 .

With V=Rp\mathcal{V} = \mathbb{R}^p this is Definition 2.

The scalar kernel k(x,x′)=ϕ(x)⊤Σwϕ(x′)k(\boldsymbol{x}, \boldsymbol{x}') = \boldsymbol{\phi}(\boldsymbol{x})^\top\boldsymbol{\Sigma}_w\boldsymbol{\phi}(\boldsymbol{x}') came from features (GP Proposition 3). Operator-valued kernels come from feature operators the same way.

Proposition 3 (Kernels from feature operators)

Let F\mathcal{F} be a Hilbert space and, for each uu, let Φ(u):F→V\Phi(u) : \mathcal{F} \to \mathcal{V} be a bounded linear operator. Then K(u,u′)=Φ(u) Φ(u′)∗\mathcal{K}(u, u') = \Phi(u)\,\Phi(u')^* is a positive-definite operator-valued kernel.

Proof

Step 1. Symmetry. The adjoint reverses products and (A∗)∗=A(\mathcal{A}^*)^* = \mathcal{A}, so (Φ(u)Φ(u′)∗)∗=Φ(u′)Φ(u)∗\big(\Phi(u)\Phi(u')^*\big)^* = \Phi(u')\Phi(u)^*, which is K(u′,u)\mathcal{K}(u', u).

Step 2. Move each operator across the inner product using the definition of the adjoint, ⟨c,Φ(u)g⟩V=⟨Φ(u)∗c,g⟩F\langle c, \Phi(u)g\rangle_{\mathcal{V}} = \langle\Phi(u)^*c, g\rangle_{\mathcal{F}}:

⟨ci, Φ(ui)Φ(uj)∗cj⟩V=⟨Φ(ui)∗ci,  Φ(uj)∗cj⟩F.\big\langle c_i,\, \Phi(u_i)\Phi(u_j)^*c_j\big\rangle_{\mathcal{V}} = \big\langle\Phi(u_i)^*c_i,\; \Phi(u_j)^*c_j\big\rangle_{\mathcal{F}}.

Step 3. Recognise a squared norm. Summing over ii and jj and using bilinearity,

∑i,j⟨ci, K(ui,uj)cj⟩V=∥∑iΦ(ui)∗ci∥F2≥0.\sum_{i,j}\big\langle c_i,\, \mathcal{K}(u_i, u_j)c_j\big\rangle_{\mathcal{V}} = \Big\lVert\sum_i\Phi(u_i)^*c_i\Big\rVert_{\mathcal{F}}^2 \ge 0 .

Definition 5 (Vector-valued RKHS)

The RKHS HK\mathcal{H}_{\mathcal{K}} is the completion of finite combinations f=∑jK(⋅,uj) cjf = \sum_j \mathcal{K}(\cdot, u_j)\,c_j (functions from U\mathcal{U} to V\mathcal{V}) under

⟨K(⋅,u) c,  K(⋅,u′) c′⟩HK=⟨c,  K(u,u′) c′⟩V,\big\langle\mathcal{K}(\cdot, u)\,c,\; \mathcal{K}(\cdot, u')\,c'\big\rangle_{\mathcal{H}_{\mathcal{K}}} = \big\langle c,\; \mathcal{K}(u, u')\,c'\big\rangle_{\mathcal{V}},

extended bilinearly (Micchelli and Pontil, 2005; Carmeli, De Vito and Toigo, 2006).

Lemma 3 (Reproducing property, vector-valued)

For all f∈HKf \in \mathcal{H}_{\mathcal{K}}, u∈Uu \in \mathcal{U} and c∈Vc \in \mathcal{V}:   ⟨f(u),c⟩V=⟨f, K(⋅,u) c⟩HK\;\langle f(u), c\rangle_{\mathcal{V}} = \langle f,\, \mathcal{K}(\cdot, u)\,c\rangle_{\mathcal{H}_{\mathcal{K}}}.

Proof

Step 1. Finite combinations. Take f=∑jK(⋅,uj) cjf = \sum_j \mathcal{K}(\cdot, u_j)\,c_j. By the definition of the inner product,

⟨f,K(⋅,u) c⟩HK=∑j⟨cj, K(uj,u) c⟩V.\langle f, \mathcal{K}(\cdot, u)\,c\rangle_{\mathcal{H}_{\mathcal{K}}} = \sum_j \big\langle c_j,\, \mathcal{K}(u_j, u)\,c\big\rangle_{\mathcal{V}} .

Step 2. Move the operator across. By the adjoint and the symmetry of Definition 4, ⟨cj,K(uj,u)c⟩=⟨K(uj,u)∗cj,c⟩=⟨K(u,uj)cj,c⟩\langle c_j, \mathcal{K}(u_j, u)c\rangle = \langle\mathcal{K}(u_j, u)^*c_j, c\rangle = \langle\mathcal{K}(u, u_j)c_j, c\rangle.

Step 3. Sum. ∑j⟨K(u,uj)cj,c⟩V=⟨f(u),c⟩V\sum_j\langle\mathcal{K}(u, u_j)c_j, c\rangle_{\mathcal{V}} = \langle f(u), c\rangle_{\mathcal{V}}. Limits pass as in Lemma 1.

Currying: an operator-valued kernel is a scalar kernel on pairs

Operator-valued kernels look exotic. One change of viewpoint makes them ordinary. A map f:U→Vf : \mathcal{U} \to \mathcal{V} that sends an input uu to an output function f(u)f(u) carries exactly the same information as a scalar function of two arguments, g(u,z)=f(u)(z)g(u, z) = f(u)(z), where z∈Ωz \in \Omega is a location in the output domain. Passing from gg to ff is called currying in functional programming.

operator viewf : 𝒰 → 𝒱, u ↦ f(u), a function of zone curve per input u₁, u₂, u₃scalar viewg : 𝒰 × Ω → ℝ, g(u, z) = f(u)(z)one point per pair (u, z)uncurrycurryseparable 𝒦(u, u′) = k(u, u′) 𝒯 ⇔ product kernel κ((u, z), (u′, z′)) = k(u, u′) t(z, z′)on a grid, the Gram matrix of a product kernel is K ⊗ T: the Kronecker trick

Proposition 4 (Currying turns scalar kernels on pairs into operator-valued kernels)

Let V=L2(Ω)\mathcal{V} = L^2(\Omega) and let κ\kappa be a bounded, continuous, positive-definite scalar kernel on pairs (u,z)∈U×Ω(u, z) \in \mathcal{U}\times\Omega. Define

(K(u,u′) c)(z)=∫Ωκ((u,z),(u′,z′)) c(z′) dz′.\big(\mathcal{K}(u, u')\,c\big)(z) = \int_\Omega\kappa\big((u, z), (u', z')\big)\,c(z')\,dz' .

Then K\mathcal{K} is a positive-definite operator-valued kernel. Moreover, if g∼GP(0,κ)g \sim \mathcal{GP}(0, \kappa) on U×Ω\mathcal{U}\times\Omega and f(u)=g(u,⋅)f(u) = g(u, \cdot), then E[⟨f(u),a⟩⟨f(u′),b⟩]=⟨a,K(u,u′) b⟩\mathbb{E}\big[\langle f(u), a\rangle\langle f(u'), b\rangle\big] = \langle a, \mathcal{K}(u, u')\,b\rangle: the curried GP is a V\mathcal{V}-valued GP with kernel K\mathcal{K}.

Proof

Step 1. Symmetry. The adjoint of an integral operator swaps the two arguments of its kernel. Since κ((u,z),(u′,z′))=κ((u′,z′),(u,z))\kappa\big((u, z), (u', z')\big) = \kappa\big((u', z'), (u, z)\big), the adjoint of K(u,u′)\mathcal{K}(u, u') is K(u′,u)\mathcal{K}(u', u).

Step 2. Write the quadratic form as a double integral. By the definition of the L2L^2 inner product,

∑i,j⟨ci,K(ui,uj) cj⟩=∫Ω∫Ω∑i,jci(z) κ((ui,z),(uj,z′)) cj(z′) dz dz′.\sum_{i,j}\big\langle c_i, \mathcal{K}(u_i, u_j)\,c_j\big\rangle = \int_\Omega\int_\Omega\sum_{i,j}c_i(z)\,\kappa\big((u_i, z), (u_j, z')\big)\,c_j(z')\,dz\,dz' .

Step 3. It is a limit of non-negative numbers. Replace both integrals by Riemann sums over points z1,…,zmz_1, \dots, z_m with cell size Δ\Delta. The result is ∑(i,p),(j,q)γip κ((ui,zp),(uj,zq)) γjq\sum_{(i,p),(j,q)}\gamma_{ip}\,\kappa\big((u_i, z_p), (u_j, z_q)\big)\,\gamma_{jq} with γip=ci(zp)Δ\gamma_{ip} = c_i(z_p)\Delta: a quadratic form of κ\kappa on the finite set of pairs {(ui,zp)}\{(u_i, z_p)\}, hence ≥0\ge 0. As Δ→0\Delta \to 0 the sums converge to the integral (for continuous cic_i, then by density for all of L2L^2), and a limit of non-negative numbers is non-negative.

Step 4. The covariance of the curried GP. ⟨f(u),a⟩=∫Ωg(u,z) a(z) dz\langle f(u), a\rangle = \int_\Omega g(u, z)\,a(z)\,dz. Multiply two such integrals and exchange expectation and integration (Fubini, using boundedness of κ\kappa):

E[⟨f(u),a⟩⟨f(u′),b⟩]=∬a(z) E[g(u,z) g(u′,z′)] b(z′) dz dz′=∬a(z) κ((u,z),(u′,z′)) b(z′) dz dz′=⟨a,K(u,u′) b⟩.\begin{aligned} \mathbb{E}\big[\langle f(u), a\rangle\langle f(u'), b\rangle\big] &= \iint a(z)\,\mathbb{E}\big[g(u, z)\,g(u', z')\big]\,b(z')\,dz\,dz' \\ &= \iint a(z)\,\kappa\big((u, z), (u', z')\big)\,b(z')\,dz\,dz' = \langle a, \mathcal{K}(u, u')\,b\rangle . \end{aligned}

Step 5. Gaussianity. Each ⟨f(u),a⟩\langle f(u), a\rangle is a limit of finite linear combinations of the jointly Gaussian values g(u,zp)g(u, z_p), so any finite collection of them is jointly Gaussian (GP Lemma 2, then limits).

Three things become obvious in the scalar view.

  • Separable means product. K(u,u′)=k(u,u′) T\mathcal{K}(u, u') = k(u, u')\,\mathcal{T}, with T\mathcal{T} the integral operator of t(z,z′)t(z, z'), is the curried form of the product kernel κ((u,z),(u′,z′))=k(u,u′) t(z,z′)\kappa\big((u, z), (u', z')\big) = k(u, u')\,t(z, z'). On NN inputs and a shared grid of mm points, entry ((i,p),(j,q))\big((i, p), (j, q)\big) of the Gram matrix is k(ui,uj) t(zp,zq)k(u_i, u_j)\,t(z_p, z_q), which is entry ((i,p),(j,q))\big((i, p), (j, q)\big) of K⊗T\mathbf{K} \otimes \mathbf{T}. The Kronecker trick of Section 2 is the classical trick for product kernels on grids.
  • Outputs need not share a grid. In the scalar view an output observed at its own scattered locations is just more scalar data at pairs (ui,z)(u_i, z). The model is unchanged; only the Kronecker structure, and its speed, is lost.
  • Resolution-agnostic prediction comes for free. The posterior is a GP on pairs, so it can be queried at any zz, on any grid, after training.
Remark (Linearised neural operators are curried GPs)

Magnani, Pförtner, Weber and Hennig (ICML 2025) use this view to give a trained neural operator Gθ\mathcal{G}_{\boldsymbol{\theta}} an uncertainty, in four steps.

Step 1. A Gaussian belief over weights. For example a Laplace approximation around the trained weights θ∗\boldsymbol{\theta}_*: θ∼N(θ∗,Σθ)\boldsymbol{\theta} \sim \mathcal{N}(\boldsymbol{\theta}_*, \boldsymbol{\Sigma}_{\theta}), with Σθ\boldsymbol{\Sigma}_{\theta} the inverse Hessian of the training loss.

Step 2. Linearise in the weights. Gθ(u)(z)≈Gθ∗(u)(z)+j(u,z)⊤(θ−θ∗)\mathcal{G}_{\boldsymbol{\theta}}(u)(z) \approx \mathcal{G}_{\boldsymbol{\theta}_*}(u)(z) + \boldsymbol{j}(u, z)^\top(\boldsymbol{\theta} - \boldsymbol{\theta}_*), with j(u,z)=∇θGθ(u)(z)\boldsymbol{j}(u, z) = \nabla_{\boldsymbol{\theta}}\mathcal{G}_{\boldsymbol{\theta}}(u)(z) at θ∗\boldsymbol{\theta}_*.

Step 3. An affine map of a Gaussian is Gaussian (GP Lemma 2). For every finite set of pairs (u,z)(u, z) the outputs are jointly Gaussian, so g(u,z)=Gθ(u)(z)g(u, z) = \mathcal{G}_{\boldsymbol{\theta}}(u)(z) is a scalar GP with mean Gθ∗(u)(z)\mathcal{G}_{\boldsymbol{\theta}_*}(u)(z) and kernel κ((u,z),(u′,z′))=j(u,z)⊤Σθ j(u′,z′)\kappa\big((u, z), (u', z')\big) = \boldsymbol{j}(u, z)^\top\boldsymbol{\Sigma}_{\theta}\,\boldsymbol{j}(u', z').

Step 4. Curry. By Proposition 4 this is a function-valued GP over output functions. They call it probabilistic currying; it is resolution-agnostic and needs no retraining.

The kernel in Step 3 is the weight-space kernel of GP Proposition 3, with the network’s Jacobian as the feature map.

Separable operator kernels, and why the output covariance must be trace class

The workhorse is again separable: K(u,u′)=k(u,u′) T\mathcal{K}(u, u') = k(u, u')\,\mathcal{T}, where kk is a scalar kernel on input functions and T\mathcal{T} is a self-adjoint positive semidefinite operator on V\mathcal{V}. In the GP view, f(u)f(u) is a random function with covariance operator k(u,u) Tk(u, u)\,\mathcal{T}: T\mathcal{T} decides what the predicted outputs look like. A natural choice is an integral operator, (Tc)(z)=∫Ωt(z,z′) c(z′) dz′(\mathcal{T}c)(z) = \int_\Omega t(z, z')\,c(z')\,dz', with a Matérn or RBF kernel tt on the output domain. A tempting choice, T=I\mathcal{T} = \mathcal{I}, fails, and the reason is worth a proposition.

Proposition 5 (Expected squared norm of a Gaussian random function)

Let ff be a centred Gaussian random element of V\mathcal{V} with covariance operator C\mathcal{C}, meaning E[⟨f,a⟩⟨f,b⟩]=⟨a,Cb⟩\mathbb{E}\big[\langle f, a\rangle\langle f, b\rangle\big] = \langle a, \mathcal{C}b\rangle for all a,b∈Va, b \in \mathcal{V}. Then E∥f∥V2=tr⁡C\mathbb{E}\lVert f\rVert_{\mathcal{V}}^2 = \operatorname{tr}\mathcal{C}.

Proof

Step 1. Expand in a basis. For an orthonormal basis {en}\{e_n\} of V\mathcal{V}, Parseval’s identity gives ∥f∥2=∑n⟨f,en⟩2\lVert f\rVert^2 = \sum_n\langle f, e_n\rangle^2.

Step 2. Take expectations term by term. Every term is non-negative, so the expectation of the sum is the sum of the expectations (monotone convergence):

E∥f∥2=∑nE[⟨f,en⟩2].\mathbb{E}\lVert f\rVert^2 = \sum_n\mathbb{E}\big[\langle f, e_n\rangle^2\big].

Step 3. Use the definition of C\mathcal{C} with a=b=ena = b = e_n: E[⟨f,en⟩2]=⟨en,Cen⟩\mathbb{E}[\langle f, e_n\rangle^2] = \langle e_n, \mathcal{C}e_n\rangle.

Step 4. Recognise the trace. ∑n⟨en,Cen⟩=tr⁡C\sum_n\langle e_n, \mathcal{C}e_n\rangle = \operatorname{tr}\mathcal{C}, by definition of the trace.

So predicted outputs have finite energy only if tr⁡(k(u,u) T)<∞\operatorname{tr}\big(k(u, u)\,\mathcal{T}\big) < \infty, that is, only if T\mathcal{T} is trace class. The identity has tr⁡I=∑n1=∞\operatorname{tr}\mathcal{I} = \sum_n 1 = \infty: a “GP with covariance I\mathcal{I}” is white noise, not a function. For an integral operator with continuous kernel on a compact domain, tr⁡T=∫Ωt(z,z) dz<∞\operatorname{tr}\mathcal{T} = \int_\Omega t(z, z)\,dz < \infty (Mercer’s theorem), so smooth output covariances are safe.

Note (How this shows up in code)

On a grid of mm points, T=I\mathcal{T} = \mathcal{I} becomes Im\mathbf{I}_m, whose trace is mm. Every sample’s squared norm grows linearly with the resolution, and refining the mesh changes the model. A trace-class T\mathcal{T}, discretised with quadrature weights, has a trace that converges as mm grows. “Resolution-independent” is a statement about traces.

4. Kernel regression for operators

Given pairs {(ui,vi)}i=1N\{(u_i, v_i)\}_{i=1}^N, minimise ∑i∥vi−f(ui)∥V2+λ∥f∥HK2\sum_i\lVert v_i - f(u_i)\rVert_{\mathcal{V}}^2 + \lambda\lVert f\rVert_{\mathcal{H}_{\mathcal{K}}}^2 over f∈HKf \in \mathcal{H}_{\mathcal{K}}. The splitting proof of Theorem 1 needs a closed finite-dimensional subspace, which fails when V\mathcal{V} is infinite-dimensional. Here is a proof that verifies the answer directly.

Theorem 2 (Representer theorem for operator-valued kernels)

Let α1,…,αN∈V\alpha_1, \dots, \alpha_N \in \mathcal{V} solve

∑j=1NK(ui,uj) αj+λ αi=vi,i=1,…,N.\sum_{j=1}^N \mathcal{K}(u_i, u_j)\,\alpha_j + \lambda\,\alpha_i = v_i, \qquad i = 1, \dots, N .

Then f^=∑jK(⋅,uj) αj\hat f = \sum_j \mathcal{K}(\cdot, u_j)\,\alpha_j is the unique minimiser.

Proof

Step 0. A solution exists. The block operator K\mathbb{K} on VN\mathcal{V}^N is positive semidefinite (Definition 4), so K+λI\mathbb{K} + \lambda\mathcal{I} satisfies ⟨α,(K+λI)α⟩≥λ∥α∥2\langle\alpha, (\mathbb{K} + \lambda\mathcal{I})\alpha\rangle \ge \lambda\lVert\alpha\rVert^2 and is invertible.

Step 1. Perturb. For any h∈HKh \in \mathcal{H}_{\mathcal{K}}, write ri=vi−f^(ui)r_i = v_i - \hat f(u_i) and expand J(f^+h)J(\hat f + h):

J(f^+h)=∑i∥ri−h(ui)∥2+λ∥f^+h∥2.J(\hat f + h) = \sum_i\lVert r_i - h(u_i)\rVert^2 + \lambda\lVert\hat f + h\rVert^2 .

Step 2. Expand both squares.

J(f^+h)−J(f^)=−2∑i⟨ri,h(ui)⟩V+2λ⟨f^,h⟩HK⏟linear in h+∑i∥h(ui)∥2+λ∥h∥2.J(\hat f + h) - J(\hat f) = \underbrace{-2\sum_i\langle r_i, h(u_i)\rangle_{\mathcal{V}} + 2\lambda\langle\hat f, h\rangle_{\mathcal{H}_{\mathcal{K}}}}_{\text{linear in } h} + \sum_i\lVert h(u_i)\rVert^2 + \lambda\lVert h\rVert^2 .

Step 3. Use the linear system. It says exactly ri=vi−∑jK(ui,uj)αj=λαir_i = v_i - \sum_j\mathcal{K}(u_i, u_j)\alpha_j = \lambda\alpha_i.

Step 4. Use the reproducing property (Lemma 3 with c=αic = \alpha_i): ⟨αi,h(ui)⟩V=⟨K(⋅,ui)αi,h⟩HK\langle\alpha_i, h(u_i)\rangle_{\mathcal{V}} = \langle\mathcal{K}(\cdot, u_i)\alpha_i, h\rangle_{\mathcal{H}_{\mathcal{K}}}. Summing,

∑i⟨ri,h(ui)⟩=λ∑i⟨K(⋅,ui)αi,h⟩=λ⟨f^,h⟩.\sum_i\langle r_i, h(u_i)\rangle = \lambda\sum_i\langle\mathcal{K}(\cdot, u_i)\alpha_i, h\rangle = \lambda\langle\hat f, h\rangle .

Step 5. The linear terms cancel. By Step 4, the bracket in Step 2 is −2λ⟨f^,h⟩+2λ⟨f^,h⟩=0-2\lambda\langle\hat f, h\rangle + 2\lambda\langle\hat f, h\rangle = 0.

Step 6. Conclude. J(f^+h)−J(f^)=∑i∥h(ui)∥2+λ∥h∥2≥0J(\hat f + h) - J(\hat f) = \sum_i\lVert h(u_i)\rVert^2 + \lambda\lVert h\rVert^2 \ge 0, with equality only for h=0h = 0.

For a separable kernel on a grid of mm output points, T\mathcal{T} becomes an m×mm\times m matrix T\mathbf{T} and the system is KCT+λC=V\mathbf{K}\mathbf{C}\mathbf{T} + \lambda\mathbf{C} = \mathbf{V}, solved by Proposition 2 with p=mp = m. (With uniform quadrature weights the grid inner product is a⊤b/m\boldsymbol{a}^\top\boldsymbol{b}/m; the constant is absorbed into T\mathbf{T}.)

5. The Gaussian-process view

A V\mathcal{V}-valued GP f∼GP(0,K)f \sim \mathcal{GP}(0, \mathcal{K}) is a random map from U\mathcal{U} to V\mathcal{V} whose values at any finite set of inputs are jointly Gaussian, with E[⟨f(u),a⟩⟨f(u′),b⟩]=⟨a,K(u,u′) b⟩\mathbb{E}\big[\langle f(u), a\rangle\langle f(u'), b\rangle\big] = \langle a, \mathcal{K}(u, u')\,b\rangle. Conditioning works exactly as in GP Section 6, block by block. For separable kernels, one choice of noise makes the result strikingly simple.

Proposition 6 (Separable GP operator with matched noise)

Let K(u,u′)=k(u,u′) T\mathcal{K}(u, u') = k(u, u')\,\mathbf{T} on a grid, with T\mathbf{T} positive definite, and observe vi=f(ui)+εi\boldsymbol{v}_i = \boldsymbol{f}(u_i) + \boldsymbol{\varepsilon}_i with independent εi∼N(0,λT)\boldsymbol{\varepsilon}_i \sim \mathcal{N}(\mathbf{0}, \lambda\mathbf{T}). With w(u)=(K+λI)−1ku\boldsymbol{w}(u) = (\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{k}_u and ku=[k(u1,u),…,k(uN,u)]⊤\boldsymbol{k}_u = [k(u_1, u), \dots, k(u_N, u)]^\top,

E[f(u)∣data]=∑i=1Nwi(u) vi,Cov⁡[f(u)∣data]=(k(u,u)−ku⊤(K+λI)−1ku) T.\begin{aligned} \mathbb{E}[\boldsymbol{f}(u) \mid \text{data}] &= \sum_{i=1}^N w_i(u)\,\boldsymbol{v}_i, \\ \operatorname{Cov}[\boldsymbol{f}(u) \mid \text{data}] &= \big(k(u, u) - \boldsymbol{k}_u^\top(\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{k}_u\big)\,\mathbf{T}. \end{aligned}
Proof

Step 1. Stack the observations input by input, v=[v1;… ;vN]\boldsymbol{v} = [\boldsymbol{v}_1; \dots; \boldsymbol{v}_N]. Signal and noise are independent, so by GP Lemma 3 their covariances add:

Cov⁡[v]=K⊗T+I⊗(λT)=(K+λI)⊗T.\operatorname{Cov}[\boldsymbol{v}] = \mathbf{K} \otimes \mathbf{T} + \mathbf{I} \otimes (\lambda\mathbf{T}) = (\mathbf{K} + \lambda\mathbf{I}) \otimes \mathbf{T}.

(The last step: block (i,j)(i, j) of both sides is (Kij+λδij)T(K_{ij} + \lambda\delta_{ij})\mathbf{T}.)

Step 2. The cross-covariance between f(u)\boldsymbol{f}(u) and v\boldsymbol{v} has blocks k(u,ui)Tk(u, u_i)\mathbf{T}, that is, ku⊤⊗T\boldsymbol{k}_u^\top \otimes \mathbf{T}.

Step 3. Invert with Lemma 2. ((K+λI)⊗T)−1=(K+λI)−1⊗T−1\big((\mathbf{K} + \lambda\mathbf{I}) \otimes \mathbf{T}\big)^{-1} = (\mathbf{K} + \lambda\mathbf{I})^{-1} \otimes \mathbf{T}^{-1}.

Step 4. The mean (GP Lemma 5), using the mixed product twice:

(ku⊤⊗T)((K+λI)−1⊗T−1)v=(ku⊤(K+λI)−1⊗TT−1)v=(w(u)⊤⊗I) v=∑iwi(u) vi.\begin{aligned} (\boldsymbol{k}_u^\top \otimes \mathbf{T})\big((\mathbf{K} + \lambda\mathbf{I})^{-1} \otimes \mathbf{T}^{-1}\big)\boldsymbol{v} &= \big(\boldsymbol{k}_u^\top(\mathbf{K} + \lambda\mathbf{I})^{-1} \otimes \mathbf{T}\mathbf{T}^{-1}\big)\boldsymbol{v} \\ &= (\boldsymbol{w}(u)^\top \otimes \mathbf{I})\,\boldsymbol{v} = \sum_i w_i(u)\,\boldsymbol{v}_i . \end{aligned}

Step 5. The covariance (GP Lemma 5), by the same two steps:

k(u,u)T−(ku⊤(K+λI)−1ku)⊗(TT−1T)=(k(u,u)−ku⊤(K+λI)−1ku) T.k(u, u)\mathbf{T} - \big(\boldsymbol{k}_u^\top(\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{k}_u\big) \otimes \big(\mathbf{T}\mathbf{T}^{-1}\mathbf{T}\big) = \big(k(u, u) - \boldsymbol{k}_u^\top(\mathbf{K} + \lambda\mathbf{I})^{-1}\boldsymbol{k}_u\big)\,\mathbf{T}.

Two readings. First, T\mathbf{T} has cancelled from the mean: the prediction is a kernel-weighted average of the training output functions, with weights set entirely by how similar uu is to each training input. Second, the uncertainty is a scalar, the ordinary GP variance in input space, times a fixed output shape T\mathbf{T}. The opening figure is this proposition: the band’s width is that scalar.

Remark (With a linear kernel, uncertainty is the part of the input you have never seen)

Take k(u,u′)=⟨u,u′⟩L2k(u, u') = \langle u, u'\rangle_{L^2} and let λ→0\lambda \to 0.

Step 1. K\mathbf{K} is the Gram matrix of the training inputs, Kij=⟨ui,uj⟩K_{ij} = \langle u_i, u_j\rangle, and ku\boldsymbol{k}_u has entries ⟨ui,u⟩\langle u_i, u\rangle.

Step 2. The orthogonal projection of uu onto span⁡{ui}\operatorname{span}\{u_i\} is Πu=∑iciui\Pi u = \sum_i c_iu_i with c=K−1ku\boldsymbol{c} = \mathbf{K}^{-1}\boldsymbol{k}_u (the normal equations), and ∥Πu∥2=c⊤Kc=ku⊤K−1ku\lVert\Pi u\rVert^2 = \boldsymbol{c}^\top\mathbf{K}\boldsymbol{c} = \boldsymbol{k}_u^\top\mathbf{K}^{-1}\boldsymbol{k}_u.

Step 3. By Pythagoras, the variance factor is

k(u,u)−ku⊤K−1ku=∥u∥2−∥Πu∥2=∥u−Πu∥2.k(u, u) - \boldsymbol{k}_u^\top\mathbf{K}^{-1}\boldsymbol{k}_u = \lVert u\rVert^2 - \lVert\Pi u\rVert^2 = \lVert u - \Pi u\rVert^2 .

The posterior variance is the energy of the input outside everything the training set has shown. In the demo, Add a wiggle adds 0.35sin⁡(2π⋅11z)0.35\sin(2\pi\cdot 11z), a frequency absent from every training input, and the band grows accordingly. (In the code of Section 9 the same experiment returns exactly ∥0.3sin⁡∥2=0.045\lVert 0.3\sin\rVert^2 = 0.045.)

A ladder of simplifications

Exact inference with a general operator-valued kernel is hopeless at realistic sizes. Every practical method buys speed with an assumption. The ladder below collects the ones in this post; each rung keeps the previous assumptions.

each assumption buys a cheaper structureno structurefull Nm × Nm block GramO(N³m³)separable 𝒦 = k(u, u′) 𝒯K ⊗ T: two eigendecompositionsO(N³ + m³)+ stationary 𝒯, regular gridT diagonal in Fourier: use the FFTO(N³ + m log m)+ low-rank 𝒯 (rank R)outputs in span of R functions (DeepONet-like)O(N³ + mR²)+ matched noise λ𝒯mean = weighted sum of training outputsO(N³ + Nm)+ M inducing inputs, M ≪ Ninput side shrinks from N × N to M × MO(NM² + M³ + …)
Remark (POD-GP: the low-rank rung, as computational mechanics uses it)

The most widely used operator GP in computational mechanics is two familiar steps glued together (Guo and Hesthaven, CMAME 2018).

Step 1. Compress the outputs with POD. Stack the training outputs on the grid as the rows of V∈RN×m\mathbf{V} \in \mathbb{R}^{N\times m} (subtract the mean first). The leading RR right singular vectors ϕ1,…,ϕR\boldsymbol{\phi}_1, \dots, \boldsymbol{\phi}_R of V\mathbf{V}, the proper orthogonal decomposition modes, are the best rank-RR basis for the outputs in the least-squares sense. Each output becomes RR coefficients, air=ϕr⊤via_{ir} = \boldsymbol{\phi}_r^\top\boldsymbol{v}_i.

Step 2. Regress each coefficient with its own scalar GP. ar(u)∼GP(0,kr)a_r(u) \sim \mathcal{GP}(0, k_r), independent across rr, and predict f(u)=∑rar(u) ϕr\boldsymbol{f}(u) = \sum_r a_r(u)\,\boldsymbol{\phi}_r.

Step 3. Read off the operator-valued kernel. By independence, only the r=sr = s terms survive in the covariance:

Cov⁡[f(u),f(u′)]=∑r,sCov⁡[ar(u),as(u′)] ϕrϕs⊤=∑r=1Rkr(u,u′) ϕrϕr⊤.\operatorname{Cov}\big[\boldsymbol{f}(u), \boldsymbol{f}(u')\big] = \sum_{r,s}\operatorname{Cov}\big[a_r(u), a_s(u')\big]\,\boldsymbol{\phi}_r\boldsymbol{\phi}_s^\top = \sum_{r=1}^R k_r(u, u')\,\boldsymbol{\phi}_r\boldsymbol{\phi}_r^\top .

That is a linear model of coregionalisation (Example 1) with rank-one output matrices Br=ϕrϕr⊤\mathbf{B}_r = \boldsymbol{\phi}_r\boldsymbol{\phi}_r^\top taken from the data. With a single shared kk it is the separable kernel k(u,u′) Tk(u, u')\,\mathbf{T} with T=∑rϕrϕr⊤\mathbf{T} = \sum_r\boldsymbol{\phi}_r\boldsymbol{\phi}_r^\top of rank RR: the fourth rung of the ladder.

Step 4. The cost. RR independent N×NN\times N GPs plus one SVD: O(RN3+min⁡(N,m) Nm)O(RN^3 + \min(N, m)\,Nm), independent of the mesh after the SVD. The price is the same as DeepONet’s: predictions cannot leave the span of the RR modes, so features the training snapshots never contained are invisible to both the mean and the uncertainty.

6. Kernels on function inputs

The input kernel k(u,u′)k(u, u') compares two functions, observed on grids {zj}j=1m\{z_j\}_{j=1}^m as vectors u\boldsymbol{u}. The obvious choice, an RBF on the Euclidean distance of the vectors, has a hidden defect:

∥u−u′∥22=∑j=1m(u(zj)−u′(zj))2≈m∫Ω(u−u′)2 dz.\lVert\boldsymbol{u} - \boldsymbol{u}'\rVert_2^2 = \sum_{j=1}^m\big(u(z_j) - u'(z_j)\big)^2 \approx m\int_\Omega\big(u - u'\big)^2\,dz .

It grows linearly with the resolution, so refining the grid silently changes the kernel. Use quadrature instead, ∥u−u′∥L22≈∑jωj(u(zj)−u′(zj))2\lVert u - u'\rVert_{L^2}^2 \approx \sum_j \omega_j\big(u(z_j) - u'(z_j)\big)^2 with weights ωj\omega_j (1/m1/m on a uniform grid), which converges as m→∞m \to \infty. Then the same kernel, and the same trained model, can be evaluated on inputs sampled on any sufficiently fine grid. This is what discretisation invariance means for kernels.

The choice of kernel on inputs is an assumption about the operator:

  • Linear, k(u,u′)=⟨u,u′⟩L2k(u, u') = \langle u, u'\rangle_{L^2}. By Proposition 6 the mean is linear in uu (the weights w(u)\boldsymbol{w}(u) are), so the model can only represent linear operators, and it extrapolates them perfectly. Heat diffusion is linear; this is why Double it works.
  • RBF on L2L^2, k(u,u′)=exp⁡ ⁣(−∥u−u′∥L22/2ℓ2)k(u, u') = \exp\!\big(-\lVert u - u'\rVert_{L^2}^2/2\ell^2\big). Nonlinear and local: far from all training inputs, ku→0\boldsymbol{k}_u \to \mathbf{0}, the mean returns to zero and the variance to the prior. Safe, but it cannot extrapolate.
  • Sobolev distances, adding ∥∇u−∇u′∥2\lVert\nabla u - \nabla u'\rVert^2, make two inputs similar only when their shapes, not just their values, agree.

7. Bridges to neural operators

  • DeepONet predicts G(u)(z)≈∑r=1Rbr(u) tr(z)\mathcal{G}(u)(z) \approx \sum_{r=1}^R b_r(u)\,t_r(z): a branch network of the input times trunk functions of the output location. A separable kernel with a rank-RR output operator T=∑rtr⟨tr,⋅⟩\mathcal{T} = \sum_r t_r\langle t_r, \cdot\rangle has the same structure, because every prediction ∑ik(u,ui) Tαi\sum_i k(u, u_i)\,\mathcal{T}\alpha_i lies in the range of T\mathcal{T}, which is span⁡{tr}\operatorname{span}\{t_r\}. DeepONet learns the basis by gradient descent; the kernel model fixes it and solves for the rest in closed form.
  • Fourier neural operators build each layer from a convolution, which is multiplication in the Fourier basis. Translation-equivariant operators are exactly the ones that are diagonal in that basis, the heat operator of Section 9 being the cleanest example. A stationary output covariance T\mathcal{T} is diagonal there too, which is why spectral methods suit both.
  • POD-GP (Guo and Hesthaven, 2018) replaces DeepONet’s learned trunk by POD modes of the training outputs and regresses the coefficients with scalar GPs: the same low-rank structure, solved in closed form (Remark after the ladder).
  • Linearised neural operators are curried GPs. Magnani et al. (ICML 2025) linearise a trained neural operator under a Gaussian weight belief and curry the resulting scalar GP into a function-valued one (Remark after Proposition 4).
  • Infinitely wide neural operators are GPs on functions. de Souza, Zhu, Cunningham, Saporito, Mesquita and Deisenroth (NeurIPS 2025) show when randomly initialised neural operators converge, as their width grows, to function-valued GPs, and compute the resulting covariance functions for the Fourier neural operator. The kernel view and the network view of operator learning are two limits of one model.

In my own work with Rajdip Nayek and Souvik Chakraborty, the kernel and the network meet in the other direction: a neural operator supplies the kernel of a GP (CMAME 2024; CMAME 2025), and local kernel interactions are assembled into a scalable global operator (J. Comput. Phys. 2026, with Tapas Tripura).

8. Theory you should know exists

  • Rates. For vector-valued kernel ridge regression with outputs in a Hilbert space, Caponnetto and De Vito (2007) prove minimax-optimal learning rates under smoothness (“source”) and capacity assumptions, and their setting assumes K(u,u)\mathcal{K}(u, u) is trace class, the condition of Proposition 5.
  • Universality. Whether HK\mathcal{H}_{\mathcal{K}} can approximate every continuous operator is characterised by Carmeli, De Vito, Toigo and Umanità (2010).
  • Functional responses. Kadri, Duflos, Preux, Canu, Rakotomamonjy and Audiffren (2016) develop operator-valued kernels for function-valued outputs, with algorithms and experiments on speech and audio.

9. A worked example you can run: the heat operator

The heat equation on the periodic interval, ∂tv=∂z2v\partial_t v = \partial_z^2 v with v(⋅,0)=uv(\cdot, 0) = u, defines the solution operator Gt:u↦v(⋅,t)\mathcal{G}_t : u \mapsto v(\cdot, t), written etΔe^{t\Delta}.

Proposition 7 (The heat operator is diagonal in the Fourier basis)

If u(z)=∑k∈Zu^k e2πikzu(z) = \sum_{k\in\mathbb{Z}}\hat u_k\,e^{2\pi ikz}, then (etΔu)(z)=∑ke−4π2k2t u^k e2πikz(e^{t\Delta}u)(z) = \sum_k e^{-4\pi^2k^2t}\,\hat u_k\,e^{2\pi ikz}.

Proof

Step 1. Fourier modes are eigenfunctions of ∂z2\partial_z^2. Differentiating twice, ∂z2 e2πikz=(2πik)2e2πikz=−4π2k2 e2πikz\partial_z^2\,e^{2\pi ikz} = (2\pi ik)^2e^{2\pi ikz} = -4\pi^2k^2\,e^{2\pi ikz}.

Step 2. Expand the solution in the same basis. Write v(z,t)=∑kck(t) e2πikzv(z, t) = \sum_k c_k(t)\,e^{2\pi ikz} with ck(0)=u^kc_k(0) = \hat u_k.

Step 3. Substitute into the equation. By Step 1, ∑kck′(t) e2πikz=∑k−4π2k2ck(t) e2πikz\sum_k c_k'(t)\,e^{2\pi ikz} = \sum_k -4\pi^2k^2c_k(t)\,e^{2\pi ikz}. The modes are orthogonal, so the coefficients match one by one: ck′=−4π2k2ckc_k' = -4\pi^2k^2c_k.

Step 4. Solve each scalar ODE. ck(t)=e−4π2k2t u^kc_k(t) = e^{-4\pi^2k^2t}\,\hat u_k.

Each mode decays at its own rate, and high frequencies die fastest: the heat operator is a low-pass filter, and −4π2k2-4\pi^2k^2 are the eigenvalues of the Laplacian (the Laplacian post tells the longer story).

The code below learns etΔe^{t\Delta} from 200 examples with the linear kernel and Proposition 6.

import numpy as np

m, N, t, lam = 128, 200, 0.002, 1e-6
k = np.fft.rfftfreq(m, 1 / m)                        # wavenumbers 0, 1, ..., m/2
rng = np.random.default_rng(0)

def random_inputs(n, width=6.0):
    c = rng.standard_normal((n, k.size)) + 1j * rng.standard_normal((n, k.size))
    return np.fft.irfft(c * np.exp(-0.5 * (k / width) ** 2), m)   # smooth periodic functions

def heat(U):                                         # exact solution operator, one row per function
    return np.fft.irfft(np.fft.rfft(U) * np.exp(-4 * np.pi**2 * k**2 * t), m)

def k_lin(A, B):                                     # <u, u'> in L^2, by quadrature on the grid
    return A @ B.T / m

U = random_inputs(N); V = heat(U)                    # training pairs
Us = random_inputs(5)                                # test inputs
Wt = np.linalg.solve(k_lin(U, U) + lam * np.eye(N), k_lin(U, Us))   # N x 5 weights w(u)
mean = Wt.T @ V                                      # Proposition 6: weighted sum of training outputs
var = np.diag(k_lin(Us, Us)) - np.sum(k_lin(U, Us) * Wt, 0)          # multiplies T at every z
err = np.linalg.norm(mean - heat(Us)) / np.linalg.norm(heat(Us))
print(f"relative error {err:.2e}; variance factors {np.round(var, 6)}")
# relative error 8.02e-05; variance factors [0. 0. 0. 0. 0.]

z = np.arange(m) / m
odd = Us + 0.3 * np.sin(2 * np.pi * 40 * z)          # add a frequency no training input contains
Wo = np.linalg.solve(k_lin(U, U) + lam * np.eye(N), k_lin(U, odd))
print(np.diag(k_lin(odd, odd)) - np.sum(k_lin(U, odd) * Wo, 0))     # [0.045 ...] = ||0.3 sin||^2

Questions

Question 1

Why is k(x,x′)Bk(\boldsymbol{x}, \boldsymbol{x}')\mathbf{B} with an indefinite B\mathbf{B} not a valid kernel, even when kk is?

Answer

Take a single input, N=1N = 1. The block Gram matrix is k(x,x)Bk(\boldsymbol{x}, \boldsymbol{x})\mathbf{B}, and if B\mathbf{B} has a negative eigenvalue with eigenvector c\boldsymbol{c}, then c⊤k(x,x)Bc<0\boldsymbol{c}^\top k(\boldsymbol{x}, \boldsymbol{x})\mathbf{B}\boldsymbol{c} < 0 whenever k(x,x)>0k(\boldsymbol{x}, \boldsymbol{x}) > 0.

Question 2

With N=500N = 500 training pairs on a grid of m=2000m = 2000 points, how many unknowns does the direct solve have, and what does the Kronecker trick factor instead?

Answer

Nm=106Nm = 10^6 unknowns, a 106×10610^6\times 10^6 system. The Kronecker trick eigendecomposes a 500×500500\times 500 and a 2000×20002000\times 2000 matrix.

Question 3

In Proposition 6, the output covariance T\mathbf{T} disappears from the posterior mean. What, then, is it for?

Answer

It shapes the uncertainty (the posterior covariance is a scalar times T\mathbf{T}), and so it determines what posterior samples look like and how errors at different output locations are correlated. With a different noise model (for example λI\lambda\mathbf{I} instead of λT\lambda\mathbf{T}) it also enters the mean.

Question 4

Why can’t a GP operator with output covariance T=I\mathcal{T} = \mathcal{I} be refined to arbitrarily fine grids?

Answer

tr⁡I=∞\operatorname{tr}\mathcal{I} = \infty, so by Proposition 5 its samples have infinite expected energy. On an mm-point grid the trace is mm, so sample norms grow with resolution instead of converging.

References

  • C. A. Micchelli, M. Pontil. On learning vector-valued functions. Neural Computation, 2005.
  • C. Carmeli, E. De Vito, A. Toigo. Vector valued reproducing kernel Hilbert spaces of integrable functions and Mercer theorem. Analysis and Applications, 2006.
  • C. Carmeli, E. De Vito, A. Toigo, V. Umanità. Vector valued reproducing kernel Hilbert spaces and universality. Analysis and Applications, 2010.
  • A. Caponnetto, E. De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics, 2007.
  • H. Kadri, E. Duflos, P. Preux, S. Canu, A. Rakotomamonjy, J. Audiffren. Operator-valued kernels for learning from functional response data. JMLR, 2016.
  • M. A. Álvarez, L. Rosasco, N. D. Lawrence. Kernels for vector-valued functions: a review. Foundations and Trends in Machine Learning, 2012.
  • M. Guo, J. S. Hesthaven. Reduced order modeling for nonlinear structural analysis using Gaussian process regression. CMAME, 2018.
  • E. Magnani, M. Pförtner, T. Weber, P. Hennig. Linearization turns neural operators into function-valued Gaussian processes. ICML 2025.
  • D. A. de Souza, Y. Zhu, H. J. Cunningham, Y. Saporito, D. Mesquita, M. P. Deisenroth. Infinite neural operators: Gaussian processes on functions. NeurIPS 2025.
  • L. Lu, P. Jin, G. Pang, Z. Zhang, G. E. Karniadakis. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 2021.
  • Z. Li, N. Kovachki, K. Azizzadenesheli, B. Liu, K. Bhattacharya, A. Stuart, A. Anandkumar. Fourier neural operator for parametric partial differential equations. ICLR 2021.
  • S. Kumar, R. Nayek, S. Chakraborty. Towards Gaussian process for operator learning. CMAME, 2025.