Post · 25 min read· pp. 379–389

Unraveling spectral properties of kernel matrices – II

This month, we pursue our exploration of spectral properties of kernel matrices. As mentioned in a previous post, understanding how eigenvalues decay is not only fun but also key to understanding algorithmic and statistical properties of many learning methods (see, e.g., chapter 7 of my book “Learning Theory from First Principles“). This month, we look at the common situation of translation-invariant kernels in Rd\mathbb{R}^d, review asymptotic results, and provide non-asymptotic bounds which are not available in the literature in the simple form I propose (at least, I am not aware of it).

The previous episode can be summarized as follows:

  • Take any independent and identically distributed data x1,…,xn∈Xx_1,\dots,x_n \in \mathcal{X} from a probability distribution μ\mu and compute the n×nn \times n kernel matrix KK defined as Kij=k(xi,xj)K_{ij} = k(x_i,x_j) for a positive definite kernel k:X×X→Rk: \mathcal{X} \times \mathcal{X} \to \mathbb{R}. Then, when nn tends to infinity, the mm-th eigenvalue of 1nK\frac{1}{n}K tends to the mm-th eigenvalue of the covariance operator (from H\mathcal{H} to H\mathcal{H})
    Σ=∫Xφ(x) ⁣⊗ ⁣φ(x) dμ(x),\Sigma = \int_{\mathcal{X}} \varphi(x)\! \otimes \! \varphi(x) \, d\mu(x),
    where φ:X→H\varphi: \mathcal{X} \to \mathcal{H} is a feature map representing the kernel (that is, k(x,y)=⟨φ(x),φ(y)⟩k(x,y) = \langle \varphi(x),\varphi(y) \rangle for all x,y∈Xx,y \in \mathcal{X}).
  • While the covariance operator is a nice tool in particular in finite dimensions, when it becomes the (non-centered) covariance matrix, it is not most practical to study eigenvalues, as it is only defined implicitly through the feature map φ\varphi. When a natural feature map can be defined (like done in a previous post for the torus [0, ⁣1]d[0,\! 1]^d with complex exponentials), this is quite useful, but when not, this is more problematic. This is why the following integral operator is usually considered, this time from L2(μ)L_2(\mu) to L2(μ)L_2(\mu) (the space of square-integrable functions for the distribution μ\mu of the data), defined as
    Tf(x)=∫Xk(x,y)f(y)dμ(y).(1)\tag{1} Tf(x) = \int_{\mathcal{X}} k(x,y) f(y) d\mu(y).
    It is compact and has the same non-zero eigenvalues as Σ\Sigma.
  • For the torus X=[0, ⁣1]d\mathcal{X} = [0,\! 1]^d and a kernel of the form k(x,y)=k(x−y)k(x,y) = k(x-y) with a translation-invariant 11-periodic function kk, the eigenvalues are exactly the Fourier series components ∫[0,1]dk(x)e−2iπω⊤xdx∈R+\int_{[0, 1]^d} k(x)e^{-2i \pi \omega^\top x} dx \in \mathbb{R}_+ for ω∈Zd\omega \in \mathbb{Z}^d. While having closed-form expressions is practical for analysis, these kernels are not commonly used in practice.

Translation-invariant kernels on Rd\mathbb{R}^d

In this post, we look at a more common and impactful situation, that is, X=Rd\mathcal{X}= \mathbb{R}^d, and translation-invariant kernels of the form k(x,y)=k(x−y)k(x,y) = k(x-y) for k:Rd→Rk: \mathbb{R}^d \to \mathbb{R} (with a common slight overloading of notations). It is well-known that such a kernel is positive-definite if and only if its Fourier transform (assuming it exists)

k^(ω)=∫Rdk(x)e−iω⊤xdx\hat{k}(\omega) = \int_{\mathbb{R}^d} k(x) e^{-i \omega^\top x} dx
is non-negative, a result known as Bochner’s theorem. Here are below classical examples, with various decays of the Fourier transform, e.g., Gaussian tails, exponential tails, polynomial tails, or compact support, all with a bandwidth τ\tau. Throughout this blog post, we privilege the normalization k(0)=1k(0)=1 so that eigenvalues sum to one, that is, ∑m⩾0λm=1\sum_{m \geqslant 0} \lambda_m = 1.

Kernel k(x−y)k(x-y)Fourier transform k^(ω)\hat{k}(\omega)
Gaussianexp⁡(–12τ2∥x ⁣− ⁣y∥22)\exp( – \frac{1}{2\tau^2} \| x\! -\! y\|_2^2 )(2πτ2)d/2exp⁡(–τ22∥ω∥22)(2\pi \tau^2)^{d/2} \exp( – \frac{\tau^2}{2} \| \omega \|_2^2)
Abelexp⁡(–1τ∥x–y∥2)\exp( – \frac{1}{\tau} \| x – y\|_2 )2dπ(d−1)/2Γ(d+12)τd(1 ⁣+ ⁣τ2∥ω∥22)d/2+1/2\displaystyle \frac{2^d \pi^{(d-1)/2}\Gamma( \frac{d+1 }{2})\tau^d }{(1\!+\!\tau^2 \| \omega\|_2^2)^{d/2+1/2}}
Maternexp⁡(−∥x–y∥2τ)Pα(∥x−y∥2τ)\exp( \frac{-\| x – y\|_2}{\tau} ) P_\alpha(\frac{\| x- y\|_2}{\tau} ) with a polynomial PαP_{\alpha}cα,dτd(1 ⁣+ ⁣τ2∥ω∥22)−α−d/2−1/2c_{\alpha,d} \tau^d (1\!+\!\tau^2 \| \omega\|_2^2)^{-\alpha-d/2-1/2} with α∈N\alpha \in \mathbb{N}
Student1(1 ⁣+ ⁣∥x ⁣− ⁣y∥22/τ2)α+d/2+1/2\displaystyle \frac{1}{(1\!+\! \| x\!-\!y\|_2^2 / \tau^2)^{\alpha+d/2+1/2}}τdPα(τ∥ω∥2)(2π)dcα,dexp⁡(–τ∥ω∥2)\displaystyle \frac{\tau^d P_\alpha(\tau \| \omega \|_2)}{(2\pi)^d c_{\alpha,d}} \exp( – \tau \| \omega \|_2 )
Sincτsin⁡x−yτx−y\tau \frac{ \sin \frac{x-y}{\tau}}{ x- y}(πτ)d1[−1,1]d(τω)(\pi \tau)^d1_{[-1,1]^d} ( \tau \omega)

