Recent works have demonstrated a ubiquitous “double descent” phenomenon present in a range of machine learning models, including decision trees, random features, linear regression, and deep neural networks (Opper, 1995, 2001; Advani & Saxe, 2017; Spigler et al., 2018; Belkin et al., 2018; Geiger et al., 2019b; Nakkiran et al., 2020; Belkin et al., 2019; Hastie et al., 2019; Bartlett et al., 2019; Muthukumar et al., 2019; Bibas et al., 2019; Mitra, 2019; Mei & Montanari, 2019; Liang & Rakhlin, 2018; Liang et al., 2019; Xu & Hsu, 2019; Derezi´nski et al., 2019; Lampinen & Ganguli, 2018; Deng et al., 2019; Nakkiran, 2019). The phenomenon is that models exhibit a peak of high test risk when they are just barely able to fit the train set, that is, to interpolate. For example, as we increase the size of models, test risk first decreases, then increases to a peak around when effective model size is close to the training data size, and then decreases again in the overparameterized regime. Also surprising is that Nakkiran et al. (2020) observe a double descent as we increase sample size, i.e. for a fixed model, training the model with more data can hurt test performance.
These striking observations highlight a potential gap in our understanding of generalization and an opportunity for improved methods. Ideally, we seek to use learning algorithms which robustly improve performance as the data or model size grow and do not exhibit such unexpected non-monotonic behaviors. In other words, we aim to improve the test performance in situations which
Figure 1: Test Risk vs. Num. Samples for Isotropic Ridge Regression in d = 500 dimensions. Unregularized regression is non-monotonic in samples, but optimally-regularized regression () is monotonic. The sample distribution is (x, y) where
) and
) for
5, and
0, the ridge estimator on n samples is ˆ
. In this setting, the optimal regularizer
depend on number of samples n (Lemma 2), but this is not always true – see Figure 2.
would otherwise exhibit high test risk due to double descent. Here, a natural strategy would be to use a regularizer and tune its strength on a validation set.
This motivates the central question of this work:
Another motivation to start this line of inquiry is the observation that the double descent phenomenon is largely observed for unregularized or under-regularized models in practice. As an example, Figure 1 shows a simple linear ridge regression setting in which the unregularized estimator exhibits double descent, but an optimally-tuned regularizer has monotonic test performance.
Our Contributions: We study this question from both a theoretical and empirical perspective. Theoretically, we start with the setting of high-dimensional linear regression. Linear regression is a sensible starting point to study these questions, since it already exhibits many of the qualitative features of double descent in more complex models (e.g. Belkin et al. (2019); Hastie et al. (2019) and further related works in Section 1.1).
This work shows that optimally-tuned ridge regression can achieve both sample-wise monotonicity and model-size-wise monotonicity under certain assumptions. Concretely, we show
1. Sample-wise monotonicity: In the setting of well-specified linear regression with isotropic features/covariates (Figure 1), we prove that optimally-tuned ridge regression yields monotonic test performance with increasing samples. That is, more data never hurts for optimally-tuned ridge regression (see Theorem 1).
2. Model-wise monotonicity: We consider a setting where the input/covariate lives in a high-dimensional ambient space with isotropic covariance. Given a fixed model size d (which might be much smaller than ambient dimension), we consider the family of models which first project the input to a random d-dimensional subspace, and then compute a linear function in this projected “feature space.” (This is nearly identical to models of double-descent considered in Hastie et al. (2019, Section 5.1)). We prove that in this setting, as we grow the model-size, optimally-tuned ridge regression over the projected features has monotone test performance. That is, with optimal regularization, bigger models are always better or the same. (See Theorem 3).
3. Monotonicity in the real-world: We also demonstrate several richer empirical settings where optimal regularization induces monotonicity, including random feature classifiers and convolutional neural networks. This suggests that the mitigating effect of optimal regularization may hold more generally in broad machine learning contexts. (See Section 5).
A few remarks are in order:
Problem-specific vs Minimax and Bayesian. It is worth noting that our results hold for all linear ground-truths, rather than holding for only the worst-case ground-truth or a random ground-truth. Indeed, the minimax optimal estimator or the Bayes optimal estimator are both trivially sample-wise and model-wise monotonic with respect to the minimax risk or the Bayes risk. However, they do not guarantee monotonicity of the risk itself for a given fixed problem.
Universal vs Asymptotic. We also remark that our analysis is not only non-asymptotic but also works for all possible input dimensions, model sizes, and sample sizes. Prior works on double descent mostly rely on asymptotic assumptions that send the sample size or the model size to infinity in a specific manner. To our knowledge, the results herein are the first non-asymptotic sample-wise and model-wise monotonicity results for linear regression. (See discussion of related works Hastie et al. (2019); Mei & Montanari (2019) for related results in the asymptotic setting).
Finally, we note that our claims are about monotonicity of the actual test risk, instead of the monotonicity of the generalization bounds (e.g., results in (Wei et al., 2019)).
Towards a more general characterization. Our theoretical results crucially rely on the covariance of the data being isotropic. A natural next question is if and when the same results can hold more generally. A full answer to this question is beyond the scope of this paper, though we give the following results:
1. Optimally-tuned ridge regression is not always sample-monotonic: we show a counterexample for a certain non-Gaussian data distribution and heteroscedastic noise. We are not aware of prior work pointing out this fact. (See Section 4.1 for the counterexample and intuitions.)
2. For non-isotropic Gaussian covariates, we can achieve sample-wise monotonicity with a regularizer that depends on the population covariance matrix of data. This suggests unlabeled data might also help mitigate double descent in some settings, because the population covariance can be estimated from unlabeled data. (See Section 6).
3. For non-isotropic Gaussian covariates, we conjecture that optimally-tuned ridge regression is sample-monotonic even with a standard regularizer (as in Figure 2). We derive a sufficient condition for this conjecture, which we verify numerically on a wide variety of cases.
The last two results above highlight the importance of the form of the regularizer, which leads to the open question: “How do we design good regularizers which mitigate or remove double descent?” We hope that our results can motivate future work on mitigating the double descent phenomenon, and allow us to train high performance models which do not exhibit nonmonotonic behaviors.
1.1 Related Works
The study of nonmonotonicity in learning algorithms existed prior to double descent and has a long history going back to (at least) (Trunk, 1979) and (LeCun et al., 1991; Le Cun et al., 1991), where the former was largely empirical observations and the latter studied the sample non-nonmonotonicity of unregularized linear regression in terms of the eigenspectrum of the covariance matrix; the difference to our works is that we study this in the context of optimal regularization. In fact, Duin (1995, 2000); Opper (2001); Loog & Duin (2012). Loog et al. (2019) introduces the same notion of risk monotonicity which we consider, and studies several examples of monotonic and non-monotonic procedures.
Double descent of test risk as a function of model size was considered recently in more generality by Belkin et al. (2018). Similar behavior was observed empirically in earlier work in somewhat more restricted settings (Trunk, 1979; Opper, 1995, 2001; Skurichina & Duin, 2002; Le Cun et al., 1991; LeCun et al., 1991) and more recently in Advani & Saxe (2017); Geiger et al. (2019a); Spigler et al. (2018); Neal et al. (2018). Recently Nakkiran et al. (2020) demonstrated a generalized double descent phenomenon on modern deep networks, and highlighted “sample non-monotonicity” as an aspect of double descent.
A recent stream of theoretical works consider model-wise double descent in simplified settings— often via linear models for regression or classification. This also connects to works on high-dimentional regression in the statistics literature. A partial list of works in these areas include (Belkin et al., 2019; Hastie et al., 2019; Bartlett et al., 2019; Muthukumar et al., 2019; Bibas et al., 2019; Mitra, 2019; Mei & Montanari, 2019; Liang & Rakhlin, 2018; Liang et al., 2019; Xu & Hsu, 2019; Derezi´nski et al., 2019; Lampinen & Ganguli, 2018; Deng et al., 2019; Nakkiran, 2019; Mahdaviyeh & Naulet, 2019; Dobriban et al., 2018; Dobriban & Sheng, 2019; Kobak et al., 2018). Of these, most closely related to our work are Hastie et al. (2019); Dobriban et al. (2018); Mei & Montanari (2019). Specifically, Hastie et al. (2019) considers the risk of unregularized and regularized linear regression in an asymptotic regime, where dimension d and number of samples n scale to infinity together, at a constant ratio d/n. In contrast, we show non-asymptotic results, and are able to consider increasing the number of samples for a fixed model, without scaling both together. Mei & Montanari (2019) derive similar results for unregularized and regularized random features, also in an asymptotic limit. The non-asymptotic versions of the settings considered in Hastie et al. (2019) are almost identical to ours— for example, our projection model in Section 3 is nearly identical to the model in Hastie et al. (2019, Section 5.1). Finally, subsequent to our work, d’Ascoli et al. (2020) identified triple descent in an asymptotic setting.
In this section, we prove that optimally-regularized ridge regression has test risk that is monotonic in samples, for isotropic gaussian covariates and linear response. This confirms the behavior empirically observed in Figure 1. We also show that this monotonicity is not “fragile”, and using larger than larger regularization is still sample-monotonic (consistent with Figure 1).
Formally, we consider the following linear regression problem in d dimensions. The input/covariate is generated from
), and the output/response is generated by
with ) and for some unknown parameter
. We denote the joint distribution of (x, y) by D. We are given n training examples
i.i.d sampled from D. We aim to learn a linear model
with small population mean-squared error on the distribution D
For simplicity, let be the data matrix that contains
’s as rows and let
be column vector that contains the responses
’s as entries. For any estimator ˆ
) as a function of n samples, define the expected risk of the estimator as:
We consider the regularized least-squares estimator, also known as the ridge regression estimator. For a given
Here denotes the d dimensional identity matrix. Let
be the optimal ridge parameter (that achieves the minimum expected risk) given n samples:
Let ˆbe the estimator that corresponds to the
Our main theorem in this section shows that the expected risk of ˆmonotonically decreases as n increases.
Theorem 1. In the setting above, the expected test risk of optimally-regularized well-specified isotropic linear regression is monotonic in samples. That is, for all
The above theorem shows a strong form of monotonicity, since it holds for every fixed ground-truth , and does not require averaging over any prior on ground-truths. Moreover, it holds non-asymptotically, for every fixed
. Obtaining such non-asymptotic results is nontrivial, since we cannot rely on concentration properties of the involved random variables.
In particular, evaluating R(ˆ) as a function of the problem parameters (
, and d) is technically challenging. In fact, we suspect that a simple closed form expression does not exist. The key idea towards proving the theorem is to derive a “partial evaluation” — the following lemmas shows that we can write
) in the form of
contains the singular values of X. We will then couple the randomness of data matrices obtained by adding a single sample, and use singular value interlacing to compare their singular values.
Lemma 1. In the setting of Theorem 1, let ) be the singular values of the data matrix
. (If n < d, we pad the
for i > n.) Let Γ
be the distribution of
. Then, the expected test risk is
From Lemma 1, the below lemma follows directly by taking derivatives to find the optimal
Lemma 2. In the setting of Theorem 1, the optimal ridge parameter is constant for all
Moreover, the optimal expected test risk can be written as
Lemma 2’s proof is deferred to the Appendix, Section A.1. We now prove Lemma 1.
Proof of Lemma 1. For isotropic x, the test risk is related to the parameter error as:
Plugging in the form of ˆand expanding:
Now let be the full singular value decomposition of
) denote the singular values, defining
). Then, continuing:
In Line (8) follows because by symmetry, the distribution of V is a uniformly random orthonormal matrix, and Σ is independent of is distributed as a uniformly random point on the unit sphere of radius
Now we are ready to prove Theorem 1.
be any two matrices which differ by only the last row of
. By the Cauchy interlacing theorem Theorem 4.3.4 of Horn et al. (1990) (c.f.,Lemma 3.4 of Marcus et al. (2014)), the singular values of
are interlaced:
-th singular value.
If we couple and X, it will induce a coupling Π between the distributions Γ
and Γ
, of the singular values of the data matrix for n + 1 and n samples. This coupling satisfies that
probability 1 for (
below is monotone decreasing with
By similar techniques, we can also prove that overregularization —that is, using ridge parameters larger than the optimal value— is still monotonic. This proves the behavior empirically observed in Figure 1.
Theorem 2. In the same setting as Theorem 1, over-regularized regression is also monotonic in samples. That is, for all , the following holds
where
Proof. In Section A.1.
In this section, we show that for a certain family of linear models, optimal regularization prevents model-wise double descent. That is, for a fixed number of samples, larger models are not worse than smaller models.
We consider the following learning problem. Informally, covariates live in a p-dimensional ambient space, and we consider models which first linearly project down to a random d-dimensional subspace, then perform ridge regression in that subspace for some
Formally, the covariate is generated from
), and the response is generated by
with ) and for some unknown parameter
. Next, n examples
are sampled i.i.d from this distribution. For a given model size
, we first sample a random orthonormal matrix
which specifies our model. We then consider models which operate on (
, where
. We denote the joint distribution of (
) by D. Here, we emphasize that p is some large ambient dimension and
is the size of the model we learn.
For a fixed P, we want to learn a linear model (˜
for estimating y, with small mean squared error on distribution:
For be the data matrix,
be the projected data matrix and
be the responses. For any estimator ˆ
(
) as a function of the observed samples, define the expected risk of the estimator as:
We consider the regularized least-squares estimator. For a given
Let be the optimal ridge parameter (that achieves the minimum expected risk) for a model of size d, with n samples:
Let ˆbe the estimator that corresponds to the
Now, our main theorem in this setting shows that with optimal regularization, test performance is monotonic in model size.
Theorem 3. In the setting above, the expected test risk of the optimally-regularized model is monotonic in the model size d.
That is, for all
Proof. In Section A.2.
This proof follows closely the proof of Theorem 1, making crucial use of Lemma 3 below.
Lemma 3. For all , and
0, let
be a matrix with i.i.d. N(0, 1) entries. Let
be a random orthonormal matrix. Define
Let () be the singular values of the data matrix ˜
, for m := max(n, d) (with
be the distribution of singular values (
Then, the optimal ridge parameter is constant for all d:
where we define
Moreover, the optimal expected test risk can be written as
Proof. This proof follows exactly analogously as the proof of Lemma 2 from Lemma 1, in Section A.1.
In this section, we show that optimally-regularized ridge regression is not always monotonic in samples. We give a numeric counterexample in d = 2 dimensions, with non-gaussian covariates and heteroscedastic noise. This does not contradict our main theorem in Section 2, since this distribution is not jointly Gaussian with isotropic marginals.
4.1 Counterexample
Here we give an example of a distribution (x, y) for which the expected error of optimally-regularized ridge regression with n = 2 samples is worse than with n = 1 samples.
This counterexample is most intuitive to understand when the ridge parameter is allowed to depend on the specific sample instance (
) as well as
. We sketch the intuition for this below.
Consider the following distribution on (coordinate and one “noisy” coordinate. The distribution is:
where is uniformly random independent noise. This distribution is “well-specified” in that the optimal predictor is linear in
for
0]. However, the noise is heteroscedastic.
For depending on if the sampled coordinate is the “clean” or “noisy” one. Specifically, for the sample (
the optimal ridge parameter is
, then the optimal parameter is
For n = 2 samples, with probability 1/2 the two samples will hit both coordinates. In this case, the estimator must chose a single value of uniformly for both coordinates. This yields to a suboptimal tradeoff, since the “noisy” coordinate demands large regularization, but this hurts estimation on the “clean” coordinate.
It turns out that a slight modification to the above also serves as a counterexample to monotonicity when the regularization parameter is chosen only depending on n (and not on the instance X, y).
The distribution is:
with
Theorem 4. There exists a distribution with the following properties.
Let ˆbe the optimally-regularized ridge regression solution for
1. D is “well-specified” in that is a linear function of x,
2. The expected test risk increases as a function of n, between n = 1 and n = 2. Specifically
This is achieved with
For n = 2 samples, it can be confirmed numerically (via Mathematica) that the expected risk 179. This is achieved with
We now experimentally demonstrate that optimal regularization can mitigate double descent, in more general settings than Theorems 1 and 3.
5.1 Sample Monotonicity
Here we show various settings where optimal regularization empirically induces sample-monotonic performance.
Nonisotropic Regression. We first consider the setting of Theorem 1, but with non-isotropic covariantes x. That is, we perform ridge regression on samples (x, y), where the covariate generated from N(0, Σ) for Σ
. As before, the response is generated by
with
) for some unknown parameter
We consider the same ridge regression estimator,
Figure 2: Test Risk vs. Num. Samples for Non-Isotropic Ridge Regression in d = 30 dimensions. Unregularized regression is non-monotonic in samples, but optimally-regularized regression is monotonic. Note the optimal regularization depends on the number of samples n. Plotting empirical means of test risk over 5000 trials. See Figure 6 for the corresponding train errors.
Figure 2 shows one instance of this, for a particular choice of Σ and . The covariance Σ is diagonal, with Σ
15. That is, the covariance has one “large” eigenspace and one “small” eigenspace. The ground-truth
, which lies almost entirely within the “small” eigenspace of Σ. The noise parameter is
We see that unregularized regression (in this setting, with the first peak around n = 15 samples due to the 15-dimensional large eigenspace, and the second peak at n = d.
In this setting, optimally-regularized ridge regression is empirically monotonic in samples (Figure 2). Unlike the isotropic setting of Section 2, the optimal ridge parameter is no longer a constant, but varies with number of samples n.
Random ReLU Features. We consider random ReLU features, in the random features framework of (Rahimi & Recht, 2008). We apply random features to Fashion-MNIST (Xiao et al., 2017), an image classification problem with 10 classes. Input images are normalized and flattened to [
1]
for
. For a given number of features D, and number of samples n, the random feature classifier is obtained by performing regularized linear regression on the embedding
where is a matrix with each entry sampled i.i.d
applies pointwise. This is equivalent to a 2-layer fully-connected neural network with a frozen (randomly-initialized) first layer, trained with
loss and weight decay.
Figure 3a shows the test error of the random features classifier, for D = 500 random features and varying number of train samples. We see that underregularized models are non-monotonic, but optimal regularization is monotonic in samples. Moreover, the optimal ridge parameter
to be constant for all n, similar to our results from the isotropic setting in Theorem 1.
Figure 3: Double-descent for Random ReLU Features. Test classification error as a function of model size and sample size for Random ReLU Features on Fashion-MNIST. Left: with D = 500 features. Right: with n = 500 samples. See Figures 7, 8 for the corresponding test Mean Squared Error. See Appendix D of Nakkiran et al. (2020) for the performance of these unregularized models plotted across Num. Samples Model Size simultaneously.
5.2 Model-size Monotonicity
Here we empirically show that optimal regularization can mitigate model-wise double descent.
Random ReLU Features. We consider the same experimental setup as in Section 5.1, but now fix the number of samples n, and vary the number of random features D. This corresponds to varying the width of the corresponding 2-layer neural network.
Figure 3b shows the test error of the random features classifier, for n = 500 train samples and varying number of random features. We see that underregularized models undergo model-wise double descent, but optimal regularization prevents double descent.
Convolutional Neural Networks. We follow the experimental setup of Nakkiran et al. (2020) for model-wise double descent, and add varying amounts of regularization (weight decay). We chose the following setting from Nakkiran et al. (2020), because it exhibits double descent even with no added label noise.
We consider the same family of 5-layer convolutional neural networks (CNNs) from Nakkiran et al. (2020), consisting of 4 convolutional layers of widths [k, 2k, 4k, 8k] for varying . This family of CNNs was introduced by Page (2018). We train and test on CIFAR-100 (Krizhevsky et al., 2009), an image classification problem with 100 classes. Inputs are normalized to [
1]
, and we use standard data-augmentation of random horizontal flip and random crop with 4-pixel padding. All models are trained using Stochastic Gradient Descent (SGD) on the cross-entropy loss, with step size 0
. We train for 1e6 gradient steps, and use weight decay
for varying
Due to optimization instabilities for large
, we use the model with the minimum train loss among the last 5K gradient steps.
Figure 4: regularization (weight decay). Note that the optimal regularization
varies with n. See Figure 5 for the corresponding train errors.
Figure 4 shows the test error of these models on CIFAR-100. Although unregularized and underreguarized models exhibit double descent, the test error of optimally-regularized models is largely monotonic. Note that the optimal regularization varies with the model size — no single regularization value is optimal for all models.
Here we investigate whether monotonicity provably holds in more general models, inspired by the experimental results. As a first step, we consider Gaussian (but not isotropic) covariances and homeostatic noise. That is, we consider ridge regression in the setting of Section 2, but with Σ), and
). In this section, we observe that ridge regression can be made sample-monotonic with a modified regularizer. We also conjecture that ridge regression is sample-monotonic without modifying the regularizer, and we outline a potential proof strategy along with numerical evidence.
6.1 Adaptive Regularization
The results on isotropic regression in Section 2 imply that ridge regression can be made sample-monotonic even for non-isotropic covariates, if an appropriate regularizer is applied. Specifically, the appropriate regularizer depends on the covariance of the inputs: for Σ), the following estimator is sample-monotonic for optimally-tuned
This follows directly from Theorem 1 by applying a change-of-variable; full details of this equivalence are in Section A.3. Note that if the population covariance Σ is not known, it can potentially be estimated from unlabeled data.
6.2 Towards Proving Monotonicity
We conjecture that optimally-regularized ridge regression is sample-monotonic for non-isotropic covariates, even without modifying the regularizer (as suggested by the experiment in Figure 2). We derive a sufficient condition for monotonicity, which we have numerically verified in a variety of instances.
Specifically, we conjecture the following.
Conjecture 1. For all , and all PSD covariances Σ
, consider the distribution on (x, y) where
Σ), and
). Then, we conjecture that the expected test risk of the ridge regression estimator:
for optimally-tuned 0, is monotone non-increasing in number of samples n. That is, for all
where we define ˆ
In order to establish Conjecture 1, it is sufficient to prove the following technical conjecture.
Conjecture 2. For all 0, symmetric positive definite matrix
, the following holds.
where is sampled with each entry i.i.d. N(0, 1). Similarly, define
The expected test risk for n samples can be expressed as:
Then, we conjecture that the following two conditions hold.
Proving Conjecture 2 presents a number of technical challenges, but we have numerically verified it in a variety of cases. (One can numerically verify the conjecture for a fixed Q, n and d. Here Q can be assumed to be diagonal w.l.o.g. because X is isotropic. The matrices and scalars in equation (25) can be evaluated by sampling the random matrix X. The derivatives w.r.t can be done by auto-differentiation).
It can also be shown that Conjecture 2 is true when Q = I, corresponding to isotropic covariates. We show that Conjecture 2 implies Conjecture 1 in in Section A.3.1 of the Appendix.
In this work, we study the double descent phenomenon in the context of optimal regularization. We show that, while unregularized or under-regularized models often have non-monotonic behavior, appropriate regularization can eliminate this effect.
Theoretically, we prove that for certain linear regression models with isotropic covariates, optimally-tuned regularization achieves monotonic test performance as we grow either the sample size or the model size. These are the first non-asymptotic monotonicity results we are aware of in linear regression. We also demonstrate empirically that optimally-tuned
regularization can mitigate double descent for more general models, including neural networks. We hope that our results can motivate future work on mitigating the double descent phenomenon, and allow us to train high performance models which do not exhibit unexpected nonmonotonic behaviors.
Open Questions. Our work suggests a number of natural open questions. First, it is open to prove (or disprove) that optimal ridge regression is sample-monotonic for non-isotropic Gaussian covariates (Conjecture 1). We conjecture that it is, and outline a potential route to proving this (via Conjecture 2). The non-isotropic setting presents a number of differences from the isotropic one (e.g. the optimal regularizer depends on number of samples n), and thus a proof of this may yield further insight into mechanisms of monotonicity.
Second, more broadly, it is open to prove sample-wise or model-wise monotonicity for more general (non-linear) models with appropriate regularizers. Addressing the monotonicity of non-linear models may require us to design new regularizers which improve the generalization when the model size is close to the sample size. It is possible that data-dependent regularizers (which depend on certain statistics of the labeled or unlabeled data) can be used to induce sample monotonicity, analogous to the approach in Section 6.1 for linear models. Recent work has introduced data-dependent regularizers for deep models with improved generalization upper bounds (Wei & Ma, 2019a,b), however a precise characterization of the test risk remain elusive.
Finally, it is open to understand why large neural networks in practice are often sample-monotonic in realistic regimes of sample sizes, even without careful choice of regularization.
Work supported in part by the Simons Investigator Awards of Boaz Barak and Madhu Sudan, and NSF Awards under grants CCF 1715187, CCF 1565264 and CNS 1618026. Sham Kakade acknowledges funding from the Washington Research Foundation for Innovation in Data-intensive Discovery, and the NSF Awards CCF-1703574, and CCF-1740551.
The numerical experiments were supported in part by Google Cloud research credits, and a gift form Oracle. The work is also partially supported by SDSI and SAIL at Stanford.
Advani, M. S. and Saxe, A. M. High-dimensional dynamics of generalization error in neural networks. arXiv preprint arXiv:1710.03667, 2017.
Bartlett, P. L., Long, P. M., Lugosi, G., and Tsigler, A. Benign overfitting in linear regression. arXiv preprint arXiv:1906.11300, 2019.
Belkin, M., Hsu, D., Ma, S., and Mandal, S. Reconciling modern machine learning and the bias-variance trade-off. arXiv preprint arXiv:1812.11118, 2018.
Belkin, M., Hsu, D., and Xu, J. Two models of double descent for weak features. arXiv preprint arXiv:1903.07571, 2019.
Bibas, K., Fogel, Y., and Feder, M. A new look at an old problem: A universal learning approach to linear regression. arXiv preprint arXiv:1905.04708, 2019.
d’Ascoli, S., Sagun, L., and Biroli, G. Triple descent and the two kinds of overfitting: Where & why do they appear? arXiv preprint arXiv:2006.03509, 2020.
Deng, Z., Kammoun, A., and Thrampoulidis, C. A model of double descent for high-dimensional binary linear classification. arXiv preprint arXiv:1911.05822, 2019.
Derezi´nski, M., Liang, F., and Mahoney, M. W. Exact expressions for double descent and implicit regularization via surrogate random design, 2019.
Dobriban, E. and Sheng, Y. Wonder: Weighted one-shot distributed ridge regression in high dimensions. arXiv preprint arXiv:1903.09321, 2019.
Dobriban, E., Wager, S., et al. High-dimensional asymptotics of prediction: Ridge regression and classification. The Annals of Statistics, 46(1):247–279, 2018.
Duin, R. P. Small sample size generalization. In Proceedings of the Scandinavian Conference on Image Analysis, volume 2, pp. 957–964. PROCEEDINGS PUBLISHED BY VARIOUS PUBLISHERS, 1995.
Duin, R. P. Classifiers in almost empty spaces. In Proceedings 15th International Conference on Pattern Recognition. ICPR-2000, volume 2, pp. 1–7. IEEE, 2000.
Geiger, M., Jacot, A., Spigler, S., Gabriel, F., Sagun, L., d’Ascoli, S., Biroli, G., Hongler, C., and Wyart, M. Scaling description of generalization with number of parameters in deep learning. arXiv preprint arXiv:1901.01608, 2019a.
Geiger, M., Spigler, S., d’Ascoli, S., Sagun, L., Baity-Jesi, M., Biroli, G., and Wyart, M. Jamming transition as a paradigm to understand the loss landscape of deep neural networks. Physical Review E, 100(1):012115, 2019b.
Hastie, T., Montanari, A., Rosset, S., and Tibshirani, R. J. Surprises in high-dimensional ridgeless least squares interpolation, 2019.
Horn, R. A., Horn, R. A., and Johnson, C. R. Matrix Analysis. Cambridge University Press, 1990.
Kobak, D., Lomond, J., and Sanchez, B. Optimal ridge penalty for real-world high-dimensional data can be zero or negative due to the implicit ridge regularization. arXiv preprint arXiv:1805.10939, 2018.
Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009.
Lampinen, A. K. and Ganguli, S. An analytic theory of generalization dynamics and transfer learning in deep linear networks. arXiv preprint arXiv:1809.10374, 2018.
Le Cun, Y., Kanter, I., and Solla, S. A. Eigenvalues of covariance matrices: Application to neural-network learning. Physical Review Letters, 66(18):2396, 1991.
LeCun, Y., Kanter, I., and Solla, S. A. Second order properties of error surfaces: Learning time and generalization. In Advances in neural information processing systems, pp. 918–924, 1991.
Liang, T. and Rakhlin, A. Just interpolate: Kernel” ridgeless” regression can generalize. arXiv preprint arXiv:1808.00387, 2018.
Liang, T., Rakhlin, A., and Zhai, X. On the risk of minimum-norm interpolants and restricted lower isometry of kernels. arXiv preprint arXiv:1908.10292, 2019.
Liang, T., Rakhlin, A., and Zhai, X. On the multiple descent of minimum-norm interpolants and restricted lower isometry of kernels. 2020.
Loog, M. and Duin, R. P. The dipping phenomenon. In Joint IAPR International Workshops on Statistical Techniques in Pattern Recognition (SPR) and Structural and Syntactic Pattern Recognition (SSPR), pp. 310–317. Springer, 2012.
Loog, M., Viering, T., and Mey, A. Minimizers of the empirical risk and risk monotonicity. In Advances in Neural Information Processing Systems, pp. 7476–7485, 2019.
Mahdaviyeh, Y. and Naulet, Z. Asymptotic risk of least squares minimum norm estimator under the spike covariance model. arXiv preprint arXiv:1912.13421, 2019.
Marcus, A. W., Spielman, D. A., and Srivastava, N. Ramanujan graphs and the solution of the kadison-singer problem. arXiv preprint arXiv:1408.4421, 2014.
Mei, S. and Montanari, A. The generalization error of random features regression: Precise asymptotics and double descent curve. arXiv preprint arXiv:1908.05355, 2019.
Mitra, P. P. Understanding overfitting peaks in generalization error: Analytical risk curves for l2 and l1 penalized interpolation. ArXiv, abs/1906.03667, 2019.
Muthukumar, V., Vodrahalli, K., and Sahai, A. Harmless interpolation of noisy data in regression. arXiv preprint arXiv:1903.09139, 2019.
Nakkiran, P. More data can hurt for linear regression: Sample-wise double descent. arXiv preprint arXiv:1912.07242, 2019.
Nakkiran, P., Kaplun, G., Bansal, Y., Yang, T., Barak, B., and Sutskever, I. Deep double descent: Where bigger models and more data hurt. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=B1g5sA4twr.
Neal, B., Mittal, S., Baratin, A., Tantia, V., Scicluna, M., Lacoste-Julien, S., and Mitliagkas, I. A modern take on the bias-variance tradeoff in neural networks. arXiv preprint arXiv:1810.08591, 2018.
Opper, M. Statistical mechanics of learning: Generalization. The Handbook of Brain Theory and Neural Networks, 922-925., 1995.
Opper, M. Learning to generalize. Frontiers of Life, 3(part 2), pp.763-775., 2001.
Page, D. How to train your resnet. https://myrtle.ai/ how-to-train-your-resnet-4-architecture/, 2018.
Rahimi, A. and Recht, B. Random features for large-scale kernel machines. In Advances in neural information processing systems, pp. 1177–1184, 2008.
Skurichina, M. and Duin, R. P. Bagging, boosting and the random subspace method for linear classifiers. Pattern Analysis & Applications, 5(2):121–135, 2002.
Spigler, S., Geiger, M., d’Ascoli, S., Sagun, L., Biroli, G., and Wyart, M. A jamming transition from under-to over-parametrization affects loss landscape and generalization. arXiv preprint arXiv:1810.09665, 2018.
Trunk, G. V. A problem of dimensionality: A simple example. IEEE Transactions on pattern analysis and machine intelligence, (3):306–307, 1979.
Wei, C. and Ma, T. Data-dependent sample complexity of deep neural networks via lipschitz augmentation. In Advances in Neural Information Processing Systems, pp. 9722–9733, 2019a.
Wei, C. and Ma, T. Improved sample complexities for deep networks and robust classification via an all-layer margin. arXiv preprint arXiv:1910.04284, 2019b.
Wei, C., Lee, J. D., Liu, Q., and Ma, T. Regularization matters: Generalization and optimization of neural nets vs their induced kernel. In Advances in Neural Information Processing Systems, pp. 9709–9721, 2019.
Xiao, H., Rasul, K., and Vollgraf, R. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
Xu, J. and Hsu, D. J. On the number of variables to use in principal component regression. In Advances in Neural Information Processing Systems, pp. 5095–5104, 2019.
In Section A.1 and A.2 we provide the proofs for sample-monotonicity and model-size monotonicity. In Section A.4 we include additional and omitted plots.
A.1 Sample Monotonicity Proofs
Next we prove Lemma 2.
Proof of Lemma 2. First, we determine the optimal ridge parameter. Using Lemma 1, we have
For this optimal parameter, the test risk follows from Lemma 1 as
Proof of Theorem 2. We follow a similar proof strategy as in Theorem 1: we invoke singular value interlacing () for the data matrix when adding a single sample. We then apply Lemma 1 to argue that the test risk varies monotonically with the singular values.
We have
and we compute how each term in the sum varies with
Thus we have
By the coupling argument in Theorem 1, this implies that the test risk is monotonic:
where Π is the coupling. Line (30) follows from Equation (28), and the fact that the coupling obeys
A.2 Projection Model Proofs
Lemma 4. For all , and
0, let
be a matrix with i.i.d. N(0, 1) entries. Let
be a random orthonormal matrix. Define
Let () be the singular values of the data matrix ˜
, for m := max(n, d) (with
be the distribution of singular values (
Then, the expected test risk is
Proof of Lemma 4. We first define the parameter that minimizes the population risk. It follows directly that:
First, we can expand the risk as
The cross terms in Line (35) vanish because the first-order optimality condition for implies that
First, we have that:
since is an orthogonal projection onto a random d-dimensional subspace.
Now, recall we have ). Expand this as:
where . Note that conditioned on P, the three terms
are conditionally independent, since
and (
) project X onto orthogonal subspaces. And further,
Now, since is conditionally independent of
conditioned on P,
where Line (50) holds because the marginal distribution of does not depend on P.
Similarly,
Now let be the full singular value decomposition of
. Let (
) denote the singular values, where m = max(n, d) and defining
i > min(n, d).
Observe that by symmetry, are independent, because the joint distribution (
is equivalent to the distribution (
) for a random orthonormal
. Thus
and
are also independent, and we have:
Finally, continuing from Line (46), we can use Lines (51), (53), and (60) to write:
Now, we can continue from Line (37), and apply lines (38), to conclude:
Proof of Theorem 3. This follows analogously to the proof of Theorem 1, Let and
be the observed data matrices for d and d + 1 model size. As in Theorem 1, there exists a coupling Π between the distributions Γ
and Γ
of the singular values of
and
such that these singular values are interlaced.
Thus by Lemma 3,
A.3 Nonisotropic Reduction
Here we observe that results on isotropic regression in Section 2 also imply that ridge regression can be made sample-monotonic even for non-isotropic covariates, if an appropriate regularzier is applied. Specifically, the regularizer depends on the covariance on the inputs. This follows from a general equivalence between the non-isotropic and isotropic problems.
Lemma 5. For all , covariance Σ
, PSD matrix
, and ground-truth
, the following holds.
Consider the following two problems:
1. Regularized regression on isotropic covariates, and an M-regularizer. That is, suppose n samples (x, y) are drawn with covariates ) and response
). Let
be the matrix of covariates, and
the vector of responses. Consider
2. Regularized regression with covariance Σ, and an (Σ-regularizer. That is, suppose n samples (
are drawn with covariates
and response
Then, the expected test risks of the above two problems are identical:
Proof of Lemma 5. The distribution of in the Problem 2 is equivalent to
Problem 1. Thus, the two settings are equivalent by the change-of-variable
. Specifically,
Further, the response , and the test risk transforms identically:
This implies that if the covariance Σ is known, then ridge regression with a Σregularizer is sample-monotonic.
Theorem 5. For all , covariance Σ
, and ground-truths
, the following holds.
Suppose n samples (x, y) are drawn with covariates and response
Let
be the matrix of covariates, and
the vector of responses. For
0, consider the ridge regression estimator with Σ
-regularizer:
Let R(ˆbe the expected test risk of the above estimator. Let
be the optimal ridge parameter (that achieves the minimum expected risk) given n samples:
And let ˆbe the estimator that corresponds to the
. Then, the expected test risk of optimally- regularized linear regression is monotonic in samples:
Proof. This follows directly by applying the reduction in Lemma 5 for to reduce to the isotropic case, and then applying the monotonicity of isotropic regression from Theorem 1.
A.3.1 Monotonicity Conjecture
Lemma 6. Conjecture 2 implies Conjecture 1.
Proof. By the reduction in Section A.3, showing monotonicity for non-isotropic regression with an isotropic regularizer is equivalent to showing monotonicity for isotropic regression with a non-isotropic regularizer. Thus, we consider the latter. Specifically, Conjecture 1 is equivalent to showing monotonicity for the estimator
where ) is isotropic, and
Now, letting , the expected test risk of this estimator for n samples is:
Consider the infimum
We consider several cases below.
Case (1). Suppose the infimum in Equation 80 is achieved in the limit . In this case, monotonicity trivially holds, since
Case (2). Suppose the infimum in Equation 80 is achieved by some in the interior of the set (0
Because R(ˆ) is continuous and differentiable in
for all
(0
), we have that
must satisfy the following first-order optimality condition:
We will later use this condition to show monotonicity.
Case (3). Suppose the infimum in Equation 80 is achieved at Recall, we define ˆ
. This means that,
Note that since 0, both Equations (82) and (83) in Case (2) and Case (3) respectively imply that
Now, assuming Conjecture 2, we will show that the choice of in Cases (2) and (3) has non-increasing test risk for (n + 1) samples. That is,
This implies the desired monotonicity, since
We first consider the case when 0. In this case, because
0 by assumption, we have
Otherwise, assume. 0. Then we have:
as desired.
A.4 Additional Plots
Figure 5: Train Error vs. Model Size for 5-layer CNNs on CIFAR-100, with regularization (weight decay).
Figure 6: Train MSE vs. Num. Samples for Non-Isotropic Ridge Regression in d = 30 dimensions, in the setting of Figure 2. Plotting train MSE:
Figure 7: Test Mean Squared Error vs. Num Train Samples for Random ReLU Features on Fashion-MNIST, with D = 500 features.
Figure 8: Test Mean Squared Error vs. Num Features for Random ReLU Features on Fashion-MNIST, with n = 500 samples.