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, 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∈X from a probability distribution μ and compute the n×n kernel matrix K defined as Kij=k(xi,xj) for a positive definite kernelk:X×X→R. Then, when n tends to infinity, the m-th eigenvalue of n1K tends to the m-th eigenvalue of the covariance operator (from H to H)
Σ=∫Xφ(x)⊗φ(x)dμ(x),
where φ:X→H is a feature map representing the kernel (that is, k(x,y)=⟨φ(x),φ(y)⟩ for all x,y∈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 φ. When a natural feature map can be defined (like done in a previous post for the torus [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(μ) to L2(μ) (the space of square-integrable functions for the distribution μ of the data), defined as
Tf(x)=∫Xk(x,y)f(y)dμ(y).(1)
It is compact and has the same non-zero eigenvalues as Σ.
For the torus X=[0,1]d and a kernel of the form k(x,y)=k(x−y) with a translation-invariant 1-periodic function k, the eigenvalues are exactly the Fourier series components ∫[0,1]dk(x)e−2iπω⊤xdx∈R+ for ω∈Zd. While having closed-form expressions is practical for analysis, these kernels are not commonly used in practice.
Translation-invariant kernels on Rd
In this post, we look at a more common and impactful situation, that is, X=Rd, and translation-invariant kernels of the form k(x,y)=k(x−y) for k:Rd→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
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 τ. Throughout this blog post, we privilege the normalization k(0)=1 so that eigenvalues sum to one, that is, ∑m⩾0λm=1.
Kernel k(x−y)
Fourier transform k^(ω)
Gaussian
exp(–2τ21∥x−y∥22)
(2πτ2)d/2exp(–2τ2∥ω∥22)
Abel
exp(–τ1∥x–y∥2)
(1+τ2∥ω∥22)d/2+1/22dπ(d−1)/2Γ(2d+1)τd
Matern
exp(τ−∥x–y∥2)Pα(τ∥x−y∥2) with a polynomial Pα
cα,dτd(1+τ2∥ω∥22)−α−d/2−1/2 with α∈N
Student
(1+∥x−y∥22/τ2)α+d/2+1/21
(2π)dcα,dτdPα(τ∥ω∥2)exp(–τ∥ω∥2)
Sinc
τx−ysinτx−y
(πτ)d1[−1,1]d(τω)
In the table above with translation-invariant kernels and their Fourier transforms, for Matern kernels, the polynomial Pα has degree α, and P0(X)=1 (we then recover the Abel kernel), P1(X)=1+X, and P2(X)=1+X+X2/3, and we have cd,α=2dπd/2Γ(α+2d+1)Γ(α+21)−1. See [1, page 84] for more details.
Densities. We consider a probability distribution μ with density p 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 p play a similar role than Fourier transforms 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 the eigenvalues of the integral operator T, defined in Eq. (1), obtained from density p and kernel k with Fourier transform k^. Throughout the rest of the post, we do not assume any form of normalization, although we will often make sure that k(0)=1 and p sums to one, so that eigenvalues sum to one (in general they sum to k(0)∫Rdp(x)dx). Because of the Fourier inversion formula k(x)=(2π)d1∫Rdk^(ω)eiω⊤xdω, we have k(0)=(2π)d1∫Rdk^(ω)dω, that is, if k(0)=1, then k^ is pointwise non-negative and sums to (2π)d.
The operator T has the same eigenvalues (except potentially zero) as the operator from L2(Rd) to L2(Rd), defined as:
Qf(x)=p(x)1/2∫Rdk(x−y)f(y)p(y)1/2dy.
As an auto-adjoint operator, there is a sequence of non-zero eigenvalues λm, m⩾0, (the same as for T) and eigenfunctions ψm:Rd→R, which are orthonormal for L2(Rd), and such that for x,y∈Rd:
We have ψm(x)=p(x)1/2gm(x) so that the family (gm)m⩾0 is orthonormal for L2(μ) (assuming for simplicity that p(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) (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) and x↦k(αx), we get the same eigenvalues multiplied by α−d. Moreover, for x↦αdp(αx) and x↦k(αx), we get exactly the same eigenvalues.
Bounds: p(x)⩽αp′(x) for all x∈Rd and α>0, then λm(p,k^)⩽αλm(p’,k^) for all m⩾0, with a similar property for scaling the kernel. This is practical to obtain non-asymptotic bounds, by bounding p or k 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) and generic kernels k(x,y) (not necessarily translation-invariant), with a clear message: the more differentiable k 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) with one continuous derivative [5, in French].
Hermann Weyl in 1912 gets that with one continuous derivative, we have λm=o(m−3/2) [7, in German], improved to o(n−2) in 1983 by John Reade [9]. With s derivatives, the rate 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 p and k^ that are boxes (that is, proportional to 1∥⋅∥∞>c for some constant c), we obtain a “semi-closed form” solution with a decay in m−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)=2σ11[−σ,σ](x), we have λm∼2σ1k^(2σmπ) 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^ and p, Widom shows in a tour de force [3] that
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^) as a function of the decay of p(x) and k^(ω) (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/d).
compact support
p(x)∝e−∥x∥1/d
p(x)∝∥x∥−α
k^(ω)∝e−∥ω∥1/d
e–m1/d
e–m1/d
m−α/d
k^(ω)∝∥ω∥−β
m−β/d
m−β/d
m−αβ/(d(α+β))
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)
with Hm the m-th Hermite polynomial. Then (2mm!π1e−x2/2Hm(x))m⩾0 is an orthonormal basis of L2(R) (see also an earlier blog post).
Although it is not at all obvious at first, if you take p the density of the Gaussian with mean zero and variance 211−t1+t, that is, p(x)=π11+t1−texp(–1+t1−tx2), with the kernel k(x,y)=exp(–1−t2t(x−y)2), and the eigenfunctions ψm(x)=2mm!π1e−x2/2Hm(x), Eq. (3) is exactly Eq. (2) with eigenvalues
λm=tm(1−t)
for m⩾0 (which sum to one). We can thus read out eigenvalues and eigenfunctions from the expression above. Alternatively, we could directly see that ψ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, and any Gaussian kernel with bandwidth τ, that is, k(x,y)=exp(–2τ21(x−y)2), by finding the unique t∈[0,1) such that (1−t)2t=ρ2=τ2σ2. Such t can be obtained in closed form as t=2ρ2+1+4ρ2+12ρ2. When ρ tends to infinity, we have the equivalent t∼1–1/ρ. Note that for a fixed input distribution (e.g., fixed σ), the exponential constant goes from zero (fast decay) for large τ to one (slow decay) for small τ.
Extension to multiple dimensions. If we now have a Gaussian distribution with any mean and covariance matrix Σ, with a kernel k(x,y)=exp(–21(x−y)⊤T−1(x−y)), then eigenvalues are ∏j=1d(1−tj)tjrj, for r∈Nd, and tj∈(0,1) defined as tj/(1−tj)2 equal to the j-th eigenvalue of the matrix Σ1/2T−1Σ1/2∈Rd.
When all these eigenvalues are equal, then eigenvalues are (1−t)dt∥r∥1, and we obtain many multiple eigenvalues. In particular, since the number of non-negative multi-indices such that ∥r∥1⩽s is equal to (sd+s)∼d!sd, we obtain that
logλm(p,k^)∼–logt1⋅(d!)1/d⋅m1/d.
We thus get an eigenvalue decay which is exponential, but with a slower decay when d increases.
Isotropic Gaussian data (σ2=1) and Gaussian kernel (τ2=1) in two dimensions: data (left) and eigenvalues λ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)=2σ11[−σ,σ](x) and the kernel with Fourier transform
k^(ω)=τπ1[−1/τ,1/τ](ω),
that is,
k(x,y)=(x−y)/τsin(x−y)/τ,
then, defining
ρ=σ/τ,
the eigenvalues (λm)m⩾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 sum to one because of our choice of normalization, but we know much more. Essentially, all eigenvalues λm are less than π/(2ρ), all close to π/(2ρ) for m≪2ρ/π, and all close to zero if m≫2ρπ. Moreover, the transition period between these two behaviors is of order logρ. See an illustration below for several values of ρ.
Eigenvalues λm for several values of ρ, from π to 20π.
Asymptotic statements. The behavior above can be characterized with asymptotic equivalents when either ρ→+∞ or m→+∞:
(super)Exponential convergence for large m (and fixed ρ): when m→+∞, we have the equivalent λm∼2eρπ(4meρ)2m+1 [4, p. 218].
Exponential convergence for large ρ (and fixed m): When ρ→+∞, π2ρλm→1, with 1–π2ρλm∼4πm!8mρm+1/2e−ρ (Theorem 3.25 in [10]).
Asymptotically, in the transition region, when ρ is large, for m≈2ρ/π+π2logρu, λm≈2ρπ(1+eu)−1 [19, Theorem 1].
Non-asymptotic statements. We have moreover statements which are true for all m⩾0 and ρ>0. The following bound is tight when m tends to +∞) [12, Theorem 9]:
λm⩽4⋅(2m)!2Γ(m+3/2)2πρ2m(m!)4,
which can be further upper-bounded as
λm⩽4Γ(3/2)2πρ2m(m+1)−2m−1⩽ρ1(m+1ρ)2m+1,
for any m∈N and ρ>0. We will need later the simpler bound:
λm⩽2ρ–2m,(4)
which can be obtained by splitting the set of m’s according to m+1⩾ρ/2 or ⩽ρ/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 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]) which can be extended to an orthogonal family in L2(R), and that are band-limited functions (with support of their Fourier transform in [−ρ,ρ]. Moreover, these functions are they own Fourier transform (up to rescaling). For more details, see [10, 18] and the figure below for ρ=6π.
Left: Eigenvalues. Right: eigenfunctions, plotted on [−2,2] with the values on [−1,1] in red.
Multiple dimensions. We can now consider the kernel k on Rd defined by products as
k^(ω)=(πτ)d1∥ω∥∞⩽1/τ,
and the density
u(x)=(2σ)d11∥u∥∞⩽σ.
The eigenvalues are ∏j=1dλrj where (λm)m⩾0 are the eigenvalues defined above and r∈Nd. Given the bound in Eq. (2), the eigenvalue defined by r∈Nd is less than 2ρd–2∥r∥1. The number of non-negative multi-indices such that ∥m∥1⩽s is equal to (dd+s)⩽(de(d+s))d (using a classical bound, as shown in [21, Section 8.1.2]), thus, for any m⩾0, λm⩽2ρd–2s, where s is the largest integer such that (de(d+s))d⩽m. This leads to
λm⩽2ρd+2−2(m1/dde−1–d)⩽22+2d2d(ρ–m1/d/2).(5)
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),
with a similar inequality when p is a sum of two terms.
Note that as desired, the bound is invariant by swapping p and k^ (and σ and τ−1).
We can now take the minimum with respect to σ and τ such that ρ=σ/τ=m1/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 p has compact support included in the ℓ∞-ball of radius σ, we get
Thus, for kernels with polynomial decay (such as Matern / Sobolev kernels of order β/2>d/2), that is, k^(ω)=O(∥ω∥∞−β), we get λm=O(m−β/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) for some constant c that can be made explicit, which is slower than the asymptotic order obtained in [4].
Beyond compact support. For example, if p(x) has tails in ∥x∥−α and k^(ω) has tails in ∥ω∥−β, with α,β>d, then, with τ∝m−d(α+β)α, we get λm=O(m−d(α+β)αβ). In other words, heavier tails of 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), with potential links with other spherical harmonics [27]. Eigenvalue decays also have relationships with leverage scores [23], a topic for another post.
We introduce the Fourier transform operator F defined as Ff(ω)=∫Rdf(x)e−iω⊤xdx, the inverse Fourier operator is (2π)d1F∗, where F∗ is the adjoint of F, such that F∗F=(2π)dI. We also denote M(r) the pointwise multiplication operator by the function r (defined by [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 Q as