In the table above with translation-invariant kernels and their Fourier transforms, for Matern kernels, the polynomial PαP_{\alpha} has degree α\alpha, and P0(X)=1P_0(X)=1 (we then recover the Abel kernel), P1(X)=1 ⁣+ ⁣XP_1(X)=1\!+\!X, and P2(X)=1 ⁣+ ⁣X ⁣+ ⁣X2/3P_2(X) = 1\!+\!X\!+\!X^2/3, and we have cd,α=2dπd/2Γ(α+d+12)Γ(α+12)−1c_{d,\alpha}= 2^d \pi^{d/2}\Gamma( \alpha+\frac{d+1 }{2}) \Gamma(\alpha+\frac{1}{2})^{-1}. See [1, page 84] for more details.

Densities. We consider a probability distribution μ\mu with density pp with respect to the Lebesgue measure, but below, we will not necessarily need that the density sums to one to define the integral operator and its eigenvalues. As we will see below, the densities pp play a similar role than Fourier transforms k^\hat{k} of kernels, so typical examples would be obtained from the right column of the table above, e.g., Gaussian, Student, Laplace, or uniform on a box.

Eigenvalues and their properties

We denote by (λm(p,k^))m⩾0(\lambda_m(p,\hat{k}))_{m \geqslant 0} the eigenvalues of the integral operator TT, defined in Eq. (1)(1), obtained from density pp and kernel kk with Fourier transform k^\hat{k}. Throughout the rest of the post, we do not assume any form of normalization, although we will often make sure that k(0)=1k(0)=1 and pp sums to one, so that eigenvalues sum to one (in general they sum to k(0)∫Rdp(x)dxk(0) \int_{\mathbb{R}^d} p(x) dx). Because of the Fourier inversion formula k(x)= 1(2π)d ⁣∫Rd  ⁣k^(ω)e iω⊤xdωk(x) =  \frac{1}{(2\pi)^d} \! \int_{\mathbb{R}^d} \! \hat{k}(\omega) e^{  i \omega^\top x} d\omega, we have k(0)=1(2π)d ⁣∫Rd ⁣k^(ω)dωk(0) = \frac{1}{ (2\pi)^d } \!\int_{\mathbb{R}^d} \! \hat{k}(\omega) d\omega, that is, if k(0)=1k(0)=1, then k^\hat{k} is pointwise non-negative and sums to (2π)d(2\pi)^d.

The operator TT has the same eigenvalues (except potentially zero) as the operator from L2(Rd)L_2(\mathbb{R}^d) to L2(Rd)L_2(\mathbb{R}^d), defined as:

Qf(x)=p(x)1/2 ⁣ ⁣∫Rd ⁣k(x ⁣− ⁣y)f(y)p(y)1/2dy.Qf(x) = p(x)^{1/2} \! \! \int_{\mathbb{R}^d} \! k(x\!-\!y) f(y) p(y)^{1/2} dy.

As an auto-adjoint operator, there is a sequence of non-zero eigenvalues λm\lambda_m, m⩾0m \geqslant 0, (the same as for TT) and eigenfunctions ψm:Rd→R\psi_m: \mathbb{R}^d \to \mathbb{R}, which are orthonormal for L2(Rd)L_2(\mathbb{R}^d), and such that for x,y∈Rdx,y \in \mathbb{R}^d:

 k(x,y) = ∑m=0+∞λmgm(x)gm(y)= ∑m=0+∞λm p(x)−1/2ψm(x)ψm(y) p(y)−1/2.(2)\tag{2} k(x,y)   =  \sum_{m=0}^{+\infty} \lambda_m g_m(x) g_m(y) =  \sum_{m=0}^{+\infty} \lambda_m  p(x)^{-1/2} \psi_m(x) \psi_m(y)  p(y)^{-1/2} .

We have ψm(x)=p(x)1/2gm(x)\psi_m(x) = p(x)^{1/2} g_m(x) so that the family (gm)m⩾0(g_m)_{m \geqslant 0} is orthonormal for L2(μ)L_2(\mu) (assuming for simplicity that p(x)>0p(x)>0).

