Benign overfitting in ridge regression
A. Tsigler, P. L. Bartlett
Introduction
The bias-variance tradeoff is well known in statistics and machine learning. The classical theory suggests that large models overfit the data and that one needs significant regularization to make them generalize. This intuition is, however, in contrast with the empirical study of modern machine learning techniques. It was repeatedly observed that even models with enough capacity to exactly interpolate the data can generalize with little regularization, or no regularization at all (Belkin et al., 2019a; Zhang et al., 2016). In some cases, the best value of the regularizer can be zero (Liang and Rakhlin, 2018) or even negative (Kobak et al., 2020) for such models.
The aim of this paper is to provide a theoretical understanding of these phenomena, and to do that we consider one of the simplest settings in which they can be observed—ridge regression in dimension with i.i.d. noisy observations. Despite being a classical statistical methodology, ridge regression and its ridgeless limit are still not completely understood in such a regime: when classical theory suggests that the regularization parameter should be large enough to provide additional capacity control (see, e.g., Hsu et al. (2014) and references therein). The basis of our work was set by Bartlett et al. (2020), who studied the variance term for ridgeless regression with under the additional assumption that the data vectors have independent components. The main discovery of their work is that the variance term can be small if and only if there exists such that if one removes the first largest eigenvalues of the covariance operator, the remaining tail of the sequence of eigenvalues has large effective rank compared to . In our work we start afresh and use the same separation of eigendirections from the very beginning, which allows us to substitute the independence assumption by a weaker assumption on the condition number of the Gram matrix of the tails of the data vectors. Moreover, we show how the same separation of the eigenvalues gives tight bounds for the bias term too. Finally, by virtue of algebra, our argument extends very easily to the setting of ridge regression, which allows for comparison with the above mentioned classical results and investigation of the case when the regularization is even less than zero. We show that we extend (with different constants) the results of Hsu et al. (2014) to a larger range of regularization parameters, and give general conditions under which negative regularization is optimal and can provide arbitrarily high multiplicative gain in excess risk.
The structure of the paper is the following: in Section 1.2, we provide an overview of the field of overparameterized ridge regression. We postpone a more technical overview to Section 9, where we also explain how our paper relates to other works. We start the presentation of our results with introducing the setting of ridge regression in Section 2. After that, we use Section 3 to introduce the separation of eigendirections and define the relevant important objects: Subsection 3.1 shows two simple sketches aimed at building up intuition, Subsection 3.2 explains the results of Bartlett et al. (2020) in terms of that intuition and Subsection 3.3 explains how our work completes the story. The aim of this discussion is to elucidate the meaning behind the rigorous assumptions and results that we show in Section 4. Then Section 5 provides a more technical discussion of the main assumption. Section 6 provides an outline of the proof and explains where it uses the assumption that the data is sub-Gaussian. In Section 7 we note that as a side product of the proof an alternative form of the main bound arises, which makes it convenient to compare our bounds to the results of other papers. In Section 8, we derive the sufficient conditions for optimality of negative regularization. Finally, we conclude the paper with Section 10.
2 Related work
Motivated by the empirical success of overparametrized models, there has recently been a flurry of work aimed at understanding theoretically whether the corresponding effects can be seen in overparametrized linear regression; see, e.g., (Liang et al., 2019; Muthukumar et al., 2019; Belkin et al., 2019b; Bibas et al., 2019; Nakkiran, 2019; Xu and Hsu, 2019; Zhou et al., 2021; Negrea et al., 2020) and other references in this section.
The results that aim at characterizing the generalization performance of linear methods can be split roughly into three categories. The first category is results that give exact expressions of the excess risk in the asymptotic setting with ambient dimension and the number of data points going to infinity, while their ratio goes to a constant, and the spectral density of the covariance operator converges weakly to some limiting distribution (Dobriban and Wager, 2015; Hastie et al., 2019; Wu and Xu, 2020; Richards et al., 2020).
The second category is results that make strong assumptions on the distribution of data (e.g., that data vectors have i.i.d. components or come from a uniform distribution on a sphere) and derive bounds on excess risk of linear regression with some specific features, or kernel regression with a kernel that has some specific properties (Montanari and Zhong, 2020; Ghorbani et al., 2020b; Mei and Montanari, 2019; Ghorbani et al., 2020a; Liang et al., 2020). Some of these results are also asymptotic, and some are non-asymptotic.
The third category is results that prove non-asymptotic bounds depending on the arbitrary structure of the covariance of the data. This is the category to which this paper belongs. We already mentioned the work of Bartlett et al. (2020). The other works in this category are (Kobak et al., 2020), (Chinot and Lerasle, 2021), (Dereziński et al., 2019) and (Dereziński et al., 2020).
We provide more detailed comparison and discuss some technical aspects in Section 9.
There have been many related works since the arXiv version of this paper (Tsigler and Bartlett, 2020) was posted (Mei et al., 2021a, b; Ghosh et al., 2021; Misiakiewicz and Mei, 2021; Bartlett et al., 2021; Celentano et al., 2021; Muthukumar et al., 2021; Narang et al., 2021; McRae et al., 2021; Shamir, 2022; Koehler et al., 2021; Bunea et al., 2022) etc. Hastie et al. (2020) obtained a finite sample version of the asymptotic results of the old version of their paper (Hastie et al., 2019). In Section 7.3 we provide an explicit comparison with our results. More recently, Mei et al. (2021a) obtained generalization bounds for kernel ridge regression under similar assumptions to those we consider here (see their Assumption 1). Koehler et al. (2021) used the idea of separating the firs eigendirections of the covariance to study excess risk of minimum norm interpolators with arbitrary norms and Gaussian data. Bartlett et al. (2021) obtained results which belong to the intersection of the first and the second categories which we described in Section 1.2 (see their Theorem 4.1). Shamir (2022) constructed an example of a misspecified setting (i.e., the noise is not independent from the data) in which our results don’t hold even though the condition number of the matrix is a constant (see their Example 1).
Ridge regression setup
where is the non-increasing sequence of eigenvalues of .
We assume sub-Gaussianity: denote (whitened data matrix). Rows of are isotropic centered i.i.d. random vectors. We assume that rows of are sub-Gaussian with sub-Gaussian norm as defined in Appendix A.1.
Sub-Gaussianity is a classical assumption, which provides a convenient framework for controlling deviations of various quantities of interest (see Vershynin (2018) for an introduction). We discuss whether it is actually needed in Section 6.4.
2 Response model
where is the noise vector. We assume that components of are i.i.d. centered random variables with variance .
3 Learning procedure
Ridge regression with regularization parameter is a classical learning algorithm that estimates from according to the following formula:
See Appendix B for a discussion. The matrix will play an important role in our analysis, so we denote
In the ridgeless case (), is the Gram matrix of the data. Ridge regularization shifts all its eigenvalues by .
4 Excess risk and its bias-variance decomposition
The quantity of interest is excess risk that we define in the following way: recall that is a new data point from the same distribution as rows of . The error that our predictor incurs on this data point is . We define excess risk as the average squared error over the population, i.e.,
where we define for any positive semi-definite (PSD) matrix and any vector of the corresponding dimension.
Note that is linear in , which allows us to write
The term is the error in the noiseless regime; it is caused by rows of not spanning the whole space and by regularization. The term is the error of learning the zero function from pure noise. One can see that these two terms nicely decouple from each other and can be studied separately. Moreover, note that is a quadratic form in . Its expectation scales linearly with (variance of the noise):
If the noise is sub-Gaussian with sub-Gaussian norm , then by Lemma 22 from the appendix for some absolute constant and any , with probability at least ,
These quantities don’t depend on the distribution of the noise. The goal of this paper is to provide sharp non-asymptotic bounds for them.
The story of separating the first k𝑘k eigendirections and our contribution
Before we present our results, we develop some intuition by considering two easy scenarios: "essentially low-dimensional" and "essentially high-dimensional". For each scenario we will do an informal computation of the excess risk and give a geometric interpretation.
where is the projection on the span of columns of . This allows us to write the following informal computation, which leads to the classical rate:
Here we used the informal transition — the population covariance matrix is well-approximated by the sample covariance matrix uniformly in all directions. If this results holds with very few additional assumptions (see (Tikhomirov, 2017) and references therein).
Such a result leads to a classical bias-variance trade-off: the larger the model is, the better it can approximate the true dependence, but also the more noise it picks up. A classical cartoon is shown in Figure 1: Figures 1(a)–1(c) show the result of performing least squares regression with features . As the number of features grows, the ability of the model to approximate the signal grows too, but at the cost of increasing sensitivity to the noise. As the number of features approaches the number of data points (the "interpolation threshold"), this leads to overfitting.
According to our definitions of bias and variance from Equation (2) with ,
Here we see the following: the matrix is the projection on the span of the data. This is a random -dimensional subspace in -dimensional space. Thus, with high probability , so the projection only preserves an fraction of the energy of the signal. When it comes to the variance term, we can use the same concentration result for the sample covariance as we did in the low-dimensional case, but for the transposed data matrix, meaning . Finishing the computation yields
We see that the signal is almost not learned at all in this regime (the bias term is close to the full energy of the signal), but the noise is also damped by the factor .
The geometric interpretation is as follows: if , the span of data points is almost orthogonal to with high probability. The data just does not measure in most directions, so almost the whole signal is lost. On the other hand, despite the noise fully propagating into in-sample predictions, a new data point is also almost orthogonal to all the old data points with high probability, so those noisy predictions don’t influence the prediction in . Overall, despite interpolating the data, we effectively learn a zero estimate out of sample. The zero estimator can be a very good estimator, e.g., if the true signal is zero. This hints at the possibility of learning via high-dimensional interpolation: the model can use the directions in which the signal is not learned to smear the noise over them.
The learning cartoon for this regime is given in Figures 1(d)–1(e): as the number of cosine features becomes large compared to the number of data points, the learning procedure predicts zero out of sample, despite interpolating the values in sample. However, if we add multiplicative weights to the cosine features, down-weighting higher frequencies, it causes the minimum norm solution to learn the low frequency signal and interpolate the noise using the high frequency components.
2 The ground provided by the previous work
Bartlett et al. (2020) studied the variance term for ridgeless regression under the additional assumption that the data vectors have independent components. To give an overview of their results, introduce the following quantities: for any define
In the ridgeless setting, meaning , is a well-known effective rank of the matrix , is the effective rank of the same matrix, but after restricting it to the span of its last eigenvectors, and measures how large that effective rank is compared to the number of data points.
Given this notation, Bartlett et al. (2020) defined as the minimum for which is larger than a universal constant. Their result is then that if such a doesn’t exist or if is at least a constant, then is lower bounded by a constant. Otherwise, they show that with high probability is equal up to a constant factor to the following quantity:
Inspection of the proof shows that the "essentially low-dimensional" rate comes from the first components of the vector and the term comes from the rest of the components of . Note that if one plugs in for all , then it becomes — exactly the variance term of the "essentially high-dimensional" regime of Section 3.1. The conclusion of Bartlett et al. (2020) is therefore that the only way that an interpolating solution can damp the noise by more than a constant factor is the following: the data is such that after removing components, it becomes "essentially high-dimensional", meaning that the effective rank of its covariance is large compared to the number of data points. After that the variance in the first components is the same as for the classical least squares, and the variance in the rest of the components corresponds to the "essentially high-dimensional" case, where you cannot learn but the noise is still damped. Note, however, that that story was not complete because only the variance term was bounded sharply in that work.
3 Our contribution
We complete the story of Bartlett et al. (2020) by providing sharp bounds on the bias term, extending the results to the setting of ridge regression with nonzero , and replacing the assumption of independence of the components by a much broader sufficient condition. From our point of view, is the main discovery of Bartlett et al. (2020). In our work we also start with separation of the first eigendirections and show that the same split leads to a bound for the bias term that is in full alignment with the intuitive explanation given above.
The central object in our analysis is the following matrix:
The matrix is the Gram matrix of the data after removing the first components. is obtained from that Gram matrix by shifting all eigenvalues by the ridge regularization parameter .
In Bartlett et al. (2020), the crucial step was to show that the singular values of are within a constant factor of each other for (see their Lemma 5). When the components of data vectors are independent, such control over the condition number is a consequence of high effective rank. In this paper, the roles of effective rank and condition number of are reversed. We prove sharp bounds assuming that there is some oracle that guarantees that with high probability all eigenvalues of are within a constant factor of each other. Independence of components is not needed. Moreover, such control implies that is at least a constant, which, in turn, implies sharpness of the bounds. In other words, we provide a more general condition under which the tail of the data is "essentially high dimensional" — instead of assuming independent components and high effective rank, only oracle control of condition number of is needed. In Section 5 we provide an extensive discussion of this assumption: we show that a version of a small-ball condition for the tails of the data is required and that a stronger version of the same condition is sufficient if the data is sub-Gaussian.
The bound that we obtain for the bias term is given informally by the following expression:
One can see how it aligns with the intuition of “essentially low-dimensional” and “essentially high-dimensional” parts: one cannot estimate the signal in the high dimensional part, so almost all of its energy goes into the error. When it comes to the low-dimensional part, the high-dimensional part acts as a ridge regularizer for it, so the bias in the first components is the same as that of ridge regression with regularization coefficient (i.e., the full regularization is equal to the explicitly imposed part plus "implicit regularization", which is equal to the energy of the tail.)
Our extension of the results to the ridge regression scenario allows us to answer the following question: can it happen that the "essentially high dimensional part" is too high dimensional, meaning that it provides too much regularization and negative is needed to compensate for that? In Section 8, we show that this indeed can happen and that the following is sufficient for it to be true: the noise and the energy of the signal in the tail (components ) are small compared to the signal in the spikedHere we use the word ”spiked” as in the ”spiked covariance models”, which usually assume that the eigenvalues of are all equal and of smaller order than eigenvalues of . One way to interpret our results is that only spiked-covariance-like models can exhibit benign overfitting, and we derive general conditions for a model to be spiked-covariance-like. part (components ), but the effective rank of the tail abruptly becomes much larger than .
4 Additional notation
Throughout the paper the following objects will be needed: for any denote to be the -th column of . Then define
an analogue of the matrix , but we throw away the -th component of the data vectors. Denote also
the ratio of the effective rank of the tail to the number of data points without taking regularization into account.
For the readers convenience, we compile all the notation in Appendix A.
Main results
As we explained in the previous section, the central objects in our proof are and . In principle, any control of the spectrum of leads to some upper bound on and (see our Theorem 5), the question is when that bound is tight. The intuitive answer is the following: the bound is tight when the condition number of is a constant and is chosen correctly, meaning that either is a constant or is the smallest number such that is larger than a constant (i.e., ).Note that there may be several values of that satisfy these conditions. Applying our upper bound for any of those will yield the same result up to a constant factor. Our arguments, however, only support this intuition when the following technical assumption holds for some constant :
Assume that .
The focus of our work was to obtain the tight upper bound on the excess risk under minimal assumptions. Such minimal assumption turns out to be
Assume that with probability at least the matrix is positive-definite (PD) with condition number at most .
We provide a thorough discussion of this assumption in Section 5, for example we derive sufficient and almost matching necessary conditions for it to hold when the distribution is sub-Gaussian. The reason why we don’t just assume those sufficient conditions is that we believe that sub-Gaussianity is not essential for our results to hold, as we discuss in Section 6.4. Moreover, the matrix is the central object in our argument, and making an assumption on its condition number explicitly makes presentation easier.
A careful reader will notice that we have just stated that another condition is needed for the bound to be tight: should be chosen in the right way. This, however, can be achieved by shifting to if necessary: indeed, assumptions NoncritReg() and CondNum() imply a constant lower bound on (see Corollary 6). That means that either is a constant, or it is more than a constant, i.e., . In the latter case one can shift from to meaning that Assumption CondNum() also holds with modified constants (see Lemma 11 for the exact statement). Now applying the upper bound (Corollary 6) with gives tight result, as given by the following
Fix any constants Denote
There exists a constant which only depends on , , , such that the following holds: suppose NoncritReg() and CondNum() are satisfied for some and . Take . Then with probability at least
Moreover , NoncritReg() holds, and there exist that only depend on s.t. CondNum() holds.That is, the assumptions still hold if we substitute by , but with different . Further we will see that satisfaction of these assumptions implies tightness of the bounds for the chosen .
Proof In this proof let’s call any quantities that only depend on , , and "constants". First of all, if then . Since we are given that NoncritReg() and CondNum() are satisfied, we immediately get that NoncritReg() and CondNum() are satisfied with and any . However, if then and by Lemma 11 NoncritReg() and CondNum() are still satisfied for some constants . Note that the larger the constants, the looser the assumptions, so we can take our final choice of to be the maximum over two cases.
Now that we know that NoncritReg() and CondNum() are satisfied, by Corollary 6, there is a constant such that and with probability at least
Taking gives the first part.
Algebraically, under Assumption CondNum() all eigenvalues of are within a constant factor of each other, so one can pull its operator norm from the expressions and obtain an upper bound without losing tightness. This strategy, however, doesn’t produce lower bounds, so we derive them in a different way: we decompose bias and variance into sums with respect to individual coordinates of the predictor, and bound each term in each sum from below. Because of that, we impose different assumptions, namely
Assume that all elements of matrix are independent (i.e., data vectors have independent coordinates).
Assume that the sequence of coordinates of is exchangeable (any deterministic permutation of the coordinates of whitened data vectors doesn’t change their distribution).
Assume that is sampled from a prior distribution in the following way: one starts with vector and flips signs of all its coordinates with probability independently.
for the bias term. Because of this mismatch in assumptions, our lower bounds don’t show that our upper bound is always tight. What they show is that one needs some specific knowledge about the distribution to obtain better bounds. We provide a more detailed discussion of the relations between those assumptions in Section 6.2. The lower bounds themselves are given by the following
Fix any constants , Denote
There exists a constant which only depends on , , , , such that all the following hold:
For any under assumptions IndepCoord, NoncritReg(), if then with probability at least
For any under assumptions NoncritReg(), CondNum(), PriorSigns() and ExchCoord, if then with probability at least
Proof Lemma 7 gives a lower bound for , and Lemmas 8 and 9 give the lower bound for B. Those lower bounds have the desired probability, but different algebraic form. To bring them to the same form as the upper bounds one needs the right to be chosen. We assumed that . Moreover, since by definition of we either have or . In both of those cases Theorem 10 guarantees that these lower bounds are the same as what we need up to multiplicative constants that only depend on , , , and .
One can notice from this proof that having separate arguments for the lower bounds results in a different algebraic form of the same bound. This different form turns out to be convenient to draw explicit connections between our results and results from earlier works. We do that in Section 7.
The central assumption that we need to compute the excess risk is Assumption CondNum(), which provides control over condition number of . In this section we discuss when this assumption is known to be satisfied and what are the necessary conditions for it to happen.
Recall that , so its spectrum is the shift by of the spectrum of , the random matrix that is equal to the Gram matrix of the projected data. There are therefore three ways of establishing a constant upper bound on the condition number of :
Establish an upper bound on and take for some constant . In this case, the singular values of are all equal to (and greater than ) up to a constant multiplier.
Establish upper and lower bounds and on and respectively, such that is a constant. Then take for some constant . In this case, the singular values of are all equal to (or ) up to a constant multiplier.
Establish upper and lower bounds and on and respectively, and take , where for a constant . In this case, the singular values of are all equal to up to a constant multiplier. This case can be substantially different from the previous case when the singular values of are very well concentrated, i.e., the gap is of smaller order than itself. In this case can be a smaller order term.
Our bounds are sharp when assumption NoncritReg()() is satisfied for some , i.e., in the first and the second case above. The third case is quite rare because it requires very good concentration of the spectrum of . Moreover, in this case is very close to the critical negative value under which it is impossible to even guarantee that is PD as it becomes negative definite in expectation. We use this regime to investigate how negative regularization can improve excess risk by more than a constant factor in Section 8. However, we don’t expect our bounds to always be sharp in this regime.
Therefore, we focus our attention on the first two cases. In Section 5.2 we discuss informally what conditions on the distribution are necessary to bound and , and show how notions of high effective rank and norm concentration condition arise. In Section 5.3 we combine those bounds for sub-Gaussian data with the choice of to provide necessary and almost matching sufficient conditions for the condition number of to be constant under sub-Gaussianity. In Section 5.4 we show that sub-Gaussianity is not actually required for the condition number of to be controlled with high probability: Theorem 4 states that norm concentration condition and a modified version of high effective rank condition are sufficient even if the data only has bounded moments.
2 Informal necessary conditions
There are several easy observations that help understand what is needed for the condition number of to be bounded.
The first observation is that , where is the first column of —a vector with i.i.d. coordinates with unit variance. By the law of large numbers, , meaning that . Therefore, .
The second observation is that the diagonal elements of are squared norms of the tails of data vectors. Recall that we denoted the data points to be . We can write
The third observation is that the diagonal elements of a PD matrix themselves provide bounds on the singular values:
Therefore, to control condition number of by a constant with probability , it is necessary to guarantee that
i.e., independent random draws of the random variable should all lie within a constant factor of some value, meaning that the norm of the tail of a data vector should be within a constant factor of a fixed value with probability .
3 Controlling condition number under sub-Gaussianity
Sub-Gaussianity of the data implies an upper bound on , but doesn’t help with . To see this one can consider a well-known construction: take a sub-Gaussian distribution and construct another distribution in the following way: to sample from this new distribution take a vector from the old distribution and multiply it by with probability and by zero otherwise. The new distribution is still sub-Gaussian with the same covariance, but the Gram matrix of i.i.d. samples from it is degenerate with probability at least . Therefore, an additional assumption is needed to lower bound . As we already mentioned in Section 5.2, we need norm concentration. Since sub-Gaussianity allows to bound the norm from above, it reduces to a version of the small-ball condition: should be lower-bounded with high probability. The formal result is given by the following
For any and there exists that only depends on and such that under Assumption NoncritReg() the following holds: for any
If and with probability at least
then with probability at least
Suppose that it is known that with probability at least . Then and with probability at least
The proof is given in Appendix D. One can see that both the necessary and the sufficient conditions are that is lower bounded by a constant and a version of small-ball condition that says that the regularized squared norm of the data exceeds a constant fraction of its expectation with probability . There is, however, a gap in those constants.
4 Heavy-tailed case
The following is a direct corollary of Theorem 2.1 from Guédon et al. (2017)
Suppose that the distribution of the tail satisfies the following two assumptions:
Norm concentration: For some , and
Heavy-tailed effective rank: for some denote to be the maximum number such that for any and
There exists a constant that only depends on such that with probability at least
Proof First, note that by union bound with probability at least all the diagonal elements of the matrix belong to the segment . Next, take the bound on from the Case 1 of Theorem 2.1 from Guédon et al. (2017) with the following choice of their parameters: , , , , . Use that bound for vectors . Note that that is exactly the operator norm of the off-diagonal part of .
The quantity that we introduced in Theorem 4 can be interpreted as a notion of effective rank for heavy tailed distributions. Indeed, one can write
— the ratio of the typical norm of the random vector to the scale of the worst case deviations of its one-dimensional projection. This is completely analogous to our usual definition of the effective rank: . Indeed, in sub-Gaussian case is the typical value of the norm of the vector , and is up to constant the largest sub-Gaussian norm of its one-dimensional projection. We see that the conditions under which the eigenvalues of are within a constant factor of each other with high probability remain the same even in the heavy-tailed case: the norm of concentrates within a constant factor of a fixed quantity, and the heavy-tailed effective rank should be large compared to the number of data points.
Structure of the proof and role of sub-Gaussianity
The core of our argument is Theorem 5 given below. There are two important things to note about it: first, it only requires sub-Gaussianity and matrix being positive semidefinite (which always holds with probability for non-negative ). Second, its proof decomposes very clearly into two parts: an algebraic part, which only requires being PD and holds with probability conditionally on this event, and a probabilistic part, where standard concentration results are directly plugged into the algebraic bounds. Because of this decomposition, it is straightforward to track how the sub-Gaussianity is used and how it can be relaxed. We provide the sketch of the proof to show these details.
There exists a (large) constant , which only depends on , s.t. for any with probability at least , if the matrix is PD, then
Proof sketch The full proof of Theorem 5 can be found in Section I.1 of the appendix. The following is a sketch of its derivation.
Recall the following notation: for any
As explained in Section 3.2, Bartlett et al. (2020) introduced the notion of for which the behaviour of the variance term in the first coordinates is qualitatively different than in the rest of the coordinates. Their argument, however, relies crucially on independence of the components of the data. The main idea that allowed us to get rid of that assumption and to obtain the tight bound for the bias term was to separate the first coordinates from the very beginning and to use some sort of uniform convergence argument in that low-dimensional subspace.
The crucial tool that allowed us to realise this idea turned out to be the following algebraic identity that we prove in Section F of the appendix:
This identity allows convenient access to the error in the first coordinates (the spiked part).
The argument decomposes clearly into two parts: algebraic and probabilistic. The algebraic part is to decompose the excess risk (up to a constant multiplier) into four terms and show that the following inequalities hold on the event that the matrix is PD: (1) Bias error in the spiked part:
The probabilistic part of the argument is to control the quantities that arise in the algebraic bound with high probability. Namely, we plug in
Concentration of -dimensional sample covariance with samples: w.h.p.
Concentration of norm of vectors with i.i.d. components: w.h.p.
After plugging in the probabilistic bounds, the final result is obtained by a straightforward computation.
Note that the only probabilistic statements that are used in this proof are concentration of sample covariance in dimension and concentration of the sum of i.i.d. random variables. The same concentration results hold with weaker assumptions, but with larger probability. For example, under rather weak moment assumptions only a linear in dimension number of samples is needed for the sample covariance matrix to concentrate within a constant factor of the population covariance, see Tikhomirov (2017) and references therein. It is also interesting to point out that the "uniform convergence" result that we mentioned in the beginning of this sketch is nothing but the convergence of the empirical covariance matrix to its expectation , which is exactly the uniform convergence result that gives the bound in the "essentially low-dimensional" regime from Section 3.1.
Despite the fact that the bounds of Theorem 5 apply under very general assumptions, we don’t expect them to be tight if the condition number of is not bounded by a constant. When some oracle control of the condition number of is provided, the bound becomes the following.
Fix any constants and . There exists a constant that only depends on , , s.t. for any and under assumptions NoncritReg() and CondNum(), it holds that , and with probability at least ,
It is also worth mentioning that the story about "essentially high-dimensional" and "essentially low-dimensional" parts is not just an interpretation of the final result: the whole proof strategy is in accordance with it, as we explicitly separate the two parts and bound errors in them separately.
2 Lower bounds
Our lower bounds have a different form from the upper bounds. We show separately that they match if the condition on effective rank is satisfied. One benefit of this approach is that the lower bounds provide a different form of the same result, which allows for different analysis. We employ it in Section 7.
The lower bound for the variance term is given by the following lemma, whose proof is given in Appendix E.1:
Fix any constant . There exists a constant that only depends on and s.t. for any under assumptions NoncritReg() and IndepCoord w.p. at least
One can see that the assumptions under which the lower bound is proved are different from the assumptions required for the upper bound: we require independent components here. On the one hand, it means that there could be a gap between upper and lower bounds in some particular cases where one can control the condition number of without independence of components. On the other hand, it means that even such strong additional assumption as independence of components does not allow the upper bounds to be improved, which suggests that those specific cases for which the bound is not tight are rare and require even stronger additional assumptions.
The most general lower bound for the bias term that we prove requires the following assumption
Assume that for any with probabilityNote that the condition on probability is separate for every , i.e., we don’t assume that events hold simultaneously for all . at least
and that .
Then the bound is given by the following lemma, whose proof is given in Appendix E.2
Fix any constant . There exists that only depends on and s.t. for any under assumptions PriorSigns() and StableLowerEig() w.p. at least
Assumption StableLowerEig() is formally not comparable to Assumption CondNum(), but informally if then StableLowerEig() is weaker: indeed, the matrix is obtained from the matrix by subtracting , while the matrix is obtained from by subtracting , i.e., the sum of "largest" of the terms . Therefore, the matrix is "larger" than , and controlling its lowest singular value should be easier. The following lemma, whose proof is given in Appendix E.2, formalizes this argument under Assumption ExchCoord:
For any there exists a constant that only depends on and such that if assumptions CondNum(), NoncritReg() and ExchCoord are satisfied for some and , then StableLowerEig() is also satisfied.
When it comes to averaging over the prior given by the assumption PriorSigns(), it just means that it is impossible to obtain a better lower bound without some specific knowledge of how signs of components of interact with the probability distribution of the data.
3 Connecting upper and lower bounds
One slight inconvenience with our approach of imposing oracle control over the spectrum of via Assumption CondNum() is the following: what if the oracle provides control for the wrong value of ? There can in principle be many values of for which such oracle control is possible, with not all of them giving the right point where the behaviour changes from "essentially low-dimensional" to "essentially high-dimensional". As an example, consider the isotropic setting with : one can exclude any number of components such that and still be able to control the condition number.
First of all, in accordance with the result of Bartlett et al. (2020), the following theorem shows that the "right " is the that is not larger than .
Fix constants and . There exists a constant that only depends on , s.t. the following holds: if either or , then
Proof The proof is a rather straightforward comparison of pairs of sums term by term. It is given in Appendix I.2.
Secondly, if the data is sub-Gaussian, then oracle control for any results in tight bounds, but with worse constants. This happens because of the following lemma.
Fix any constants , , . Denote
There exist constants that only depend on , , , s.t. the following holds: suppose assumptions NoncritReg() and CondNum() hold for some . Then assumptions NoncritReg()() and CondNum() hold too.
Proof sketch Since , provides a lower bound for . When it comes to , it can be bounded with high-probability because the data is sub-Gaussian. The full proof is given in Appendix D.
4 The role of sub-Gaussianity
As can be seen from the proof of Theorem 1, the strategy to obtain a tight bound is the following: ask the oracle to control the condition number of , if that is too large, shift it to , and then apply the bound from Corollary 6. In Section 5.4 we showed that if the norm concentrates, and the effective rank is high enough, then the control over the condition number of is possible even if we have very weak moment assumptions instead of sub-Gaussianity. Moreover, as we have discussed in the proof sketches, if we didn’t shift from to , we would only need the usual concentration results such as the law of large numbers or concentration of -dimensional empirical covariance matrix with samples, which also hold under weak moment assumptions. Therefore, sub-Gaussianity is not essential to obtain the bound in the form given in Corollary 6, one just needs to substitute the sub-Gaussian concentration results with their heavy-tailed analogues. However it may not necessarily give a tight result unless the oracle is guaranteed to choose the appropriate (e.g., ). To shift from to we also need an upper bound on , which we derive from sub-Gaussianity. According to Section 5.4, an analogous bound is still possible under weak moment assumptions, but additional work is required: to use Theorem 4 for one would need to obtain a high-probability upper bound on under moment assumptions and to relate which we use in definition of to , which is introduced in Theorem 4.
Alternative forms of the bounds and effect of increasing regularization
Theorem 10 reveals an alternative form of the bounds: when is lower- and upper-bounded by constants or when , the bounds on the bias and variance respectively become equal to the following up to a constant multiplier:
These expressions closely resemble the classical expressions for the in-sample bias and variance of ridge regression. Indeed, a straightforward computation gives
where are eigenvalues of the empirical covariance and are the corresponding eigenvectors. Recall that . One can see that Equations (6)–(7) can be obtained from the classical equations for the in-sample risk by substituting the empirical eigenvalues with population eigenvalues and increasing the regularization level by — the energy of the tail of the data.
2 Dependence on λ𝜆\lambda
The alternative form of the bounds presented in Section 7.1 provides a convenient way to investigate the dependence on , which is cumbersome in the initial form because increasing may decrease . This effect, however, is negligible when Equations (6)–(7) are considered. Indeed, in Appendix I.3 we show the following
Suppose for some and . Then
Because of this lemma, any gives the same result (up to a constant factor) in Equations (6)–(7). One can, therefore, start with some and the corresponding and then consider larger values of without decreasing in Equations (6)–(7). The result will give sharp (up to a constant factor) bounds, which depend on as follows:
which are obtained by simply plugging in the definition of into (6)–(7).
A particularly interesting case arises when is large enough that it dominates and all eigenvalues of are equal to up to a constant multiplier. The corresponding result is given by the following corollary.
There is a large positive constant that only depends on such that if
Proof The full proof is given in Appendix I.3; the following is its outline:
Use Lemma 3 to control the eigenvalues of .
Use Theorem 1 to obtain the bounds for .
Use Theorem 10 to convert the bounds into the form given in Equations (6)–(7).
Use Lemma 12 to substitute back with .
Since , is equal to up to a multiplicative constant.
Note that the statement of Corollary 13 does not require the notion of .
3 Comparison with other results
As we saw in the previous section, the alternative form given by Equations (6)–(7) has milder dependence on the choice of than our main bounds (4)–(5) and allows to compare to classical results for in-sample error of ridge regression. In this section we use it to compare with more recent developments: the non-asymptotic bounds in Hsu et al. (2014) and Hastie et al. (2020).
First of all, we follow Hsu et al. (2014) and introduce the following notion of effective dimension of the problem:
where is a parameter which can informally be understood as effective level of regularization. Hsu et al. (2014) provide non-asymptotic bounds for and in the regime when
where is some constant that depends on the concentration properties of the data. This is the same as the result of Corollary 13, but with different constants. However, our Corollary 13 covers a wider range of if is large enough. This follows from the following lemma, which is proven in Appendix I.3:
Suppose that for some and take
Indeed, is a decreasing function of , and due to Lemma 14 the range of for which Corollary 13 is applicable when , while Equation (8) restricts to the range .
After we posted the first preprint of this paper, the following non-asymptotic bound for the interpolating regime (i.e., ) appeared in (Hastie et al., 2020): informally
Suppose that and for some constant . Then
which implies , so .
The similarity of Equations (11)–(12) with our results should not be taken for granted, and it is actually quite surprising. As we explain in Section 9, the regime considered in Hastie et al. (2020) is significantly different, so it is rather unclear why the results would have the same form.
Negative regularization
The aim of this section is to find a family of regimes in which the optimal level of ridge regularization is negative. Since we are comparing different values of in this section, the following notation will be useful: recall that for any
the value of for . Intuitively, the components of the tail provide regularization for the first components, and the larger is, the more is that regularization. Thus, one could expect that if there is an abrupt jump in the sequence , then that additional regularization is too large and negative may be optimal.
As we investigate further, a jump in is indeed one of the sufficient conditions for optimality of negative regularization, but not the only one: the strength of the noise and how the signal is distributed among the principal components of the data also play an important role.
Now let’s look at the role of the signal in the tail. It contributes to error in two ways: first — the components in the tail are not getting estimated themselves, second — the signal that comes from those components acts as additional noise for estimation of the first components. When is non-negative, the error of the first type dominates the error of the second type, but negative can amplify the noise and result in error of the second type dominating. Therefore, the signal in the tail also needs to be sufficiently small in order for negative regularization to be optimal.
The final observation is the following: since we only compute the bounds up to a constant multiplier, the bound in Theorem 1 cannot distinguish between negative and zero regularization. To see this, consider the form of the bound given in Section 7: up to a constant factor the bound is a weighted combination in each component with weight , and as increases there is no need to change . Now it is easy to see that for all in range from to zero, that weight is the same up to a constant factor. Thus, negative regularization can only decrease the excess risk by more than a constant factor in the critical regime, i.e., where is of smaller order than . To consider such and have PD we need tight concentration of eigenvalues of around . To ensure such tight control we restrict ourselves to the case of independent components, i.e., when Assumption IndepCoord is satisfied. In this case, the eigenvalues of can be bounded according to the following statement that was shown as an intermediate step in the proof of Lemma S.9 in (Bartlett et al., 2020).
Under assumption IndepCoord there exists a constant that only depends on s.t. with probability at least ,
The fluctuations will be of smaller order than if is larger than a constant, which is shown by the following bounds:
Using this lemma allows us to obtain following two lemmas. See Appendix J for the proofs.
There exist constants that only depend on such that the following holds: suppose that assumptions IndepCoord and PriorSigns() hold. Take and suppose that . Then with probability at least for any
There exists a constant that only depends on such that the following holds: suppose that assumptions PriorSigns() and IndepCoord hold and that for some . Assume also that
Then there exists such that with probability at least
Lemma 17 provides a lower bound on the expected (over noise and ) excess risk which holds w.h.p. uniformly over all non-negative . Lemma 18 provides an upper bound that can be achieved by some negative . Combining these two lemmas gives a sufficient condition for the optimal to be negative, which is given by the following theorem.
Proof It is easy to see that by taking large enough, the conditions of Lemmas 18 and 17 are satisfied, and the upper bound in Lemma 18 becomes lower than the lower bound in Lemma 17.
We see that the conditions indeed align with the intuition outlined in the beginning of this section: we need small variance, small signal in the tail, and a sharp jump in effective rank. However, we do not have matching lower bounds in the critical regime when Assumption NoncritReg() is not satisfied for a constant . Thus, we don’t know whether these conditions are also necessary.
Comparison to other works
As we mentioned in Section 1.2, recently there has been a number of papers studying population risk of interpolating solutions of linear regression, and we gave a rough split of those results into three categories there. Here we elaborate on the comparison between the approaches and results.
Results from the first category (Dobriban and Wager, 2015; Hastie et al., 2019; Wu and Xu, 2020; Richards et al., 2020) compute exact asymptotic expressions for the excess risk assuming that goes to some constant as go to infinity, and that the spectral distribution of converges to some limiting distribution. From the point of view of our approach, such distributions are indistinguishable from isotropic: indeed, the very existence of limiting spectral measure implies that almost all eigenvalues are within a constant factor of each other. Many of those works even assume explicitly that the spectrum of is upper- and lower-bounded by two constants (Richards et al., 2020, page 7), (Wu and Xu, 2020, Assumption 1), (Hastie et al., 2019, Theorem 3). Our results don’t need any asymptotic set up, and apply to with some fixed summable sequence , which has no meaningful notion of limiting distribution, and no separation from zero is needed. For example, our setup covers kernel regression with a fixed kernel and increasing number of data points. On the other hand, when all are within a constant factor of each other, our lower bounds become and , so the constant part of the whole signal doesn’t get learned and the variance term is at least a constant, i.e., the asymptotic expressions obtained in the works from this category are all just different constants and our approach cannot distinguish them. Therefore, we answer significantly different questions: while the asymptotic work distinguishes between constant error rates, we investigate when the error can be less than a constant. The final difference with our work is rather technical but quite strong: all the works in this category assume that the coordinates of the data become independent if multiplied by the inverse square root of the covariance. This assumption stems from asymptotic random matrix theory techniques, on which these papers are based. To the best of our knowledge, it is not known how to extend these techniques beyond random matrices with independent elements. Our approach, however, does not require the coordinates to be independent.
When it comes to the second category, featurized or kernel regression (Montanari and Zhong, 2020; Ghorbani et al., 2020b; Mei and Montanari, 2019; Ghorbani et al., 2020a; Liang et al., 2020), the difference from our approach is that we do not assume any particular mechanism for data generation or how the features are constructed, but we directly make assumptions about feature vectors. Our results can in principle be applied in this setting if one computes the spectrum of the population covariance for particular features or kernels and the corresponding sub-Gaussian norms. The major difficulty that precludes such a direct comparison is that that computation is not straightforward. The works from this category operate in a more particular setting and circumvent the computation of the spectrum of . On the other hand, it is not hard to trace strong similarities with our approach on the level of the proof. First of all, all the papers in this category that we are aware of assume that the data comes from a very regular distribution: either -dimensional isotropic data with i.i.d. coordinates (Liang et al., 2020, Assumption 1), or data from the uniform distribution on the sphere (Mei and Montanari, 2019; Ghorbani et al., 2020a, abstracts), (Montanari and Zhong, 2020, Section 3.2), or data from the product of two uniform distributions on spheres (Ghorbani et al., 2020b, Section 2.1). Second, in all those papers the kernel is either spherically symmetric (Ghorbani et al., 2020b, Section 2.2), (Liang et al., 2020, Equation 4) or close to being spherically symmetric due to isotropic initialization of the neural network or isotropic choice of random features (Ghorbani et al., 2020a, Assumption 1), (Mei and Montanari, 2019, Thorem 2), (Montanari and Zhong, 2020, Section 3.2). After that, they consider the regime where is large compared to for some (Montanari and Zhong, 2020, Assumption 1), (Ghorbani et al., 2020b, Theorem 1), (Mei and Montanari, 2019; Ghorbani et al., 2020a; Liang et al., 2020, abstracts)In (Mei and Montanari, 2019) .. Finally, all those papers derive that kernel regression works effectively as ridge regression with polynomial features up to degree (Montanari and Zhong, 2020; Ghorbani et al., 2020a, abstracts), (Ghorbani et al., 2020b, Theorem 1), (Liang et al., 2020, Proposition 1 and Section 2.3). The only exception is Mei and Montanari (2019), who derive asymptotic expressions for excess risk when the true function is affine (i.e., a polynomial of degree ) plus Gaussian misspecification. The connection with our results is that in such a regime (uniform distribution on the sphere, spherically symmetric kernel) polynomials are exactly the eigenfunctions of the kernel operator, which plays the role of the covariance operator, and there are of polynomials of degree at most . Thus, their approach is similar to ours: separate the first eigendirections (or their approximations) and show that other directions act as regularization.
Conclusions
We studied the excess risk of ridge regression and showed how geometry of the data can influence both which part of the signal is learned and how the noise is damped. For a range of values of the regularization parameter we showed that learning can be seen as the composition of two parts: classical ridge regression in the first components (the "essentially low-dimensional part") and learning the zero estimator in the rest of the components (the "essentially high-dimensional part"). We introduced a general assumption under which the data is “essentially high-dimensional”, and provided geometric sufficient conditions for its satisfaction. Moreover, we investigated the regime in which the “essentially high-dimensional part” is too high-dimensional, and derived general sufficient conditions for negative regularization to be optimal: small noise, small energy of the "essentially low-dimensional part", but an abrupt jump in the effective rank.
On the technical side, our proof decouples cleanly into an algebraic part, which holds with probability 1 for non-negative regularization,For the case of negative regularization we need to condition on the event that all the necessary symmetric matrices are PD. and the probabilistic part, where we plug in well-known concentration results from high-dimensional probability. This makes it easy to trace how different terms in the bound correspond to the parts of the estimator, and supports the geometric interpretation given above.
We provided a thorough overview of the related papers, and explained how our results are significantly different from them despite some optical similarities. Those similarities, however, are intriguing, and hint at the task of developing a unified treatment of different regimes of overparameterized linear regression as a promising direction of future work.
Acknowledgements
We gratefully acknowledge the support of the NSF through grants DMS-2023505 and DMS-2031883 and of the Simons Foundation through award #814639.
Appendix A Definitions and Notation
A random variable is sub-Gaussian if it has a finite sub-Gaussian norm
The sub-Gaussian norm of a random vector is
A.2 Standard mathematical objects
denotes the element of the matrix which stands at the intersection of the -th row and -th column.
is the identity matrix.
A.3 Data and the learning procedure
components of are independent and have variance ,
denotes a new random draw from the data distribution, i.e., is independent from and has the same distribution as .
, are columns of .
the rows of are sub-Gaussian with sub-Gaussian norm at most ,
ridge regression outputs .
A.4 Splitting the coordinates
For some we spit the coordinates into two groups: the first components and the rest of the components. Thus we introduce the following notation. Consider integers from to (we always either take and or and ).
.
.
For any we denote
Appendix B Ridge regression
We are interested in evaluating the MSE of the ridge estimator. For positive regularization parameter that estimator is defined as
In the overparametrized case (i.e., ), however, the latter expression has a singularity at zero, because the matrix does not have full rank. If the solution to the minimization problem above is not unique. Moreover, if , no solution exists at all because we are minimizing a quadratic form whose matrix has negative singular values. To alleviate these issues and extend the definition of the solution to non-positive values of , we propose the following: since the matrix doesn’t have full rank, we can apply the Sherman-Morrison-Woodbury formula:
The matrix has full rank, and the expression above is continuous in as long as stays PD. When , is the minimum norm interpolating solution (the same solution that was considered in (Bartlett et al., 2020). Therefore, we use the expression
to define the ridge regression solution for any .
Note that is linear in . Since we have we can also write
The first term is the noiseless estimate; its error gives the bias term. The second term is the estimate obtained when the signal is pure noise. It gives the variance term.
where we introduced bias and variance :
Finally, since is a quadratic form in , by Lemma 22 if the noise is sub-Gaussian, then its value is controlled by its expectation with high probability. That expectation, in its turn, scales linearly with the variance of the noise. Therefore, we can decouple the effect of the noise and only study the following purified variance term:
The main aim of our work is to give sharp non-asymptotic bounds for and .
Appendix C Concentration inequalities
Proof The argument consists of two parts: first, we obtain a bound that only works well in the case when all are approximately the same. Next, we split the sequence into pieces with approximately equal values within each piece and obtain the final result by applying the first part of the argument to each piece.
First part: Consider a -net on , such that . Note that for any vector there exists an element of that net such that . Thus, we have
Since the random variable is -sub-Gaussian, it also holds for any and some absolute constant that
We see that the random variable has sub-exponential norm bounded by .
Then by the initial argument, the random variable has sub-exponential norm bounded by . Since each next is at most half of the previous, we obtain that the sum (over ) of those random variables has sub-exponential norm at most Combining this with the fact that
we obtain that for some absolute constants for any
Proof Since are independent, isotropic and sub-Gaussian, are independent sub-exponential r.v.’s with expectation and sub-exponential norms bounded by . Applying Bernstein’s inequality gives
Changing to gives the result.
Proof By Theorem 6.2.1 (Hanson-Wright inequality) in (Vershynin, 2018), for some absolute constant for any ,
Appendix D Controlling the singular values
Denote to be the matrix with zeroed out diagonal elements: . Then for some absolute constant for any with probability at least ,
Proof We follow the lines of the decoupling argument from Vershynin (2012). Consider a -net on s.t. . Then
Indeed, take to be the eigenvector of whose eigenvalue has the largest absolute value (i.e., ), and let be the closest point in the net to . Then
Denote the -th coordinate of as . Note that
where the expectation is taken over a uniformly chosen random subset of (since has zeroed-out diagonal, we don’t need to consider terms with which allows us to sum over ). Thus,
Note that since is from the sphere, are independent, and live in disjoint subsets, the vectors and are independent sub-Gaussian with sub-Gaussian norms bounded by for some absolute constant .
First, that means that for some absolute constant we have
Second, by Lemma 20, for some constant for any
We obtain that for some absolute constant for any with probability at least
Finally, making multiplicity correction for all (there are at most of them), and all subsets (at most ), we obtain that for some absolute constant with probability at least
For some absolute constant , for any , with probability at least ,
Proof Note that Combining Lemma 20 (with multiplicity correction) and Lemma 23 gives with probability
where we used in the last transition. Removing the dominated (up to a constant multiplier) terms gives the result.
Proof We start with the high-probability bounds that we can derive assuming only sub-Gaussianity and independence of data vectors. By Lemma 20, for some absolute constant and for any ,
By Lemma 23, for some absolute constant and for any , with probability at least ,
Since , the above two statements imply that for any with probability at least ,
where we used the following chain of inequalities to make the last transition:
On the other hand, note that the sum of eigenvalues of is equal to
By Lemma 21, for some absolute constant and any , with probability at least ,
Finally, note that By Lemma 21, for some and for any , with probability. at least ,
Combining all those bounds together gives that there is a constant that only depends on such that with probability at least all the following inequalities hold simultaneously:
In view of the bounds that we derived above, the following inequality is a sufficient condition for the statement that with probability at least the condition number of does not exceed :
which implies that for any the following is also a sufficient condition:
Recall that , so
which allows us to upper bound the right-hand side of that condition. We write
Now take and a constant that is big enough depending on and . Then if and with probability at least ,
then with probability at least ,
Note that since the rows of are i.i.d., the first condition is equivalent to that with probability at least
Now let’s derive a necessary condition. Suppose it is known that with probability at least . Then
where we used the fact that and .
When it comes to the second equation, we write
where is a large enough constant that only depends on and .
Suppose assumptions NoncritReg() and CondNum() are satisfied and . Then for some absolute constant for any with probability at least
Moreover, if for some , then
Proof First of all, note that the sum of eigenvalues of is equal to
By Lemma 21 for some absolute constant and any with probability at least
Now we know that with probability at least the following two conditions hold:
The first line of the display above implies that
Thus, with probability at least ,
Using the fact that , we obtain
which gives the first assertion of the lemma.
Next, note that By Lemma 21 for some for any w.p. at least , , which means that if then with positive probability
Taking we see that if , then
Proof First, by Lemma 25 for any with probability at least ,
Next, by Lemma 24 we know that with probability at least ,
Moreover, since ,
Thus, with probability at least
Taking large enough (depending on , , and ) and plugging in gives the result for and
The derivation of NoncritReg()() is obvious: indeed, assumption NoncritReg()() states that
Since , , so
which is exactly assumption NoncritReg()().
Appendix E Lower bounds
A very convenient tool that we use to prove the lower bounds is the following
Suppose that is a sequence of non-negative random variables, and that is a sequence of non-negative real numbers (at least one of which is strictly positive) such that, for some for any with probability at least , . Then with probability at least ,
It turns out to be quite straightforward to express bias and variance terms as sums of non-negative series. This lemma allows us to give a separate high probability lower bound for each term in the series to obtain the high probability lower bound for the whole sum.
The argument for lower bounding the variance term is the same as in (Bartlett et al., 2020). We repeat it here because the result in (Bartlett et al., 2020) is stated in a different form and in the ridgeless setting only.
Proof The variance term can be written as
where are columns of matrix (recall that ). Note that every term in this sum is non-negative, even if is not PSD. Denote to be the PSD square root of , i.e., the matrix with the same eigendecomposition as , but with eigenvalues substituted by their absolute values. It immediately follows that
Now our goal is to lower-bound the largest eigenvalues of . Let’s write
The idea is, as always, to separate the first coordinates. Our initial goal is to bound the norm of . Using Lemma 24, for some absolute constant and for any , with probability at least ,
The matrix is a correction to of rank at most . Therefore, with probability at least the bottom eigenvalues of lie in the segment from to . The matrix has the same eigenvalues, but with added to each one, so on the same event all the eigenvalues of are from to . We can write
where we used that in the second line (for it implies ). Moreover, for the left end of the segment we also have that either or
Thus, for some constant which only depends on and , for any with probability at least , for any
In words, with high probability the matrix has at least eigenvalues whose magnitude is bounded by . Recall that is PSD with the same magnitudes of the eienvalues. Denote to be the projector on the linear space spanned by the first eigenvectors of . We can now write that with probability at least
Since is independent of , by Theorem 6.2.1 (Hanson-Wright inequality) in (Vershynin, 2018), for some absolute constant and for any ,
Next, by Lemma 21 for some constant and any w.p. at least ,
Take constant large enough depending on and set . Then for any , w.p. at least ,
where constants and depend only on and constant depends only on and .
where
where depends only on and .
Finally, by Lemma 26, we can convert lower bounds for separate non-negative terms into a lower bound on their sum: with probability at least ,
where we also used that for non-negative .
E.2 Bias term
Applying Sherman-Morrison-Woodbury yields
and taking expectation over the prior kills all the off-diagonal elements, so
Let’s compute the diagonal elements of the matrix
The -th diagonal element is equal to the bias term for the case when — the -th vector of the standard orthonormal basis. Note that the -th row of is equal to so the -th diagonal element of the initial matrix is given by
Recall that ,
First, let’s use Sherman-Morrison identity to convert in into :
Let’s bound each term in that sum from below with high probability. By our assumptions, for any with probability at least
and by Lemma 21 for some absolute constant for any w.p. at least we have , where the last transition is true if additionally
Recall that We obtain by plugging that w.p. at least ,
where only depends on .
Finally, since all the terms are non-negative and we need to obtain a lower bound on their sum, Lemma 26 gives the result.
Proof First of all, note that Assumption NoncritReg() with directly implies that , which is the second part of Assumption StableLowerEig().
Next, by Lemma 25 for some absolute constant for any with probability at least
Taking where is large enough depending on we get that for large enough with probability at least
Now we just need to propagate that result to for all .
For , we simply have with probability , so indeed
Now note that due to Assumption ExchCoord, the distribution of the matrix is the same as the distribution of . Therefore
Appendix F Deriving a useful identity
Motivated by the results of Bartlett et al. (2020), we split the principal directions of the covariance matrix into two parts: small dimensional and high dimensional. The main idea of our argument is to use classical machinery (like some sort of uniform convergence argument) in the small dimensional subspace. To do this we write \hat{\theta}(y)^{\top}=\bigl{[}\hat{\theta}(y)_{0:k}^{\top},\hat{\theta}(y)_{k:\infty}^{\top}\bigr{]} and mentally split the search process for into two parts: first, for any fixed , optimize for . Then only the first coordinates are left. The result of that optimization in is the following identity:
The goal of this section is to derive this identity.
In the ridgeless case we are simply dealing with projections, and is the minimum norm interpolating solution. Note that is also the minimum norm solution to the equation , where is the variable. Thus, we can write
Now we need to minimize the norm in (our choice of already makes the solution interpolating): we need to minimize the norm of the following vector:
We see that the above mentioned orthogonality for any is equivalent to the following:
where we replaced .
F.2 Checking for the case of non-vanishing regularization
So, now we have and we want to prove that . Recall that
Appendix G Variance
In this section we prove the following lemma.
If for some the matrix is PD, then
Note that the RHS of the inequality above is straightforward to estimate if one knows the spectrum of . Indeed, the matrices and have i.i.d. elements on their diagonals, so their traces concentrate around expectations:
where we use informally to denote approximate equality with high probability.
When it comes to the matrix , this is just a sample covariance matrix of isotropic vectors in -dimensional space. Since is small compared to , it concentrates around the identity. Thus,
These computations are done rigorously in the proof of Theorem 5.
It was shown in Section F that the following identity holds (c.f. (16)):
Multiplying the identity by from the left, and using that we get
The leftmost expression is linear in , and the rightmost is quadratic. We use these expressions to bound .
First, we extract that norm from the quadratic part
Then we can substitute (17) and apply Cauchy-Schwarz to obtain
Since is independent of , taking expectation in only leaves the trace in the numerator:
G.2 Components starting from k+1𝑘1k+1-st
𝑘1k+1-st The rest of the variance term is
Since is independent of , taking expectation in only leaves the trace of the matrix:
Appendix H Bias
The bias term is given by . In this section we prove the following
Suppose that for some the matrix is PD. Then there exists an absolute constant such that
We need to bound . By Section F, in particular identity (16), we have
Denote the error vector as . We can rewrite the equation above as
Multiplying both sides by from the left and using that we obtain
Next, divide and multiply by in several places:
Now we pull out the lowest singular values of the matrices in the LHS and largest singular values of the matrices in the RHS to obtain lower and upper bounds respectively, yielding
H.2 The rest of the components
Recall that the full bias term is and that . The contribution of the components of , starting from the st can be bounded as follows:
First of all, let’s deal with the second term:
where we used that in the last transition.
Now, let’s deal with the last term. Note that . By the Sherman–Morrison–Woodbury formula,
where in the last transition we used the fact that is a PSD matrix with norm bounded by 1 for .
Putting those bounds together yields the result.
Appendix I Main results
Proof Lemmas 27 and 28 bound the bias and variance on the event that is PD. Next to those lemmas we already put explanations of why those bounds are easy to assess via concentration arguments. Here we just do this rigorously.
Recall the bounds from Lemmas 27 and 28: for some absolute constant
where the first four terms correspond to the bias and the last two to the variance. By inspecting that expression one can notice that it consists of some products of simple quantities that could be assessed individually. Namely, those quantities are:
and — smallest and largest singular values of . In this theorem we assume that those quantities are known or there is some oracle control over them.
and .
.
Now take constant to be large enough depending on and set . For some constant which only depends on we get that with probability at least , all the following inequalities hold at the same time:
Putting all the terms together gives the result.
Proof Almost all the work was already done in Lemma 25. It says that for some absolute constant and for any with probability at least ,
Moreover, if , then
We just need to choose , plug these bounds into the result of Theorem 5 and evaluate the result up to multiplicative constants.
First, choose constant large enough depending on , , , and put . Statements above imply that if , then for some constant which only depends on , , , with probability at least ,
These three inequalities allow us to evaluate the result of Theorem 5: let’s plug them term-by-term:
Since ,
— also just a constant.
Plugging all these bounds in the statement of Theorem 5 gives the result for a large enough .
I.2 Upper bound matches the lower bound
In the next theorem we show that the upper bound given in Theorem 5 matches the lower bounds from Lemmas 7 and 8 if we choose suitable . Note that by Lemmas 25 and 11, being able to control the condition number of for some implies that we can choose a suitable . (Note that there are choices of and for which the lower bound is larger than the upper bound of Lemma 5.4 in (Negrea et al., 2020); this seems to be because the proof of Lemma B.1 in that paper applies Lemma B.2 to a nonsymmetric matrix. This error was removed in the newer version of the same paper, which uses the results of Bartlett et al. (2020) instead.)
In the following we will bound the ratio of the sums from the statement of the theorem by bounding the ratios of the corresponding terms.
Second case: . In this case we have
The rest of the computation is analogous to the previous case:
I.3 Alternative form of the main bound
where we used and in the last transition. Moving to the left-hand side and dividing both sides by gives the result.
Now since , by Theorem 10 there exists a large constant (that depends on and ) such that on the same event,
Finally, since , we have
. Then
. Then
A straightforward computation shows that if then , so
Appendix J Negative regularization
Proof We start exactly as in the proof of Lemma 8, where it was shown that if is PSD for every (which is satisfied almost surely when ) then
Note that have is a decreasing function of with probability 1. Thus, the right-hand side of (27) is a non-decreasing function of with probability 1, and any lower bound for it when will also hold uniformly for all . Thus, for the remainder of the proof, fix .
We are going to use Lemma 16 to lower bound for each separately (we are not looking for a uniform bound over all simultaneously). If , then with probability 1, so we can just use Lemma 16 directly. If , consider the following matrix:
In words, we took matrix , multiplied the first column by (to make the variances equal to ), swapped the first column with the -th column and dropped the first columns. The purpose of this matrix is to write the following:
Thus, to lower bound one can just lower bound . This can be done by using Lemma 16 with matrix instead of , which is valid because matrix satisfies exactly the same assumptions, namely the matrix has independent centered -sub-Gaussian elements with unit variances.
Therefore, by Lemma 16 for some constant that only depends on for any with probability at least ,
where we used Equations (13) and (14). Choose a constant large enough depending on , so that for some constant that only depends on .
By Lemma 21, for some absolute constant for any , w.p. at least , we have , provided Combining it with the previous results and taking constant large enough depending on and we get that if then for any with probability at least ,
Now we convert the high-probability lower bound for each term into the high-probability lower bound for the whole sum. Using Lemma 26 gives that with probability at least ,
Finally, by Theorem 10 there exists a constant that only depends on s.t.
Therefore, setting the constant large enough (depending on and ) gives the result.
Proof In the following are constants that only depend on .
Let’s introduce a new variable such that .
By Lemma 16 with probability at least ,
Note that the range for is non-empty if is large enough according to Equations (13) and (14). On the same event we get
Now we are in a position to use Theorem 5. Recall that . Thus
Thus, we can plug our bounds on eigenvalues into Theorem 5 to get that if then with probability at least ,
Recall that , so is the same as up to a constant multiplier. That is, on the same event,
One can see that balances the bias in the first components against two things: the bias in the tail and the variance. The value of that is optimal to balance the bias in the first components and the bias in the tail is . As we will check further, up to a constant factor, will be in the range that we set in Equation (28). There are two cases then: the first case is when this choice of is optimal because the variance is not larger than the bias. The second case is when needs to be chosen larger than to decrease the variance. So, consider two cases:
for a constant that only depends on that we will choose next. This must be such that Equation (28) is satisfied, which means
Using we obtain that it is enough for to satisfy
One can see that satisfies this condition when since . Taking such an , plugging into Equations (29)–(31), and choosing big enough depending on , we get that with probability at least ,
which implies the desired bound for any .
for a constant that only depends on that we choose next. As in the previous case, must be such that Equation (28) is satisfied, which means
The first condition is satisfied whenever due to Equation (15). Now consider the second condition. Because of Equation (32), we have
This is exactly the same condition as in the previous case, so it can be reduced to
Thus, just as in the small variance case, we see that since then satisfies both conditions.
Take such an . Before plugging into Equations (29)–(31), note the following. Because of Equation (34), we have
which means that if we take large enough depending on and , then Equations (29)–(31) imply
Now plugging in the expression for gives that with probability at least ,
which implies the result for .