Generalization error of minimum weighted norm and kernel interpolation
Weilin Li
Introduction
Deep neural networks contain significantly more parameters than data points and run the risk of over-fitting, yet they still perform well on new examples . This behavior appears to contradict classical learning wisdom, which predicts that over-parameterized methods typically result in poor generalization and advocates for models whose complexities are less than the number of training points.
The double descent phenomenon was proposed in as a resolution to this apparent paradox. Experimental evidence shows that for certain interpolators and datasets, for fixed samples, the generalization error as a function of the number of parameters appears to behave differently in two regimes. In the under and exactly parameterized regime , the error curve follows a classical “U” shaped curve with maximum error at . In the over-parameterized regime , the error decreases and its infimum is in the limit . The terminology “double descent” is attributed to the generalization error decreasing again in the over-parameterized regime after the first descent in the under-parameterized part of the curve.
While the “U” behavior of the curve is rationalized by the bias-variance trade-off , the over-parameterized regime is less (well) understood, yet highly relevant for modern learning algorithms. For instance, as the number of parameters increases, so do the Rademacher complexities and covering numbers of the corresponding function classes. Thus, ubiquitous statistical learning techniques that rely on controlling these quantities, such as those found in , predict that the generalization error should increase with the number of parameters, not decrease.
There has been significant recent interest in theoretically understanding the generalization error of simple over-parameterized methods and models. Given the prevalent use of kernel and optimization algorithms in data science and machine learning, and the importance of weighted norms, we study the error of interpolants that have minimum weighted norm. Our approach this problem is from a deterministic and approximation theory viewpoint, as opposed a statistical or random matrix one.
2 Contributions
Let us briefly describe our framework. Consider a weight and associated norm on the coefficient space of a sequence of functions . Given a collection of data points, for each sufficiently large (including ), let be the interpolant chosen to have minimum norm among all interpolants spanned by the first functions of . A classical example is trigonometric interpolation by polynomials of degree and weights generating a Sobolev norm. To see if approximates a given , we study the error of this minimum weighted norm interpolant.
Under natural and general conditions on , weight , and sampling set, we show that converges to in norm. The limiting function is the interpolant belonging to a reproducing kernel Hilbert space uniquely specified by the basis and weight. This rigorously establishes an implicit bias of weighted norm minimization: even though the function space consisting of all possible interpolants grows in , minimum weighted norm interpolation always selects particular interpolants that converge to a limiting one.
As a corollary, we show that converges to as increases to infinity. When the interpolated data are samples of , the limiting value is small if the sampling set is sufficiently dense and if is parsimonious with the weighted norm, which explains why over-parameterization can be helpful for certain target functions . On the other hand, if is large, then using more parameters than necessary could potentially increase the error.
We devote particular attention to two canonical examples. The trigonometric basis with appropriate weights generate isotropic and mixed spaces of smooth functions on the torus. We derive several new upper bounds for , which is validated by numerical experiments. The spherical harmonics with appropriate weights generate positive-definite kernel on the unit sphere. We make some new observations about the interpolation and generalization properties of neural tangent kernels.
3 Related work
There are several recent works that study the generalization of over-parameterized learning methods. For linear target functions, for some , estimators based on minimum norm interpolation with parameters were analyzed in . These results require statistical assumptions on the samples, co-variance matrices, and/or relationship between and . Special kinds of non-linear target functions were also considered in . Estimates the for ideal generalization error for several linear and non-linear models were given in , but it did not study the performance of any particular algorithm.
The use of kernel interpolation to approximate large function classes has been extensively studied from an approximation theory viewpoint, see for an overview. Since strictly positive-definite kernels can interpolate an arbitrary number of data points, they correspond to the case. It was recently shown that appropriately scaled random kernels in high dimensions and appropriately scaled singular ones can both interpolate and approximate.
A recent preprint also explores the generalization capability of weighted norm interpolation and reaches a similar conclusion that regularity of the target function allows for smallness of the generalization error in the over-parameterized regime. While that reference obtains explicit expressions for the generalization error corresponding to Sobolev weights and one-dimensional trigonometric basis with equally spaced sampling points on $$, this paper provides upper bounds corresponding to more general weighted norms beyond Sobolev and allows for irregularly spaced sampling sets.
4 Organization
The remainder of this paper is organized as follows. In section 2, we state the main assumptions of this paper and introduces minimum weighted norm interpolation. In section 3, we provide our most general results. There we discuss convergence of the over-parameterized interpolants and develop a connection to reproducing kernel spaces. Finally, in section 4 and section 5, we deal with trigonometric and spherical harmonic interpolation, respectively. All proofs are contained in the appendices.
Notation and assumptions
2 Main assumptions
Given a sequence of real-valued, continuous, and orthonormal sequence , and a positive sequence that diverges to infinity, we say and are compatible if there is a bounded and continuous function such that
where the series is assumed to converge absolutely and uniformly.
Let denote the coefficients of in the sequence, where . We formally define the weighted inner product and let . Let be the collection of all in the closed linear span of for which .
For each integer , including , given prescribed data , the minimum weighted norm interpolant is
The solution to this optimization problem is unique and can be computed numerically by inverting a system of linear equations. Each weight generates a different norm, so parameterizes a family of algorithms.
For a given function defined on , it is possible to ask if the interpolant approximates . For each , we define the error,
We primarily view the error as a function of when are fixed. It is important to mention that only depends on , and that in this definition, is an arbitrary function. There are two important examples. In the standard statistical learning paradigm , represents the regression function, are noisy samples of , and represents the generalization error. A more restrictive setting is the noiseless case where belongs to some function class and for each . Our results in section 3 apply to both, while those in section 4 and section 5 consider the latter.
By definition, belongs to a subspace of dimension and is the minimum number of basis functions required to interpolate arbitrary data on . We interpret as the over-parameterization factor. If is the cardinality of , then , but in general . The quantity is the error of the exactly parameterized minimum weighted norm solution.
Minimum norm and kernel interpolation
The main results in this section are proved in appendix A and we provide necessarily preparatory lemmas in section A.1.
At the core of our main findings is convergence of to and hence automatically to for any . This will be crucial in explaining and understanding when over-parameterization may be beneficial for minimum norm interpolation. The following theorem is proved in section A.3.
Assume and are compatible, and is a sampling set for . Given any data defined on , for each , let denote the minimum weighted norm interpolant of . Then converges to in for each . If additionally , then convergence also holds for .
theorem 3.1 proves an important property of minimum weighted norm interpolation. As the number of parameters increases, so does the space of functions that interpolate the given data . Yet, minimum weighted norm interpolation always selects particular interpolants that converge to a limiting one . This rigorously establishes an implicit bias of weighted norm minimization. Notice that this result holds for any data , and importantly, does not require to be generated by function(s) satisfying certain properties. An important consequence of the theorem is convergence of the error between and arbitrary .
Assume and are compatible, and is sampling for . Given any data defined on , for each , let denote minimum weighted norm interpolant of . For any and function , we have . If additionally , then convergence also holds for .
then increasing the number of parameters eventually leads to a decrease in the error. One the other hand, it also shows that over-parameterization might make matters worse if is large.
Notice that corollary 3.2 holds for arbitrary , and in particular, does not require any relationship between and . This might seem counter-intuitive, but it is important to remember that we have not made any claims yet about the limiting error which we call the plateau. In section 4 and section 5, we will consider the case where consists of noiseless samples of belonging to an appropriate function class.
2 Relationship with kernel spaces
We say is strictly positive-definite if the above statement holds with a strict inequality instead. For any positive-definite , the closure of under the inner product
defines a Hilbert space of functions such that for any and ,
It is standard to call a reproducing kernel Hilbert space (RKHS) and it can be shown that it is a space of continuous functions. We refer the reader to for further details.
From an interpolation perspective, strictly positive-definite kernels are advantageous and can be used to interpolate arbitrary data. In our setting where , the matrix containing samples of on any is invertible and the kernel interpolant
belongs to and for each . Note that if is not strictly positive-definite, then is not necessarily invertible and interpolation is not always feasible. The following proposition connects our main assumptions with an appropriate RKHS, and is proved in section A.2.
Suppose and are compatible, and that any finite is a sampling set for . Then is strictly positive-definite on , and is the unique reproducing kernel for a RKHS such that . For any data defined on , the minimum norm interpolant of is precisely the reproducing kernel interpolant of .
We emphasize that not every weighted norm is related to reproducing kernel norms. For instance, this occurs if the uniform convergence condition in the admissibility criteria is violated. An extreme case is when for each and is the trigonometric basis for the one-dimensional torus, in which case, the series attempting to define does not even converge pointwise.
3 The plateau and double descent
To investigate conditions for which inequality (3.1) holds, we use proposition 3.3, which shows that can be interpreted as the kernel interpolant of the prescribed data. Upper bounds for such interpolants have been extensively studied, from both approximation theory and statistical viewpoints, which we briefly describe below.
This is just a representative result, since more refined estimates can be given by exploiting additional properties of the kernel, see . We will consider typical examples later on.
Statistical methods require that is a probability measure and all sampling points of are drawn i.i.d. from . By controlling the Rademacher complexity of reproducing kernel Hilbert spaces, a representative result from and also Theorem 3 in , shows that for probability exceeding over the random draw of , for each , if denotes the kernel interpolant of ,
Both inequalities (3.3) and (3.4) show that, for sufficiently dense sampling sets, both and are small, and so is the plateau. We have chosen to present the material in this subsection rather informally for several reasons. First, greatly depends on , so it is impossible to cover every case that may be of interest. Second, the convergence results in theorem 3.1 and corollary 3.2 are deterministic, so they hold for general situations and we have presented the main ingredients on how to combine it with existing bounds for . Third, we will consider in detail two types of examples that are particularly relevant to machine learning.
4 Kernel spaces have near optimal interpolants
In the previous subsections, we analyzed the generalization properties of minimum weighted norm interpolation. One may be interested in other algorithms, so for this reasons, we focus on an existence question: given samples of a target function, does there exist an interpolant that is also a near optimal approximant?
There are negative and positive answers to this question. For instance, Runge’s phenomenon is a classical example such that if the sampling set consists of uniformly spaced points on an interval, then the extra interpolation constraints may impede optimal approximation by algebraic polynomials.
The following theorem provides a positive answer to the previous question under the assumption that belongs to the RKHS associated with , and the interpolants are chosen from the span of . To obtain an idea of the fundamental limits, we observe the simple lower bound,
The below theorem establishes the reverse inequality up to a small additive constant and it is proved in section A.4.
Assume and are compatible, and is a sampling set for . Given any and , there exist and such that interpolates on and
This theorem shows that both interpolation and near optimal approximation of functions in reproducing kernel Hilbert spaces can be simultaneously achieved. However, it is purely existential as the extremal function(s) cannot be computed directly from the proof.
Example: Fourier series
The main results of this section are proved in appendix B and section B.1 provides overview of the organization of the proofs.
Our use of complex-valued functions in this section is purely for convenience of notation. Since we will only consider interpolation and approximation of real-valued functions, the trigonometric basis can be equivalently rewritten in terms of sines and cosines, while the kernel can be expressed as a summation of cosines.
The proof is rather technical and requires several preparatory lemmas, which can be found in section B.4.
This theorem tells us that the error is largely controlled by to the power. This agrees with our intuition as more sampling points and highly regular should lead to small error. The ratio is large if is irregular and equals one for uniformly spaced sampling points. Usually in practice, we interpret as a universal constant.
While the above theorem is similar in flavor to the scattered data approximation error bounds in , its interpretation is different. The scattered data approximation point of view examines the limit , whereby the theorem suggests that it is optimal to pick in order to maximize the decay of . In our case, is finite and fixed, so the answer is more complicated. The error bound in theorem 4.2 contains which grows in , an implicit constant which presumably also grows in , and which decreases in . Thus, it is not clear whether is best.
As seen in theorem 4.2, interpolation of smooth functions in standard smoothness spaces suffer from the curse of dimensionality. Indeed, if consists of approximately uniformly spaced points, then is on the order of . In high dimensions, this leads to a poor approximation rate. As shown in the supplementary material in section D.1, the curse of dimensionality in the approximation rate can be avoided by assuming belongs to a mixed Sobolev space.
2 Numerical illustration
The primary goal of this section is to validate and illustrate our theory for a concrete example. We consider the classical Runge function,
To avoid sampling sets with special structures, suppose is a set of points chosen i.i.d. from the uniform measure on . For each realization of and real parameter , we let be the trigonometric polynomial of degree at most chosen according to the following procedure:
Both algorithms are naturally related to each other because the least squares solution uses the pseudo-inverse instead of an inverse to perform the interpolation, see supplementary material in section D.2.
The left plot in fig. 1 shows the error for several choices of smoothness parameters , as a function of . Here, random samples are drawn and the results are averaged over 100 realizations of the sampling set. In the under and exactly parameterized case , the error follows a classical “U” shaped curve with minimum attained for some . The peak occurs at and it has been suggested that this is due to the poor condition number of the interpolation matrix . In the over parameterized regime , the error behaves differently depending on the choice of weight which is specified by the parameter . We see in this example that the over parameterized minimum norm interpolants for perform better than the optimally chosen under parameterized interpolant.
Example: spherical harmonics
We have the following approximation rate for kernel interpolation on the sphere.
2 Neural tangent kernels
An explicit formula for the NTK corresponding to two layer neural networks with ReLU activation was derived in . For our purposes, we forego its formula and instead work with its Mercer decomposition, which was derived in . There, it was shown that for some depending only on , the NTK denoted has the absolutely and uniformly convergent series expansion
We end this subsection with a theorem regarding the approximation quality of the NTK interpolant of a function. The theorem is proved in section C.3.
Appendix A Proofs for section 3
When and are fixed, to simplify the presentation, let and be its truncation. Fix any finite and , let and be square symmetric matrices containing the values of and evaluated on , respectively. Let denote the matrix where and denote the diagonal matrix . A direct calculation shows that . We also define the quantities
Note that converges to zero when and are compatible.
Assume and are compatible and is a sampling set for . For each , is injective and is invertible.
The following lemma provides us with an explicit formula for in terms of . We omit its proof because it is a direct calculation using the explicit formula for the minimum norm solution subject to linear constraints.
Assume and are compatible, and is a sampling set for . Given any data , for each , the minimum norm interpolant of has an explicit formula, f_{p}(x)=\sum_{k=1}^{n}K_{p}(x,x_{k})\big{(}{\bf K}_{p}^{-1}\,y\big{)}_{k}.
A.2 Proof of proposition 3.3
The last inequality follows injectivity of , which is shown in Lemma A.1. This verifies that is strictly positive-definite on . Since and are compatible, notice that for each , by orthogonality of , we have
By Proposition 1 in , since we have shown that for each and by assumption, the integral kernel operator, is positive and compact on . By the spectral theorem, admits a countable orthonormal basis of eigenfunctions for . A direct calculation shows that all nonzero eigenvalues are precisely with corresponding eigenfunctions . It follows from standard RKHS theory that for all .
The kernel interpolant defined in (3.2) has the smallest RKHS norm among all interpolants of . See Theorem 13.2 in , and it can be directly proved by modifying the argument in Lemma A.2. Since , this implies is also the kernel interpolant. ∎
A.3 Proof of theorem 3.1
We denote the sampling set by and let . From Lemma A.2 and proposition 3.3, we have explicit formulas for and ,
From here, we use triangle and Cauchy-Schwarz inequalities to obtain,
We first focus on the terms with norms. We start with the estimates involving . By orthogonality of and definition of , for each ,
The estimates are more straightforward. For each , we use Cauchy-Schwarz and the definition of to see that
By log-convexity of the norm and the above estimates, for each and ,
It remains to upper bound all terms involving the matrices and . Observe that
where is the Frobenius norm. Combining inequalities (A.1), (A.2), and (A.3) shows that for each and , we have
To see why this inequality implies that converges to in , notice that converges to zero, converges to due to Weyl’s inequality and our above upper bound on ,
and all the other terms are independent of . This proves the theorem for .
Under the additional assumption that , the same conclusion holds for the range . To see why, the key observation is that for any , by Cauchy-Schwarz,
Using these inequalities and that , for each ,
The rest follows by repeating the same argument. ∎
A.4 Proof of theorem 3.4
Our desired function is . Indeed, by construction, interpolates on , is a linear combination of which implies , and
It remains to show that tends to zero as goes to infinity. By Cauchy-Schwarz,
To bound the term on the right hand side, we use the definition of projection and Cauchy-Schwarz to obtain,
We claim the right hand side tends to zero as . Indeed, we have convergence of to (as shown in the proof of theorem 3.1) and to in view of the Lebesgue dominated convergence theorem. Recall that converges to zero and so does since by assumption. Hence, for all , there exists sufficiently large such that . ∎
Appendix B Proofs for section 4
The proof of Theorem 4.2 is rather technical and builds upon core ideas from the kernel interpolation literature. There are two distinctive steps carried out separately in section B.2 and B.3.
B.2 Lemmas for the first step
From Theorems 11.4 and 11.9 in , there exist , , and such that if , then for any algebraic polynomial restricted to the unit cube,
where is the ball of radius centered at the origin. Let be the -th degree Taylor polynomial of expanded around zero. Using the integral form for the remainder and performing some algebraic manipulations, we obtain
Since , by the Hölder continuity of , we obtain
We specialize to to complete the proof. ∎
By using this lemma, we obtain an immediate consequence for isotropic Sobolev kernels.
By Theorem 6.3.6 in , this implies is Hölder continuous of order . ∎
B.3 Lemmas for the second step
Approximation by single variable trigonometric polynomials is classical and the multidimensional case is similar. Define the one-variable trigonometric function
Theorem 4.3 in is a multi-variable extension of the classical Jackson’s inequality, and the following lemma is a special case of the referenced result.
Employing the previous lemmas enables us to prove that there exists a trigonometric interpolant that is also a near optimal approximation.
B.4 Proof of theorem 4.2
This proves the first inequality of the theorem.
To upper bound the fist term on the right hand side of inequality (B.2), we use Lemmas B.5 and B.4 to obtain
Thus, combining inequalities (B.2) – (B.6), using that , and performing some algebraic manipulations, we arrive at
Appendix C Proofs in section 5
C.2 Proof of proposition 5.3
Finally, the desired interpolant is . This shows that for arbitrary with at most symmetric points and any defined on , there exists an interpolant the span of that interpolates . ∎
C.3 Proof of theorem 5.4
The more interesting case is . Its proof is a variation of the results in , so we only give a sketch of the main steps and the interested reader should refer to the aforementioned paper for full details. All subsequent constants potentially depend on and , and their values may change from line to line. There exist , a independent of , and
For the second term on the right hand side of inequality (C.1), this can be upper bounded verbatim from , giving us
Combining inequalities (C.1), (C.2), and (C.3), and using that , we have
Appendix D Supplementary material
For large , we compare with the integral
where we used that . Then we have
This proves that is Hölder continuous of order . ∎
We see that if is on the order of , then the generalization error decays on the order of . It is also interesting to note that the interpolant allows for irregular sampling sets and can be numerically computed.
D.2 Least squares vs minimum norm
This section describes a relationship between the following two algorithms. Assume and are compatible, and that is sampling for . Given prescribed data , define the functions
We follow the notation introduced in section A.1. The following proposition provides an explicit formula for the solution to this problem.
Assume and are compatible, and is sampling for . For any such that has full rank, we have
The case is implied by Lemma A.2 since . For the case where , the matrix is possibly rank deficient. Since and is assumed to have full column rank, we see that
On the other hand, satisfies
This proposition is known for the unweighted case ( for each ), in which case, it connects the least squares solution of an over-determined linear system to the minimum norm one to an under-determined. Perhaps, it is not as widely known that this statement also holds for weighted norms.
D.3 Additional experiments for trigonometric interpolation
In our next set of experiments, we study the same experimental setup that was discussed in section 4.2 and explore the effects of increasing the number of samples . Comparing fig. 1 (a) with fig. 2 (a) and (b), we see that increasing decreases the plateau, which is consistent with our theory that the plateau decreases in . An interesting feature of these experiments is that the over-parameterized interpolant that achieves the smallest error in the limit for are respectively. One explanation is that the Runge function is not differentiable at the singularity , but is smooth elsewhere. For smaller values of , hence larger , the singularity does not have a significant impact, so smoother over-parameterized interpolants perform better. For larger and hence smaller , the singularity becomes more influential and smoother interpolants suffer.
Appendix E NTK is not strictly positive-definite
Acknowledgments
The author thanks Sinan Güntürk for valuable discussions and gratefully acknowledges support from the AMS–Simons Travel Grant.