Basic properties. We have a few properties that will be useful for obtaining closed forms and bounds.

  • Swapping: as a consequence of the interaction of convolutions and Fourier transforms (convolution theorem), λm(p,k^)=λm(k^,p)\lambda_m(p,\hat{k}) = \lambda_m( \hat{k},{p}) (see a proof at the end of the post). This nice symmetry should also show up in our asymptotic and non-asymptotic results on eigenvalues.
  • Rescaling: for x↦p(αx)x \mapsto p(\alpha x) and  x↦k(αx)x \mapsto k(\alpha x), we get the same eigenvalues multiplied by α−d\alpha^{-d}. Moreover, for x↦αdp(αx)x \mapsto \alpha^{d} p(\alpha x) and  x↦k(αx)x \mapsto k(\alpha x), we get exactly the same eigenvalues.
  • Bounds: p(x)⩽αp′(x)p(x) \leqslant \alpha p'(x) for all x∈Rdx \in \mathbb{R}^d and α>0\alpha >0, then λm(p,k^)⩽αλm(p’,k^)\lambda_m(p,\hat{k}) \leqslant\alpha \lambda_m(p’,\hat{k}) for all m⩾0m \geqslant 0, with a similar property for scaling the kernel. This is practical to obtain non-asymptotic bounds, by bounding pp or kk by quantities for which we know the eigenvalues in (semi-)closed form (as we will do below for Gaussians and boxes).

A bit of history

Early papers considered one dimension, for p(x)=1[−1,1](x)p(x) = 1_{[-1,1]}(x) and generic kernels k(x,y)k(x,y) (not necessarily translation-invariant), with a clear message: the more differentiable kk is, the stronger the decay of eigenvalues, with an explicit asymptotic behavior:

  • Ivar Fredolhm in his original paper in 1903 had a rate in O(m−3/2)O(m^{-3/2}) with one continuous derivative [5, in French].
  • Hermann Weyl in 1912 gets that with one continuous derivative, we have λm=o(m−3/2)\lambda_m = o(m^{-3/2}) [7, in German], improved to o(n−2)o(n^{-2}) in 1983 by John Reade [9]. With ss derivatives, the rate o(n−s−1)o(n^{-s-1}) can be obtained, still by John Reade [15].
  • The explicit link with Fourier series (described in an earlier post) was made in 1931 by Einar Hille and Jacob D. Tamarkin [8].
  • Closer to us (1986), there is some nice and simple non-asymptotic analysis from [2].

In this blog post, we focus on translation-invariant kernels, where multivariate extensions are quite natural, and these were originally studied by Harold Widom [3, 4] in the 1960’s. Note that there is a parallel line of work to obtain eigenvalue decays from differentiability properties of (non-necessarily translation invariant) kernels that is based on a link with Gaussian processes [16].

Summary of known results

We can classify the known results in three classes: exact, asymptotic, and non-asymptotic.

Exact expressions. For Gaussian kernels and Gaussian distributions, we obtain an explicit expression of eigenvalues and eigenvectors with a nice link with Hermite polynomials first described by [11] and presented below. The decay of eigenvalues is then exponential. For pp and k^\hat{k} that are boxes (that is, proportional to 1∥⋅∥∞>c1_{\| \cdot \|_\infty > c} for some constant cc), we obtain a “semi-closed form” solution with a decay in m−mm^{-m} in dimension one, which will be instrumental in obtaining non-asymptotic bounds (see below).

Asymptotic results. Exact equivalents can be obtained in a wide variety of situations, with two papers from Harold Widom [3, 4] which I particularly like although their proofs are quite technical and a bit difficult to follow (I may one day try to write a simplified proof).

  • Unit box in one dimension [4]. For p(x)=12σ1[−σ,σ](x)p(x) = \frac{1}{2\sigma} 1_{[-\sigma,\sigma]}(x), we have λm∼12σk^(mπ2σ)\lambda_m \sim \frac{1}{2\sigma} \hat{k}\big(\frac{m\pi}{2 \sigma}\big) for all polynomial decays (which is compatible with our later upper bound and our earlier post on periodic kernels, ouf!). For Gaussian decay, see [4, Theorem 3], where the decay is faster.
  • General densities. Quite amazingly, for the general case we consider in this blog post, for polynomial decays of k^\hat{k} and pp, Widom shows in a tour de force [3] that
    card({m∈N, λm⩾ε})∼ε→01(2π)dvol({(x,ω)∈Rd ⁣× ⁣Rd,p(x)k^(ω)⩾ε}).  \boxed{ {\rm card}\Big( \big\{ m \in \mathbb{N}, \ \lambda_m \geqslant \varepsilon \big\} \Big) \sim_{\varepsilon \to 0} \frac{1}{(2\pi)^d} {\rm vol} \Big( \big\{ (x,\omega) \in \mathbb{R}^d\! \times \! \mathbb{R}^d, p(x) \hat{k}(\omega) \geqslant \varepsilon \big\} \Big). \ \ }
    This result is really great, as it characterizes the fine behavior of eigenvalues.

Overall, the results from Widom [3, 4] allow to get the following table, with the behavior of λm(p,k^)\lambda_m(p,\hat{k}) as a function of the decay of p(x)p(x) and k^(ω)\hat{k}(\omega) (all constants have been removed). For examples from the table of kernels and distributions above that are not in the table below, we can simply take the closest upper-bound to obtain an upper-bound on the behavior (e.g., Gaussians are fasters that e−∥⋅∥1/de^{-\| \cdot\|^{1/d}}).

compact supportp(x)∝e−∥x∥1/dp(x) \propto e^{-\|x\|^{1/d}}p(x)∝∥x∥−αp(x) \propto \|x\|^{-\alpha}
k^(ω)∝e−∥ω∥1/d\hat{k}(\omega) \propto e^{-\|\omega\|^{1/d}}e–m1/de^{ – m^{1/d}}e–m1/de^{ – m^{1/d}}m−α/dm^{-\alpha/d}
k^(ω)∝∥ω∥−β\hat{k}(\omega) \propto \|\omega\|^{-\beta}m−β/dm^{-\beta/d}m−β/dm^{-\beta/d}m−αβ/(d(α+β))m^{-\alpha\beta/(d(\alpha+\beta))}

