Introduction
Gradient Descent (GD) is a fundamental optimization algorithm in machine learning. Beyond its role in minimizing loss, GD provides "implicit regularization" through its path-wise trajectory. A critical challenge in deploying GD is determining the optimal stopping time ($k$): stopping too early leads to underfitting, while stopping too late can result in overfitting or the interpolation of noise.
In high-dimensional settings where the number of features ($p$) is comparable to the number of observations ($n$), traditional heuristics for tuning hyperparameters often fail. This paper investigates whether classical cross-validation techniques—specifically Generalized Cross-Validation (GCV) and Leave-One-Out Cross-Validation (LOOCV)—can reliably estimate the prediction risk of GD iterates to identify the ideal stopping point.
Theoretical Framework
The authors analyze the statistical properties of these estimators in the "proportional regime," where $n, p \to \infty$ such that $p/n \to \gamma \in (0, \infty)$. Using tools from random matrix theory, they derive the asymptotic limits for both the true prediction risk and the cross-validation estimates.
A key finding is that while GCV and LOOCV are asymptotically equivalent for Ridge regression, they diverge sharply for Gradient Descent. In Ridge regression, the penalty is a fixed $\lambda \|\beta\|^2$. In contrast, the implicit regularization of GD is data-dependent and evolves over time, creating a complex interaction between the algorithm's state and the training data geometry.
The GCV Failure vs. LOOCV Success
The research reveals a striking inconsistency in GCV. Mathematically, the GCV limit fails to match the true risk limit for GD iterates. This is most visible in overparameterized settings ($p > n$), where GCV's "degrees-of-freedom" correction becomes unstable.
As shown in Figure 1, while GCV may track risk in some scenarios (left), it can explode as iterations increase in high-dimensional cases (right). Conversely, the authors prove that LOOCV is uniformly consistent: it tracks the true risk path perfectly across the entire trajectory. This allows LOOCV to act as a reliable proxy for an "oracle" that knows the true data distribution, ensuring the selection of a near-optimal stopping time.
Practical Implementation and Prediction Intervals
Standard LOOCV is computationally expensive, requiring $n$ separate model fits. To overcome this, the authors introduce a novel recursive shortcut formula. This formula allows researchers to compute LOOCV estimates for the entire GD path using only the full-data iterates and auxiliary calculations, making it practically feasible for large-scale problems.
Beyond point estimation, this shortcut enables the construction of path-wise prediction intervals. By leveraging individual leave-one-out errors, these intervals provide a measure of uncertainty for new predictions.
As illustrated in Figure 4, these intervals achieve asymptotically correct coverage. For instance, a 95% nominal coverage level (purple line) consistently contains the true test points approximately 95% of the time, even as the interval length (right plot) decreases and stabilizes during training.
Conclusion
This work highlights a critical nuance in high-dimensional statistics: the success of a validation method for explicit regularization (like Ridge) does not guarantee its success for implicit regularization (like GD). While GCV fails structurally in this context, LOOCV remains a robust and theoretically sound tool. The proposed recursive shortcut bridges the gap between theoretical consistency and computational efficiency, providing a powerful method for tuning and quantifying uncertainty in early-stopped iterative algorithms.
Summary updated