Dimension free ridge regression
Chen Cheng, Andrea Montanari
Introduction
Statistical theory studies this and similar estimators in three different regimes:
Despite the wealth of fascinating technical results in this area, this state of affairs leaves open many important questions.
First, it would be important have a unified theoretical framework that does not require the statistician to decide which asymptotics to use. For instance, in order to apply sharp asymptotics in the classical or proportional regimes, it is often assumed that a given pair is in fact an element of a sequence with, respectively, either , or .
In practice we are given a single pair, say : should we interpret this as , , or yet another regime that is not covered by current theory (e.g., )?
In fact, the distinction between three types of asymptotics outlined above is rather the consequence of the technical tools used to derive them, rather than a fundamental statistical phenomenon.
Second, the restriction (or in sparse regression) which is implied both by the proportional and by the classical asymptotics is artificial. While this condition might seem necessary for consistency at fist sight (it might seem that at least observations are required to estimate parameters), as shown in [BLLT20, TB20] this is in fact not the case. Further, it is not even clear how to check in practice for a given pair .
Third, it would be important to remove the assumption of a well conditioned , and derive precise asymptotics for general covariances. We would argue that the ill-conditioned case is most important in practice, since high-dimensional data have often low-dimensional structures.
Fourth, the proportional asymptotics is somewhat un-natural from a statistical viewpoint. Most statisticians are used to think of the data distribution is fixed (in particular, is fixed), while we sample size increases. In a standard proportional setting, one instead assumes together with : the data distribution changes with the sample size.
Recent progress on several of these issues was achieved in the context of ridge regression. Among others, [HMRT22] derived a characterization for bias and variance in the proportional regime that is non-asymptotic, i.e. holds up to an approximation error that is explicit and vanishes for large , . Using a different approach, [BLLT20, TB20] obtained bounds on bias and variance that hold for arbitrary (possibly infinite) dimension , in terms of of the decay of eigenvalue of . These bounds allow to demonstrate ‘benign overfitting,’ i.e. choices of (i.e. data distributions) such that minimum norm interpolator is consistent.
The results [HMRT22, BLLT20, TB20] have limitations. The characterization of the risk proved in [HMRT22] has sharp leading constants, but only holds for with a constant, and holds up to an additive error. However, this error terms can be larger than the actual excess risk when the latter vanishes. The bounds of [BLLT20, TB20], on the other hand, hold up to unspecified multiplicative constants. The proof techniques in these two sets of results are furthermore very different.
In this paper we attempt to provide a unified picture that covers these gaps, by extending the sharp characterization of ridge regression of [HMRT22] beyond the proportional regime. This will allows to recover the benign overfitting results of [BLLT20, TB20] (in several cases) with sharp constants. In doing so, we will extend random matrix theory analysis to cases with or , without restrictions on the condition number of . In the case , the feature vectors are random elements in a separable Hilbert space, whose distribution is fixed (does not change with ), and whose covariance is a trace class self-adjoint operator.
The rest of the paper is organized as follows. The next section describes the setting for our analysis, the main assumptions and the resulting asymptotic characterization. It also provides some intuition and connects our results to earlier work. Section 3 contains the formal statement of our general results, while Section 4 specializes our theorem to regimes of interest and develops tools to check its assumptions. Section 5 evaluates our characterization for certain choices of , and compare the predictions with simulations. Finally, proof are presented in Sections 6 and 7, with most technical steps deferred to the appendices.
Setting and characterization
the response vector and the noise vector , we can write in matrix form
For an estimator we define the excess risk as
where is an independent copy of and . We will also refer to this as the ‘test error’ or the ‘generalization error’ (although the latter is actually given by the difference between and ts empirical version.) Let us emphasize that in this definition, is a random quantity because it depends on the data : however, as we will prove, it concentrates around a non-random value.
The generalization error admits a variance-bias decomposition , with
For ridge regression, we can write explicit forms of variance and bias:
Assumptions on the covariates distribution.
We impose the following assumptions on the covariates throughout the paper.
We further assume where the following hold.
I. There exist such that, for all
II. There exist , such that one of the following condition holds:
The technical motivation for assumption II is to establish concentration of quadratic forms of , via Hanson-Wright inequality. We notice that the convex concentration property is implied by any of the following. By Talagrand inequality, convex concentration holds for random vectors with independent bounded entries [BLM13, Theorem 7.12]. By Herbst’s argument, concentration of Lipschitz functions (and hence in particular convex concentration) holds for random vectors that satisfy a log-Sobolev inequality [BGL+14, Proposition 5.4.1]. Finally, as a special case of the last point, vectors with strongly log-concave probability density function satisfy this condition [BGL+14, Corollary 5.7.2].
The form of Hanson-Wright inequality that we will use is given below.
Effective variance and bias.
An important observation of [HMRT22] is that variance and bias concentrate around some non-random quantities, that can be interpreted in terms of an ‘effective’ regression problem. While [HMRT22] proves such characterization in the proportional regime , here we will extend its validity and prove stronger guarantees.
Define the effective regularization as the unique non-negative solution of
we that define the effective variance and bias as
Our main result —stated in the next section— will establish dimension-free guarantees of the form
where the term These improve over earlier work in two important directions. First, they are dimension free, and in particular do not assume . Second, they provide multiplicative approximations, and hence retain their utility when the risk is small.
Bounds, interpretation, benign overfitting.
Before stating our formal results relating to and to , it is useful to develop some intuition about the expressions (6), (7) and their immediate consequences. Note that, by Eq. (5), we necessarily have
If we assume that inequality between the first and last term holds with a constant multiplicative factor, i.e. for some constant , then we get
Comparing these bounds with the bias and variance of general ridge regression in Eqs. (4a), (4a), we observe that the right hand sides are (modulo the factor ) the bias and variance of a modified ridge regression in which:
The design matrix is non-random and given by instead of .
The regularization parameter is instead of .
The noise level is instead of .
Even more explicit expressions can be obtained by writing the right-hand side of Eqs. (11), (12) in the basis that diagonalizes as in the next proposition. A proof of this statement is in Appendix A.
Assume , for . Let be the eigendecomposition of of , and denote by the orthogonal projection of onto the span of , and by its complement. Finally, let , and define the tail effective rank parameters by
Then, defining , we have and
(We notice that if the singular values do not decay faster than exponentially, then is of order one.) While these are only bounds on the theoretical characterization , for bias and variance, our main resuls (Theorem 1and Theorem 3) will allow to transfer them to the actual bias and variance , (modulo additional error terms).
These bounds (more precisely, the bounds on , that follow from these and Theorem 1) are closely related to the ones in [BLLT20, TB20], see in particular [TB20, Theorem 1]. It is worth pointing out two important differences. First, the bounds in Eqs. (14), (15) are somewhat more precise/explicit: there is no unspecified constant factorThe factor is explicit and, if useful, can be replaced by the original expression., no dependence on the condition number of , and no multiplicative factor depending on the probability. Second, Eqs. (14), (15) are only proved for the specific value of defined there.
The bounds of Eqs. (14), (15) allow to characterize settings in which the excess test error (as predicted by our theory) vanishes. Indeed, for to vanish, it is sufficient that and . A simple sufficient condition for is that with .
We will discuss special examples in Section 4, and show how our general results allow to derive more precise estimates of the risk in those cases.
Equivalent sequence model.
The discussion above relies on the assumption , which implies the simple bounds (11), (12). However the interpretation in terms of a modified ridge regression problem holds for the exact formulas of Eqs. (6), (7). This interpretation was developed in the context of earlier work on the proportional asymptotics [DJM13], but it is useful to spell it out here for the present context.
In the modified model, we observe that is related to according to
Without loss of generality, we can work in the basis in which is diagonal, and therefore rewrite the above as , which coincides with the definition of the classical sequence model [Tsy09].
We use ridge regression at regularization level as defined in Eq. (5):
Finally, choose the noise level to be the unique positive solution of
Then our theoretical prediction for the excess test error coincides with the excess test error of the sequence model:
Summarizing, the predicted test error for the original model is equal to the test error in the sequence model, albeit at a different value of the ridge regularization parameter and of the noise level. Needless to say, studying the sequence model is significantly simpler than the original model (3).
Statement of main results
For two functions and (where can be a scalar or a vector), we write if there exists a constant depending only on the value of (also can be either a scalar or a vector) such that for all . In particular, if the constant is universal we write . Similarly, we write if for all and some constant . Finally, we write if we have both and .
We wil state three theorems: the first one for ridge regression with positive regularization (Theorem 1), and the other two for the ridgeless case (Theorem 2 for the overparametrized regime, and Theorem 3 for the underparametrized one). Our approximation guarantees will depend on the pair , through the following three quantities (in the case , these quantities will be modified as described below):
The ratio between effective dimension and regularization parameter:
Here is a constant that only depends on , and hence we will leave it implicit.
The ratio between regularization and effective regularization
For a positive semi-definite operator , define the modified population resolvent:
Letting , , we consider the ratio
We next present our master theorem for ridge regression: its proof is postponed to Section 6.
Under Assumption 1, for any positive integers and , there exist constants and such that the following hold. Define as above (with in Eq. (20)).
then for all , with probability we have:
Bias approximation. If we additionally have and , for all , we have
The condition in Assumption 1 amounts to requiring that the coefficients of in the basis of eigenvectors of decay fast enough. Namely, it is equivalent to . This condition appears to be a proof artifact and it would be interesting to relax it.
As mentioned above, the conditions on the isotropic random vectors in Assumption 1 are mainly imposed to be able to apply Hanson-Wright inequality (Lemma 2.1). It is an interesting research question to analyze ridge regression for covariates which do not satisfy this inequality.
We next consider the ridgeless limit for in the overparametrized case: recall that coincides in this case with the minimum norm interpolator. In this case we need to modify the quantities defined above to measure the quality of our approximation. We begin by noting that Eq. (5) makes perfect sense in the case and we have . We then use the following definitions.
We replace of Eq. (20) by:
where will be introduced in the theorem statement.
The quantity defined in Eq. (23) has a well defined limit as , given by
Suppose Assumption 1 holds with . Further assume , and let be the minimum nonzero eigenvalue of the sample covariance . For any positive integers and , there exist constants and , , , such that the following hold. Define , , as above.
Let be such that the following hold
Then, on the event , the following hold with probability :
Variance approximation. If in addition , then
Bias approximation. If in addition , and
The proof of this theorem is presented in Appendix D.
Our approach to proving Theorem 2 consists in reducing the ridgeless case to the case , and appealing to Theorem 1. For instance, when controlling the variance, we will use triangular inequality
We then use Theorem 1 to bound the first term by a quantity that diverges as , and the main technical challenge is in bounding the other two terms by a quantity that vanishes faster than any polynomial as .
In Theorem 2 we use the (random) minimum nonzero eigenvalue of the sample covariance . To apply the theorem, we need to choose such that holds with high probability, and therefore we need a lower bound on that holds with high probability. In this paper, we will provide such lower bonds in two cases: proportional regime and bounded varying spectrum, cf. Section 4. In proportional regime, by Bai-Yin law; and for for bounded varying spectrum, (cf. Lemma G.1).
Beyond the two cases in the paper, it would be interesting to apply Theorem 2 with results lower bounding for other examples (e.g. for the kernel random matrices [HLCH19]).
In the underparameterized regime , we have and therefore the previous bounds do not apply. In this case, we trivially have . The proof for the variance approximation requires a different proof, which is presented in Appendix E.
Suppose Assumption 1 holds with , and further assume
For any positive integers and , there exist constants , , such that the following hold.
If has rank and is the minimum eigenvalue of the sample covariance , then the following hold:
Variance approximation. Let be such that
Then, on the event , with probability :
Bias approximation. (this holds deterministically on the event ).
Applications
As a first application, we revisit the proportional regime that is defined by the following condition.
There exists a constant such that and .
This case is well studied and is not the main motivation of the present paper, but it is nevertheless important to compare our results to earlier work. We refer the reader to [Dic16, ASS20, DW18, WX20, RMR21] for background.
Among others, the results of [HMRT22] are more directly comparable to ours because they establish nonasymptotic bounds comparing variance and bias to the effective variance and bias of Eqs. (6) and (7), for both ridge and ridgeless regression. The proofs of [HMRT22] build on recent advances in random matrix theory, and in particular the anisotropic local law of [KY17].
Here we apply Theorems 1, 2 and 3 to the proportional regime. We note that, under assumption 2, the minimum eigenvalue of is, with high probability, of order . In order for the ridge regularization to have a non-trivial effect, we need to choose as well, cf. (4a) and (4b). We will therefore assume bounded above and below (there is no loss of generality in using the same constant as in Eq. (2)). We will address the case in a separate statement below.
Let Assumptions 1 and 2 hold, and further assume . Then for any positive integers and , if , with probability we have
The proof of this result is presented in Appendix F.
We note that the rates and are optimal for variance and bias approximation—corresponding to fluctuations of the average law and local law for the resolvent [AEK+14, KY17]. The most direct comparison is with [HMRT22, Theorem 5]: let us point out two ways in which the present result improves over the earlier [HMRT22].
In [HMRT22], the rate for variance approximation of ridge regression is , while here we obtain the faster rate .
Error terms in [HMRT22] are additive, while Proposition 4.1 provides multiplicative error terms: the quality of approximation does not deteriorate in the interesting case in which bias and variance become small.
Note that [HMRT22] informally claimed that is the optimal rate in the above estimates. While this is correct for the bias, for the variance Proposition 4.1 yields a faster rate. As related phenomenon arises for linear eigenvalue statistics of random matrices (i.e. statistics of the form ). While naively such statistics would have normal deviations of order , the actual deviations are of order because of eigenvalues correlations [LP09].
Let Assumptions 1 and 2 hold for , where has i.i.d. sub-Gaussian coordinates.
Overparameterized regime. If additionally , then for all , with probability we have
Underparameterized regime. If additionally , then for all , with probability we have
We do not expect the exponent , , in this statement to be tight. However, as in the positive case, also in this case the error is multiplicative.
2 Bounded varying spectrum
We next consider the highly overparametrized case . Overparametrized ridge (or minimum norm) regression attracted significant attention recently because of the realization that many deep learning models are overparametrized and overfit the training data. This connection is reviewed in [BMR21, Bel21].
Here we consider covariate vectors taking values in a general Hilbert space with , under Assumption 1 on the covariates distribution. This is most closely related to [BLLT20, TB20], and [KZSS21]. The last paper derives refined upper bounds using Gaussian width techniques, but is limited to the case of Gaussian covariates and, as for earlier results, is only accurate up to constant factors.
We will show that our general theory yields excess risk estimates that are accurate up to multiplicative errors. We impose the following condition on the spectrum of .
Recall that, by definition, for any , . The bounded varying condition requires that, if diverge proportionally, then the eigenvalue ratio stays bounded. Note that this assumption is equivalent to for every , which is in turn equivalent to
As special case, Assumption 3 holds if the sorted eigenvalues forms a so-called regularly varying sequence, namely for any ,
where is positive and finite for any . In other words, in the regularly varying case, the ratio converges when diverge proportionally.
A special case of regularly varying spectrum is given by Zipf’s law whereby for some (in this case ). Regularly varying functions were characterized by Karamata [Kar33] (for functions on the positive real line), and by Galambos and Seneta [GS73] (for the sequences, i.e. functions defined on the naturals). Namely all such sequences take the form
where are arbitrary and converge to a positive limit as and .
It is easy to see that Assumption 3 holds beyond the case of regularly varying sequences. Consider for instance for all , .
Applying Theorems 1 and 2 to with bounded varying spectrum, we obtain the following result, whose proofs are detailed in Appendix G.
Let Assumptions 1 and 3 hold. For any constants , , and positive integers , the following holds. If and , then for , with probability
If additionally and (cf. Theorem 1 for the function ), with the same probability we have
Applying Theorem 2, we have the following conclusion for ridgeless regression.
Let Assumptions 1 and 3 hold. Suppose with . If we have and , for any , it holds with probability that
The assumptions and are primarily introduced to simplify the form of the statement. These two conditions can be relaxed to and for a sufficiently small , but we do not pursue this generalization here.
It is possible to apply the upper/lower bounds on the bias of Theorem 2 to prove bounds on the bias in the setting of Proposition 4.4. However the resulting error term is larger than , which is the size of the upper bound on in Proposition 2.2.
In order to illustrate the accuracy of our general framework, we apply Proposition 4.3 to derive sharp asymptotics for bias and variance in a number cases. In each of the case below, we scale the regularization parameter as for a certain explicit function . The scaling is chosen so that the bias and variance retain a non-trivial dependence on for large . We expect that the excess risk achieved by optimal regularization is also covered by this scaling (up to negligible corrections), but do not prove it formally here.
Let Assumption 1 hold. Then, for a fixed constant and any positive integer , the following events hold with probability (the errors may depend on ):
Regularly varying spectrum with . Assume is a regularly varying sequence with exponent . As a consequence, with converging to a positive limit and . Define as the unique positive solution of
Let . If additionally satisfies the following “polynomial-decay” property: for some that
Regularly varying spectrum with . Next consider the case for some with converging to a positive limit. Define as
Let . If additionally satisfies the following “rapid-decay” property: for some that
A non-regularly varying spectrum. for all , with and Define such that , and for positive integer the following decreasing function in ,
Let . Then there exists a unique solution to the following equation
Let . If additionally satisfies the following “rapid-decay” property: for some that
The proof of this theorem is presented in Appendix H.
In the case of a regularly varying spectrum with , the bias vanishes with the sample size as but the variance stays bounded away from zero as long as , cf. Eq. (27). In other words in this case overfitting is not benign and Theorem 4 quantifies precisely this claim.
On the other hand, in the case , both bias and variance vanish for large , an therefore we achieve benign overfitting. We must emphasize however that the variance decay is very slow, namely , and hence the decay of the excess risk is at least as slow.
Numerical illustrations
In this section we evaluate numerically the theoretical prediction for variance and bias, cf. Eqs. (6), (7) and compare them with the results of numerical simulations with synthetic data. We carry out the simulations in the ridgeless limit (corresponding to min-norm interpolation). This case is interesting because it is not covered by some of our theorems. Our numerical experiments suggest that the theoretical predictions of Eqs. (6), (7) hold in a broader domain of validity than the one that we are able to control rigorously.
We use Gaussian covariates . By rotational invariance, we can limit ourselves to diagonal covariance . We will consider two eigenvalue structures:
This is defined by for all . This fits within the first case of Theorem 4.
This model is defined by , with . This fits within the second case of Theorem 4.
In all numerical experiments, we generate data according to the model (3) with a true parameters vector concentrated on the top eigenvectors of . More precisely, we will use where .
In Figure 1, we plot our theoretical predictions , , for variance, bias and as a function of the sample size , for the two models and defined above. We use . In each case, we consider several values of the exponents , that control the decay of eigenvalues of .
In Figure 2, we plot the same quantities at fixed sample size and vary the regularization parameter . A few facts emerge from these figures:
For both models, the bias of the minimum norm interpolator is a decreasing function of the sample size , and appears to vanish as , see second row of Figure 1.
In contrast, the variance exhibits a strikingly different behavior in the two covariance models, see first row of Figure 1. For model (polynomial eigenvalue decay, with exponent ), the variance increases with , and eventually stabilizes to a limit value. For model (exponent ), the variance decreases with , and appears to vanish, albeit very slowly, as .
As a consequence of these points, the excess test error of minimum norm interpolation vanishes with sample size in model but does not vanish in model . This behavior (and the one at previous points) is precisely quantified by Theorem 4 for .
Finally the dependence of bias and variance on is the expected one. As increases, bias increases but variance decreases. However, the balance between these two factors is non-trivial:
For the slowest eigenvalue decay (large in model or large in model ), the optimal is strictly positive.
On the other hand, for the fastest eigenvalue decay, the optimal vanishes. In these case interpolation is superior to ridge regression: we need to overfit to achieve the best test error.
The above discussion is based on evaluating the theoretical formulas for bias and variance, as given in Eqs. (6), (7). While our main result, Theorems 1, 2 guarantee that these formulas are accurate, it is important how accurate they are at small or moderate , and whether random deviations modify the picture.
In Figure 3 we plot numerical simulations corroborating that do concentrate around in models and . As mentioned above, the predictions appear to be accurate beyond what is guaranteed by Theorem 2, and the error appears to be a multiplicative factor.
Proof of Theorem 1
Let be the -field generated by the first data points for , and the trivial -field. We then have and . Extending the previous notation of in Eq. (22) to , we let
For , this equation reduces to Eq. (5), via the change of variables . For existence and uniqueness follows by a similar argument to the case . Indeed, setting , the equation is equivalent to , where . Existence and uniqueness follow since the left-hand side is monotone increasing and the right-hand side monotone decreasing in .
In order to quantify the approximation errors and , we will apply the following lemma (Lemma 6.1), which expresses the bias and variance , in terms of derivatives of and w.r.t. and .
For any , the quantity is uniquely determined and we have
and .
Our proof strategy proceeds in four parts: (I) We show that —due to the regularity properties of and — a bound on implies a bound on the difference of their derivatives, and hence (via Lemma 6.1) on the error in approximating bias and variance; (II) We prove a bound on interpolating between and by adding one row at the time to ; (III), (IV) We apply these general bounds respectively to controlling variance and bias.
Recall that we defined , and assumed . By homogeneity, we can and will assume throughout the proof.
The following lemma reduces controlling the difference of derivatives of and to the less arduous task of bounding the difference in function values. Its proof is presented in Appendix B.2.
Before passing to bounding errors in function values, we provide upper bounds for higher order derivatives in Eqs. (37) and (38). Bounding the derivatives of is easier as we can easily write an explicit formula for the -th derivative for any . (The proof of this lemma is presented in Appendix B.3).
Computing higher order derivatives of is less straightforward because depends on which itself depends implicitly depending on . We postpone this proof to Appendix B.4.
and for all such that ,
Part II: Bounding errors in function values.
We next proceed to bounding for a p.s.d. matrix , which appears in Eqs. (37) and (38). Recall that .
The next theorem bounds and is the most importan technical step in the proof of our main theorems. Its proof is outlined in Section 7, with several technical lemmas deferred to the appendices
Introduce the shorthand . Under Assumption 1, for any , p.s.d. matrix with and positive integer , there exists constants , , and such that for
if , , and , for all with probability we have
Let us emphasize that this theorem holds under weaker assumptions than Theorem 1, but the error bounds it provides are quite implicit. We can obtain more explicit bounds by imposing the assumptions of Theorem 1. We first define the generalized version of in Eq. (23) for any p.s.d. matrix as
The proof of this corollary is given in Appendix C.6.
Under Assumption 1, for any positive integers , and p.s.d. matrix with , there exist constants and , such that the following hold. Define as per Eqs. (20), (21), (39) (those quantities are defined for ). If it holds that , and
we then have for all with probability that
To further simplify the assumption in Corollary 6.5, the next lemma will be helpful. We defer its proof to Appendix B.5.
For any fixed , the function is increasing in for all . Assuming Eq. (21), if , then
Part III: Approximation error for variance.
We are now ready to combine our results in Part I and Part II to obtain approximation errors and . For the variance, we want to take in Eq. (37) such that . In this case, . Note that is an increasing function of . Further, by
we know is an increasing function. Therefore , which implies . For that satisfies Eq. (21), this guarantees that for any ,
Hence, for any , Eq. (21) still holds but with constant . Therefore, we can apply Corollary 6.5 for any for and , provided the following conditions hold
where the last equality used the fact that when . Finally, setting and using the fact that is decreasing in , it suffices to require
which holds by the theorem’s assumptions.
Hence, we can now apply Corollary 6.5 with , and it follows that with probability ,
where in the last inequality we use that is a decreasing function in as is increasing in . Next by Lemmas 6.3 and 6.4 we obtain
where in (i) we use again that and are decreasing in and in (ii) we apply Corollary 6.5. Substituting the above displays into Eq. (37), we have
We therefore have, by Lemma 6.1, . Substituting in Eq. (41), we obtain
By setting , the condition is satisfied for all , which completes the proof for variance approximation with
where we use in the final bound.
Part IV: Approximation error for bias.
Note that all the terms on the right-hand side of Eq. (38) are evaluated at the same value of . Hence, Eq. (21) applies to each of these terms. We claim that the assumptions of Corollary 6.5 apply to all of these terms, provided the following conditions hold
Indeed, condition (42) implies for all since is monotone decreasing; finally, condition (43) is independent of .
then we can apply Lemmas 6.3 and 6.4 and invoke Corollary 6.5 with . To be specific, by Corollary 6.5, we have with probability ,
as decreases with . By Lemmas 6.3 and 6.4 we obtain
where in the bound (i) we use the fact that is increasing in (cf. Lemma 6.6) and is decreasing in when ; in (ii) we use that . Combining the calculations above, we have from Eq. (38)
where in the last line we used the definition of in Eq. (7). By Eq. (21), we have
which reduces the approximation bound for bias to
We again take and the bound becomes
This bounds hold under the conditions (42) to (43), which are implied by the following:
For the first condition, we invoke Lemma 6.6 to obtain a sufficient requirement . For the last condition, it suffices to have for the same defined in Part III.
Proof of Theorem 5
The proof is based on the following interpolating construction. We will construct a sequence of random variables for (where, by convention, is the trivial -algebra) such that, defining
we obtain that is approximately a martingale and, as a consequence, . We will further have and , asd therefore we obtain the desired claim .
Before formally defining the sequence , we introduce some helpful notations. We first define the matrices for as
Then we can write . Similarly we define another sequence of functions by .
Now we are ready to define the sequence . We set the initial value and thus . The sequence is iteratively determined through the following equation
It is evident that if the solution exists and is unique (almost surely with respect to the random choice of ), since and , it follows that . The next lemma shows that the iteration via (46) is indeed well-defined. Its proof is in Appendix C.1.
There exists a unique strictly decreasing sequence satisfying the update rule (46).
Part II: Approximation to a martingale.
We next explain what is the rationale for the iterative definition of Eq. (46), and how it will help us prove the theorem claim.
Since we want to upper bound , it makes sense to compute the difference ,
Using rgw definitions in Eqs. (45a) and (45b), we can further expand (I) by Sherman-Morrison formula
which recovers the iteration in Eq. (46).
Part III: Proof via stopping times.
We next make the previous argument rigorous. For any scalars (in what follows, we’ll use the notation ) we consider the events
where is nonrandom. In particular we set so that and are well-defined for . It follows then . Next we can proceed to define two stopping times via
for , with . One can easily check that and are indeed stopping times since the sets in the above displays are in , and another immediate consequence is that . These stopping times are helpful since the event implies
We are left with the task of bounding the two terms and for any p.s.d. , and showing that they are small. Before doing this, we show that, by appropriately choosing , we have and with high probability. The proof of the next lemma is in Appendix C.2.
Under Assumption 1, for any positive integer , there exists a fixed , such that for all , it holds with probability that
additionally, under the same notations of Proposition 2.2, letting and , we have for all ,
The next lemma—upper bounding the first term (I)—uses Hanson-Wright inequality to show concentration for events in (48a). A proof is in Appendix C.3.
Under Assumption 1, choose in Eq. (48b) so that and . Then for any positive integer , there exists constants , and such that if we take
We then proceed to bound the term . The proof of the next lemma is in Appendix C.4.
Under Assumption 1, for any positive integer , there exists a constant such that the following holds. Consider as defined in Lemma 7.3, and set by
If , , and , then for all and ,
Applying Lemmas 7.3 and 7.4 to Eq. (50) (note that we can take ), we have shown that
which implies by choosing the parameter given by the above lemmas, with probability
Therefore, since , , and recalling the definition of , cf. Eq. (44), we have
where in (ii) we used Lemma 7.2; in (iii) we used the fact that by assumption. We explain the inequality in (i) more carefully as it is less evident. Denoting by , we first show and commute. Clearly commutativity holds if , otherwise we have
Noting that and are both p.s.d. compact self-adjoint operators in Hilbert space, commutativity implies they can be simultaneously orthogonally diagonalized and that and also commute. Consequently, combined with the fact that for any p.s.d. matrix , we have (i) from
We therefore proved the following. If and , then
To remove the condition , we use the following estimate, proven in Appendix C.5.
Under Assumption 1, consider the parameter tuple defined in Lemmas 7.3 and 7.4. If , , , and , then we have
Combining Eqs. (51) and (52), the proof is complete.
Acknowledgements
This work was supported by the NSF through award DMS-2031883, the Simons Foundation through Award 814639 for the Collaboration on the Theoretical Foundations of Deep Learning, the NSF grant CCF-2006489, the ONR grant N00014-18-1-2729, and a grant from Eric and Wendy Schmidt at the Institute for Advanced Studies. C. Cheng is supported by the William R. Hewlett Stanford graduate fellowship.
Part of this work was carried out while A. Montanari was on partial leave from Stanford and a Chief Scientist at Ndata Inc dba Project N. The present research is unrelated to A. Montanari’s activity while on leave.
References
Appendix A Proof of Proposition 2.2
Since , we have
Next we bound . Recalling that , it then follows
where in (i) we use the previous bound . Finally, for the bias term, we have
Appendix B Auxiliary lemmas
First we verify that . Set in Eq. (36), we obtain
which proves the claim comparing to Eq. (5). Further by (36), we can compute the derivatives
where in (i) we use Eq. (5) which implies . For the bias we can compute
B.2 Proof of Lemma 6.2
The lemma is an analogue of [HMRT22, Lemma. 5], which requires two-sided differentiability around and makes use of higher order central difference operators from numerical analysis. Here we apply a more straightforward argument. For any , by Taylor expansion with Lagrange remainder, we can write
for some . We can write the equations in matrix form,
The Vandermonde matrix is invertible, and therefore we can write
Dividing from both sides completes the proof.
B.3 Proof of Lemma 6.3
we can easily write out derivatives with respect to up to any order as
Part II: Derivative w.r.t. μ𝜇\mu.
where in (i) we use .
B.4 Proof of Lemma 6.4
Combining with the fixed-point equation (5) that determines , we further get
and it boils down to controlling higher order derivatives of w.r.t. . Of course, we need to first show that we can actually write locally by implicit function theorem. Since
which is clearly a increasing function of on the right hand side, and thus and the implicit function theorem applies. To calculate the higher order derivative of the inverse function, we apply the formula for higher order derivatives of inverse function [Apo00]
To further upper bound the above display, we need a lower bound for the derivative and upper bounds for higher order derivatives . Using the Leibniz rule, we can compute that
we have . When , we get
Substituting the above displays into Eq. (55) yields
Taken collectively with Eq. (54) and , we obtain for all ,
where we use Assumption (21) again for the final bound. This is also valid for as
where we use and
Part II: Derivative w.r.t. μ𝜇\mu.
Now we fix and allow be take nonzero values. We will also use the shorthand . Similar to the previous part, we apply Faà di Bruno’s formula to and bound
To bound higher order derivatives , we apply again the formula for higher order derivatives of inverse function. Of course, this would first require showing the existence of inverse function by implicit function theorem, which will be evident as we will provide a lower bound for below. By [Apo00], we have for all ,
This is a more manageable formula as we can explicitly write as a function of
We can compute the first order derivative as
which, together with , implies a lower bound
To further bound higher order derivatives, we again appeal to Faà di Bruno’s formula. Use the shorthand , we have for all ,
Taking the above displays into Eq. (57) and use the condition , we have
Finally, taking the above display back into Eq. (56) yields
B.5 Proof of Lemma 6.6
First we show is increasing in when . To this end, we consider the function
By Eq. (36), we have for all . Further, we prove is increasing in . We write
where in (i) we use that . Define
and therefore is increasing. As (cf. Eq. (36)), we must have for all . Substituting back into the above display with yields
We then proceed to show a sufficient condition for is under Assumption (21). Provided with monotonicity of , the desired condition is essentially equivalent to . Together with , we obtain a lower bound for the right hand side
where in (i) and (ii) we use two times the trivial bound . By Assumption (21),
and thus a sufficient condition for is .
Appendix C Proofs for Theorem 5
which implies . The update rule is equivalent to solving the equation
For all , let
In this given domain, and thus is decreasing in (this can be seen by computing its derivative with respect to ), which further implies is strictly increasing in . Since
(The first inequality follows since and .) Thus, there must be a unique that solves , proving the lemma.
C.2 Proof of Lemma 7.2
when . We write the spectral decomposition of as
with where form an orthogonal basis of eigenvectors. For any , define the projection operators
By writing , we can have the following inequality:
To apply the above lemma, we need to further provide an upper bound on , which we summarize as the following result.
Let Assumption 1 holds, we have for any with probability that,
Since , we can apply Hanson-Wright inequality (cf. Lemma 2.1) and conclude that
For we have with probability that for all
where the last inequality follows from and
we can thus deduce from the Bernstein inequality with intrinsic dimension [T+15, Theorem 7.3.1] that for
we can obtain with probability ,
where in (i) we make use of , and apply Assumption 1 for the spectrum in (ii). Next by the fact that , we can further write
To bound the norm of , we apply Lemmas C.1 and C.2 and obtain
Therefore by block matrix inverse, we can further get
Substituting into Eq. (58), we also obtain
Therefore, if we choose for some fixed such that , it holds for that
and we therefore conclude the proof by taking as above and substituting into Eq. (59)
where in the last line we use the fact that and therefore .
where in the last line we use the fact that for all ,
C.3 Proof of Lemma 7.3
We apply Hanson-Wright inequality in Lemma 2.1 and get
In particular, on the event , we have
Substituting the above bounds into the Hanson-Wright inequalities, we have conditioning on for some constant that
and therefore it holds with probability that
The Hanson-Wright inequalities also give the following upper bounds on the expectations conditioning on the tail event when . In particular, we would have
To finish the proof, we now only need to show holds with probability . We provide upper bounds for small and large separately. Under the assumption , we make use of the fact that which enables us to derive
which in particular implies for that
On the other hand, if , we can still deduce from Eq. (62) that and thus
Applying Lemma 7.2, we obtain with probability for all ,
for some . Combine with the trivial bound , we conclude that with probability , provided we take
C.4 Proof of Lemma 7.4
We therefore need to control and , as well as and .
Recall the calculations for Eq. (47), we have
and on the event , it holds
For each of the summand, we can decompose it into two parts—the martingale difference part and a bias part —to be specific, we can write
Since is a stopping time, one can easily have that is a martingale difference sequence for . (We note in passing that the above decomposition is similar but does not coincide with the standard Doob decomposition. In particular is not measurable on . We find the present decomposition more convenient.)
Part II: Controlling the martingale part.
We will show is bounded and thus by concentration inequality for bounded martingale differences, we can obtain an upper bound for the sum of the ’s. To this end, we use the fact that if for some
where in (i) we use , and therefore
Recalling our assumptions for , we observe that on the event ,
and on the event and by assumptions on ,
and finally on the event it holds
Putting together bounds in Eqs. (66), (67), (68) and making use of the fact that yield
Then we can apply Azuma-Hoeffding inequality and obtain
with probability .
Part III: Controlling the bias part.
Now we proceed to bound the bias part in Eq. (65). We can write an upper bound
Upper bounding the term requires more careful treatment. Note that and commute, as follows from the observation that
Since and are both p.s.d. compact self-adjoint operators in Hilbert space, commutativity implies they can be simultaneously orthogonally diagonalized, which further implies that and also commute. Therefore
where in the last inequality we use Eq. (67) on the event , while also implies
Next to bound (II), we make use of the fact that
We again make use of the bounds in Eqs. (66), (67) and (68) on the event , which implies
Finally for term (IV) in Eq. (70), we can control it by
Combining the above displays, we obtain that
Substitute Eqs. (71) and (72) into Eq. (70) we have
Part IV: Combining the results.
Hence, by combining results in part III and IV, we have with probability that
We can first see holds with probability , which follows via exactly the same argument as in Appendix C.3 for by invoking Lemma 7.2. Moreover, we have on that
where in (i) we apply which indicates . Therefore, by setting a constant large enough and take
if this satisfies the assumption , we can conclude that with probability ,
which is exactly the event (cf. Eq. (48b)). Substituting into Eq. (63) completes the proof.
C.5 Proof of Lemma 7.5
As , we cannot directly apply Lemmas 7.3 and 7.4. We will instead use a perturbation argument, reducing ourselves to the case . We will define a second sequence following the recursion Eq. (46) but with a different initialization with . We use the notations
and also denote by . For this second iteration, we define a parameter tuple defined in Lemmas 7.3 and 7.4 as
We want to show , , and so that Lemmas 7.3 and 7.4 are valid for and . To prove this claim, we need the following result bounding the perturbation of .
Taking derivatives w.r.t. on both sides of
which gives the desired bounds . ∎
Recalling that is increasing in and therefore is decreasing in , as a direct consequence of Lemma C.3 we have
where in the last inequality we used . Substituting and using the condition , it then follows that
Using the last inequalities in Eqs. (73a) to (73c), it follows immediately that
We then first see that implies . For and , using with , we can deduce from Eqs. (73d) and (73e) that
The last inequality verifies . The condition implies .
Finally we need to show . From Eq. (74), we can obtain that
Recalling that , we then know and thus
Together with , we then show and further that . Hence, we can apply Lemmas 7.3 and 7.4, and by Eq. (51)
In order to finish the perturbation argument, we bound
where in (i) we apply Lemma 7.2 and in the last line we use and . Similarly, invoke Lemma C.3 and we have
By triangular inequality, we deduce from Eqs. (75), (76) and (77) that
C.6 Proof of Corollary 6.5
We first derive upper bounds for the parameter in Theorem 5. Since , we have
On the other hand, by Eq. (21) and the fact that , we know
which implies . Generalizing the definition of Eq. (23) to and arbitrary , we let .
First we notice that by Assumption 1 and therefore
Since , we can write
We know that and . As a consequence, we have
Using the bounds in the previous displays, we can write
Substituting in Eq. (78), we can further bound
As for , we simply bound it by
Upper bound for resolvent approximation.
Recall the approximation bound we have in Theorem 5,
because . And thus
As , we can also write
Simplifying the conditions.
Finally we conclude the proof by simplifying the conditions , , and . As , by Eq. (79) it is sufficient to have the first condition once
for some sufficiently small constant . Recall that . Therefore, by Eq. (80), the second requirement can be deduced from
for some sufficiently small constant . By Eqs. (78) and (81), we can derive from
for some constant . For the last condition, we need a lower bound for . As , it follows that
With , we obtain
Appendix D Proof of Theorem 2
we define and bound each term separately. By homogeneity, we will assume throughout the proof.
For the variance term, by the elementary inequality for all , we have by Eq. (4a)
where in the last equality we use and . The next lemma bounds the difference between and .
Under the assumptions of Theorem 2, for such that it holds that
Rearranging terms, using and the fact that for conclude the proof. ∎
Returning to the bound of the variance term, we can thus further derive the upper bound
Using the fact that , we further have
Now we look at the bias term. From Eq. (4b), we first have
where in the last line we invoke Lemma D.1 and use .
Additionally with and
We obtain an alternative upper bound for in the following way. Note that
We next apply Lemma 7.2, which implies that with probability
Using the same argument, we can also bound
Combining Eqs. (85) and (86), we finally have
where we use in (i) and in (ii). By the elementary inequality for all , we can thus derive that
For the bias term, we first similarly derive
From the previous calculations for the variance term, we know
In the last inequality, recall . Putting together, we have error of the bias term bounded by
Part III: Variance approximation when λ=0𝜆0\lambda=0.
Recalling that , we want to invoke Theorem 1 to bound . Note that by Lemma D.1 it holds and thus
Hence the conditions hold for Theorem 1 by taking , and we have for some constant ,
Substituting the above display and Eqs. (84), (88) into Eq. (82) yields
Since and , if we additionally assume
We meet this assumption by setting .
Part IV: Bias approximation when λ=0𝜆0\lambda=0.
To apply Theorem 1 when , we first note that the condition is equivalent to , and by Lemma D.1 it suffices to have , which holds by assumption. Since we know from the previous part of the proof, we only need to additionally verify that and . The first relation is a direct consequence of Lemma D.1, and for the second claim we observe that
Therefore by Lemma D.1 and , we can obtain
which implies and therefore . Now we are able to invoke Theorem 2, yielding for some constant ,
Now we can substitute the above bound and Eq. (89) into Eq. (82),
Similar to previous calculations for the variance approximation, setting and thus
Substituting in Eq. (87), it then holds that
Appendix E Proof of Theorem 3
We follow the same proof strategy in Appendix D for the overparameterized regime, taking .
Similar to the overparameterized case, we can control the growth of by
Under the assumptions of Theorem 3, for such that it holds that
we can apply Lemma E.1 and obtain for ,
where in the last line we use . Again by the elementary inequality for all ,
Part III: Variance approximation.
Taking , we want to invoke Theorem 1 to bound . Using Lemma E.1, we know
Since by assumption , Eq. (21) holds with , because
Thus by Theorem 1, we have for some constant ,
Combining the above display with Eqs. (90), (91) yields
Since and , if we additionally assume
and the proof is complete with .
Appendix F Proofs for proportional regime
To apply Theorem 1, we first provide upper bounds for and implying that Assumptions 1 and Eq. (21) hold. Throughout we use the shorthand .
Under Assumption 2 and , Assumptions 1 and (21) hold for
For such and , .
By Assumption 2 we know and therefore for any ,
Using into Eq. (5), we have
This implies and therefore
Finally, we can bound as , and thus
we have . Together with Lemma F.1, since , the following conditions in Theorem 1 hold
Additionally, is equivalent to , which holds for . Finally, by using , as shown above, we can conclude from Theorem 1 and Lemma F.1 that, for , with probability ,
F.2 Proof of Proposition 4.2
we can deduce that . Hence,
and therefore, in Theorem 2 we can take . By Eq. (92) we know . By [BY08, RV09], we know when , with probability we have . Substituting and (c.f. Lemma F.1) into , we get for ,
Thus, by taking , the conditions below hold for given ,
and by taking , the following additional conditions hold when given ,
We can then invoke Theorem 2 by taking for variance approximation and for bias approximation. Therefore, we can conclude that for ,
Use again and , we know
We conclude the proof by fixing , and thus
Underparameterized regime.
Suppose , we can invoke Theorem 3 with . By [BY08] we have . Also as we can take in this case, we have
and therefore the conditions below hold for by taking when ,
By fixing , we know for all ,
Appendix G Proofs for bounded varying spectrum regime
Throughout this proof, we will use the shorthand . We begin by lower bounding the constant of Eq. (21). Since
we know that and therefore for any . We then have
where in the last inequality we use . Further
and therefore, using the previous inequality, we conclude the following. If is such that
then . Let be defined follows
Them . Hence
Putting together the above displays, we conclude Eq (21) holds for when (recall that we need ).
To verify the conditions of Theorem 1, we first assume for ,
and with , the conditions
hold if . We then can apply Theorem 1 to approximate the variance. Given any positive integer , if , it holds with probability that
If additionally , we have
when . The condition is equivalent to , which holds when since we have assumed . Therefore, we can appeal to the bias approximation result in Theorem 1, yielding
G.2 Proof of Proposition 4.4
We provide the following bounds for the quantities in Theorem 2.
Under the same Assumptions of Theorem 2, we can take
when . For , we have
In addition, with probability .
where in the last line we use . Since
and from Eq. (93), we know
We can hence take .
Substituting and for some into Eq. (24), we have for ,
Finally, to get a lower bound for , we use Cauchy interlacing theorem which implies
where is the projection to the space spanned by the top eigenvectors. Let , we further have
with probability at least , where is the random variable
By Hanson-Wright in Lemma 2.1 and similar to the argument in Eq. (61), we have
Given the above sharp concentration of , we can therefore conclude by taking for some , and , we have with probability that
and therefore by Assumption 3. ∎
By Lemma G.1 and the assumption , we know by taking , the conditions below hold for whenever ,
Therefore by the variance approximation in Theorem 2, it holds
Fixing , we have with probability , we know as ,
For the bias approximation with the assumption , the following additional conditions hold by taking when given ,
In verifying the second condition above, we use . By Lemma G.1, we also have
We can then write out the bias approximation result applying Theorem 2
Fixing , we conclude the proof with
Appendix H Proof of Theorem 4
Define the following increasing function in ,
In the first case, we set . For any , we can compute that
We will first show and , and then we can invoke Proposition 4.3 for variance approximation. For simplicity, we will suppress the dependence on sequences and in the big-O and big- notations. For instance, we will just write for all , .
We first upper bound . Note that
As converges to a positive limit, we have . For such that for all , we can further derive that
This implies for all , we can take . Next we show . Note that
where in (i) we use the reflection formula for function. Recall that we define as the unique solution of
it then follows from the above displays that
By the definition of in (5), we can write . Combining with the above limit, we can then conclude that
Substituting into Eq. (23), we further have
Therefore, under the additional condition for some that
we have . By choosing , we can invoke Proposition 4.3. Choosing a sufficiently large yields and .
In the next step, we derive explicit asymptotic formulas for and . Similar to the previous calculations in Eq. (94), we can compute that
and further . This then gives the variance
For the bias term, we can similarly write
Together with , we conclude the proof for this case.
Case II: regularly varying spectrum when α=1𝛼1\alpha=1.
Setting . For any , we can compute that
We first verify Assumption 1 holds. With bounded and , we indeed have that as
Since the sequence converge to a positive limit, we have for
and therefore, we can take . We proceed to compute . Taking any ,
Taking the above display into Eq. (23), we get
where in the last line we use . Thus we can have provided the condition
Setting , we can invoke Proposition 4.3 and obtain , .
For the variance , we note
Substituting in , we thus have , which further implies that
Combining with , it holds that
Case III: a non-regularly varying spectrum.
Take . For any , we can compute that
If , we can easily have if . This immediately yields
as and the geometric sum converges. We can thus take . For , using that
Since as tends to infinity, we have
While the right hand side is increasing in ranging in . There exists a unique solving
Next we compute from Eq. (23),
we have and Proposition 4.3 holds with , implying that and .
To compute the effective variance , we first note that
We conclude the proof for by substituting in .