Non-asymptotic results. Is it possible to get bounds with explicit constants? This post extends our earlier work [14] by providing a bound with explicit constants.

We start with the nicest situation where we know the eigenvalues in closed form (Gaussians), then move to boxes in semi-closed form, and then to non-asymptotic bounds. namely Gaussian kernels and Gaussian data.

Gaussians in closed forms

From the Mehler formula, originally proved in 1866 [6], we have, for any t∈[0,1)t \in [0,1)

1π(1−t2)exp⁡[2xyt–t2(x2+y2)1−t2]= ∑m=0∞tm2mm!πHm(x) Hm(y),(3)\frac{1}{\sqrt{ \pi(1-t^2)}} \exp \Big[ \frac{ 2xyt – t^2( x^2+y^2)}{1-t^2}\Big] =  \sum_{m = 0 }^\infty \frac{t^m}{ { 2^m m! \sqrt{\pi}}} H_m(x)   H_m(y), \tag{3}
with HmH_m the mm-th Hermite polynomial. Then ( 12mm!πe−x2/2Hm(x))m⩾0\big(  \frac{1}{ \sqrt{ 2^m m! \sqrt{\pi}}} e^{-x^2/2} H_m(x) \big)_{m \geqslant 0} is an orthonormal basis of L2(R)L_2(\mathbb{R}) (see also an earlier blog post).

Although it is not at all obvious at first, if you take pp the density of the Gaussian with mean zero and variance 121+t1−t\frac{1}{2} \frac{1+t}{1-t}, that is, p(x)=1π1−t1+texp⁡(–1−t1+tx2)p(x) = \frac{1}{\sqrt{\pi}} \sqrt{\frac{1-t}{1+t}} \exp\big( – \frac{1-t}{1+t} x^2 \big), with the kernel k(x,y)=exp⁡(–t1−t2(x−y)2)k(x,y) = \exp\big( – \frac{t}{1-t^2} (x-y)^2 \big), and the eigenfunctions ψm(x)=12mm!πe−x2/2Hm(x)\psi_m(x) = \frac{1}{ \sqrt{ 2^m m! \sqrt{\pi}}} e^{-x^2/2} H_m(x), Eq. (3)(3) is exactly Eq. (2)(2) with eigenvalues

λm=tm(1−t)\lambda_m = t^m(1-t)
for m⩾0m \geqslant 0 (which sum to one). We can thus read out eigenvalues and eigenfunctions from the expression above. Alternatively, we could directly see that ψm\psi_m as an eigenfunction [11, Eq. (39)].

Extension to all variances and bandwidths. Through the invariance properties, we can extend the result above to any Gaussian density with variance σ2\sigma^2, and any Gaussian kernel with bandwidth τ\tau, that is, k(x,y)=exp⁡(–12τ2(x−y)2)k(x,y) = \exp( – \frac{1}{2\tau^2}(x-y)^2), by finding the unique t∈[0,1)t \in [0,1) such that t(1−t)2=ρ2=σ2τ2\frac{t}{(1-t)^2} = \rho^2 = \frac{\sigma^2}{\tau^2}. Such tt can be obtained in closed form as t=2ρ22ρ2+1+4ρ2+1t = \frac{ 2\rho^2}{2\rho^2+1 +\sqrt{4 \rho^2 + 1}}. When ρ\rho tends to infinity, we have the equivalent t∼1 –1/ρt \sim 1 \, – 1/\rho. Note that for a fixed input distribution (e.g., fixed σ\sigma), the exponential constant goes from zero (fast decay) for large τ\tau to one (slow decay) for small τ\tau.

Extension to multiple dimensions. If we now have a Gaussian distribution with any mean and covariance matrix Σ\Sigma, with a kernel k(x,y)=exp⁡(–12(x−y)⊤T−1(x−y))k(x,y) = \exp( – \frac{1}{2} (x-y)^\top T^{-1} (x-y)), then eigenvalues are ∏j=1d(1−tj)tjrj\prod_{j=1}^d (1-t_j) t_j^{r_j}, for r∈Ndr \in \mathbb{N}^d, and tj∈(0,1)t_j \in (0,1) defined as tj/(1−tj)2t_j/(1-t_j)^2 equal to the jj-th eigenvalue of the matrix Σ1/2T−1Σ1/2∈Rd\Sigma^{1/2} T^{-1} \Sigma^{1/2} \in \mathbb{R}^d.

When all these eigenvalues are equal, then eigenvalues are (1−t)dt∥r∥1(1-t)^d t^{\| r\|_1}, and we obtain many multiple eigenvalues. In particular, since the number of non-negative multi-indices such that ∥r∥1⩽s\|r \|_1 \leqslant s is equal to (d+ss)∼sdd!{ d+s \choose s} \sim \frac{s^{d}}{d!}, we obtain that

log⁡λm(p,k^)∼ –log⁡1t⋅(d!)1/d⋅m1/d.\log \lambda_m(p,\hat{k}) \sim \ – \log \frac{1}{t} \cdot ( d!)^{1/d} \cdot m^{1/d}.
We thus get an eigenvalue decay which is exponential, but with a slower decay when dd increases.

Isotropic Gaussian data (σ2=1\sigma^2 = 1) and Gaussian kernel (τ2=1\tau^2 = 1) in two dimensions: data (left) and eigenvalues λm\lambda_m in decreasing order (right), with population eigenvalues in red and empirical ones in blue (see similar plots in an earlier post for compact domains).

Boxes in semi-closed forms

