MIT 6.790 — Lecture 15
Double Descent and Implicit Regularization
§ Double Descent
The intuition that classical statistics gives us is that models with larger hypothesis classes are more prone to overfitting. In this sense, achieving zero training error via increasing the parameter count may have negative consequences on the test error.

The modern deep learning perspective, however, is that setting the parameter count even higher can contribute positively toward decreasing the test error in the long term! This phenomenon is known as double descent.

The graphs below provide some intuition for why double descent takes place.

Here's what these graphs indicate:
In the leftmost graph, the number of parameters is low, so both the training and test error are large.
In the middle graph, the number of parameters is just large enough for ERM to find a perfect interpolation through the training data—the interpolation threshold. Thus, training error is zero, but test error is large due to overfitting.
In the rightmost graph, the number of parameters is large enough for ERM to find multiple interpolations through the training data. If we add a ridge penalty to our loss function, then ERM finds the interpolation with the smallest weights, which overfits the least! So the training error is zero, and the test error is small.
Remark. Besides plain intuition, one solid argument as to why adding a ridge penalty should improve test error is the error bound we derived in Lecture 10 (restated below).
Assuming , for all we have with probability that:
The ridge penalty decreases the size of the set of reasonable hypotheses.
Here's a particular demonstration of double descent on the MNIST data set.

§ Implicit Regularization: Regression
This section aims to communicate the following vibe:
Vibe. The solution that gradient descent lands on will naturally tend to have small weights—even without a ridge penalty term!
We justify this vibe by demonstrating its validity specifically in the case of linear and logistic regression.
Theorem. (Linear Regression Implicit Regularization) Consider a linear regression given by with training error . Furthermore, assume that , meaning zero training error is achievable.
Among all parameters for which (or equivalently, ), let denote the parameter with the lowest magnitude. Then GD with converges to .
Proof: As usual, let and encode the training data. Suppose GD with converges to .
Lemma 1. We have .
Proof: Both and every update lie in .
Now consider any parameter for which (equivalently, ). Since as well, we also have . Therefore, if we denote , we have:
In particular, since by Lemma 1, this implies . Now the Pythagorean theorem gives , with equality precisely when , as desired.
Remark. The exact same proof works just as well for SGD; all that changes is that the proof of Lemma 1 must specify that every possible update still lives in , which is easy to verify.
It turns out the same phenomenon can be proven true for logistic regression as well; proof omitted.
Theorem. (Logistic Regression Implicit Regularization) Given a linearly separable dataset, let denote the set of all parameters such that for all . Define .
Suppose we train a logistic regression on this dataset using GD with sufficiently small and any initialization . Then:
In particular, this implies that , so GD converges in the direction of .
§ Implicit Regularization: Early Stopping
It has also been observed that stopping training early can be a useful tactic for reducing testing error. For example, one might proceed with SGD until validation error increases.

Informally, we can say the following; justification omitted.
Theorem. (Yao et al., 2007) For least squares regression, stopping GD early at time step is equivalent to ridge penalty .
Early stopping usually occurs before the interpolation threshold, meaning we stop before double descent becomes relevant.