Stability and Generalization Analysis of Gradient Methods for Shallow Neural Networks

Yunwen Lei, Rong Jin, Yiming Ying

Abstract

This work investigates the generalization mystery of overparameterized shallow neural networks (SNNs) through the lens of algorithmic stability. We provide a refined theoretical framework demonstrating that Gradient Descent (GD) and Stochastic Gradient Descent (SGD) achieve optimal risk bounds with significantly reduced overparameterization requirements ($m \gtrsim (nT)^3$) compared to prior stability-based analyses ($m \gtrsim (nT)^5$). Our results further highlight the computational efficiency of SGD and the acceleration of generalization rates under low-noise conditions.

Introduction

In modern machine learning, models often operate in the overparameterized regime, where the number of parameters far exceeds the number of training examples. While classical statistics suggests such models should overfit, they frequently exhibit remarkable generalization performance. This "generalization mystery" has been partially addressed by the Neural Tangent Kernel (NTK) approach, which requires "infinite width" to maintain mathematical tractability.

More recent "kernel-free" approaches have utilized algorithmic stability—measuring how much a model's output changes when a single training point is swapped—to provide more realistic bounds. However, previous stability-based work required extreme overparameterization ($m \gtrsim (nT)^5$) and was restricted to full-batch Gradient Descent. This paper relaxes these requirements and extends the analysis to the more practically ubiquitous Stochastic Gradient Descent (SGD).

Methods

The authors utilize Algorithmic Stability analysis to bridge the gap between optimization and generalization. The core technical innovation lies in a refined estimation of the Hessian matrix along the optimization path. Specifically, the researchers developed:

  • Iterate Tracking: A tighter estimation of the weight trajectory ($W_t$) compared to previous crude bounds.
  • Hessian Spectrum Analysis: Improved lower bounds for the smallest eigenvalues of the Hessian matrices during training, ensuring the loss surface does not become excessively unstable.
  • Regularized Early Stopping: The use of early stopping as a mechanism to balance the trade-off between minimizing empirical training error and maintaining the stability necessary for generalization.

This theoretical framework applies to general probability distributions satisfying standard regularity assumptions, such as bounded inputs and smooth activation functions.

Key Results and Insights

The primary contribution of this work is the demonstration that subquadratic width is sufficient for generalization. For a network to generalize optimally, a width of $m \gtrsim (nT)^3$ is sufficient, a significant mathematical relaxation from the previous $(nT)^5$ requirement.

Comparison of algorithmic performance and overparameterization requirements between previous work and this study.

Key findings include:

  • Efficiency of SGD: The paper proves that SGD achieves identical generalization performance to GD but at a significantly lower computational cost, saving a factor of roughly $O(n^{1/(1+\alpha)})$.
  • Low-Noise Acceleration: Under low-noise conditions (cleaner data), the generalization error rate improves from $O(n^{-1/2})$ to $O(n^{-1})$.
  • Beyond Lazy Training: Unlike NTK-based proofs, this analysis does not require the network to remain in the "lazy training" regime near its initial state, offering a more flexible view of neural network learning dynamics.

Discussion and Limitations

While this work provides tighter bounds for overparameterized SNNs, several challenges remain. The current proof relies on smooth activation functions (e.g., sigmoid or tanh) and does not yet apply to the non-smooth ReLU activation, where the second derivative is zero almost everywhere. Additionally, the results are presented "in expectation"; future research is needed to develop high-probability bounds for worst-case robustness. Finally, extending these refined-Hessian techniques from shallow two-layer networks to deep architectures remains a critical frontier in learning theory.

Summary updated

BibTeX
@inproceedings{lei2022stability,
  author = {Yunwen Lei and Rong Jin and Yiming Ying},
  title = {{Stability and Generalization Analysis of Gradient Methods for Shallow Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=EjH-3Jsfmm},
}
Figure