With the box p(x)=12σ1[−σ,σ](x)p(x) = \frac{1}{2\sigma}1_{[-\sigma,\sigma]}(x) and the kernel with Fourier transform

k^(ω)=τπ1[−1/τ,1/τ](ω),\hat{k}(\omega) = \tau \pi 1_{[-1/\tau,1/\tau]}(\omega),
that is,
k(x,y)=sin⁡(x−y)/τ(x−y)/τ,k(x,y) = \frac{\sin (x-y)/\tau}{(x-y)/\tau},
then, defining
ρ=σ/τ,\rho = \sigma/\tau,
the eigenvalues (λm)m⩾0(\lambda_m)_{m \geqslant 0} have a very specific behavior which has been well-studied [4, 10, 17, 18, 20, 22] in physics and signal processing.

We know that the eigenvalues (λm)m⩾0(\lambda_m)_{m \geqslant 0} sum to one because of our choice of normalization, but we know much more. Essentially, all eigenvalues λm\lambda_m are less than π/(2ρ)\pi/(2 \rho), all close to π/(2ρ)\pi/(2 \rho) for m≪2ρ/πm \ll 2 \rho / \pi, and all close to zero if m≫2ρπm \gg 2\rho \pi. Moreover, the transition period between these two behaviors is of order log⁡ρ\log \rho. See an illustration below for several values of ρ\rho.

Eigenvalues λm\lambda_m for several values of ρ\rho, from π\pi to 20π20 \pi.

Asymptotic statements. The behavior above can be characterized with asymptotic equivalents when either ρ→+∞\rho \to +\infty or m→+∞m \to +\infty:

  • (super)Exponential convergence for large mm (and fixed ρ\rho): when m→+∞m \to +\infty, we have the equivalent λm∼π2eρ(eρ4m)2m+1\lambda_m \sim \frac{\pi }{2 e \rho } \Big( \frac{e \rho}{4m} \Big)^{2m+1} [4, p. 218].
  • Exponential convergence for large ρ\rho (and fixed mm): When ρ→+∞\rho \to +\infty, 2ρπλm→1\frac{2\rho}{\pi} \lambda_m \to 1, with 1–2ρπλm∼4π8mm!ρm+1/2e−ρ1 – \frac{2\rho}{\pi} \lambda_m \sim 4 \sqrt{\pi} \frac{8^m}{m!} \rho^{m+1/2} e^{-\rho} (Theorem 3.25 in [10]).
  • Asymptotically, in the transition region, when ρ\rho is large, for m≈2ρ/π+log⁡ρπ2um \approx 2\rho/\pi+ \frac{\log \rho}{\pi^2} u, λm≈π2ρ(1+eu)−1\lambda_m \approx \frac{\pi}{2\rho} (1+e^u)^{-1} [19, Theorem 1].

Non-asymptotic statements. We have moreover statements which are true for all m⩾0m \geqslant 0 and ρ>0\rho > 0. The following bound is tight when mm tends to +∞+\infty) [12, Theorem 9]:

λm⩽πρ2m (m!)44⋅(2m)!2Γ(m+3/2)2,\lambda_{m} \leqslant \frac{ \pi \rho^{2m}  (m!)^4}{ 4 \cdot (2m)!^2 \Gamma(m+3/2)^2},
which can be further upper-bounded as
λm⩽πρ2m4Γ(3/2)2(m+1)−2m−1⩽1ρ(ρm+1)2m+1,\lambda_{m} \leqslant \frac{\pi \rho^{2m}}{4 \Gamma(3/2)^2 } (m+1)^{-2m-1} \leqslant \frac{1}{\rho} \Big(\frac{\rho }{m+1}\Big)^{2m+1},
for any m∈Nm \in \mathbb{N} and ρ>0\rho > 0. We will need later the simpler bound:
λm⩽2ρ–2m,(4)\tag{4} \lambda_m \leqslant 2^{\rho – 2m},
which can be obtained by splitting the set of mm’s according to m+1⩾ρ/2m+1 \geqslant \rho/2 or ⩽ρ/2\leqslant \rho/2. This will allow us to derive upper-bounds for generic kernels and densities.

