Abstract
Optimization and generalization are two essential aspects of statistical machine learning. In this paper, we propose a framework to connect optimization with generalization by analyzing the generalization error based on the optimization trajectory under the gradient flow algorithm. The key ingredient of this framework is the Uniform-LGI, a property that is generally satisfied when training machine learning models. Leveraging the Uniform-LGI, we first derive convergence rates for gradient flow algorithm, then we give generalization bounds for a large class of machine learning models. We further apply our framework to three distinct machine learning models: linear regression, kernel regression, and two-layer neural networks. Through our approach, we obtain generalization estimates that match or extend previous results.
Introduction: The Optimization-Generalization Gap
In classical machine learning theory, optimization and generalization are often treated as distinct domains. Optimization focuses on the geometry of the loss landscape and the speed of convergence, while generalization theory typically relies on static measures of model complexity, such as VC-dimension or Rademacher complexity. However, the success of deep learning—where over-parameterized models generalize well despite having the capacity to memorize training data—suggests a deeper connection. This paper explores that link by asking: can the path taken by parameters during training predict the final model's performance on unseen data?
Theoretical Framework: The Uniform-LGI
The core of the proposed framework is the Uniform-LGI (Łojasiewicz Gradient Inequality). This mathematical condition relates the magnitude of the loss function's gradient to the loss value itself:
$$\|\nabla L(w)\| \ge c(L(w) - L^*)^{1-\theta}$$
where $c > 0$ and $\theta \in (0, 1/2]$ are constants. Intuitively, the Uniform-LGI ensures that as long as the loss is non-zero, the gradient remains large enough to drive the optimization forward.
Estimating LGI Constants
Since proving a model satisfies LGI analytically is often intractable for complex architectures, the authors introduce a numerical test. By tracking the loss and gradient norm during training, they use linear regression in log-space to estimate the characteristic constants $\theta$ and $c$.
From Path Length to Generalization
The framework demonstrates that if a model satisfies Uniform-LGI, the total distance the parameters travel from their initialization is bounded. This "path length" bound is then integrated into Rademacher complexity theory. By limiting the effective volume of the parameter space explored during training, the framework provides tighter generalization bounds that reflect the actual optimization dynamics.
Empirical Validation and Key Insights
The authors validated their framework across various models, from simple synthetic functions to deep neural networks like ResNet18 and Wide-ResNet on CIFAR-10.
LGI as a Natural Property of Neural Networks
A significant finding is that standard neural networks naturally satisfy the Uniform-LGI property along their training trajectories. This suggests that the inherent geometry of deep learning loss landscapes is well-suited for both fast optimization and controlled generalization.
The Impact of Model Width
One of the most compelling observations relates to model width. As networks become wider, the estimated LGI exponent $\theta$ tends toward $1/2$. A value of $\theta = 1/2$ corresponds to the Polyak-Łojasiewicz (PL) condition, which guarantees the fastest possible (exponential) convergence. This provides a theoretical hint as to why wider networks are often easier to train.
The Bias-Variance Tradeoff in Time
The derived generalization bounds reveal a temporal tradeoff. As training progresses, the training error (bias) decreases, but the distance from initialization (complexity/variance) increases. This provides a rigorous mathematical foundation for the common practice of early stopping, identifying the point where the sum of these two components is minimized.
Key Results and Implications
- Convergence Guarantees: The authors derived explicit convergence rates for gradient flow. If $\theta = 1/2$, the model converges exponentially fast; if $\theta > 1/2$, it converges at a sublinear rate.
- Unified Generalization Bounds: The framework yields generalization estimates for linear regression, kernel regression, and two-layer networks that match or improve upon existing literature.
- Benign Overfitting: For linear regression, the framework recovers "benign overfitting" results through the lens of optimization dynamics rather than just static matrix properties.
- Non-Vacuous Bounds: Unlike many traditional bounds that become meaningless for large models, these estimates remain meaningful even for large-scale models on datasets like CIFAR-10, showing a clear decrease in error as the number of training samples increases.
Limitations and Future Directions
While the framework offers a powerful bridge between optimization and generalization, several areas remain for future exploration. The current theoretical results primarily focus on continuous-time gradient flow; extending these to the discrete and noisy regime of Stochastic Gradient Descent (SGD) is a key challenge. Additionally, while numerical evidence supports the Uniform-LGI for deep networks, formal proofs for many-layered architectures are still needed.
Summary updated