Benefits of Early Stopping in Gradient Descent for Overparameterized Logistic Regression

Jingfeng Wu, Peter L. Bartlett, Matus Telgarsky, Bin Yu · DOI

Abstract

In modern machine learning, models are frequently overparameterized, having more parameters than training data points. While gradient descent (GD) is known to find solutions that generalize well, its behavior in the overparameterized regime for classification tasks is complex. This paper, "Benefits of Early Stopping in Gradient Descent for Overparameterized Logistic Regression" by Wu et al. (ICML 2025), provides a rigorous analysis of why early stopping is a statistical necessity rather than just a heuristic. We show that while asymptotic GD solutions lead to infinite weights and poor calibration, early stopping acts as an implicit regularizer, achieving vanishing risk and better calibration with significantly lower sample complexity.

Introduction

Conventional statistical wisdom suggests that overparameterized models should suffer from severe overfitting. However, in practice, gradient descent often finds solutions that generalize remarkably well. In the context of logistic regression on separable data, GD iterates never settle; instead, the weight magnitudes grow toward infinity while their direction converges to the maximum $\ell_2$-margin solution. This paper investigates whether this asymptotic solution is optimal or if "quitting while you're ahead" through early stopping provides superior statistical properties.

Problem Formulation and Methodology

The authors analyze a well-specified logistic regression model where features follow an anisotropic Gaussian distribution $N(0, \Sigma)$ and labels are generated by a true logistic model. They focus on three primary error metrics:

  1. Logistic Risk (Log-loss): Measures the quality of predicted probabilities.
  2. Zero-One Risk: Standard classification error.
  3. Calibration Error: Measures how well predicted probabilities align with actual outcomes.

The study compares the "GD path"—the sequence of models produced by gradient descent—to the "$\ell_2$-regularization path" (Ridge regression). By employing high-dimensional statistical theory and Rademacher complexity, the authors derive non-asymptotic bounds on performance.

Key Insights: The Necessity of Early Stopping

The Calibration Catastrophe

As training progresses toward infinity, GD forces predicted probabilities for training points toward 0 or 1. This extreme overconfidence leads to a "calibration catastrophe": the logistic risk eventually explodes to infinity, and calibration error remains non-vanishing. Early stopping prevents this by keeping weights bounded, ensuring the model remains well-calibrated.

Figure 2: Empirical and population logistic risk. As training continues (opt length increases), the test logistic risk diverges while training risk approaches zero.

Sample Complexity Gap

A major finding is the disparity in sample requirements. To achieve low classification error, early-stopped GD requires only a polynomial number of samples relative to the problem dimensions. Conversely, any interpolating estimator—including the asymptotic GD solution—requires exponentially many samples in certain high-dimensional regimes to achieve similar performance.

Results and Discussion

The theoretical analysis yields several key results:

  • Vanishing Risk: With an optimal "oracle" stopping time, GD achieves vanishing excess logistic risk as the sample size $n$ increases.
  • Asymptotic Failure: Any estimator sequence where the norm diverges (like asymptotic GD) necessarily results in diverging logistic risk and high calibration error.
  • Implicit Regularization: The authors establish a global connection between GD and explicit $\ell_2$ regularization, showing that GD iterates remain close to the Ridge regression path in both norm and angle.
Figure 3: Empirical and population zero-one error. Similar to logistic risk, the zero-one error on test data shows a U-shaped curve, indicating an optimal early stopping point.

Limitations and Future Directions

While the paper provides a strong theoretical foundation, some limitations remain. The proofs currently rely on an "oracle" stopping time, which assumes knowledge of the true underlying parameters. Future work is needed to develop data-driven stopping rules (e.g., based on validation sets) that match these theoretical guarantees. Additionally, extending the analysis beyond Gaussian feature distributions and sharpening the bias-variance tradeoff bounds are important areas for further research.

Summary updated

BibTeX
@inproceedings{wu2025benefits,
  author = {Jingfeng Wu and Peter L. Bartlett and Matus Telgarsky and Bin Yu},
  title = {{Benefits of Early Stopping in Gradient Descent for Overparameterized Logistic Regression}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=lZ4UQ6SzlX},
}
Figure