Eigenfunctions. The eigenfunctions associated with the integral operator and the eigenvalues λm\lambda_m are called “prolate spheroidal wave functions“, and appear in physics (because they satisfy a particular ordinary differential equation) and signal processing (because of its spectral properties). One nice aspect is that they define an orthonormal basis of L2([−1,1])L_2([-1,1]) which can be extended to an orthogonal family in L2(R)L_2(\mathbb{R}), and that are band-limited functions (with support of their Fourier transform in [−ρ,ρ][-\rho, \rho]. Moreover, these functions are they own Fourier transform (up to rescaling). For more details, see [10, 18] and the figure below for ρ=6π\rho = 6\pi.

Left: Eigenvalues. Right: eigenfunctions, plotted on [−2,2][-2,2] with the values on [−1,1][-1,1] in red.

Multiple dimensions. We can now consider the kernel kk on Rd\mathbb{R}^d defined by products as

k^(ω)=(πτ)d1∥ω∥∞⩽1/τ,\hat{k}(\omega) = (\pi \tau)^d 1_{\| \omega \|_\infty \leqslant 1/\tau},
and the density
u(x)=1(2σ)d1∥u∥∞⩽σ.u(x) = \frac{1}{(2\sigma)^d} 1_{\| u \|_\infty \leqslant \sigma}.
The eigenvalues are ∏j=1dλrj\prod_{j=1}^d \lambda_{r_j} where (λm)m⩾0(\lambda_m)_{m \geqslant 0} are the eigenvalues defined above and r∈Ndr \in \mathbb{N}^d. Given the bound in Eq. (2)(2), the eigenvalue defined by r∈Ndr \in \mathbb{N}^d is less than 2ρd–2∥r∥12^{\rho d – 2 \| r\|_1}. The number of non-negative multi-indices such that ∥m∥1⩽s\|m \|_1 \leqslant s is equal to (d+sd)⩽(e(d+s)d)d{ d+s \choose d} \leqslant \big( \frac{ e(d+s)}{d}\big)^d (using a classical bound, as shown in [21, Section 8.1.2]), thus, for any m⩾0m \geqslant 0, λm⩽2ρd–2s\lambda_m \leqslant 2^{\rho d – 2 s}, where ss is the largest integer such that (e(d+s)d)d⩽m\big( \frac{ e(d+s)}{d}\big)^d \leqslant m. This leads to
λm⩽2ρd+2−2(m1/dde−1–d)⩽22+2d2d(ρ–m1/d/2).(5)\tag{5} \lambda_m \leqslant 2^{\rho d + 2 -2 ( m^{1/d} d e^{-1} – d)} \leqslant 2^{2+2d} 2^{d( \rho – m^{1/d}/2)}.

Upper bounds

We use the same technique as [3, 4, 14] and use boxes to bound eigenvalues. We will use the classical inequalities for eigenvalues of sums (Weyl’s inequality):

λm(p,k^1+k^2)⩽λm(p,k^1)+λ0(p,k^2),\lambda_m(p,\hat{k}_1+\hat{k}_2) \leqslant \lambda_m(p,\hat{k}_1) + \lambda_0(p,\hat{k}_2),
with a similar inequality when pp is a sum of two terms.

We write k^=k^1∥⋅∥∞⩽τ−1+k^1∥⋅∥∞>τ−1\hat{k} = \hat{k} 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} + \hat{k} 1_{\| \cdot\|_\infty > \tau^{-1}}, to get

λm(p,k^)⩽λm(p,k^1∥⋅∥∞⩽τ−1)+λ0(p,k^1∥⋅∥∞>τ−1).\lambda_m(p,\hat{k}) \leqslant \lambda_m(p, \hat{k} 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} ) + \lambda_0(p, \hat{k} 1_{\| \cdot\|_\infty >\tau^{-1}} ).
The second term can be bounded as
λ0(p,k^1∥⋅∥∞>τ−1)⩽sup⁡∥ω∥∞>τ−1 ⁣ ⁣ ⁣∣k^(ω)∣⋅∥p∥∞⋅λ0(1,1)=sup⁡∥ω∥∞>τ−1 ⁣ ⁣ ⁣∣k^(ω)∣⋅∥p∥∞,\lambda_0(p, \hat{k} 1_{\| \cdot\|_\infty >\tau^{-1}} ) \leqslant \sup_{\| \omega \|_\infty > \tau^{-1}}\!\!\! | \hat{k}(\omega)| \cdot \| p \|_\infty \cdot \lambda_0(1, 1 ) = \sup_{\| \omega \|_\infty > \tau^{-1}} \!\!\! | \hat{k}(\omega)| \cdot \| p \|_\infty,
since for p=1p = 1 and k^=1\hat{k} = 1, the operator QQ is the identity. We can bound the first term as follows:
λm(p,k^1∥⋅∥∞⩽τ−1)⩽∥k^∥∞λm(p1∥⋅∥∞⩽σ,1∥⋅∥∞⩽τ−1)+∥k^∥∞λ0(p1∥⋅∥∞>σ,1∥⋅∥∞⩽τ−1)⩽∥k^∥∞∥p∥∞λm(1∥⋅∥∞⩽σ,1∥⋅∥∞⩽τ−1)+∥k^∥∞sup⁡∥x∥∞>σ ⁣∣p(x)∣.\begin{array}{rcl} \lambda_m(p, \hat{k} 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} ) & \leqslant & \| \hat{k} \|_\infty \lambda_m( p 1_{\| \cdot\|_\infty \leqslant \sigma} , 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} )+ \| \hat{k} \|_\infty \lambda_0( p 1_{\| \cdot\|_\infty > \sigma} , 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} ) \\ & \leqslant &\displaystyle \| \hat{k} \|_\infty \| p \|_\infty \lambda_m( 1_{\| \cdot\|_\infty \leqslant \sigma} , 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} )+ \| \hat{k} \|_\infty \sup_{\| x\|_\infty > \sigma} \! | p(x) |. \end{array}
Thus, overall we get
λm(p,k^)⩽∥k^∥∞∥p∥∞λm(1∥⋅∥∞⩽σ,1∥⋅∥∞⩽τ−1)+∥k^∥∞ ⁣ ⁣sup⁡∥x∥∞>σ ⁣∣p(x)∣+∥p∥∞ ⁣ ⁣sup⁡∥ω∥∞>τ−1 ⁣ ⁣ ⁣∣k^(ω)∣.\lambda_m(p,\hat{k}) \leqslant \| \hat{k} \|_\infty \| p \|_\infty \lambda_m( 1_{\| \cdot\|_\infty \leqslant \sigma} , 1_{\| \cdot\|_\infty \leqslant \tau^{-1}} )+ \| \hat{k} \|_\infty \!\! \sup_{\| x\|_\infty > \sigma} \! | p(x) | + \| p \|_\infty \!\!\sup_{\| \omega \|_\infty > \tau^{-1}} \!\!\! | \hat{k}(\omega)| .

With the choice ρ=σ/τ=m1/d/4\rho = \sigma / \tau = m^{1/d} / 4, we get from Eq. (3)(3),

λm(p,k^)⩽2∥k^∥∞∥p∥∞(2π)d⋅m2−dm1/d/4+∥k^∥∞ ⁣ ⁣sup⁡∥x∥∞>σ ⁣∣p(x)∣+∥p∥∞ ⁣ ⁣sup⁡∥ω∥∞>τ−1 ⁣ ⁣ ⁣∣k^(ω)∣.   \boxed{\lambda_m(p,\hat{k}) \leqslant 2 \| \hat{k} \|_\infty \| p \|_\infty \big( \frac{2}{\pi} \big)^d \cdot m 2^{- d m^{1/d}/4 } + \| \hat{k} \|_\infty \!\! \sup_{\| x\|_\infty > \sigma} \! | p(x) | + \| p \|_\infty \!\! \sup_{\| \omega \|_\infty > \tau^{-1}}\!\!\! | \hat{k}(\omega)|.\ \ \ }
Note that as desired, the bound is invariant by swapping pp and k^\hat{k} (and σ\sigma and τ−1\tau^{-1}).

We can now take the minimum with respect to σ\sigma and τ\tau such that ρ=σ/τ=m1/d/4\rho = \sigma / \tau = m^{1/d} / 4, to obtain a series of explicit upper bounds, which recovers in several cases the asymptotic bounds from Harold Widom [3].

Compact support. If pp has compact support included in the ℓ∞\ell_\infty-ball of radius σ\sigma, we get

λm(p,k^)⩽2∥k^∥∞∥p∥∞(2π)d⋅m2−dm1/d/4+∥p∥∞ ⁣ ⁣sup⁡∥ω∥∞>σ−1m1/d/4 ⁣ ⁣ ⁣∣k^(ω)∣.\lambda_m(p,\hat{k}) \leqslant 2 \| \hat{k} \|_\infty \| p \|_\infty \big( \frac{2}{\pi}\big)^d \cdot m 2^{- d m^{1/d}/4 } + \| p \|_\infty \!\! \sup_{\| \omega \|_\infty > \sigma^{-1} m^{1/d} / 4 }\!\!\! | \hat{k}(\omega)| .
Thus, for kernels with polynomial decay (such as Matern / Sobolev kernels of order β/2>d/2\beta/2 > d/2), that is, k^(ω)=O(∥ω∥∞−β)\hat{k}(\omega) = O( \|\omega\|_\infty^{-\beta}), we get λm=O(m−β/d)\lambda_m = O(m^{-\beta/d}), which is traditional upper-bound (with explicit constants if needed from the identity above), and in fact the asymptotic order obtained in [3].

For the Gaussian kernel (and still compact support), the first term dominates and we get λm=O(exp⁡(−cm1/d)\lambda_m = O(\exp(-c m^{1/d}) for some constant cc that can be made explicit, which is slower than the asymptotic order obtained in [4].

Beyond compact support. For example, if p(x)p(x) has tails in ∥x∥−α\| x\|^{-\alpha} and k^(ω)\hat{k}(\omega) has tails in ∥ω∥−β\| \omega\|^{-\beta}, with α,β>d,\alpha, \beta > d, then, with τ∝m−αd(α+β)\tau \propto m^{-\frac{\alpha }{d(\alpha+\beta)}}, we get λm=O(m−αβd(α+β))\lambda_m = O \big( m^{-\frac{\alpha \beta}{d(\alpha+\beta)}} \big). In other words, heavier tails of p(x)p(x) will reduce the decay of the spectrum.

Conclusion

In this blog post, I tried to derive in the simplest possible way bounds on the decay of eigenvalues for translation-invariant kernels for as generic as possible densities. These results are commonly used in learning theory and statistics [21, 24, 25, 26, 28], but an explicit and simple bound is hard to find. The analysis is based on explicit expansions for box kernels and densities. These bounds provide a non-asymptotic control that is complementary to the asymptotic results from Harold Widom [3, 4].

Other types of kernels could be considered, such as product kernels on the sphere of the form k(x,y)=k(x⊤y)k(x,y) = k(x^\top y), with potential links with other spherical harmonics [27]. Eigenvalue decays also have relationships with leverage scores [23], a topic for another post.

References

[1] Carl E. Rasmussen, Christopher K. I. Williams. Gaussian Processes for Machine Learning. MIT Press, 2006. [2] Chung-Wei Ha. Eigenvalues of differentiable positive definite kernels. SIAM Journal on Mathematical Analysis 17.(2):415-419, 1986. [3] Harold Widom. Asymptotic behavior of the eigenvalues of certain integral equations. Transactions of the American Mathematical Society, 109(2), 278-295, 1963. [4] Harold Widom. Asymptotic behavior of the eigenvalues of certain integral equations. II. Archive for Rational Mechanics and Analysis, 17(3), 215-229, 1964. [5] Ivar Fredholm. Sur une classe d’équations fonctionnelles. Acta Mathematica, 27(1):365-390, 1903. [6] Mehler, Ferdinand Gustav. Ueber die Entwicklung einer Function von beliebig vielen Variabeln nach Laplaceschen Functionen höherer Ordnung“, Journal für die Reine und Angewandte Mathematik, (66):161–176, 1866. [7] Hermann Weyl. Das asymptotische verteilungsgesetz der eigenwerte linearer partieller differentialgleichungen (mit einer anwendung auf die theorie der hohlraumstrahlung). Mathematische Annalen, 71: 441-479, 1912 [8] Einar Hille, Jacob D. Tamarkin. On the characteristic values of linear integral equations. Acta Mathematica, 57(1):1-76, 1931. [9] John B. Reade. Eigenvalues of positive definite kernels. SIAM Journal on Mathematical Analysis 14(1):152-157, 1983. [10] Andrei Osipov, Vladimir Rokhlin, Hong Xiao. Prolate Spheroidal Wave Functions of Order Zero. Series in Applied Mathematical Sciences, Springer, 2013. [11] Huaiyu Zhu, Christopher K. I. Williams, Richard Rohwer, and Michal Morciniec. Gaussian regression and optimal finite-dimensional linear models. In Neural Networks and Machine Learning. Springer-Verlag, 1998 [12] Vladimir Rokhlin and Hong Xiao. Approximate formulae for certain prolate spheroidal wave functions valid for large values of both order and band-limit. Applied and Computational Harmonic Analysis, 22(1), 105-123, 2007. [13] Li-Lian Wang. Analysis of spectral approximations using prolate spheroidal wave functions. Mathematics of computation, 79(270), 807-827, 2010. [14] Zaid Harchaoui, Francis Bach, and Eric Moulines. Testing for Homogeneity with Kernel Fisher Discriminant Analysis, Advances in Neural Information Processing Systems, 2007*.* Long version (HAL technical report 00270806).  [15] John B. Reade. Positive definite CpC^p kernels. SIAM Journal on Mathematical Analysis, 17(2), 420-421, 1986. [16] Klaus Ritter, Grzegorz W. Wasilkowski, and Henryk Woźniakowski. Multivariate integration and approximation for random fields satisfying Sacks-Ylvisaker conditions. The Annals of Applied Probability (1995): 518-540, 1995. [17] David Slepian. Some asymptotic expansions for prolate spheroidal wave functions. Journal of Mathematics and Physics, 44(1-4):99-140, 1965. [18] Li-Lian Wang. A review of prolate spheroidal wave functions from the perspective of spectral methods. Journal of Mathematical Study, 50(2):101-143, 2017. [19] Henry J. Landau, Harold Widom. Eigenvalue distribution of time and frequency limiting. Journal of Mathematical Analysis and Applications, 77(2): 469-481, 1980. [20] Henry J. Landau. On the density of phase-space expansions. IEEE Transactions on Information Theory, 39(4):1152-1156, 1993. [21] Francis Bach. Learning Theory from First Principles. MIT Press, 2024. [22] Aline Bonami, Abderrazek Karoui. Uniform bounds of prolate spheroidal wave functions and eigenvalues decay. Comptes Rendus. Mathématique 352(3):229-234, 2014. [23] Edouard Pauwels, Francis Bach, and Jean-Philippe Vert. Relating leverage scores and density using regularized Christoffel functions. Advances in Neural Information Processing Systems, 2018. [24] Andrea Caponnetto and Ernesto De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics 7: 331-368, 2007. [25] Shahar Mendelson and Joseph Neeman. Regularization in kernel learning. The Annals of Statistics, 38(1), 526-565, 2010. [26] Francis Bach. On the Equivalence between Kernel Quadrature Rules and Random Feature Expansions. Journal of Machine Learning Research, 18(19):1-38, 2017. [27] Alex Smola, Zoltán Ovári, and Robert C. Williamson. Regularization with dot-product kernels. Advances in Neural Information Processing Systems, 2000. [28] Loucas Pillaud-Vivien, Alessandro Rudi, Francis Bach. Statistical Optimality of Stochastic Gradient Descent on Hard Learning Problems through Multiple Passes. *Advances in Neural Information Processing Systems (NIPS),*2018.

Proof of λm(p,k^)=λm(k^,p)\lambda_m(p,\hat{k}) = \lambda_m( \hat{k},{p})

We introduce the Fourier transform operator FF defined as Ff(ω)=∫Rdf(x)e−iω⊤xdxFf(\omega) = \int_{\mathbb{R}^d} f(x) e^{- i \omega^\top x} dx, the inverse Fourier operator is 1(2π)dF∗\frac{1}{(2\pi)^d} F^\ast, where F∗F^\ast is the adjoint of FF, such that F∗F=(2π)dIF^\ast F = (2\pi)^d I. We also denote M(r)M(r) the pointwise multiplication operator by the function rr (defined by [M(r)f](x)=r(x)f(x)[M(r)f](x) = r(x) f(x)). Using the fact that the Fourier transform of a convolution is the product of Fourier transforms, we can write QQ as

Q=1(2π)dM(p)1/2F∗M(k^)FM(p)1/2=1(2π)dM(p)1/2F∗M(k^)1/2M(k^)1/2FM(p)1/2.Q = \frac{1}{(2\pi)^d} M(p)^{1/2} F^\ast M(\hat{k}) F M(p)^{1/2} = \frac{1}{(2\pi)^d} M(p)^{1/2} F^\ast M(\hat{k})^{1/2} M(\hat{k})^{1/2} F M(p)^{1/2}.
This implies that the eigenvalues of QQ are the same as the one of
1(2π)dM(k^)1/2FM(p)1/2M(p)1/2F∗M(k^)1/2=1(2π)dM(k^)1/2FM(p)F∗M(k^)1/2.\frac{1}{(2\pi)^d} M(\hat{k})^{1/2} F M(p)^{1/2} M(p)^{1/2} F^\ast M(\hat{k})^{1/2} = \frac{1}{(2\pi)^d} M(\hat{k})^{1/2} F M(p) F^\ast M(\hat{k})^{1/2}.
Thus, the roles pp and k^\hat{k} play interchangeable roles, that is,
λm(p,k^)=λm(k^,p).\lambda_m(p,\hat{k}) = \lambda_m( \hat{k},{p}).